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

Add rego function to detect file types #2180

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Add rego function to detect file types #2180

merged 1 commit into from
Jan 23, 2024

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Jan 23, 2024

This adds a new rego function called file.http_type which, as the name
suggests, reads the HTTP type for a given file.

The intention is to be able to write policies that verify that files
must (or most not) be of a given type.

This adds a new rego function called `file.http_type` which, as the name
suggests, reads the HTTP type for a given file.

The intention is to be able to write policies that verify that files
must (or most not) be of a given type.
@JAORMX JAORMX requested a review from a team as a code owner January 23, 2024 11:16
@JAORMX JAORMX merged commit bc65bb5 into main Jan 23, 2024
18 checks passed
@JAORMX JAORMX deleted the rego-bin branch January 23, 2024 12:00
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