Skip to content

feat(image): support custom TLS certs and insecure registries#496

Open
toksdotdev wants to merge 1 commit intomainfrom
toks/tls-custom-certs
Open

feat(image): support custom TLS certs and insecure registries#496
toksdotdev wants to merge 1 commit intomainfrom
toks/tls-custom-certs

Conversation

@toksdotdev
Copy link
Copy Markdown
Member

@toksdotdev toksdotdev commented Apr 4, 2026

Summary

  • Per-registry config in ~/.microsandbox/config.json with global ca_certs and per-host insecure/auth
  • CLI: --insecure and --ca-certs flags on msb pull
  • Rust SDK: .registry(|r| r.auth(..).insecure().ca_certs(..)) sub-builder
  • TypeScript SDK: registry: { auth, insecure, caCertsPath } config object
  • PEM validation via rustls-pemfile at build time
{
  "registries": {
    "ca_certs": "/path/to/ca.pem",
    "hosts": {
      "localhost:5050": { "insecure": true },
      "ghcr.io": { "auth": { "username": "user", "store": "keyring" } }
    }
  }
}

Test plan

  • Unit tests for config, builder, and PEM validation
  • Manual: HTTP registry with --insecure and global config
  • Manual: HTTPS with self-signed cert via --ca-certs

@toksdotdev toksdotdev requested a review from appcypher as a code owner April 4, 2026 02:22
@toksdotdev toksdotdev marked this pull request as draft April 4, 2026 02:25
@toksdotdev toksdotdev force-pushed the toks/tls-custom-certs branch 3 times, most recently from bb61d35 to 671162c Compare April 7, 2026 02:40
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