Skip to content

Conversation

@saileshwar-skyflow
Copy link
Collaborator

Why

  • The current SDK restricts custom token endpoints, which blocks Bring Your Own Cloud (BYOC) integrations.

Outcome

  • Added a Custom Token URI option to enable BYOC support while maintaining full backward compatibility.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

Copy link

Copilot AI left a 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 tokenUri as an optional field to PathCredentials and StringCredentials interfaces
  • Implemented validation logic to ensure tokenUri is a valid HTTPS URL when provided
  • Modified token generation functions to accept and use custom tokenUri from 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.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@saileshwar-skyflow saileshwar-skyflow changed the base branch from main to release/26.1.5 January 27, 2026 11:16
@saileshwar-skyflow saileshwar-skyflow merged commit def7c2c into release/26.1.5 Jan 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants