Commit Graph
63 Commits
Author SHA1 Message Date
kevinveenbirkenbach f5e554276e Add sys-openssl role and wire it into CA and Mailu 2026-02-23 12:37:45 +01:00
kevinveenbirkenbach 0033099f94 fix(ca-trust): use wrapper path and invoke via sh 2026-02-22 16:15:25 +01:00
kevinveenbirkenbach 680a1e13ce Replaced hardcoded /etc/environment by variable. 2026-02-17 10:13:10 +01:00
kevinveenbirkenbach f880b14696 sys-ca-selfsigned: manage global CA trust env vars for container wrapper
- Persist CA_TRUST_* variables in /etc/environment for self-signed TLS
- Remove CA trust environment when switching to letsencrypt
- Enable container.py to auto-detect CA injection context via env

https://chatgpt.com/share/69864bf2-7830-800f-ae8a-dad17c4f6e13
2026-02-06 21:29:40 +01:00
kevinveenbirkenbach e1e1f3eb11 chore(vars): rename PATH_* to DIR_/BIN_/FILE_ conventions
https://chatgpt.com/share/6985cf49-3c74-800f-af97-f68b1969ab01
2026-02-06 12:23:46 +01:00
kevinveenbirkenbach 51239968fd refactor: rename docker-compose roles to sys-svc-compose and update paths
Renamed docker-compose and docker-compose-ca roles to sys-svc-compose and sys-svc-compose-ca, updated template includes, handlers, lookups, tests, and variables, and moved compose instances to /opt/compose.

https://chatgpt.com/share/6985ab2c-8344-800f-9e9a-768f562d138d
2026-02-06 09:49:42 +01:00
kevinveenbirkenbach 76d09dbc3f refactor: centralize docker wrappers, CA injection paths, and update tests
Unify compose/run wrappers under PATH_* variables, wire CA trust injection
consistently, extend with NSS/Chromium support, and adapt unit tests to the
new run-based execution model.

https://chatgpt.com/share/697e1f92-bc5c-800f-968d-ad43c50afaea
2026-01-31 17:06:09 +01:00
kevinveenbirkenbach e7e8cf8c03 sys-ca-selfsigned: add env-based CA trust fallback for unprivileged containers
Provide SSL_CERT_FILE / REQUESTS_CA_BUNDLE / CURL_CA_BUNDLE as a fallback
when OS-level CA installation is not possible (e.g. non-root containers).
OS trust store installation is now best-effort and no longer hard-fails,
making with-ca-trust usable across mixed privilege Docker images.

https://chatgpt.com/share/697ceee0-4e48-800f-b4ed-d240fcb0968a
2026-01-30 18:47:41 +01:00
kevinveenbirkenbach 1b4bbb24a2 sys-ca-selfsigned: make with-ca-trust best-effort and non-fatal
- Do not fail if no CA trust mechanism is available
- Log INFO instead of exiting with error in minimal environments
- Always exec wrapped command when provided
- Exit successfully in standalone (host install) mode
- Simplify trust detection logs and Arch/p11-kit handling

https://chatgpt.com/share/697ca66a-8310-800f-94fd-c0130e05e704
2026-01-30 13:39:02 +01:00
kevinveenbirkenbach 30e8b09e84 fix(tls): switch from self-signed leaf certs to CA-signed chain and make CA trust installation deterministic
https://chatgpt.com/share/697ca08d-bb54-800f-a6fc-56cd8e1d75c8
2026-01-30 13:13:44 +01:00
kevinveenbirkenbach 2678090934 feat(ca-trust): unify trust injection + strict templating
Move `with-ca-trust.sh` to `sys-ca-selfsigned` as the single source of truth, add `CA_TRUST_NAME`/`trust_name`, and pass it through `compose_ca_inject.py` + `compose_ca_inject_cmd`. Introduce `module_utils/templating.py` for strict multi-pass rendering with fallback env lookup, update TLS self-signed regen logic, purge script, and extend unit tests accordingly.

https://chatgpt.com/share/697c876d-7140-800f-9981-762dfeeafdfe
2026-01-30 11:26:46 +01:00
kevinveenbirkenbach 39638d5725 Optimized selfsigned dependency loading 2026-01-29 17:40:08 +01:00
kevinveenbirkenbach b2fb72d112 feat(tls): split TLS settings to 02_tls and add self-signed root CA role
Move TLS/ACME/CA vars out of 00_general into group_vars/all/02_tls.yml and renumber subsequent group_vars files. Add sys-ca-selfsigned to generate /etc/<software>/ca/root-ca.crt and make docker-compose-ca depend on it. Update setup script, templates, and tests to use the new applications/users file numbering.

https://chatgpt.com/share/697b8150-22ac-800f-98b1-e063a659b684
2026-01-29 16:48:03 +01:00