Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1013 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 1013 Bytes

Kubewarden Policy Repository Stable

Kubewarden policy raw-validation-policy

Description

This is a waPC test policy that validates raw requests.

The policy accepts requests in the following format:

{
  "request": {
    "user": "tonio"
    "action": "eats",
    "resource": "hay",
  }
}

and validates that:

  • user is in the list of valid users
  • action is in the list of valid actions
  • resource is in the list of valid resources

Settings

This policy has configurable settings:

  • validUsers: a list of valid users. Cannot be empty.
  • validActions: a list of valid actions.Cannot be empty.
  • validResources: a list of valid resources. Cannot be empty.