Skip to content

Record and show last used date of SSH Keys

What does this MR do?

  1. Adds a last_used_at attribute to the Key table/model
  2. Update a key's last_used_at whenever it gets used with a background job
  3. Display how long ago an ssh key was last used

Why was this MR needed?

When a user has many ssh keys it is currently difficult to tell which one is still in use. This will feature should hopefully remedy this by displaying when each key was last used

Screenshots (if relevant)

Before

Index Page: ssh_before

Show Page: Screen_Shot_2016-12-22_at_11.07.05_PM

After

Index Page: ssh_after

Show Page: Screen_Shot_2016-12-22_at_10.57.24_PM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/13810

Merge request reports