-
Notifications
You must be signed in to change notification settings - Fork 205
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
Includes sensitive flag in yaml/json output of porter explain. #2440
Conversation
Signed-off-by: MadhuMPandurangi <[email protected]>
Signed-off-by: MadhuMPandurangi <[email protected]>
Signed-off-by: MadhuMPandurangi <[email protected]>
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.
Let's change one of the parameters in the test bundle so that it's sensitive. Right now they are all false, so it's hard to tell that the change is working.
The test bundle is here:
"seed": { |
In order to make a parameter in a CNAB bundle sensitive (this is a cnab bundle here, you can tell because it's a json file, not porter.yaml), is to set "writeOnly": true
in the parameter's definition.
"seed": {
"type": "boolean"
"writeOnly": true
},
Hopefully we can just edit the existing parameter instead of adding another, but if it doesn't work well (maybe impacts other tests) then let's just add a new parameter that is sensitive.
@@ -74,3 +74,4 @@ and we will add you. **All** contributors belong here. 💯 | |||
* [Kevin Barbour](https://github.com/kevinbarbour) | |||
* [Epsxy](https://github.com/epsxy) | |||
* [Jens Arnfast](https://github.com/jarnfast) | |||
* [Madhu M Pandurangi](https://github.com/MadhuMPandurangi) |
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.
Thanks for adding. I'll look into the edits that need to be done in this.
In the future, if you can provide a copy/paste of the text, instead of an image, and include the full output, that would be helpful. It looks like you did not update the expected output files for the test that failed. The tests are still asserting that none of the parameters are sensitive. You can either update the expected output files by hand, or run |
Signed-off-by: MadhuMPandurangi <[email protected]>
hi @carolynvs, I added "writeonly": true in the parameter definition, and after updating the test cases, all the test cases are successfully passed. |
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.
Looks great! Again apologies for the delay with the review, I appreciate your time getting this implemented. 💖
Thank you @carolynvs . This is my first contribution to the opensource and happy to see merged 😊. |
I'm looking forward to collaborating with you in the future! |
What does this change
Includes sensitive flag in yaml/json output of porter explain for outputs and parameters.
What issue does it fix
Closes # 2228
Notes for the reviewer
Please verify the pull request.
Checklist
Reviewer Checklist