GithubHelp home page GithubHelp logo

Comments (6)

SandeshSarfare avatar SandeshSarfare commented on July 18, 2024

I am using javascript sdk in mobile app development.

from api-gateway-secure-pet-store.

sapessi avatar sapessi commented on July 18, 2024

We do not recommend using API keys for security. API keys are used primarily to meter API access. You should rely on some form of stronger authentication such as Sigv4 or an Oauth flow with custom authorizers. The pet store example uses Sigv4.

from api-gateway-secure-pet-store.

sirfak avatar sirfak commented on July 18, 2024

Hi
I have api gateway /auth endpoint which talks to my lamda function written in java which generates temporary credentials .

My question is that during Developement i use profile credential provider, so if depolyed what credential provider lamda function will use?how do i set env variable / property file or .aws file to provide credentials?
Thanks in advance
sirfak

from api-gateway-secure-pet-store.

sapessi avatar sapessi commented on July 18, 2024

The "profile" for the Lambda function is based on the execution role you've configured for the function itself. From the Lambda console you can see the name of the execution role, use the IAM console to modify the access policy for the role and configure which services the Lambda function is allowed to communicate with

from api-gateway-secure-pet-store.

sirfak avatar sirfak commented on July 18, 2024

If my java lamda function has code for eg
AWSSecurityTokenServiceClient sts_client = new AWSSecurityTokenServiceClient();
Which is suppose to read credendtials from profile/environment/property as required in the credential provider chain during local developement(sirfak profile user for eg)

If i have understood your point, the api key and access key during lamda execution will be read from the execution role defined in lambda console and not for sirak user profile (the dev user) ?

from api-gateway-secure-pet-store.

sapessi avatar sapessi commented on July 18, 2024

correct

from api-gateway-secure-pet-store.

Related Issues (20)

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.