Skip to content

Problem using policy configMap mounted as folder #1

Open
@ralgozino

Description

@ralgozino

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions