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

Set fallback when no rules found #1221

Open
4 of 5 tasks
khusseini opened this issue Mar 14, 2025 · 0 comments
Open
4 of 5 tasks

Set fallback when no rules found #1221

khusseini opened this issue Mar 14, 2025 · 0 comments
Labels
feat New feature or request.

Comments

@khusseini
Copy link

Preflight checklist

Ory Network Project

No response

Describe your problem

When using nginx auth-url backend to make use of the Ory Oathkeeper decision API, we run into an incompatability when oathkeeper cannot find matching rules. Oathkeeper will throw a 404 when no rules were matched, however nginx does not accept 404 error codes and in turn throws a 500 to the client.

It would be amazing if we could set a fallback rule when no other rules were matched. Currently it is not possible to have a catch-all rule as such a rule would result Oathkeeper to match more than one rule for any request and in turn throw a 500 error.

Describe your ideal solution

Implement a fallback rule to match when no other rules were able to match.

Workarounds or alternatives

Currently there are no alternatives but to define a rule for every possible route in the application. This is very tedious and can quickly get out of hand for larger applications.

Version

v0.40.9

Additional Context

No response

@khusseini khusseini added the feat New feature or request. label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant