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 API versioning and localfile parallel read with grep #526

Merged
merged 15 commits into from
Feb 12, 2025

Conversation

sfc-gh-mwalas
Copy link
Collaborator

@sfc-gh-mwalas sfc-gh-mwalas commented Jan 31, 2025

Allows to read multiple files at once through a wildcard syntax on a directory (limited only to a single trailing * for the time being).

This change also introduces a simple API versioning. Reason being:

  • added fields such as grep etc do not meaningfully extend the application of the method
  • however the /* syntax allows to skip potential deny rules on reading particular file in subdirectory in rego in a situation where someone allowed reading files in general for a suffix of /tmp/example but later added a deny rule for exact path of /tmp/example/secret

API versioning proposal is covered in README.md.

@sfc-gh-mwalas sfc-gh-mwalas changed the title Initial implementation of localfile parallel read with grep Localfile parallel read with grep Feb 3, 2025
@sfc-gh-mwalas sfc-gh-mwalas marked this pull request as ready for review February 3, 2025 11:43
@sfc-gh-mwalas sfc-gh-mwalas changed the title Localfile parallel read with grep Add API versioning and localfile parallel read with grep Feb 7, 2025
README.md Outdated Show resolved Hide resolved
@sfc-gh-mwalas sfc-gh-mwalas enabled auto-merge (squash) February 11, 2025 12:10
@sfc-gh-mwalas sfc-gh-mwalas merged commit daae3ac into main Feb 12, 2025
7 checks passed
@sfc-gh-mwalas sfc-gh-mwalas deleted the mwalas-localfile-read-grep branch February 12, 2025 11: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.

3 participants