Comments (4)
Thanks for the report. I think the logic of this policy needs to be slightly reworked. Maybe I had the wrong assumption when writing it, not sure. In any case, it seems like the logic should be to simply check volumes[]
for any emptyDir
-type volumes, and then check and see if any of those are used in any initContainer or container that are requests and limits specified, which may apply to all volumes being mounted.
from policies.
This sounds like a good approach. I'm unfamiliar with the policy rule language, otherwise I would hav offered a possible solution.
Thank you for having a look into it.
from policies.
Hi,
was just wondering what would be feasible to help out here. Would be great if could fix this issue.
from policies.
Sent fix in #845
from policies.
Related Issues (20)
- [Bug] ClusterPolicy with PolicyException does not apply on subsequent updates
- Block Large Images
- [Sample] Mount volumes for ephemeral containers HOT 1
- disallow-capabilities: simplify CEL expressions HOT 2
- disallow-host-namespaces: simplify CEL expressions HOT 4
- disallow-host-path: simplify CEL expressions HOT 4
- disallow-host-ports: simplify CEL expressions
- disallow-host-ports-range: simplify CEL expressions HOT 3
- disallow-host-process: simplify CEL expressions
- disallow-privileged-containers: simplify CEL expressions HOT 4
- disallow-proc-mount: simplify CEL expressions HOT 3
- disallow-selinux: simplify CEL expressions
- restrict-seccomp: simplify CEL expressions HOT 6
- restrict-sysctls: simplify CEL expressions HOT 3
- All tested images to be stored in Kyverno org HOT 2
- Custom message not working in podSecurity subrule policy HOT 2
- [Bug] Generating network policy for existing namespace fails. As well as data template synchronization. HOT 5
- Refresh Environment Variables in Pods HOT 4
- [Bug] Kyverno verifyimage policy does'nt working correctly HOT 4
- [Feature] Update the existing policies to use the new fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from policies.