feat: add dynamic context sync from SSO account/role inventory - #239
feat: add dynamic context sync from SSO account/role inventory#239youngjinjung-linq wants to merge 1 commit into
Conversation
Add `unic context sync [base-context]` which lists the accounts and roles visible to an SSO base context and adds a sync-managed concrete context for each new pair, inheriting the base context's regions. Generated contexts carry a `sync_source` marker so they stay distinguishable from manual ones: existing contexts are never rewritten, and sync-managed contexts whose account/role disappeared from SSO are reported as orphans and removed only with --prune. --dry-run prints the plan without writing config. Closes DevopsArtFactory#135 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BFhLrnpVxivu62cC3k9NZB
|
Warning Review limit reached
Next review available in: 51 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
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 |
|
Recreated as #253 from an in-repo branch under the maintainer account; this PR is superseded. |
Summary
Implements #135: contexts can now be generated and refreshed from SSO-visible accounts and roles instead of being managed only by hand.
unic context sync [base-context]command. When only one SSO base context exists the argument can be omitted; with several, the command lists the candidates.<base>-<account-id>-<role>(same naming ascontext setup), inheriting the base context's regions.sync_source: <base-context>inconfig.yaml, keeping them distinguishable from manually managed contexts.--prune; the current context selection is cleared if it pointed at a pruned entry.--dry-runprints the full plan (add:/orphan:lines plus a summary) without writing config.context setup.Testing
go test ./...passes: plan building (add/keep/orphan classification), apply with and without--prune, configRemoveContexts, CLI flag pass-through, dry-run, and base-context resolution errors are covered.make buildpasses.Docs
context syncusage, behavior notes, and thesync_sourceoptional field documented.docs/architecture.en.md/docs/architecture.ko.md:internal/clicommand list updated.Closes #135