Skip to content

Track agent token last_used

Emily Ring requested to merge 322128-update-token-used-field into master

What does this MR do?

We want to be able to display to a user the last time a cluster agent token was used.

Related issue: #322128 (closed)

This MR is part of the issue, which will:

  • Add new track_usage method to the token
  • Update kas apis to call track_usage during each interaction
  • Add last_used_at to GraphQl so field can be viewed
  • Add associated tests and docs

Screenshots

lastUsed

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #322128 (closed)

Edited by Mayra Cabrera

Merge request reports