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

feature: Introduce secrets function #2122

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

saikonen
Copy link
Collaborator

introduces a get_secrets function that exposes the same capabilities as the @secrets decorator, but returns them as a dictionary instead of setting environment variables.

The use case is to make accessing secrets possible in user-code as well.

example:

@step
def start(self):
    secrets_dict = get_secrets(sources=["secret_source"], role="IAM_role_for_accessing")
    
    for secret_spec, contents_dict in secrets_dict.items():
         pass # do something with the fetched secrets

@nflx-mf-bot
Copy link
Collaborator

Testing[888] @ 252012d

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.

2 participants