]> go.fuhry.dev Git - runtime.git/commit
add cmd: k8s_cert_sync
authorDan Fuhry <dan@fuhry.com>
Wed, 28 Oct 2026 03:56:27 +0000 (23:56 -0400)
committerDan Fuhry <dan@fuhry.com>
Wed, 28 Oct 2026 03:56:27 +0000 (23:56 -0400)
commit2138a0426653ff45354084bf55af98deb02b5d42
treea260af7c0ff8556c8d8084e4ea87c3ec7d794fc7
parentb63f9f8d7d187565db3b8d51aa0d9e358edabbae
add cmd: k8s_cert_sync

Add new command using k8s informer pattern to monitor secrets in a given namespace and sync all `kubernetes.io/tls` items to the local disk.

Synced certs conform to certbot's directory structure: `archive` directory with all objects numbered, and `live` directory with symlinks to the active versions of each item in the archive.

Optionally replicate all certs to one or more additional directories with customizable ownership and permissions.
MODULE.bazel
cmd/k8s_cert_sync/BUILD.bazel [new file with mode: 0644]
cmd/k8s_cert_sync/main.go [new file with mode: 0644]
cmd/k8s_cert_sync/stats.go [new file with mode: 0644]
go.mod
go.sum
pkg/BUILD.bazel