ibm-messaging / mq-helm

Apache License 2.0
25 stars 33 forks source link

How multiple trust store certificates are recognised? #76

Closed scannerscan closed 4 months ago

scannerscan commented 4 months ago

Hi, I am trying to understand how the multiple truststore certificates are getting recognised. Based on the mq containers docs from https://github.com/ibm-messaging/mq-container/blob/master/docs/usage.md , the way they designed it was the following:

Example:

As per the helm value file and the helm documentation, it is: pki: trust:

If I add multiple items (.crt files), pki: trust:

they will be placed under a single index - '0' in the MQ container file system, say, /etc/mqm/pki/trust/0/app1.crt /etc/mqm/pki/trust/0/app2.crt /etc/mqm/pki/trust/0/app3.crt

Does that approach still work or MQ is designed to have something like that? /etc/mqm/pki/trust/0/app1.crt /etc/mqm/pki/trust/1/app2.crt /etc/mqm/pki/trust/2/app3.crt

callumpjackson commented 4 months ago

Looking at the container code both options should work, have you seen an issue?

scannerscan commented 4 months ago

Looking at the container code both options should work, have you seen an issue?

have not tested that scenario yet, just picked up the difference and wanted to confirm if there is an issue or not

callumpjackson commented 4 months ago

I think everything is fine. For your awareness, you could also have multiple secrets with a single item and this would map to the other mechanism. Closing issue unless there is a problem discussed.