From 6c3124c854cbeef391a38b5ae8330174d78348bf Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 3 Jun 2022 22:23:33 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-0-stable-ee --- doc/administration/audit_event_streaming.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'doc/administration/audit_event_streaming.md') diff --git a/doc/administration/audit_event_streaming.md b/doc/administration/audit_event_streaming.md index 07979e21038..4678e23dfc9 100644 --- a/doc/administration/audit_event_streaming.md +++ b/doc/administration/audit_event_streaming.md @@ -174,6 +174,8 @@ To configure streaming audit events for Git operations, see [Add a new event str ### Headers +> `X-Gitlab-Audit-Event-Type` [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86881) in GitLab 15.0. + Headers are formatted as follows: ```plaintext @@ -181,6 +183,7 @@ POST /logs HTTP/1.1 Host: Content-Type: application/x-www-form-urlencoded X-Gitlab-Event-Streaming-Token: +X-Gitlab-Audit-Event-Type: repository_git_operation ``` ### Example payloads for SSH events @@ -211,7 +214,8 @@ Fetch: "target_details": "example-project", "created_at": "2022-02-23T06:21:05.283Z", "target_type": "Project", - "target_id": 29 + "target_id": 29, + "event_type": "repository_git_operation" } ``` @@ -241,7 +245,8 @@ Push: "target_details": "example-project", "created_at": "2022-02-23T06:23:08.746Z", "target_type": "Project", - "target_id": 29 + "target_id": 29, + "event_type": "repository_git_operation" } ``` @@ -273,7 +278,8 @@ Fetch: "target_details": "example-project", "created_at": "2022-02-23T06:25:43.938Z", "target_type": "Project", - "target_id": 29 + "target_id": 29, + "event_type": "repository_git_operation" } ``` @@ -303,7 +309,8 @@ Push: "target_details": "example-project", "created_at": "2022-02-23T06:26:29.294Z", "target_type": "Project", - "target_id": 29 + "target_id": 29, + "event_type": "repository_git_operation" } ``` @@ -332,7 +339,8 @@ Fetch: "target_details": "example-group/example-project", "created_at": "2022-02-23T06:27:17.873Z", "target_type": "Project", - "target_id": 29 + "target_id": 29, + "event_type": "repository_git_operation" } ``` @@ -351,6 +359,7 @@ POST /logs HTTP/1.1 Host: Content-Type: application/x-www-form-urlencoded X-Gitlab-Event-Streaming-Token: +X-Gitlab-Audit-Event-Type: audit_operation ``` ### Example payload @@ -376,6 +385,7 @@ X-Gitlab-Event-Streaming-Token: "target_details": "merge request title", "created_at": "2022-03-09T06:53:11.181Z", "target_type": "MergeRequest", - "target_id": 20 + "target_id": 20, + "event_type": "audit_operation" } ``` -- cgit v1.2.1