-
Notifications
You must be signed in to change notification settings - Fork 24
feat(api,sdk,ui): Add user-configurable secrets for deployments and ensembling jobs #403
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
Merged
deadlycoconuts
merged 29 commits into
caraml-dev:main
from
deadlycoconuts:add_secret_management_for_deployments
Feb 21, 2025
Merged
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a3e966f
Update openapi specs
84881e5
Update autogenerated golang client files
ffd4337
Update autogenerated python client files
adedc79
Add user-configured secrets to batch jobs
6830375
Add missing python client file
5b18c20
Fix lint comments
a9bf075
Add user-configured secrets to enricher and ensembler deployments
8d18641
Black turing sdk files
0d0780f
Add db migration scripts
0376643
Fix lint comments
87cb961
Add sdk changes to allow user-secrets to be mounted
cccd99e
Update e2e tests
1c190fd
Fix enricher secrets parsing
f51dd47
Fix broken validator test
2afcfc4
Fix broken validator tests and add required tag to secrets field in p…
73aaed5
Fix e2e tests
f3a973f
Fix secret map key bug
76194ba
Update jsonb column to have empty list as default value
d50bd56
Update db migration scripts
6bff918
Add missing step in api server to add enricher and ensembler secrets
f7a8c65
Update api specs and autogenerated client files
4b9da38
Replace isnumeric check with check that passes floats
c8406f5
Update react-lazylog with published version
99af479
Add panels to display secrets
fe8fe8d
Add steps to configure secrets in forms
5e1ed57
Add new unit test for autoscaling policy
f488f51
Add fix to unit tests to prevent race conditions
e728486
Update openapi specs and autogenerated files
c13bb6c
Remove redundant variable assignment
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 @@ | ||
| -- Remove secrets column for enrichers | ||
| ALTER TABLE enrichers DROP COLUMN secrets; | ||
|
|
||
| -- Remove secrets field in docker_config and pyfunc_config columns for ensemblers | ||
| UPDATE ensembler_configs set docker_config = docker_config - 'secrets' WHERE docker_config IS NOT NULL; | ||
|
|
||
| UPDATE ensembler_configs set pyfunc_config = pyfunc_config - 'secrets' WHERE pyfunc_config IS NOT NULL; |
This file contains hidden or 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,7 @@ | ||
| -- Create secrets column for enrichers | ||
| ALTER TABLE enrichers ADD COLUMN secrets jsonb NOT NULL DEFAULT '[]'::jsonb; | ||
|
|
||
| -- Create secrets field in docker_config and pyfunc_config columns for ensemblers | ||
| UPDATE ensembler_configs SET docker_config = jsonb_set(docker_config, '{secrets}', '[]'::jsonb) WHERE docker_config IS NOT NULL AND docker_config->'secrets' IS NULL; | ||
|
|
||
| UPDATE ensembler_configs SET pyfunc_config = jsonb_set(pyfunc_config, '{secrets}', '[]'::jsonb) WHERE pyfunc_config IS NOT NULL AND pyfunc_config->'secrets' IS NULL; |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -83,7 +83,8 @@ | |
| "name": "TEST_ENV", | ||
| "value": "ensembler" | ||
| } | ||
| ] | ||
| ], | ||
| "secrets": [] | ||
| } | ||
| } | ||
| } | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.