Mutator: unrecognized by oathkeeper (v0.14.2_oryOS.10)

#1

Hi, i’m trying to setup a mutator for oathkeeper rules, i’ve followed the documentation but oathkeeper refuse loading my rules with mutator, i’m pretty sure that is a stupid mistake but as there is no working example for doing this i’m a little bit lost …

The rule

[
  {
    "id": "${OATHKEEPER_MOORE_FS_PREFIX}bucket:upload",
    "mutator": {
      "handler": "noop"
    },
    "upstream": {
      "url": "${MOORE_FS_URL}/"
    },
    "match": {
      "url": "${OATHKEEPER_PROXY_URL}/bucket/upload",
      "methods": [
        "GET",
        "PUT",
        "POST"
      ]
    },
    "authenticators": [
      {
        "handler": "oauth2_introspection",
        "config": {
          "required_scope": [
            "user.devices.storage"
          ]
        }
      }
    ],
    "authorizer": {
      "handler": "allow"
    },
    "credentials_issuer": {
      "handler": "noop"
    }
  }
]

The result

Decoding file contents from JSON resulted in error json: unknown field "mutator"
#2

The answer is really simple, i used a wrong oathkeeper version that do not work with mutator and ive miss-configured the oathkeeper API

Ps. The issue can be closed/removed