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

Reduce verbosity option in policy-tester #1219

Closed
brajbou opened this issue Jan 26, 2024 · 1 comment
Closed

Reduce verbosity option in policy-tester #1219

brajbou opened this issue Jan 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@brajbou
Copy link

brajbou commented Jan 26, 2024

Currently, when running policy-tester, the logging is very verbose and hard to read. It would be great to have an option to reduce logging to just a pass/fail output or not report the blob of an attestation (which is super long).

The reason for the this ask is we would like to use the policy-tester in a cronjob and/or gitlab pipeline to report policy failures and currently the job log is so long it can only be opened in "raw mode".

Example:
./policy-tester --quiet or -q

An example output:

  • remove DEBUG blah from each line
  • remove image name in the validated signature output
  • remove Converted signature blob completely

2024-01-26T08:50:25.105-0500 Checking Authority: aws-key
2024-01-26T08:50:27.009-0500 validated signature for authority aws-key got 1 signatures

@brajbou brajbou added the enhancement New feature or request label Jan 26, 2024
@hectorj2f
Copy link
Collaborator

@brajbou You can configure the verbosity level now: #1414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants