mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add template version ID to re-emitted boundary logs (#21636)
Adds template_version_id to re-emitted boundary audit logs to allow filtering and analysis by specific template versions iin addition to the existing template_id field. Since boundary policies are defined in the template, the template version is critical to figuring out which policy was responsible for boundaries decision in a workspace. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,17 +127,18 @@ commands run with `boundary-run`.
|
||||
|
||||
Each boundary audit log entry includes:
|
||||
|
||||
| Field | Description |
|
||||
|------------------|-----------------------------------------------------------------------------------------|
|
||||
| `decision` | Whether the request was allowed (`allow`) or blocked (`deny`) |
|
||||
| `workspace_id` | The UUID of the workspace where the request originated |
|
||||
| `workspace_name` | The name of the workspace where the request originated |
|
||||
| `owner` | The owner of the workspace where the request originated |
|
||||
| `template_id` | The UUID of the template that the workspace was created from |
|
||||
| `http_method` | The HTTP method used (GET, POST, PUT, DELETE, etc.) |
|
||||
| `http_url` | The fully qualified URL that was requested |
|
||||
| `event_time` | Timestamp when boundary processed the request (RFC3339 format) |
|
||||
| `matched_rule` | The allowlist rule that permitted the request (only present when `decision` is `allow`) |
|
||||
| Field | Description |
|
||||
|-----------------------|-----------------------------------------------------------------------------------------|
|
||||
| `decision` | Whether the request was allowed (`allow`) or blocked (`deny`) |
|
||||
| `workspace_id` | The UUID of the workspace where the request originated |
|
||||
| `workspace_name` | The name of the workspace where the request originated |
|
||||
| `owner` | The owner of the workspace where the request originated |
|
||||
| `template_id` | The UUID of the template that the workspace was created from |
|
||||
| `template_version_id` | The UUID of the template version used by the current workspace build |
|
||||
| `http_method` | The HTTP method used (GET, POST, PUT, DELETE, etc.) |
|
||||
| `http_url` | The fully qualified URL that was requested |
|
||||
| `event_time` | Timestamp when boundary processed the request (RFC3339 format) |
|
||||
| `matched_rule` | The allowlist rule that permitted the request (only present when `decision` is `allow`) |
|
||||
|
||||
### Viewing Audit Logs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user