Skip to content

Commit 4eb760a

Browse files
authored
Fix: Blockfrost API TLS "unknown CA" error in Docker (#2193)
## Summary This pull request resolves the Blockfrost API TLS error encountered in the Hydra Docker image: ``` BlockfrostAPIError "ServantClientError (ConnectionError (HttpExceptionRequest Request { host = "cardano-preprod.blockfrost.io" port = 443 secure = True requestHeaders = [("Accept","application/json;charset=utf-8,application/json"), ("User-Agent","blockfrost-haskell/0.13.0.0"), ("project_id","{project_id}")] path = "/api/v0/genesis" method = "GET" ... } (InternalException (HandshakeFailed (Error_Protocol "certificate has unknown CA" UnknownCa)))))" ``` The underlying cause was missing or outdated CA certificates in the Docker container, resulting in the container not trusting Blockfrost's certificate authority. ## Changes - Include dockerTools.cacert bundle to /etc/ssl/certs for NixOS base image ## Scope & Justification - Only Docker build/config files were modified. - No speculative changes or refactoring performed. ## Related issue https://discord.com/channels/826816523368005654/890903732462710836/1407283922496393227 ## Reference https://ryantm.github.io/nixpkgs/builders/images/dockertools/#ssec-pkgs-dockerTools-buildImage https://ryantm.github.io/nixpkgs/builders/images/dockertools/#ssec-pkgs-dockerTools-helpers
2 parents a2eb2ba + 634f0cf commit 4eb760a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nix/hydra/docker.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
name = "hydra-node-env";
1515
paths = [
1616
pkgs.busybox
17+
pkgs.dockerTools.caCertificates
1718
];
1819
};
1920
config = {

0 commit comments

Comments
 (0)