allow managed rotation as an option - #8862
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Disabled knowledge base sources:
WalkthroughThe admin key rotation modal now lets managed vaults remain managed by accepting a project secret key. State, mutation arguments, trigger presentation, checkbox behavior, secret-key input, validation, and warning text were updated. ChangesManaged vault rotation
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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
`@apps/dashboard/src/app/`(app)/team/[team_slug]/[project_slug]/(sidebar)/vault/components/rotate-admin-key.client.tsx:
- Around line 42-52: Update the submission flow around rotateAdminKeyMutation
and its trigger so that when stayManaged is true but willStayManaged is false,
rotation is blocked and validation is shown for the missing secret key. Preserve
the existing behavior of passing the trimmed key when provided and omitting it
only when managed mode is not selected.
🪄 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: 33768ab4-7fa6-4424-8cfb-b3d589d53084
📒 Files selected for processing (1)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/vault/components/rotate-admin-key.client.tsx
size-limit report 📦
|
PR-Codex overview
This PR focuses on enhancing the
RotateAdminKeyButtoncomponent by adding functionality for managing a vault with an optional project secret key, improving user feedback regarding the vault's management status.Detailed summary
Inputfor project secret key.stayManagedstate to track vault management preference.projectSecretKey.Summary by CodeRabbit