[P9] Distribute Homelab CA cert to Docker and buildkit #102

Closed
opened 2026-03-22 15:46:25 +00:00 by kert · 0 comments
Owner

Problem

The Gitea registry is behind Traefik TLS with a self-signed wildcard cert (*.homelab.fhirworx.io, CA: Homelab CA). Buildkit and Docker daemon don't trust this CA, so HTTPS pushes to gitea.homelab.fhirworx.io will fail with certificate errors.

Solution

  • Copy traefik/certs/ca.crt into the Docker daemon's trusted certs dir
  • For rootless Docker: ~/.config/docker/certs.d/gitea.homelab.fhirworx.io/ca.crt
  • Configure buildkit via buildkit_config in the buildx plugin to trust the CA
  • Alternatively, mount the CA cert into buildkit via buildkit_driveropt

Depends on

  • DNS resolution (#101) so gitea.homelab.fhirworx.io resolves

Acceptance criteria

  • Docker daemon trusts Homelab CA (docker pull gitea.homelab.fhirworx.io/homelab/test works)
  • Buildkit trusts Homelab CA (buildx push over HTTPS works)
  • Remove insecure: true from all buildx steps
## Problem The Gitea registry is behind Traefik TLS with a self-signed wildcard cert (`*.homelab.fhirworx.io`, CA: `Homelab CA`). Buildkit and Docker daemon don't trust this CA, so HTTPS pushes to `gitea.homelab.fhirworx.io` will fail with certificate errors. ## Solution - Copy `traefik/certs/ca.crt` into the Docker daemon's trusted certs dir - For rootless Docker: `~/.config/docker/certs.d/gitea.homelab.fhirworx.io/ca.crt` - Configure buildkit via `buildkit_config` in the buildx plugin to trust the CA - Alternatively, mount the CA cert into buildkit via `buildkit_driveropt` ## Depends on - DNS resolution (#101) so `gitea.homelab.fhirworx.io` resolves ## Acceptance criteria - [ ] Docker daemon trusts Homelab CA (`docker pull gitea.homelab.fhirworx.io/homelab/test` works) - [ ] Buildkit trusts Homelab CA (buildx push over HTTPS works) - [ ] Remove `insecure: true` from all buildx steps
kert added this to the P9: CI/CD Unification milestone 2026-03-22 15:46:25 +00:00
kert added the ci label 2026-03-22 15:46:25 +00:00
kert closed this issue 2026-03-23 17:56:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#102