Extract credential seeding (private env-file / keychain / decode) to cli-guard #268

Closed
opened 2026-06-24 07:46:09 +00:00 by coilyco-ops · 1 comment
Member

resolveClaudeCreds/claudeCredsHealth/resolveCodexCreds/credEnvLines/writeTokenEnvFile + the in-container decode are a reusable security mechanism: resolve host creds (keychain/file/SSM), base64-pack into a private 0600 --env-file so they never hit argv/audit, decode on the other side, never-audit. The which creds is product; the how is engine policy that belongs next to pkg/audit.

  • Move to cli-guard/pkg/credseed: a SecretEnvFile writer + a keychain/file/SSM resolver interface. ward supplies the harness->cred mapping.
  • Med risk (touches the live container launch); isolatable behind an interface.

From the 2026-06-24 ward/cli-guard boundary audit. See ward docs/architecture.md (the 3-layer model: cli-guard engine / ward-kdl generator / ward product). Related: ward#194, ward#200, cli-guard#139.

`resolveClaudeCreds`/`claudeCredsHealth`/`resolveCodexCreds`/`credEnvLines`/`writeTokenEnvFile` + the in-container decode are a reusable security mechanism: resolve host creds (keychain/file/SSM), base64-pack into a private 0600 `--env-file` so they never hit argv/audit, decode on the other side, never-audit. The *which* creds is product; the *how* is engine policy that belongs next to `pkg/audit`. - Move to `cli-guard/pkg/credseed`: a `SecretEnvFile` writer + a keychain/file/SSM resolver interface. ward supplies the harness->cred mapping. - Med risk (touches the live container launch); isolatable behind an interface. From the 2026-06-24 ward/cli-guard boundary audit. See ward docs/architecture.md (the 3-layer model: cli-guard engine / ward-kdl generator / ward product). Related: ward#194, ward#200, cli-guard#139.
Author
Member

Re-triage (goose-triage method, claude-macos-kais-macbook-pro-2 as the judgment engine, 2026-06-24)

  • P3 - Credential-seeding extraction, med-risk cleanup, kept.
  • interactive - Touches the live container cred path, so an agent works it and a human verifies the secret-file behavior.
<!-- goose-triage --> **Re-triage** (goose-triage method, claude-macos-kais-macbook-pro-2 as the judgment engine, 2026-06-24) - **P3** - Credential-seeding extraction, med-risk cleanup, kept. - **interactive** - Touches the live container cred path, so an agent works it and a human verifies the secret-file behavior.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/ward#268
No description provided.