-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Default to Json editor if KV secret is nested #24290
Conversation
Build Results: |
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.
Elegant! Nice work 🚀
* initial fix * changelog * fix * fix test and add test coverage * remove useless escape characters * pr comments add more test coverage
I don't really understand the point of this PR... This is a regression for me. A step backwards in terms of security --> all secrets are now visible, whereas before we could select only the secret we wanted. And now we don't even have the choice of seeing it as we did before. There should be a global option to display JSON by default or not. And not impose the JSON view, which for me is a big step backwards. |
For a secret that is an object/nested ex:
{ "foo": { "bar": "baz" } }
, when you navigate to the details view it should default to a readonly JSON editor and disabled JSON toggle.Making a different ticket for a nice-to-have as it's "new" and should not be backported: show only the keys unless “show values” is toggled on (new toggle)