Skip to content

Conversation

@scotwells
Copy link
Contributor

This PR updates the AuditLogQuery and AuditLogFacetsQuery endpoints to support the NOT operator (!) so users can execute filters like !user.username.startsWith("system:"). It also grants users access to query for audit log facets.

Follow up to #32

Add support for the `!` (logical NOT) operator in CEL filter expressions
for audit log queries and audit log facet queries. This allows users to
write exclusion filters like `!(verb in ['get', 'list', 'watch'])` or
`!user.username.startsWith('system:')`.

- Add `!_` case to SQL converter for NOT expressions
- Add test cases for NOT operator usage
- Update API documentation with new operator and examples
@scotwells scotwells requested a review from kevwilliams February 5, 2026 22:18
@scotwells scotwells merged commit 6e8a8d3 into main Feb 5, 2026
3 checks passed
@scotwells scotwells deleted the feat/auditlog-facets-and-mcp branch February 5, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants