Skip to content

Add ability to track unique uses of API endpoints

Max Woolf requested to merge 233786-ppi-unique-audit-events-api into master

What does this MR do?

  • Adds a API::UniqueCalls Grape middleware to fascilitate the ability to track unique uses of an API or set of API calls. This builds from the work done by @m_frankiewicz in !33146 (merged).
  • Uses this new middleware to track unique uses of audit event API calls.
  • Adds specs to assert new functionality.

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

Mentions #233786 (closed)

Edited by Max Woolf

Merge request reports