Skip to content
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

feat: assumed web identity and imds support for bedrock #744

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sk-portkey
Copy link
Collaborator

Title:

  • Support Assumed Web Identity and IMDS integration with Bedrock

Description: (optional)

  • Detailed change 1
  • Detailed change 2

Motivation: (optional)

  • Why this change is necessary or beneficial

Related Issues: (optional)

}
let token;
// for node
if (typeof process !== 'undefined' && process.versions?.node) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can directly use the hono getRuntimeKey() function to get the this value.

creds?.secretAccessKey || env(c).AWS_ASSUME_ROLE_SECRET_ACCESS_KEY || '';
let sessionToken = creds?.sessionToken;
// if not passed get from IRSA>WebAssumed>IMDS
if (!accessKeyId && !secretAccessKey) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put a getRuntimeKey() === "node" check here? This will anyways not be useful for workerd runtime

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.

3 participants