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

feat: add TLS support for IBM MQ scaler #5976

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

rickbrouwer
Copy link
Contributor

@rickbrouwer rickbrouwer commented Jul 23, 2024

IBM MQ scaler does not support authentication with TLS certs. This contributing adds support to enable authentication with TLS certs within the existing IBM MQ scaler by extending it, possibly with additional optional parameters.

Currently, MQ appliance is expecting the Basic Auth credentials as well along with certificates. The change is therefore made in such a way that Basic Auth remains necessary if you also provide a TLS certificate.

The change has been tested against our own IBM MQ appliances.

Checklist

Fixes #5974

Docs: 1433

@rickbrouwer rickbrouwer requested a review from a team as a code owner July 23, 2024 14:10
Signed-off-by: rickbrouwer <75609067+rickbrouwer@users.noreply.github.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jul 24, 2024

/run-e2e ibmmq
Update: You can check the progress here

@JorTurFer
Copy link
Member

There is an issue with the unit test.
image

TestIBMMQScalerGetQueueDepthViaHTTP is raising panic. Could you take a look? 🙏

Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
@rickbrouwer
Copy link
Contributor Author

@JorTurFer fixed the issue in the unit test 🙏

@JorTurFer
Copy link
Member

JorTurFer commented Jul 24, 2024

/run-e2e ibmmq
Update: You can check the progress here

@JorTurFer
Copy link
Member

e2e test is failing and I can see this message:

2024-07-24T15:09:30Z	ERROR	scale_handler	error getting scale decision	{"scaledObject.Namespace": "ibmmq-test-ns", "scaledObject.Name": "ibmmq-test-so", "scaler": "IBMMQScaler", "error": "error inspecting IBM MQ queue depth: failed to contact MQ via REST: Post \"https://ibm-mq-dev-ibm-mq.ibmmq-test-ns.svc:9443/ibmmq/rest/v2/admin/action/qmgr/testqmgr/mqsc\": tls: failed to verify certificate: x509: certificate is valid for localhost, not ibm-mq-dev-ibm-mq.ibmmq-test-ns.svc"}
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).getScalerState
	/workspace/pkg/scaling/scale_handler.go:780
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).getScaledObjectState.func1
	/workspace/pkg/scaling/scale_handler.go:633

Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: rickbrouwer <75609067+rickbrouwer@users.noreply.github.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jul 25, 2024

/run-e2e ibmmq
Update: You can check the progress here

@JorTurFer JorTurFer merged commit 857c09f into kedacore:main Jul 25, 2024
19 checks passed
@JorTurFer
Copy link
Member

Thanks a lot for the contribution!

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

Successfully merging this pull request may close these issues.

Add support for IBM MQ TLS auth
2 participants