Hey everyone I need help for oathkeeper access ru...
# ory-selfhosting
g
Hey everyone I need help for oathkeeper access rule glob pattern. Added rule and description in thread
Copy code
[
  {
    "id": "public",
    "upstream": {
      "url": "<https://jsonplaceholder.typicode.com/todos/1>"
    },
    "match": {
      "url": "<http://localhost:4455/v1/><{auth,webhooks}>/<**>",
      "methods": [
        "GET",
        "POST",
        "PUT",
        "DELETE",
        "PATCH"
      ]
    },
    "authenticators": [
      {
        "handler": "noop"
      }
    ],
    "authorizer": {
      "handler": "allow"
    },
    "mutators": [
      {
        "handler": "noop"
      }
    ]
  },
  {
    "id": "protected",
    "upstream": {
      "url": "<https://jsonplaceholder.typicode.com/todos>"
    },
    "match": {
      "url": "<http://localhost:4455/v1/><{users,teams}>/<{**}>",
      "methods": [
        "GET",
        "POST",
        "PUT",
        "DELETE",
        "PATCH"
      ]
    },
    "authenticators": [
      {
        "handler": "noop"
      }
    ],
    "authorizer": {
      "handler": "allow"
    },
    "mutators": [
      {
        "handler": "noop"
      }
    ]
  }
]
I want to ignore all v1/auth in protected rule, instead of adding {users,team}...etc. I want to ignore all /v1/auth/** & v1/webhooks/** route in protected. I know this is silly question. But it would be great if anyone of you can help me in this