Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Policy Compiler #924

Merged
merged 10 commits into from
May 20, 2024
Merged

Conversation

TristonianJones
Copy link
Collaborator

@TristonianJones TristonianJones commented Apr 17, 2024

Introduce a module for compiling a graph of expressions into a single expression.

The input format is YAML and allows for customization of the tag handling such that
CEL-based policy formats like those found in Kubernetes Admission Control could be
supported using a common foundation.

Currently, the compilation toolchain only supports first-match semantics for expression
evaluation; however, alternative evaluation semantics such as or, and, last-match,
and aggregate evaluation semantics may be supported in the future.

@TristonianJones TristonianJones changed the title [WIP] Simple Policy Compiler Simple Policy Compiler May 9, 2024
policy/parser.go Show resolved Hide resolved
policy/compiler.go Outdated Show resolved Hide resolved
policy/compiler.go Outdated Show resolved Hide resolved
policy/parser.go Outdated Show resolved Hide resolved
policy/compiler.go Show resolved Hide resolved
policy/compiler.go Outdated Show resolved Hide resolved
policy/parser.go Show resolved Hide resolved
policy/parser.go Outdated Show resolved Hide resolved
policy/parser.go Show resolved Hide resolved
@TristonianJones TristonianJones merged commit 3841093 into google:master May 20, 2024
2 checks passed
@TristonianJones TristonianJones deleted the cel-policy branch May 20, 2024 23:16
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