This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert for Cloud Run deployments that bypass Binary Authorization (#1533)
- Loading branch information
Showing
3 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# CloudRunBreakglass | ||
|
||
This alert fires when a Cloud Run service is deployed that bypassed Binary | ||
Authorization using breakglass. | ||
|
||
## Triage Steps | ||
|
||
Check with your team. There may have been a legitimate reason for a breakglass | ||
deployment. However, you should try to get on a non-breakglass deployment as | ||
quickly as possible. | ||
|
||
To identify the incident(s), go to Logs Explorer and use the following filter: | ||
|
||
```text | ||
protoPayload.@type="type.googleapis.com/google.cloud.audit.AuditLog" | ||
protoPayload.serviceName="run.googleapis.com" | ||
protoPayload.status.message:"breakglass" | ||
resource.labels.revision_name!="" | ||
``` | ||
|
||
The principal that did the breakglass deploy can be found at: | ||
|
||
```text | ||
protoPayload.response.metadata.annotations."serving.knative.dev/creator" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters