-
Notifications
You must be signed in to change notification settings - Fork 5
SK-2503: Add support for custom tokenUri #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SK-2503: Add support for custom tokenUri #275
Conversation
|
✅ Gitleaks Findings: No secrets detected. Safe to proceed! |
|
Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for custom token URIs to enable Bring Your Own Cloud (BYOC) integrations. The implementation allows users to specify a custom tokenUri option in credentials or token generation options, which overrides the default token endpoint.
Changes:
- Added
tokenUrias an optional field toPathCredentialsandStringCredentialsinterfaces - Implemented validation logic to ensure
tokenUriis a valid HTTPS URL when provided - Modified token generation functions to accept and use custom
tokenUrifrom options
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vault/config/credentials/index.ts | Added optional tokenUri field to credential interfaces |
| src/utils/validations/index.ts | Added validation logic for tokenUri in credential validation functions |
| src/utils/index.ts | Modified getToken to pass tokenUri to token generation functions |
| src/service-account/index.ts | Added tokenUri validation and override logic in token generation functions |
| src/error/codes/index.ts | Added INVALID_TOKEN_URI error code |
| src/error/messages/index.ts | Added error message for invalid token URI |
| test/utils/validations.test.js | Added comprehensive tests for tokenUri validation |
| test/service-account/token.test.js | Added tests for tokenUri override functionality |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
✅ Gitleaks Findings: No secrets detected. Safe to proceed! |
|
Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging. |
Why
Outcome