fix(#3396): move the forge onto the shared trust-bundle helper
Last of the three modules that hand-rolled the same concat with wantedBy + before and no requires, so a failed assembly left the consumer running against a missing file and trusting nothing -- every outbound TLS call fails while the unit looks healthy. The forge is the one with two consumers: forgejo-sso-source fetches the issuer's discovery document over the swarm CA and once shipped without the trust its sibling had. It only exists when SSO is on, so the consumer list is conditional -- naming an absent unit would define a serviceless one and order nothing. Removes the now-dead useSelfSigned and caContainerPath bindings (nix does not warn) and retargets three comments the deletion orphaned, including the helper header that still named this module as the per-call-site concat.
This commit is contained in:
parent
9073c9b3f7
commit
2eb74f3a74
2 changed files with 38 additions and 67 deletions
|
|
@ -6,10 +6,11 @@
|
|||
# and orders its `container@<name>` unit after `hive-tls-ca.service` so the
|
||||
# bind source exists before nspawn sets the mount up.
|
||||
#
|
||||
# This is the language-agnostic half (bind-mount + systemd ordering). The
|
||||
# *consumption* differs per runtime and stays at each call site: Node's
|
||||
# `NODE_EXTRA_CA_CERTS` is additive (hive-ci), Go's `SSL_CERT_FILE` replaces
|
||||
# the bundle so it needs a system-CAs+hive-CA concat step (hive-forge).
|
||||
# `bindMount` + `containerOrdering` are the language-agnostic half. The
|
||||
# *consumption* differs per runtime: an additive variable (Node's
|
||||
# `NODE_EXTRA_CA_CERTS`, hive-ci) points straight at `caContainerPath` from
|
||||
# the call site, while a *replacing* one (Go's `SSL_CERT_FILE`, rustls) needs
|
||||
# the system-CAs+hive-CA concat that `trustBundle` below does for it.
|
||||
#
|
||||
# Pure function — NOT a NixOS module (don't add it to the host-modules
|
||||
# aggregator). Call it from a module's `let`:
|
||||
|
|
|
|||
Loading…
Reference in a new issue