Skip to content

Single policy to block everything expect few source #1588

Answered by daemon1024
janavenkat asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @janavenkat, this is a very valid usecase. And we already have a particular example which describes this exact usecase

file:
matchDirectories:
- dir: /run/secrets/kubernetes.io/serviceaccount/
recursive: true
action: Block
- dir: /
recursive: true
- dir: /run/secrets/kubernetes.io/serviceaccount/
recursive: true
fromSource:
- path: /bin/cat

If you see here, we are blocking access to the service account folder and only allowing it to /bin/cat.

It involves both blacklist and whitelist behaviour so you cannot change the Defaul…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by daemon1024
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@janavenkat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants