-
Notifications
You must be signed in to change notification settings - Fork 310
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
Secrets Manager and secrets specification for tasks #406
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
15f36f7
Secrets Manager and secrets specification for tasks
kumare3 ecf3a4e
Updated setup.py
kumare3 eef6a5f
Merge branch 'master' into secrets
kumare3 bc924b2
requirements updated
kumare3 989e3e1
Unit tests and models for security context
kumare3 664dbde
Updated test
kumare3 9fe1af5
Tests and exposed methods
kumare3 cbdc0c0
SecretManager available in testing
kumare3 7859172
requirements updated
kumare3 073b5bc
Merge branch 'master' into secrets
kumare3 360fb40
ran make requirements
wild-endeavor 2a28926
Fixed test
kumare3 63a81c1
Fixed test and check that secrets are not bare strings
kumare3 fecbbcc
Merge branch 'master' into secrets
kumare3 f583cd8
Updated to use new FlyteIDL
kumare3 26f42ae
Updated group secrets
kumare3 8430e60
Updated secrets with group concat logic
kumare3 7215a69
Merge branch 'master' into secrets
kumare3 739c874
Merge branch 'master' into secrets
kumare3 61e3ad8
Merge branch 'master' into secrets
kumare3 8e7b5c9
wip
kumare3 4f6b7dc
Updated to flyteidl 0.18.24. Secrets with version
kumare3 a629fcd
Updated secrets, to always require group
kumare3 b434f67
addressed comments
kumare3 38d9c9c
updated to address comments
kumare3 59d5c28
updated linter fix
kumare3 5455c87
Updated to address more comments
kumare3 4b1c266
remove faulty test
kumare3 93afa0e
update os.sep
kumare3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import os | ||
|
||
from flytekit.configuration import common as _common_config | ||
|
||
# Secrets management | ||
SECRETS_ENV_PREFIX = _common_config.FlyteStringConfigurationEntry("secrets", "env_prefix", default="_FSEC_") | ||
""" | ||
This is the prefix that will be used to lookup for injected secrets at runtime. This can be overriden to using | ||
FLYTE_SECRETS_ENV_PREFIX variable | ||
""" | ||
|
||
SECRETS_DEFAULT_DIR = _common_config.FlyteStringConfigurationEntry( | ||
"secrets", "default_dir", default=os.path.join(os.sep, "etc", "secrets") | ||
) | ||
""" | ||
This is the default directory that will be used to find secrets as individual files under. This can be overriden using | ||
FLYTE_SECRETS_DEFAULT_DIR. | ||
""" | ||
|
||
SECRETS_FILE_PREFIX = _common_config.FlyteStringConfigurationEntry("secrets", "file_prefix", default="") | ||
""" | ||
This is the prefix for the file in the default dir. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing
task_type_version
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not removing, i am keeping it so that, if something is declared in the base, it does not need to repeated at every class layer - **kwargs should take care of it?