chore(docs): record the two-tier key custody model and its operating rules - #494
Conversation
…rules Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview New architecture pages distill ADR#0023/#30/#33 into reference material: custody chains, Five how-to runbooks cover BYO AWS KMS, Google Cloud KMS, and OpenBao, backend migration (rewrap flow), and handling unusable keys / compromise vs rewrap. Pages state the design is not implemented yet and call out open decisions (envelope cipher suite, console/API shapes). Reviewed by Cursor Bugbot for commit a71b23c. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
Next review available in: 48 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
WalkthroughThe documentation site adds a two-tier key custody ADR, architecture pages for custody, key management, key states, and secrets, glossary terms, provider onboarding guides, unusable-key handling, and backend migration procedures. ChangesKey Custody Documentation
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/adr/0033-two-tier-key-custody-product-model.md`:
- Around line 111-118: The ADR’s custody model incorrectly presents
customer-managed backends as dependent on managed keys. Update the
dependency-chain diagram and accompanying explanation to show `SecretStore →
KeyManagement → {platform OpenBao | customer backend}` as alternatives, then
describe adoption order separately without implying a linear dependency or
routing customer operations through the managed tier.
- Around line 102-108: Replace every bare ADR citation with the appropriate
relative Markdown link, preserving the existing citation text and surrounding
content. Update all affected references in
docs/adr/0033-two-tier-key-custody-product-model.md lines 102-108,
docs/how-to/bring-your-own-openbao.md lines 17-18,
docs/how-to/handle-unusable-keys.md lines 17-20, and
docs/how-to/migrate-key-backends.md lines 21-26, including any additional bare
ADR references elsewhere within those pages.
In `@docs/architecture/key-custody.md`:
- Line 78: Replace every bare ADR reference with its corresponding relative
markdown link to satisfy lint-adr-refs: update ADR#0030 in
docs/architecture/key-custody.md (78-78); ADR#0023, ADR#0030, and ADR#0033 in
docs/architecture/key-management.md (276-281); ADR#0023 and any other bare ADR
references in docs/architecture/key-states.md (16-16) and
docs/architecture/secret-management.md (9-9); and all ADR#0030 and ADR#0033
references in docs/how-to/bring-your-own-aws-kms-key.md (22-130) and
docs/how-to/bring-your-own-google-cloud-kms-key.md (23-137), using each ADR’s
corresponding destination document.
In `@docs/how-to/bring-your-own-openbao.md`:
- Around line 75-81: Update the OpenBao Transit ACL guidance in the
authentication-role and token-update sections to explicitly list the concrete
encrypt/decrypt endpoints and their required capabilities. Specify use-only
permissions for authentication and update-only permissions on encrypt paths,
excluding create, restore, deletion, and key-administration capabilities, so
readers can implement the policy without inferring paths or granting excess
access.
In `@docs/how-to/migrate-key-backends.md`:
- Around line 73-87: Update the migration procedure around the default wrapping
key and “Verifying completion” section to require a concurrency-safe cutover:
atomically switch the tenant default to the new key and mark the old KeyRef as
draining, or explicitly quiesce writers that can still select the old key before
the final reference scan. Retire the old KeyRef only after the
cutover/quiescence and a scan confirming no envelopes reference it.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 36b4fa50-a7b6-4cc6-95a2-3103ebc48817
📒 Files selected for processing (15)
docs/.vitepress/config.mtsdocs/adr/0033-two-tier-key-custody-product-model.mddocs/adr/index.mddocs/architecture/key-custody.mddocs/architecture/key-management.mddocs/architecture/key-states.mddocs/architecture/secret-management.mddocs/glossary/customer-managed-key.mddocs/glossary/index.mddocs/glossary/managed-key.mddocs/how-to/bring-your-own-aws-kms-key.mddocs/how-to/bring-your-own-google-cloud-kms-key.mddocs/how-to/bring-your-own-openbao.mddocs/how-to/handle-unusable-keys.mddocs/how-to/migrate-key-backends.md
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…rules (#494) Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Related