-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow properties from ConfigMap in TriggerAuthentication #4830
Comments
Hello, |
Note, trigger authentication also allows settings like oauthTokenEndpointUri + scope. These are not secrets and are likely to already be present in application configmap's. Current requirement means that people have to copy them into a Secret object. |
Other operators out there like trust-manager generate ConfigMaps rather than Secrets, and it should be preferable to reference the configmap directly rather than having to sync it to a secret. This can be useful for setting the |
I think this is a reasonable thing to add and wonder how this did not come up earlier. Even though it's not secure, it still has valid use-cases and storing secrets in environment variables is not secure either and still we support it. I'm in favor of this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue went stale. Seems there's agreement that allowing auth properties via |
I'm still not sure if we should allow this, but I don't have any strong opinion, if someone is willing to add it, it's fine to me |
I agree, Secret is not more secure than ConfigMap. Let's do this. |
@novicr Are you willing to contribute it? |
hey @novicr I'd be happy to help, let me know if you intend to tackle the implementation as well or prefer to hand it over. @tomkerkhove wrt implementation, what do you envision as desired API change, just adding array of keda/apis/keda/v1alpha1/triggerauthentication_types.go Lines 78 to 79 in 1bcab6d
Or more generic with |
I'd personally go with ConfigMapTargetRef to have an easy to use API |
Thanks for confirming. Unfortunately I probably won't be able to pick this up for couple of months. If someone is willing to take it, would be great. Otherwise, I'll take it when I can. |
in that case, will try to take a look at it this weekend |
Hi Team, I tried using this from Keda documentation but the below code is throwing the exception
can some one help how to consume the configmap data in to keda config trigers. |
I am not sure I fully understand your issue but I think you should configure the RabbitMQ queue name directly in the |
HI, |
I don't think setting other than authentication parameters for |
Currently TriggerAuthentication allows specifying properties from multiple sources including Secrets and Environment. In some cases information like username is already maintained in ConfigMap's. Would be useful to allow specifying properties defined in ConfigMap when defining TriggerAuthentication
The text was updated successfully, but these errors were encountered: