summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/administration/audit_event_streaming.md22
1 files changed, 16 insertions, 6 deletions
diff --git a/doc/administration/audit_event_streaming.md b/doc/administration/audit_event_streaming.md
index 457820c75df..0f4b3b31e8a 100644
--- a/doc/administration/audit_event_streaming.md
+++ b/doc/administration/audit_event_streaming.md
@@ -175,6 +175,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
@@ -182,6 +184,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
@@ -212,7 +215,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"
}
```
@@ -242,7 +246,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"
}
```
@@ -274,7 +279,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"
}
```
@@ -304,7 +310,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"
}
```
@@ -333,7 +340,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"
}
```
@@ -352,6 +360,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
@@ -377,6 +386,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"
}
```