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

Problem using policy configMap mounted as folder #1

Open
ralgozino opened this issue Dec 17, 2019 · 0 comments
Open

Problem using policy configMap mounted as folder #1

ralgozino opened this issue Dec 17, 2019 · 0 comments

Comments

@ralgozino
Copy link

Hello Gareth!

I'm having an strange issue with the plugin that is not happening with the conftest cli. When I try to use a policy package mounted from a kubernetes configMap into a folder I get errors saying that a rule definition is duplicated (I don't think the specific error is important), but if I copy the folder from other location to a new folder and point the flag --policy to that folder the plugin works.

If I mount the same confiMap to the same path but I use conftest instead of the helm plugin I don't encounter the problem.

I think that the policy configmap being mounted as a folder that ends up with symbolic links could be the source of the problem. This could be related: open-policy-agent/opa#782

Is the helm plugin using the same backend as the CLI?

Thank you for your work!
Let me know if I can help. You can ping me on Slack if you want (ralgozino).

@ralgozino ralgozino changed the title Problem using mounted configMap Problem using policy folder mounted configMap Dec 17, 2019
@ralgozino ralgozino changed the title Problem using policy folder mounted configMap Problem using policy configMap mounted as folder Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant