feat(auth): migrate shared resource credentials (phase 5.2) - #5857
Closed
pandemicsyn wants to merge 42 commits into
Closed
feat(auth): migrate shared resource credentials (phase 5.2)#5857pandemicsyn wants to merge 42 commits into
pandemicsyn wants to merge 42 commits into
Conversation
pandemicsyn
marked this pull request as ready for review
September 4, 2026 20:05
Contributor
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (8 files)
Fix these issues in Kilo Cloud Previous Review Summaries (4 snapshots, latest commit c4c1ecb)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c4c1ecb)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (24 files)
Fix these issues in Kilo Cloud Previous review (commit 853dc5e)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (240 files)
Fix these issues in Kilo Cloud Previous review (commit ecf3d94)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (40 files)
Fix these issues in Kilo Cloud Previous review (commit e76dbb8)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (178 files)
Reviewed by grok-4.6 · Input: 240.4K · Output: 15.3K · Cached: 481K Review guidance: REVIEW.md from base branch |
pandemicsyn
marked this pull request as draft
September 4, 2026 21:31
Preserve delegation and authorization work for handoff. Modern Cloud Agent dispatch is fail-closed; proxy prototypes are not wired. Keep the PR draft and shared issuance disabled.
pandemicsyn
force-pushed
the
feat/shared-token-issuer-migration
branch
from
September 8, 2026 04:13
6123d6d to
2416519
Compare
pandemicsyn
marked this pull request as ready for review
September 8, 2026 13:42
This was referenced Sep 8, 2026
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds audience-bound tokens behind separate rollout flags. Existing CLI and mobile clients keep legacy issuance by default. Modern credentials retain scoped renewal and recovery support during rollback.
Rollout settings
For this merge: enable nothing. Leave all new adoption flags
falseor unset. Merging automatically deploys the services; wait until all deployments are healthy before changing flags.Later: enable one family at a time
First pass that family's end-to-end smoke test. Then, in both web projects (
kilocode-appandkilocode-global-app), setSHARED_RESOURCE_TOKENS_ENABLED=trueand one of these flags totrue. Leave the others off until separately validated.CHAT_RESOURCE_TOKENS_ENABLEDDELEGATED_RESOURCE_TOKENS_ENABLEDWORKFLOW_GATEWAY_RESOURCE_TOKENS_ENABLEDBENCHMARK_RESOURCE_TOKENS_ENABLEDThe shared flag alone enables none of these families.
Keep these off for now
RUNTIME_ISOLATION_ENABLEDCLOUD_AGENT_RESOURCE_TOKENS_ENABLEDNATIVE_RESOURCE_TOKENS_ENABLEDGASTOWN_RESOURCE_TOKENS_ENABLEDWASTELAND_RESOURCE_TOKENS_ENABLEDSHARED_RESOURCE_TOKENS_ENABLEDSHARED_RESOURCE_TOKENS_ENABLEDWeb flags do not change Worker settings. Leave the separate Phase 5.1 flag,
BOUNDED_INTERNAL_SERVICE_TOKENS_ENABLED, unchanged.Rollback: turn the affected producer flag off. Keep modern readers, renewal, and runtime support deployed for existing credentials. If Cloud Agent isolation was enabled, let outstanding admission credentials drain before turning it off.
Validation
Implementation details: token issuance policy.