-
-
Notifications
You must be signed in to change notification settings - Fork 777
Secret masking in output_schema feature is added #5250
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
Merged
Changes from 6 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
7589139
Secret masking in output_schema feature is added
shivani-orch 4495271
Update test_util_output_schema.py
mahesh-orch 475d631
Update output_schema.py
mahesh-orch 335d993
Update test_util_output_schema.py
mahesh-orch bc7eaeb
Merge branch 'StackStorm:master' into secret_masking
mahesh-orch 78fad6b
Update execution.py
mahesh-orch b4ae25a
Merge branch 'StackStorm:master' into secret_masking
mahesh-orch 2720762
Moving logic to /st2common/models/db/execution.py
mahesh-orch 4511f05
added code for masking output schema secret params
mahesh-orch 1e38f98
adding a unit test and updating existing tests
mahesh-orch 8f8822a
Update st2common/st2common/models/api/execution.py
mahesh-orch a97f531
Update st2common/st2common/models/api/execution.py
mahesh-orch f65c27d
Adding blank lines in st2common/st2common/models/api/execution.py
mahesh-orch b220ae4
Updating /st2common/tests/unit/test_db_execution.py
mahesh-orch 86ae3cf
Add unit tests to cover masking of output for various action runners
m4dcoder 38b46a5
Minor clean up to codes added for troubleshooting
m4dcoder 71ff4bf
shifted output schema secret masking block
mahesh-orch adc1afd
Moved output masking block to output_schema.py
mahesh-orch 4ef3765
added unit tests for mask secret output
mahesh-orch 67461d9
adding new file
mahesh-orch 2006d26
adding new file
mahesh-orch d9a1f84
updating my_action.yaml
mahesh-orch 83d3214
updating test_output_schema.py
mahesh-orch 217b5b2
updating dummy_pack_1/my_action.py
mahesh-orch fd4399c
updating output_schema.py for using output_key
mahesh-orch 3a97ad1
Refactor mask_secret_output function to be more robust
m4dcoder 241cdca
Minor fix to test on number of actions
m4dcoder 0f3b105
Merge remote-tracking branch 'origin' into secret_masking
m4dcoder 66afa34
adding a workflow unit test for ouptut schema
mahesh-orch 5f99494
adding python action for workflow test
mahesh-orch 399a8ab
adding workflow for unit test for output schema
mahesh-orch ab92762
adding action with output schema
mahesh-orch 46f11c6
adding python action with output schema
mahesh-orch add83a0
updating test_data_flow.py
mahesh-orch 7739f23
updating test_data_flow.py
mahesh-orch 024b038
adding unit tests for GET API for output schema
mahesh-orch 595df23
Refactor the test case for testing secret output in task of workflow
m4dcoder 674f3c3
Minor fix to output schema unit test due to changes in a workflow
m4dcoder 914a566
Add entry to CHANGELOG for masking of secrets in execution output
m4dcoder 386b252
Removed unused test fixtures
m4dcoder b8402b4
Fix masking of secret output for workflows
m4dcoder dc65601
Minor fix to show_secrets param in get_one of output controller
m4dcoder 575eae9
Add PR # to the changelog entry
m4dcoder 5c2fe79
Merge remote-tracking branch 'origin' into secret_masking
m4dcoder 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
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.
@mahesh-orch If you follow _from_model, you'll see that there is already a line that mask secrets at https://github.com/StackStorm/st2/blob/master/st2common/st2common/models/api/base.py#L118. This calls a model specific function to mask secrets. The specific function for ActionExecutionDB is at https://github.com/StackStorm/st2/blob/master/st2common/st2common/models/db/execution.py#L107. Can you move the logic for output schema into this function?