Add revoke and 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 revoke and delete GPG keys which are either suspected or actually compromised.

Relevant links

#218701 (closed)

Non-functional requirements

  • Documentation:
  • Performance:
  • Testing:

Implementation plan

backend

  1. Create a revoke service for GPG keys in app/services/gpg_keys/...
  2. Update revoke method in app/finders/keys_finder.rb to include GPG keys and use the new revoke service
  3. Add tests

frontend

  1. Add GPG keys revoke button to view
  2. Add GPG keys revoke modal to button
  3. Add tests
  4. Add QA tests
Assignee Loading
Time tracking Loading