How a Kong Basic Auth Plugin can be restricted to set of consumers? #13374
Unanswered
sasahoo-tibco
asked this question in
Help
Replies: 1 comment 1 reply
-
Have a look here: https://discuss.konghq.com/t/limit-routes-to-specific-consumers/9774 Does this answer your question? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions