Repository navigation
fix(onboard): keep referenced provider secrets out of plaintext - #118702
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 11:08 AM ET / 15:08 UTC. ClawSweeper reviewWhat this changesThe PR changes noninteractive reference-mode onboarding so new credentials are stored as environment references, existing resolvable provider profiles remain unchanged, and self-hosted keyless providers are recognized only through their bundled provider manifest. Merge readinessKeep this PR open for explicit maintainer review. The final documentation commit addresses the prior documentation finding, and the patch now makes reference-mode onboarding fail rather than serializing a resolved profile or literal as plaintext while preserving existing profile-owned credentials. Priority: P1 Review scores
Verification
How this fits togetherNoninteractive onboarding resolves a provider credential and then writes model and authentication configuration. The changed serializers decide whether a credential becomes a persisted SecretRef, remains in the authoritative auth-profile store, or is rejected before configuration is saved. flowchart LR
A[Noninteractive onboarding flags] --> B[Credential resolution]
B --> C{Credential source and mode}
C -->|New environment credential| D[Persist environment SecretRef]
C -->|Existing auth profile| E[Reuse authoritative profile]
C -->|Literal or unowned marker in ref mode| F[Fail with remediation]
E --> G[Provider and model configuration]
D --> G
F --> H[No configuration write]
Decision needed
Why: This is a deliberate authentication and upgrade-contract decision: the patch removes a plaintext-secret exposure but also changes what an existing profile is allowed to control during onboarding. Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +492, Docs +5. Total +507 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the single owner-boundary rule: serialize only newly supplied environment-backed credentials as SecretRefs, preserve existing profile-owned credentials and their metadata, and reject every other reference-mode serialization path before it can persist plaintext. Do we have a high-confidence way to reproduce the issue? Yes, from source: on current main, Is this the best way to solve the issue? Yes. The repair is at the serialization and provider-owner boundaries, where the resolved secret becomes persisted state, rather than masking it after configuration is written. Preserving existing profiles is safer than reconstructing them from a resolved key. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 73535e4ede7e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (#118702) docs: show canonical agent roster configuration (#118722) fix(channels): generate catalog from package manifests (#118097) fix(zalouser): distinguish probe timeout from auth failure (#111336) improve(ui): cut E2E shard runtime by reusing the bundle (#118697) fix(cli): publish completion caches atomically (#118715) fix(whatsapp): honor disabled self-chat without widening group access (#118711) fix(voice-call): terminate carrier calls after realtime startup failures (#118699) fix(slack): isolate GovSlack media trust and delivery (#118695) fix(browser): wrap page-controlled action results (#118691) fix(security): sanitize JSON-escaped forged content boundaries (#118698) test(qa): prove real yielded-child completion and channel delivery (#118707) fix(doctor): honor explicit plugin-only migration authority (#118700) fix(security): detect child_process calls through aliases and computed members (#116304) test(gateway): avoid async facade mock race (#118708) fix(gateway): preserve final speech during transcription shutdown (#118693) fix(gateway): resume durable outbound delivery retries (#118694) fix(plugins): reject external public-artifact hardlinks (#118689)
* origin/main: (78 commits) fix(parallels): recover Windows poll transport failures (#118479) fix(channels): deny unauthorized Discord and Telegram binding access (#118704) fix(test): bound shared git inventory lookup (#111171) fix(onboard): keep referenced provider secrets out of plaintext (#118702) docs: show canonical agent roster configuration (#118722) fix(channels): generate catalog from package manifests (#118097) fix(zalouser): distinguish probe timeout from auth failure (#111336) improve(ui): cut E2E shard runtime by reusing the bundle (#118697) fix(cli): publish completion caches atomically (#118715) fix(whatsapp): honor disabled self-chat without widening group access (#118711) fix(voice-call): terminate carrier calls after realtime startup failures (#118699) fix(slack): isolate GovSlack media trust and delivery (#118695) fix(browser): wrap page-controlled action results (#118691) fix(security): sanitize JSON-escaped forged content boundaries (#118698) test(qa): prove real yielded-child completion and channel delivery (#118707) fix(doctor): honor explicit plugin-only migration authority (#118700) fix(security): detect child_process calls through aliases and computed members (#116304) test(gateway): avoid async facade mock race (#118708) fix(gateway): preserve final speech during transcription shutdown (#118693) fix(gateway): resume durable outbound delivery retries (#118694) ...
…claw#118702) * fix(onboard): keep referenced provider secrets out of plaintext * fix(onboard): retain public credential owner type usage * docs(onboarding): explain preserved credential profiles in reference mode
* origin/main: fix(onboard): keep referenced provider secrets out of plaintext (openclaw#118702) docs: show canonical agent roster configuration (openclaw#118722) fix(channels): generate catalog from package manifests (openclaw#118097) fix(zalouser): distinguish probe timeout from auth failure (openclaw#111336) improve(ui): cut E2E shard runtime by reusing the bundle (openclaw#118697) fix(cli): publish completion caches atomically (openclaw#118715) fix(whatsapp): honor disabled self-chat without widening group access (openclaw#118711) fix(voice-call): terminate carrier calls after realtime startup failures (openclaw#118699) fix(slack): isolate GovSlack media trust and delivery (openclaw#118695) fix(browser): wrap page-controlled action results (openclaw#118691) fix(security): sanitize JSON-escaped forged content boundaries (openclaw#118698) test(qa): prove real yielded-child completion and channel delivery (openclaw#118707) fix(doctor): honor explicit plugin-only migration authority (openclaw#118700) fix(security): detect child_process calls through aliases and computed members (openclaw#116304) test(gateway): avoid async facade mock race (openclaw#118708) fix(gateway): preserve final speech during transcription shutdown (openclaw#118693) fix(gateway): resume durable outbound delivery retries (openclaw#118694) fix(plugins): reject external public-artifact hardlinks (openclaw#118689)
Summary
--secret-input-mode reffrom persisting resolved provider-profile secrets in plaintext.Root cause and authoritative secret ownership
The noninteractive custom-provider serializer and public plugin credential serializer both accepted a resolved profile or literal and wrote its actual key into provider configuration even when the operator explicitly requested references. The generic self-hosted provider owner also rewrote existing named-profile ownership as a synthetic default account.
A single existing secret serializer now fails closed unless a reference-mode credential has an explicit environment-variable identity. Existing profiles remain in their authoritative auth store with all existing descriptors, selected account order, email, and metadata unchanged. Legitimate keyless self-hosted placeholders are accepted only when the trusted bundled manifest declares the same normalized provider, its synthetic authorization owner, and that exact provider-owned marker; OAuth prefixes, environment-looking values, secret-reference markers, and markers owned by other providers cannot bypass authentication.
Actual operator/provider proof