Disabled edit button if databag item is encrypted. #5754
Merged
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.
Signed-off-by: Himanshi Chhabra hchhabra@progress.com
π© Description: What code changed, and why?
Need to disable the edit button if we have data bag item as encrypted
βοΈ Related Resources
#5045
π Definition of Done
Disabled edit button if we have data bag item as encrypted
π How to Build and Test the Change
To add data https://github.com/chef/automate/blob/master/dev-docs/adding-data/adding_test_data.md#adding-data-to-infra-views
To add encrypted databag :
inside hab studio run local dev server:
inside chef-workstation:
go to chef-startef/ chef-repo folder then run these commands:
- openssl rand -base64 512 | tr -d '\r\n' > ~/encrypted_data_bag_secret
- knife data bag create admins
- knife data bag create admins encrypted-test --secret-file ~/encrypted_data_bag_secret
- in nano file add "password": "roots" -> then CTRL+o , CTRL +x
In UI:
admins
-> click encrypted-test -> edit button is disable.β Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
π· Screenshots, if applicable
data-bag-encrypted.mp4