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

Admission Events InvolvedObject Namespace #2230

Closed
ctrought opened this issue Aug 17, 2022 · 4 comments · Fixed by #2360
Closed

Admission Events InvolvedObject Namespace #2230

ctrought opened this issue Aug 17, 2022 · 4 comments · Fixed by #2360
Labels
bug Something isn't working triaged

Comments

@ctrought
Copy link
Contributor

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

Enabled admission events and observed violations that generate events.

  1. The events are generated in the gatekeeper namespace.
  2. The InvolvedObject namespace is also incorrectly set as gatekeeper-system

https://open-policy-agent.github.io/gatekeeper/website/docs/customize-startup/#alpha-emit-admission-and-audit-events

What did you expect to happen:

  1. I think it would be preferred if the event could be generate in the namespace where the violation occurred if it is a namespace scoped resource. This would allow the user to see some kind of trail of what happened, or what may still be occurring when the violations are occurring in the background. We also want to use third party tooling capable of exporting kubernetes events to alertmanager/slack for alerting Alerting integration for violations #580 that typically work based off the namespace where the event is located.
  2. The InvolvedObjects namespace should likely also point to the actual namespace where the object exists regardless of which namespace the event is emitted in.

Environment:

  • Gatekeeper version: 3.9.0
  • Kubernetes version: (use kubectl version): 1.23
@ctrought ctrought added the bug Something isn't working label Aug 17, 2022
@stale
Copy link

stale bot commented Oct 16, 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 stale label Oct 16, 2022
@ctrought
Copy link
Contributor Author

/active

@stale
Copy link

stale bot commented Dec 24, 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 stale label Dec 24, 2022
@stale stale bot closed this as completed Jan 8, 2023
@ctrought
Copy link
Contributor Author

ctrought commented Jan 8, 2023

Active

@ritazh ritazh reopened this Jan 9, 2023
@ritazh ritazh added triaged and removed stale labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants