Keep provider-key distribution opt-in
Status: Ready
Article ID: 063
Truth label: Current
Audience: Fleet operator
Reader outcome: Keep cloud credentials off workers unless explicitly required.
Related articles: 024, 044, 069
Target week: 25
Last verified: 2026-09-13
Technical reviewer: Codex security source audit
Editorial reviewer: Codex editorial audit
Identify the sensitive asset
Provider API keys can authorize paid requests and send client material to an external processor. Central and a worker may need provider capability, but a repository process should not inherit a general cloud credential by default.
Use local CLI identity first
CLI-agent execution normally uses the CLI's own machine-local login. Local models can avoid cloud provider keys entirely. This keeps credential ownership close to the runtime that actually needs it.
Enable distribution deliberately
Provider-key distribution is disabled by default. Turn it on only when the selected adapter needs a centrally supplied key and the worker is an approved machine. Record the provider, purpose, scope, and rotation owner.
Apply the safe-use rule
Use the narrowest credential the provider supports. Keep secrets out of task prompts, traces, screenshots, and environment examples. Confirm which prompts, repository context, and retrieved evidence can leave the host before enabling a cloud path.
Current limits
The shared executor environment can expose more worker environment data to a child than intended. Provider controls do not prove which files a third-party CLI reads after launch. Full child-environment minimization remains required for hostile repositories.
Next lesson
Continue with Project-root allowlisting.
Derivative map
- Weekly package: WEEK-25
- Long video: VIDEO-W25-LONG
- Shorts: SHORT-W25-PROBLEM, SHORT-W25-MECHANISM, SHORT-W25-WARNING
- Email: EMAIL-W25
- LinkedIn: LI-W25-A, LI-W25-B
- X: X-W25-A, X-W25-B
- Visual: VISUAL-W25
Review record
- Provider key, operator, worker, child, and external-provider roles reviewed.
- Opt-in default and local-login path checked against current configuration.
- Environment inheritance and provider-egress limits remain explicit.
- Secret-handling language and links reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13