Skip to content

Provide a way for users to validate policies during bundling/packaging phase #2598

@tsandall

Description

@tsandall

As a user of OPA in a large organization that delegates policy authoring to different groups, I would like to be able to validate that policies packaged into bundles conform to certain standards and best practices that are specific to my organization. For example:

  • App repos should not be able to modify the system package except for the system/log/mask decision
  • App policy packages must be namespaced under package acmecorp.<app_name>
  • App API authorization policies must include a default allow = false rule (any other value is not allowed for the default allow rule)

One solution would be to have the build command accept an option that loads a special policy that could evaluate against the policy ASTs. The policy would be passed as set of policy ASTs as input and would be expected to produce a decision as to whether the policies are valid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions