Giter Site home page Giter Site logo

backstage-plugin-aws-auth's People

Contributors

dependabot[bot] avatar dtuite avatar iain-b avatar irma12 avatar lewtakm avatar martina-if avatar mcalus3 avatar padraigobrien avatar punkle avatar roadie-bot avatar snyk-bot avatar tomek-ifm avatar xantier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jamesrenaud

backstage-plugin-aws-auth's Issues

need Instructions for AWS credentials

Can you please help me out with the AWS credentials?

  1. Where I should update this? in which file ? or do I need to create new file and update this snippet
async function generateCredentials(backendUrl: string) {
  const reqBody = JSON.stringify({ RoleArn: 'arn:aws:iam::0123456789012:role/Example' });
  const resp = await (await fetch(`${backendUrl}/aws/credentials`, { body: reqBody })).json();
  return new AWS.Credentials({
    accessKeyId: resp.AccessKeyId,
    secretAccessKey: resp.SecretAccessKey,
    sessionToken: resp.SessionToken,
  });
}
AWS.config.credentials = await generateCredentials(backendUrl);
  1. where I can store my AWS credentials? what file or any new file I need to create?

Clear instructions would be very helpful, as I am getting errors with my own steps.

IAM Group Support

Feature Suggestion

In a environment with multiple VPC's it would be ideal to be able to authenticate using IAM Groups

Possible Implementation

Context

Support for Assuming Roles

It would be great to have this plugin support role switching when operating within an AWS organization. It's pretty rare that all your resources are contained within the same AWS account, and I'd like to be able to access other accounts without needing to change the AWS keys available in the keychain for each call.

Feature Suggestion

For something like the (backstage-plugin-aws-lambda)[https://github.com/RoadieHQ/backstage-plugin-aws-lambda] project, if we could provide a roleArn directive to the metadata annotations, and the backend AWS auth would use the default credentials to assume the role before attempting the API call, we'd be able to safely do cross-account AWS API calls.

For example

metadata:
  annotations:
    aws.com/role-arn: arn:aws:iam::123456789012:role/Backstage
    aws.com/lambda-function-name: HelloWorld
    aws.com/lambda-region: us-east-1

The plugin would use the existing credentials chain available to it, and use the assumeRole functionality within STS to get temporary credentials to use for the subsequent getFunctionByName call.

Extending generateCredentials

export async function generateTemporaryCredentials(
to support an optional role parameter would open this up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.