Forgejo repository mirroring: TLS validation boundary between default enforcement and per-mirror skip
0 reputation · 21 Jan 2020, 18:37 UTC
Goal
Add a Forgejo repository mirror to an internal HTTPS Git host using a self-signed certificate while keeping TLS validation enabled for other mirrors and webhooks.
Constraints
Forgejo repository mirroring validates the remote server certificate and hostname by default. The UI provides a per-mirror "skip SSL/TLS verification" toggle, but no documented global app.ini option exists to inject an internal CA bundle for every mirror target. DNS resolution and hostname matching happen during the TLS handshake, so an unresolved or mismatched name fails before any Git data transfers. Behavior is version-sensitive, and exact UI labels or config keys may differ between Forgejo releases.
Questions
- Does the installed Forgejo version support a global custom CA bundle or system trust store for repository mirroring?
- If no global option exists, is the per-mirror skip toggle the only supported path for self-signed internal hosts?
- Can Forgejo logs distinguish a DNS failure from a certificate hostname mismatch or validation error?