fix(credentialgraph): fix decade old credential resolution bug#2511
Conversation
Instead of passing the actual to-be-resolved consumer identity to credential plugins, we passed the credential plugins identity itself. Signed-off-by: Fabian Burth <fabian.burth@sap.com>
✅ Deploy Preview for ocm-website canceled.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe credential plugin resolution contract is updated to pass the current identity instead of childID to the Resolve method. Test credential plugins are updated: AWSSecretsManager validates credentials from the credentials map, and HashiCorpVault extracts vaultHost from repository configuration to support both ingestion-time and resolution-time identity sources. ChangesCredential Plugin Resolution
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
…intuitive and realistic Previously, the mock always returned credentials and completely ignored the consumer identity. Now it actually performs a sort of consumer identity matching. Signed-off-by: Fabian Burth <fabian.burth@sap.com>
885b2f6
into
open-component-model:main
What this PR does / why we need it
Instead of passing the actual to-be-resolved consumer identity to credential plugins, we passed the credential plugins identity itself.
Which issue(s) this PR fixes
Testing
How to test the changes
Verification
task testandtask test/integrationif applicable)go workis enabled (seego.work)ocm