Skip to content

Commit a1982b2

Browse files
authored
fix: added ca cert env var (#46)
### **PR Type** bug_fix, enhancement ___ ### **Description** - Add `SSL_CERT_FILE` environment variable to Go container images. - Ensure Go images use correct CA certificate path. - Remove redundant inclusion of `pkgs.cacert` in root filesystem. - Improve container image configuration for SSL/TLS support. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>go.nix</strong><dd><code>Improve CA certificate handling in Go container images</code>&nbsp; &nbsp; &nbsp; </dd></summary> <hr> lib/go/go.nix <li>Add <code>SSL_CERT_FILE</code> env var pointing to CA bundle.<br> <li> Remove <code>pkgs.cacert</code> from root filesystem paths.<br> <li> Update container image configuration for better SSL support. </details> </td> <td><a href="https://github.com/nhost/nixops/pull/46/files#diff-1377128cceefd42b43cd5e407ec11a809c7aaec2d071a1ed0e3232f6dce63fad">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>
1 parent 1ed1112 commit a1982b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/go/go.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ let
2828
copyToRoot = pkgs.buildEnv {
2929
name = "image";
3030
paths = [
31-
pkgs.cacert
3231
package
3332
(pkgs.writeTextFile {
3433
name = "tmp-file";
@@ -44,6 +43,7 @@ let
4443
config = {
4544
Env = [
4645
"TMPDIR=/tmp"
46+
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
4747
];
4848
Entrypoint = [
4949
"${package}/bin/${name}"

0 commit comments

Comments
 (0)