Skip to content

Add a new compiler tool which can be used to compile CEL expressions and policies using serialized environment #1143

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

Merged
merged 40 commits into from
Mar 25, 2025

Conversation

aakash070
Copy link
Collaborator

@aakash070 aakash070 commented Mar 12, 2025

This change adds a new compiler tool which can be used to generate an ast for CEL expressions and policies provided in the form of:

  1. CEL policy file
  2. CEL expression string file
  3. CEL checked expression
  4. Raw CEL string

The compiler has the ability to extend a serialized environment file to create the environment which is used for compilation. The file can be in either Textproto or YAML format.

@TristonianJones
Copy link
Collaborator

/gcbrun

@TristonianJones
Copy link
Collaborator

/gcbrun

@TristonianJones
Copy link
Collaborator

@aakash070 looks like the build deps for policy need to be opened up for compiler to depend on them.

@aakash070
Copy link
Collaborator Author

/gcbrun

@TristonianJones TristonianJones merged commit dc6468b into google:master Mar 25, 2025
2 checks passed
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