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

Fix santactl rule --check #1262

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Fix santactl rule --check #1262

merged 2 commits into from
Jan 3, 2024

Conversation

mlw
Copy link
Contributor

@mlw mlw commented Jan 3, 2024

The command santactl rule --check is merely meant to print primary rule information (either static rule if it exists or what's in the rule database). It is not meant to have any policy applied (either as defined by configuration or hard coded Santa logic that is always enforced).

This PR fixes the rule check output by ensuring policy isn't applied, instead the rule is directly fetched and stringified.

(If a user wants to see how policy would be applied, they must use the santactl fileinfo command which requires a binary path to evaluate.)

Fixes #1261

@mlw mlw added the santactl label Jan 3, 2024
@mlw mlw added this to the 2024.1 milestone Jan 3, 2024
@mlw mlw requested a review from a team as a code owner January 3, 2024 03:28
@mlw mlw merged commit ce2777a into google:main Jan 3, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

santactl rule --check is broken
2 participants