Closed nagajagan closed 2 years ago
@nagajagan , can you please check this code and make sure your shipyard script is setting all the required parameters including (REQUESTS_CA_BUNDLE) https://github.com/airshipit/treasuremap/blob/2227df4a8d60581974f49501265c0b8230fbf414/tools/deployment/seaworthy-virt/airship_gate/lib/airship.sh#L16
If i understand correct, for the shipyard to make use of the cert, you have to mount it and provide the cert in the specific parameter (REQUESTS_CA_BUNDLE)
For your query about how the curl is working, the curl's certificate lookup path (CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt) found the cert as you have explicitly mounted there.
Please try to check and test with all required parameters.
We are still using https://github.com/airshipit/treasuremap/blob/2227df4a8d60581974f49501265c0b8230fbf414/tools/airship#L189
Is this deprecated? Could you tell me what is the difference between the two airship.sh files? Which one we are supposed to use? Is there any document to explain the flow?
@nagajagan , can you please update if that helps and if we can mark this issue closed ?
We are working with cruiser type sites and changed treasuremap/tools/airship to include REQUESTS_CA_BUNDLE also and its working as a workaround for us now. Thank you @sirajyasin for the support.
site/xxxxx/secrets/certificates/ingress.yaml, ingress-crt-site to have following content and that should solve the problem.
-----BEGIN CERTIFICATE----- Ingress Certificates -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- Intermediate Certificate -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- Root certificate -----END CERTIFICATE-----
Issues is addressed by properly adding certificate chain in ingress.yaml
Describe the bug shipyard get actions command is failing due to it can't make a secure connection with shipyard URL. The ingress certificates are working for iam.
Steps To Reproduce Maintain treasurmap version @ https://github.com/airshipit/treasuremap/commit/2227df4a8d60581974f49501265c0b8230fbf414 and follow the steps to bring up genesis node.
Expected behavior shipyard get actions/commit/configdocs commands should work on secure connection.
Environment
Detailed steps to isolate the issue with shipyard