Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
adding SSL CERT configuration to containers
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli committed Jul 4, 2024
1 parent 1b37102 commit 8d72b92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
container_pkgs.nettools
container_pkgs.gnugrep
container_pkgs.coreutils
container_pkgs.cacert
];
pathsToLink = ["/bin"];
};
Expand All @@ -166,6 +167,7 @@
if !needsCrossCompilation
then ["${service}/bin/${service.pname}"]
else ["${service}/bin/${os}_${arch}/${service.pname}"];
config.Env = ["SSL_CERT_FILE=${container_pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"];
};
};
}) {
Expand Down
1 change: 1 addition & 0 deletions kardinal-manager/kardinal-manager/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (fetcher *fetcher) getClusterResourcesFromCloud() (*types.ClusterResources,
return nil, stacktrace.Propagate(err, "Error fetching cluster resources from endpoint '%s'", fetcher.configEndpoint)
}
defer resp.Body.Close()
logrus.Debugf("Fetching cluster resources from endpoint '%s'", fetcher.configEndpoint)

responseBodyBytes, err := io.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit 8d72b92

Please sign in to comment.