Record and show last used date of SSH Keys
What does this MR do?
- Adds a last_used_at attribute to the Key table/model
- Update a key's last_used_at whenever it gets used with a background job
- 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
After
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together