ko-build / ko

Build and deploy Go applications
https://ko.build
Apache License 2.0
7.63k stars 401 forks source link

x509 cert works locally, but not in ko container #1182

Closed polvi closed 7 months ago

polvi commented 11 months ago

I'm using skaffold to build a ko container.

 % skaffold version
v2.9.0
% cat skaffold.yaml                                                 
apiVersion: skaffold/v4beta8
kind: Config
build:
  artifacts:
  - image: example.com/my/goapp
    ko: {}

The application is connecting to a server hosted at: https://gis.co.douglas.or.us/

This server has a valid cert according to the browsers and my system keychain. However, when I compile the app with skaffold/ko, it no longer works.

 Get "https://gis.co.douglas.or.us/....": tls: failed to verify certificate: x509: certificate signed by unknown authority

Many other urls work no problem. Does the system certificates from the default image need to be updated? Or any other suggestions appreciated.

Thank you for the great tool!

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Keep fresh with the 'lifecycle/frozen' label.