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

OPA decision logs #897

Closed
ycao56 opened this issue Oct 22, 2020 · 5 comments
Closed

OPA decision logs #897

ycao56 opened this issue Oct 22, 2020 · 5 comments
Labels
question Further information is requested stale

Comments

@ycao56
Copy link

ycao56 commented Oct 22, 2020

When using gatekeeper, is OPA decision logs API still available and how to access it?
https://www.openpolicyagent.org/docs/latest/management/#decision-logs
If not, is there any alternative ways to collect these logs for reporting purpose?

@ycao56 ycao56 added the bug Something isn't working label Oct 22, 2020
@maxsmythe
Copy link
Contributor

Hi!

Currently we aren't exporting decision logs, though having some kind of push-based reporting pipeline may be interesting.

Currently the main way for offloading decision logs is to take advantage of the semantic logs written to stdout:

https://docs.google.com/document/d/1ap7AKOupNcR_42s8mkSh5FV9eteXTd4VCqelKst73VY/edit

Piping these logs into a logs service like an ELK stack, Splunk, Stackdriver, Loggly, etc. should allow you to query audit events.

If you want admission time logs, you'd need to set the --log-denies flag, which will cause admission logs to be written to stdout.

Note that enabling admission logs has the potential to greatly increase logs volume.

Kubernetes also has its own built-in audit logging system that can be used to record the decisions of admission controllers:

https://kubernetes.io/docs/tasks/debug-application-cluster/audit/

@ritazh ritazh added question Further information is requested and removed bug Something isn't working labels Oct 23, 2020
@vrokida
Copy link

vrokida commented Mar 5, 2021

Hello !

Please one question related to log decision. Is there a flag or way to see the logs of allows? I mean not just about denies .

@maxsmythe
Copy link
Contributor

Not currently, though you could use K8s audit logs for that:

https://kubernetes.io/docs/tasks/debug-application-cluster/audit/

@stale
Copy link

stale bot commented Jul 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 23, 2022
@ritazh ritazh added stale and removed wontfix This will not be worked on labels Aug 10, 2022
@stale stale bot removed the stale label Aug 10, 2022
@stale
Copy link

stale bot commented Oct 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

4 participants