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

Finegrained Exemptions #737

Open
mjnagel opened this issue Sep 9, 2024 · 0 comments
Open

Finegrained Exemptions #737

mjnagel opened this issue Sep 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mjnagel
Copy link
Contributor

mjnagel commented Sep 9, 2024

Currently exemptions are allowed for all policies. Exemptions can be scoped by:

  • name matcher (regex) for the resource name
  • namespace identifier
  • policy list

There are several policies that have been identified as potentially needing more fine-grained exemption configurations:

  • RestrictCapabilities: Allow configuration of specific allowed capabilities (currently all are allowed if exempted)
  • Host path policies (RestrictHostPathWrite and RestrictVolumeTypes): Allow configuration of specific allowed host paths (currently all are allowed if exempted)
  • SELinux option policies (RestrictSELinuxType and DisallowSELinuxOptions): Allow configuration of specific allowed selinux options/types (currently all are allowed if exempted)

It may be useful to write a design document for this to start - explore how we could modify the exemption CR to support something like "allowed values" for a given exemption. In order to be backwards compatible we should likely default to all values being allowed if that config option is not provided.

@mjnagel mjnagel added the enhancement New feature or request label Sep 9, 2024
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

1 participant