Audit events for project access tokens
Compare changes
Files
3@@ -7,6 +7,7 @@ def initialize(current_user, resource, params = {})
@@ -26,6 +27,7 @@ def execute
@@ -105,6 +107,16 @@ def create_membership(resource, user)
Related issue: #230007 (closed)
Add app and audit events for project access token creation and revocation.
App logs can be found in application.log
and look like this:
Audit events are available in EE and can be found in Project > Security & Compliance > Audit Events:
Edit: Successful token creation audit event message now includes the access token's scopes:
In the screenshot,
token-scopes
has api
, read_api
, read_repository
, and write_repository
checked
no-scope
has none of the boxes checked
api-token
has api
checked
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:
@gitlab-com/gl-security/appsec