gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

Support namespaceObject in CEL

Open Agalin opened this issue 11 months ago • 8 comments

Describe the solution you'd like

Gatekeeper's CEL engine seems to lack the top-level namespaceObject defined by Kubernetes docs. It should give access to the request namespace object, including its labels.

Anything else you would like to add:

Didn't check if authorizer object works as expected, others seem to be fine. Note that I've used Gator tests to validate this, didn't deploy to a cluster.

This is already supported in Kyverno (https://github.com/kyverno/kyverno/issues/8070).

Environment:

  • Gatekeeper version: 3.18.2
  • Kubernetes version: (use kubectl version): N/A

Agalin avatar Jan 13 '25 16:01 Agalin

@maxsmythe @ritazh do you recall why this was not added in CEL engine?

JaydipGabani avatar Feb 07 '25 23:02 JaydipGabani

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[bot] avatar Apr 10 '25 00:04 stale[bot]

Still relevant.

Agalin avatar Apr 10 '25 10:04 Agalin

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[bot] avatar Jun 09 '25 10:06 stale[bot]

not stale

JaydipGabani avatar Jun 18 '25 17:06 JaydipGabani

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[bot] avatar Aug 17 '25 17:08 stale[bot]

not stale

JaydipGabani avatar Aug 18 '25 18:08 JaydipGabani

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[bot] avatar Oct 17 '25 19:10 stale[bot]