Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 984 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 984 Bytes

Kubewarden Policy Repository Stable

Kubewarden policy raw-mutation-policy

Description

This is a waPC test policy that mutates raw requests.

The policy accepts requests in the following format:

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

The policy mutates the resource to a default resource defined by the settings if the resource is contained in the list of forbidden resources.

Settings

This policy has configurable settings:

  • forbiddenResources: a list of resources that cannot be accessed by the user.
  • defaultResource: the default resource to use if a resource is forbidden.