Add Deploy Keys to the admin panel credential inventory
Problem to solve
Compliance-minded organizations require insight into the access individuals have to their systems. We're launching an inventory of PAT and SSH credentials in %12.6, which begins to provide this insight to customers. Missing still is Deploy Keys so that customers can have a more holistic view of access to their GitLab environment.
Intended users
Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/ -->
Further details
This is an iteration to add Deploy Keys to an existing credential inventory accessible by Administrators.
Proposal
Add Deploy Keys to the credential inventory.
| Title | Fingerprint | Read-only access | Read-write access | Created | (Actions) |
|---|---|---|---|---|---|
| Admin deploy key | d2:e8:be:cf:fd:a7:b4:fd:a7:b4 |
2 projects | 1 project | 20201-01-01 | ![]() |
Empty state
Permissions and Security
Only Administrators can view this information within the Admin Panel
Implementation plan
Integration plan
backend - See !49835 (merged) for an example
- Create new feature flag
:credentials_inventory_deploy_keysand create feature flag removal issue - Create DeployKeysFinder similar to
ee/app/finders/GpgKeysFinder - Check that deploy keys list is enabled like
Admin::CredentialsController#check_gpg_keys_list_enabled! - Add deploys keys to
CredentialsInventoryHelper - Add deploy keys to
CredentialsInventoryActions#filter_credentials - Add
deploy_keystoCredentialsInventoryHelper::VALID_FILTERSlist - Create the destroy service for deploy keys like
app/services/gpg_keys/destroy_serviceto follow similar conventions to the revoke service - Update destroy method in
ee/app/controllers/concerns/credentials_inventory_actions.rbto include deploy keys and use the destroy service - Add tests
- Remove On suffixes from column headers in the credentials inventory
- Add deploy keys tab to
ee/app/views/shared/credentials_inventory/index.html.haml - Add
New Deploy Keybutton to tabs list when viewing deploy keys - Create deploy keys HAML view in
ee/app/views/shared/credentials_inventory/deploy_keys/... - Add deploy keys delete modals
- Add tests
- Add QA tests
Edited by Robert Hunt


