- The request is implemented here: https://github.com/aerogear/mobile-security-service-operator/blob/master/pkg/service/client.go - When the HTTPS option is added in the CR all worked, but it is not prepared to work with cert and keys.
Following the approaches to solve it.
h4. {panel:title= Try to use the internal URL to do the request instead of the route (Need check it will work well) } * First approach which should be taken * See here an example: The bkp is doing it. See here how to create the URL: https://github.com/aerogear/mobile-security-service-operator/blob/master/pkg/controller/mobilesecurityservicebackup/helpers.go#L16 {panel} h4. If the above does not work as we wish then:
{panel:title= Allow customize and/or usage of default certs } We need to check : 1. How to get the OCP cert key 2. If the MDC and others will work with a custom cert or a default one (Check if the team)
Then : 1. We need to make the MSS controller get the cert default and/or customize ( need to impl ) 2. Add a config in the MSS CR to pass the cert ( need to impl ) 3. Make the client use the cert when it has ( need to impl ) E.g https://gist.github.com/denji/12b3a568f092ab951456#simple-golang-httpstls-server 4. Maybe the route need be improved as well. {panel} c/c [~dffrench] [~lfitzgerald] [~endaphelan]
|
|