Skip to content

fix(clean-nfs-cache): install CA certificates - #3632

Closed
rguliyev wants to merge 1 commit into
mainfrom
fix-clean-nfs-cache-ca
Closed

fix(clean-nfs-cache): install CA certificates#3632
rguliyev wants to merge 1 commit into
mainfrom
fix-clean-nfs-cache-ca

Conversation

@rguliyev

Copy link
Copy Markdown
Contributor

Summary

Install Debian's standard CA certificate bundle in the dedicated clean-nfs-cache runtime image.

Why

The image uses Debian slim, which does not include trusted root certificates by default. The staging CronJob therefore failed while initializing its authenticated LaunchDarkly client with:

x509: certificate signed by unknown authority

This restores normal Go system-root verification. It does not add a custom certificate, custom TLS transport, or verification bypass.

Validation

  • Built the real linux/amd64 Dockerfile.clean-nfs-cache image.
  • Verified the final image runs standalone with its existing root user and /clean-nfs-cache entrypoint.
  • Verified /etc/ssl/certs/ca-certificates.crt: 150 parsed roots and successful OpenSSL verification.
  • Authenticated successfully to the real staging LaunchDarkly endpoint using the existing secret and a disposable local dry-run cache.
  • Confirmed zero x509 errors, zero scanned builds, and zero deletions.
  • go test -count=1 -race -v ./cmd/clean-nfs-cache/...
  • mise exec -- golangci-lint run ./...
  • git diff --check origin/main...HEAD

Rollout notes

The Debian package is intentionally unversioned so rebuilt images receive current public roots. The base image itself remains digest-pinned.

@cla-bot cla-bot Bot added the cla-signed label Sep 10, 2026
@rguliyev rguliyev closed this Sep 10, 2026
@ValentaTomas
ValentaTomas deleted the fix-clean-nfs-cache-ca branch September 11, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant