Skip to content

Commit 5182e6e

Browse files
committed
Only filter flux controllers from audit log entries
1 parent d5443ce commit 5182e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/auditlog/tail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func tailLogs(ctx context.Context, client *logging.Client, projectID, clusterNam
6767
fmt.Sprintf(`resource.labels.cluster_name="%s"`, clusterName),
6868
`protoPayload."@type"="type.googleapis.com/google.cloud.audit.AuditLog"`,
6969
`protoPayload.methodName=~"io\.fluxcd\.toolkit\..*\.(patch|create)"`,
70-
`-protoPayload.authenticationInfo.principalEmail=~"system:.*"`,
70+
`-protoPayload.authenticationInfo.principalEmail=~"^system:serviceaccount:flux-system:.*-controller$"`,
7171
},
7272
" AND ",
7373
),

0 commit comments

Comments
 (0)