feat: add BedrockMantleKeyConfig support to key hashing, schema/table mapping, and sensitive field clearing - #4886
Conversation
|
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 57 seconds 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis change extends handling of ChangesBedrock Mantle key config support
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
556cdac to
9bb15e0
Compare
Merge activity
|
* 'dev' of https://github.com/maximhq/bifrost: ipv6 support (maximhq#4895) docs: add virtual key expiry support docs (maximhq#4889) test: add Postman e2e collection and runner for virtual key expiry validation and enforcement (maximhq#4888) feat: add expiry field to virtual keys (maximhq#4887) fix: converts thinking to disabled if tool choice is required for deepseek (maximhq#4861) chore: adds docs for deepseek provider (maximhq#4854) chore: adds tests for deepseek provider (maximhq#4853) feat: adds deepseek provider (maximhq#4852) fix: cost for image generation or image edit streaming (maximhq#4802) feat: add `BedrockMantleKeyConfig` support to key hashing, schema/table mapping, and sensitive field clearing (maximhq#4886) fix: skip O(N) reference refresh on request-time rate-limit/budget reset (maximhq#4883) refactor: simplify Responses lifecycle permissions to require explicit per-verb flags and expose them in UI (maximhq#4880) fix: append datasheet models for incomplete list models call (maximhq#4879) # Conflicts: # ui/app/workspace/providers/fragments/allowedRequestsFields.tsx # ui/app/workspace/virtual-keys/views/virtualKeyDetailsSheet.tsx # ui/app/workspace/virtual-keys/views/virtualKeySheet.tsx # ui/app/workspace/virtual-keys/views/virtualKeysTable.tsx # ui/components/ui/datePickerWithRange.tsx

Summary
Adds support for
BedrockMantleKeyConfigacross the key configuration pipeline, ensuring it is properly persisted, retrieved, and hashed alongside other provider key configs.Changes
BedrockMantleKeyConfigis now included when converting between schema keys and database table keys inschemaKeyFromTableKey,tableKeyFromSchemaKey,UpdateProvidersConfig,UpdateProvider, andAddProvider.BedrockMantleKeyConfigis now included in the key hash computation inGenerateKeyHash, so config changes to Bedrock Mantle keys are correctly detected.BedrockMantleAccessKey,BedrockMantleSecretKey,BedrockMantleSessionToken,BedrockMantleRegion,BedrockMantleRoleARN,BedrockMantleExternalID,BedrockMantleRoleSessionName,BedrockMantleKeyConfig) are cleared in theAfterFindhook onTableVirtualKeyProviderConfig, consistent with how existing Bedrock sensitive fields are handled.Type of change
Affected areas
How to test
Configure a provider key with
BedrockMantleKeyConfigset and verify:BedrockMantleKeyConfigresults in a different config hash, triggering a config reload.go test ./framework/configstore/...Breaking changes
Security considerations
Sensitive Bedrock Mantle credential fields are cleared in the
AfterFindhook, preventing them from being inadvertently exposed through virtual key provider config reads. This follows the same pattern already in place for standard Bedrock credentials.Checklist
docs/contributing/README.mdand followed the guidelines