diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-04 01:23:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-04 01:23:33 +0300 |
commit | 6c3124c854cbeef391a38b5ae8330174d78348bf (patch) | |
tree | af77629bc34ccc517ed24d9db35895be5d02d23d /doc/administration/audit_event_streaming.md | |
parent | 9a8ae3b4e90e56f71bb770463b943512efdcd1d1 (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-ee
Diffstat (limited to 'doc/administration/audit_event_streaming.md')
-rw-r--r-- | doc/administration/audit_event_streaming.md | 22 |
1 files changed, 16 insertions, 6 deletions
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: <DESTINATION_HOST> Content-Type: application/x-www-form-urlencoded X-Gitlab-Event-Streaming-Token: <DESTINATION_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: <DESTINATION_HOST> Content-Type: application/x-www-form-urlencoded X-Gitlab-Event-Streaming-Token: <DESTINATION_TOKEN> +X-Gitlab-Audit-Event-Type: audit_operation ``` ### Example payload @@ -376,6 +385,7 @@ X-Gitlab-Event-Streaming-Token: <DESTINATION_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" } ``` |