Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How a Kong Basic Auth Plugin can be restricted to set of consumers? #13371

Closed
sasahoo-tibco opened this issue Jul 12, 2024 Discussed in #13367 · 1 comment
Closed

How a Kong Basic Auth Plugin can be restricted to set of consumers? #13371

sasahoo-tibco opened this issue Jul 12, 2024 Discussed in #13367 · 1 comment

Comments

@sasahoo-tibco
Copy link

Discussed in #13367

Originally posted by sasahoo-tibco July 12, 2024
I have set up the basic auth Kong Plugin and created a Consumer using a Kubernetes secret. This configuration works for all consumers using that secret. I have an ingress that uses this plugin. However, I want the Kong Plugin to work only with a specific set of consumers, not all. Specifically, I would like to know if the Kong Plugin can be configured to work with a single consumer.

For example:

Ingress 'A' uses Kong Basic Auth Plugin 'Ka' and should work only with Consumer 'A'.
Ingress 'B' uses Kong Basic Auth Plugin 'Kb' and should work only with Consumer 'B'.
Ingress 'A' should not authenticate Consumer 'B', and Ingress 'B' should not authenticate Consumer 'A'.

Is there a solution for this scenario?

@hanshuebner
Copy link
Contributor

Have a look here: https://discuss.konghq.com/t/limit-routes-to-specific-consumers/9774

Does this answer your question?

@Kong Kong locked and limited conversation to collaborators Jul 13, 2024
@hanshuebner hanshuebner converted this issue into discussion #13374 Jul 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants