Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Is it possible to provide SP_API_AWS_SECRET_ID variable value from the credentials.yml file?
Getting the credentials from the AWS Secrets Manager works fine when the SP_API_AWS_SECRET_ID variable is an environment variable in Windows. My issue is that changing environmental variables requires a reboot, and their security is not my first choice.

What works for me:
Secrets Manager: SP_API_AWS_SECRET_ID as environment variable

Providing credentials in the code, from the credentials.yml file, or the environment variables

    refresh_token='your_refresh_token',
    lwa_app_id='your_lwa_app_id',
    lwa_client_secret='your_lwa_client_secret'

What does not work for me:
Secrets Manager: SP_API_AWS_SECRET_ID variable value from the credentials.yml file

You must be logged in to vote

Replies: 2 comments

Comment options

Hi,

you could potentially set the env variable from code, before importing the library.

os.environ[...]='your secret'

Providing the value via the config file could work too, do you want to submit a PR?

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.