Skip to content

fix: redact runtime device credentials - #710

Merged
rogerchappel merged 7 commits into
mainfrom
codex/redact-openclaw-runtime-auth
Jul 20, 2026
Merged

rogerchappel merged 7 commits into
mainfrom
codex/redact-openclaw-runtime-auth

Conversation

@rogerchappel

Copy link
Copy Markdown
Owner

Summary

  • strip OpenClaw device private keys and device-token envelopes from browser-facing runtime metadata
  • apply the sanitizer to both full runtime DTOs and the runtime list projection
  • preserve non-sensitive metadata and capability summaries

Why

Runtime metadata historically included the device private key and is now also the encrypted device-token store. Neither plaintext keys nor credential ciphertext should cross the server API boundary.

Stack

Depends on #709, #708, #707, #706, and #705.

Verification

  • pnpm test -- src/lib/runtime-api-dto.test.ts src/app/api/runtimes/route.test.ts src/app/api/runtimes/[id]/route.test.ts
  • pnpm exec tsc --noEmit --pretty false --incremental false
  • pnpm exec eslint src/lib/runtime-api-dto.ts src/lib/runtime-api-dto.test.ts src/app/api/runtimes/route.ts
  • pre-push pnpm typecheck
  • pre-push pnpm build
  • git diff --check

@rogerchappel
rogerchappel changed the base branch from codex/persist-openclaw-onboarding-auth to main July 20, 2026 07:32
@rogerchappel
rogerchappel marked this pull request as ready for review July 20, 2026 07:32
@rogerchappel
rogerchappel merged commit 7a6b866 into main Jul 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant