Hi
I have a Virtual Machine serving a 3rd party application API in my azure VNET. We also have some microservices deployed in a containerapps environment (Actually 2 of them, 1 for production and 1 for test/uat).
From the UAT environment, I am able to run REST queries successfully (POST) against the service on the VM, but the Production environment fails with a Certificate validation error.
The microservices are coded in Typescript, using Axios as the HTTP client we use to call the service. The Certification validation error I get is:
{"TimeStamp":"2023-05-02T11:13:09.3810315+00:00","Log":"_closed: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810357+00:00","Log":"socket: TLSSocket {"}
{"TimeStamp":"2023-05-02T11:13:09.3810399+00:00","Log":"_tlsOptions: [Object],"}
{"TimeStamp":"2023-05-02T11:13:09.3810441+00:00","Log":"_secureEstablished: true,"}
{"TimeStamp":"2023-05-02T11:13:09.3810483+00:00","Log":"_securePending: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810527+00:00","Log":"_newSessionPending: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810568+00:00","Log":"_controlReleased: true,"}
{"TimeStamp":"2023-05-02T11:13:09.381061+00:00","Log":"secureConnecting: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810652+00:00","Log":"_SNICallback: null,"}
{"TimeStamp":"2023-05-02T11:13:09.3810695+00:00","Log":"servername: 'ilsliv.gracenineteen.com',"}
{"TimeStamp":"2023-05-02T11:13:09.3810737+00:00","Log":"alpnProtocol: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810775+00:00","Log":"authorized: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3810816+00:00","Log":"authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',"}
{"TimeStamp":"2023-05-02T11:13:09.3810858+00:00","Log":"encrypted: true,"}
{"TimeStamp":"2023-05-02T11:13:09.3810901+00:00","Log":"_events: [Object: null prototype],"}
{"TimeStamp":"2023-05-02T11:13:09.3810942+00:00","Log":"_eventsCount: 10,"}
{"TimeStamp":"2023-05-02T11:13:09.3810985+00:00","Log":"connecting: false,"}
{"TimeStamp":"2023-05-02T11:13:09.3811027+00:00","Log":"_hadError: false,"}
Any idea how the same docker container deployed in 2 environments can behave so differently? There is nothing special about how the test environment was created - both environments were created using the same az containerapp env create
command, with just the name, resource group and subnet being different.
Regards
Tsoloane Moahloli