mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add workspace agent connect and app open audit types (#16493)
This commit adds new audit resource types for workspace agents and workspace apps, as well as connect/disconnect and open/close actions. The idea is that we will log new audit events for connecting to the agent via SSH/editor. Likewise, we will log openings of `coder_app`s. This change also introduces support for filtering by `request_id`. Updates #15139
This commit is contained in:
Generated
+8
@@ -554,6 +554,10 @@
|
||||
| `logout` |
|
||||
| `register` |
|
||||
| `request_password_reset` |
|
||||
| `connect` |
|
||||
| `disconnect` |
|
||||
| `open` |
|
||||
| `close` |
|
||||
|
||||
## codersdk.AuditDiff
|
||||
|
||||
@@ -1314,6 +1318,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
],
|
||||
"build_reason": "autostart",
|
||||
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
|
||||
"request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
|
||||
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
|
||||
"resource_type": "template",
|
||||
"time": "2019-08-24T14:15:22Z"
|
||||
@@ -1328,6 +1333,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
| `additional_fields` | array of integer | false | | |
|
||||
| `build_reason` | [codersdk.BuildReason](#codersdkbuildreason) | false | | |
|
||||
| `organization_id` | string | false | | |
|
||||
| `request_id` | string | false | | |
|
||||
| `resource_id` | string | false | | |
|
||||
| `resource_type` | [codersdk.ResourceType](#codersdkresourcetype) | false | | |
|
||||
| `time` | string | false | | |
|
||||
@@ -5358,6 +5364,8 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
| `idp_sync_settings_organization` |
|
||||
| `idp_sync_settings_group` |
|
||||
| `idp_sync_settings_role` |
|
||||
| `workspace_agent` |
|
||||
| `workspace_app` |
|
||||
|
||||
## codersdk.Response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user