Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple matching rules are causing 500 #1196

Open
3 of 5 tasks
krukowskid opened this issue Nov 6, 2024 · 0 comments
Open
3 of 5 tasks

Multiple matching rules are causing 500 #1196

krukowskid opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something is not working.

Comments

@krukowskid
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

Hey!
I am trying to simplify configuration by replacing per service rules with default rule to always require token and some exclusions from the default. However, after using wildcard in url it throws 500 for requests that match both "default" rule and exclusion rule. If there is any workaround that I can use to make it work?

Reproducing the bug

[
  {
    "id": "allow-all",
    "match": {
      "url": "<https|http>://<.*>/serviceX.v1.<.*>",
      "methods": ["GET", "POST", "PUT", "PATCH", "DELETE"]
    },
    "authenticators": [
      {
        "handler": "noop"
      }
    ],
    "authorizer": {
      "handler": "allow"
    },
    "mutators": [
      {
        "handler": "noop"
      }
    ]
  },
  {
    "id": "auth-required-default",
    "match": {
      "url": "<https|http>://<.*>",
      "methods": ["GET", "POST", "PUT", "PATCH", "DELETE"]
    },
    "authenticators": [
      {
        "handler": "bearer_token"
      }
    ],
    "authorizer": {
      "handler": "allow"
    },
    "mutators": [{
      "handler": "header"
    }]
  }
]

Relevant log output

No response

Relevant configuration

No response

Version

v0.40.7

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

@krukowskid krukowskid added the bug Something is not working. label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant