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

Cannot restrict routes to specific consumers via auth plugins #12789

Open
1 task done
shubhshah01 opened this issue Mar 27, 2024 · 3 comments
Open
1 task done

Cannot restrict routes to specific consumers via auth plugins #12789

shubhshah01 opened this issue Mar 27, 2024 · 3 comments
Assignees

Comments

@shubhshah01
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.6

Current Behavior

Say I have 2 consumers each with one JWT credential configured. And I have 2 routes, now when i add JWT plugin for the route i cannot specify the consumer ID as it gives schema violation error (since in plugin schema its not allowed).
Hence the route is accessible by both consumers i.e. via both JWT token.

Expected Behavior

I want a route to be scoped to specfic consumer and if token received is not a valid token considering the scoped consumer, then it should block the request.

Steps To Reproduce

No response

Anything else?

No response

@StarlightIbuki
Copy link
Contributor

@oowl This sounds like a bug fixed by you. Do you have any idea?

@shubhshah01
Copy link
Author

@oowl do you have any insights or suggestions on how I could address this issue?

@oowl oowl assigned StarlightIbuki and unassigned StarlightIbuki and oowl Apr 15, 2024
@Water-Melon
Copy link
Contributor

Perhaps you could try using it with the ACL plugin to achieve this goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants