refactor(backend): lift shared CA helpers #92

Merged
didericis merged 2 commits from refactor-lift-ca-helpers into main 2026-05-28 20:36:30 -04:00
Collaborator

Summary

  • lift shared CA certificate selection and fingerprint helpers into backend utilities
  • move AGENT_CA path and bundle constants into the shared util layer
  • update docker and smolmachines CA provisioning call sites

Notes

  • branch is currently 2 commits ahead of main and 19 commits behind origin/main in this checkout
  • no local code changes were made while opening this PR
## Summary - lift shared CA certificate selection and fingerprint helpers into backend utilities - move AGENT_CA path and bundle constants into the shared util layer - update docker and smolmachines CA provisioning call sites ## Notes - branch is currently 2 commits ahead of main and 19 commits behind origin/main in this checkout - no local code changes were made while opening this PR
didericis-codex force-pushed refactor-lift-ca-helpers from d359dcaff1 to c854db87c6 2026-05-28 20:16:18 -04:00 Compare
didericis added 2 commits 2026-05-28 20:16:22 -04:00
Both backends' provision_ca duplicated _select_ca_cert and the
SHA-256 fingerprint computation verbatim. Lift them into the shared
backend/util.py as select_ca_cert + log_ca_fingerprint; docker and
smolmachines now call the shared helpers. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
refactor(backend): move AGENT_CA path/bundle constants to shared util
test / unit (pull_request) Successful in 34s
test / integration (pull_request) Successful in 58s
test / unit (push) Successful in 27s
test / integration (push) Successful in 43s
e641bacf2d
The two Debian-family CA-layout constants lived in
docker/provision/ca.py, which forced the smolmachines backend to
import them cross-backend (smolmachines -> docker). Move them into
the shared backend/util.py next to select_ca_cert; docker, compose,
and smolmachines now all import from there. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
didericis merged commit e641bacf2d into main 2026-05-28 20:36:30 -04:00
didericis deleted branch refactor-lift-ca-helpers 2026-05-28 20:36:53 -04:00
Sign in to join this conversation.