Add delete button to GPG keys view in the Admin Credentials Inventory
Why are we doing this work
In 12.6
we introduced the Credentials Inventory to help compliance-minded organizations manage their user's access credentials. Currently, this inventory contains information on PATs and SSH keys. The inventory does not include information about GPG keys that are in use, which can be an additional element of managing credentials in a complex context for customers.
We need to give Admin's the ability to delete GPG keys but not revoke them for keys which need to be cleared out but are not compromised.
Relevant links
Non-functional requirements
-
Documentation: -
Performance: -
Testing:
Implementation plan
- Update the destroy service for GPG keys in
app/services/gpg_keys/destroy_service
to follow similar conventions to the revoke service - Update the existing use of the destroy service for GPG keys in
lib/api/users.rb:408
andlib/api/users.rb:870
- Update destroy method in
app/finders/keys_finder.rb
to include GPG keys and use the destroy service - Add tests
- Add GPG keys delete button to view
- Add GPG keys deletion modal to button
- Add tests
- Add QA tests