Add a Secret Masking to Rule Enfocement API View Output#6170
Add a Secret Masking to Rule Enfocement API View Output#6170philipphomberger wants to merge 6 commits intoStackStorm:masterfrom
Conversation
Add a Secret Masking to the API Output.
|
The idea seems good but the implementation needs a better architectural solution. Code already exists to handle masking secrets, would it be possible to call that? I've not tested this, but perhaps it can be called like below so secrets are masked? |
Thanks @nzlosh I will try it. :) |
|
@nzlosh I have tryed it: Output: So Iooks like I can not 1:1 use that function. The Secret Masking it self working but the output for the none Secret Parameters get lost. |
|
I tried your Idea as well: |
|
Philipp Homberger seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Hi Community,
From My View of perspective Secrets should not show in cleartext in the Rule Enforcement View in the UI and the API. So I add a loop that auto mask the secret to *****.
I'am not 100% happy with the way I do it for get one function because of problem I had with access the keys of the object So I convert the Object to a str and than with eval to a dict.
Maybe someone here have a better Idea.
I wait for your feedback.
Thank you all.