-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support secrets in tool requirements #19084
Draft
arash77
wants to merge
34
commits into
galaxyproject:dev
Choose a base branch
from
arash77:add-secrets-to-tools
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
9c536d8
init add secrets to tools
arash77 4815699
add secret requirement in tools schema
arash77 b08f45e
check the required field with user_preferences_extra
arash77 656f4ca
validate secret type and store for tool interface in user preferences
arash77 a937cea
Add secrets into tools
arash77 d5e2f0f
Add tests for secrets in tools
arash77 d9008c3
Avoid log vault_key
arash77 696f483
fix typo
arash77 34cb047
cast app for using vault into StructuredApp
arash77 c814e7e
Add secrets parameter to parse_requirements_and_containers method in …
arash77 65b6942
add secrets into cwl and yml
arash77 be01814
Fix tool parsing test to get secrets
arash77 bdf8667
Fix tool tests to include secrets
arash77 a6b4da5
Rename 'secrets' to 'credentials' in tool parsing
arash77 e07c413
Refactor test cases to remove unused TestSecretsInExtraUserPreference…
arash77 f13b77d
updating the credentials to the new format
arash77 ff3ee10
Refactor credential classes (Variable and Secret)
arash77 6289025
Add basic ToolCredentials component and related interfaces for managi…
davelopez 278a7ab
Refactor ToolCredentials component
davelopez 8b0bfe9
Add badges to indicate optional and required credentials in Credentia…
davelopez 21e7955
Add WIP user credentials store
davelopez a854e42
Refactor ToolCredentials component to enhance user messaging
davelopez 6bbfe80
Initialize credentials in ManageToolCredentials to use a copy
davelopez cb24b9a
Refactor credential validation logic
davelopez 6989d44
db migrate
arash77 ebd7176
user credential model
arash77 b178d02
Add API and schema for user credentials management
arash77 6a9cb7e
Remove unused Union import from credentials service
arash77 8e389b0
Merge pull request #2 from davelopez/ui-add-secrets-to-tools
arash77 9e93d9c
update OpenAPI schema for credentials endpoints
arash77 d928dc2
Add update credentials API and payload models
arash77 f769dd8
Refactor credentials API schema
arash77 a4817da
Enhance ToolEvaluator to read secrets from UserVaultWrapper and query…
arash77 8269324
Add new models for user credentials and tool credentials management
davelopez 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
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,15 @@ | ||
<tool id="secret_tool" name="secret_tool" version="test" profile="23.0"> | ||
<requirements> | ||
<secret type="vault" inject_as_env="secret_tool_api_key" user_preferences_key="secret_tool/api_key" label="secret API Key" required="true"/> | ||
</requirements> | ||
<command><![CDATA[ | ||
echo \$secret_tool_api_key > '$output' | ||
]]></command> | ||
<inputs> | ||
</inputs> | ||
<outputs> | ||
<data name="output" format="txt"/> | ||
</outputs> | ||
<tests> | ||
</tests> | ||
</tool> |
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.
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.
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.
Thank you for the suggestion, but they will all change.
the new discussed plan is in #19196
I am not sure if this should go into environment_variables or not.