Repository navigation
t18698: Default-aware credential consumers: onboarding and MCP validation honour the declared provider default - #34735
Conversation
… threshold (GH#34717)
…dules under qlty file-complexity (GH#34717)
…jection (GH#34718)
…ory-multi-account-provi' into feature/gh34718-credential-aliases-defaults-injection # Conflicts: # .agents/scripts/credential_inventory.py
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1🚫 Excluded labels (none allowed): 1
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ory-multi-account-provi' into feature/gh34718-credential-aliases-defaults-injection # Conflicts: # .agents/scripts/credential_inventory.py
Up to standards ✅🟢 Issues
|
…es-defaults-injection' into feature/gh34720-default-aware-credential-consumers
Qlty Smell Regression Gate✅ No change — smell count unchanged.
|
…lt-aware-credential-consumers # Conflicts: # TODO.md
Markdown Lint (changed-line scoped)No new violations in changed lines (0 pre-existing in touched files — ignored).
|
Bash 3.2 Compatibility Regression Gate✅ No regression — no new bash 3.2-incompatible construct(s).
|
Shell Function Complexity Regression Gate✅ No regression — no new function(s) >100 lines.
|
Shell Nesting Depth Regression Gate✅ No regression — no new file(s) with nesting depth >8.
|
File Size Regression Gate✅ No regression — no new non-README Markdown file(s) >1000 lines at root / >500 elsewhere.
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report SonarCloud: 0 bugs, 0 vulnerabilities, 1 code smells Thu Oct 15 01:21:55 UTC 2026: Code review monitoring started 📈 Current Quality Metrics
Generated on: Thu Oct 15 01:24:18 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
Planning-Publication-ID: 11f861177ca0e6b867f97c45268f6f2b38f455fd Planning-Publication-Handoff-ID: 91d670eed39d43d3a63337304ccc80edfc9edba1
Summary
Resolves #34720. For #34680.
Stacked on #34732 (t18696), which provides default injection. Base is the #34732 branch, so this diff shows only the consumer changes.
Onboarding and MCP validation no longer assume one unlabelled
CLOUDFLARE_API_TOKEN. When that variable is not exported, they read the credential registry:CLOUDFLARE_API_TOKENexportedready (API token configured), unchangedready (default: NAME)aidevops secret CLOUDFLARE_API_TOKEN -- ...(default injection) against/user/tokens/verifypartial (N stored, no default declared …)(previouslyneeds-setup)aidevops secret default cloudflare NAMEready (N stored, explicitly no default)needs-setupcloudflarecredentials plus stored-but-undescribedCLOUDFLARE_*TOKEN|KEYnames, using names only.onboarding-helper.sh jsonkeepshosting.cloudflare.configuredand addsstatus/detail.CLOUDFLARE_API_TOKEN. It showsaccount add,set CLOUDFLARE_<ACCOUNT>_API_TOKEN --provider cloudflare --account …and an optionalsecret default cloudflare NAME(or--none). Onboarding never creates a default.-H @-), so the token never appears in any process argv.Files
.agents/scripts/onboarding-helper.sh:_cloudflare_status/_cloudflare_credential_count, used bystatusandjson; setup guide..agents/scripts/validate-mcp-integrations.sh:test_cloudflare_registry_defaultfor the not-exported path..agents/tools/api/cloudflare-cf-cli.md: "Choosing the token":describe,resolve cloudflareexit codes and default injection.Verification
Isolated-
HOMEruntime script with acurlstub onPATH(no network; the stub passes only when the stdin header carries the expected token):needs-setup.partial,configured: true; the registrydefaultsstays{}(onboarding wrote nothing).--none→ready (2 stored, explicitly no default); MCP warns.ready (default: CLOUDFLARE_ACME_API_TOKEN); MCP connectivity test PASSED via injection; the token is absent from curl argv.CLOUDFLARE_API_TOKEN→ready (API token configured), as before.guide cloudflareshows account-specific names and the optional default.aidevops.sh v3.39.31 plugin for OpenCode v1.19.0 with claude-opus-5-5 spent 1h and 286,726 tokens on this with the user in an interactive session.