Skip to content

Harden Rockxy root CA lifecycle for open-source release safety #27

@LocNguyenHuu

Description

@LocNguyenHuu

Summary

Rockxy is already using the right local per-install root CA model for a debugging proxy, but the CA lifecycle should be hardened for open-source release quality and safer long-term maintenance.

This issue is about practical local hardening, not public CA trust or expensive company-scale PKI work.

Problem

Current concerns:

  • root CA lifetime is longer than ideal for a local interception CA
  • private-key persistence still includes legacy disk fallback and recovery behavior
  • legacy .bak recovery files should not remain the long-term expected storage model

Scope

  • reduce root CA validity period to a more conservative lifetime
  • move release behavior toward Keychain-only private-key storage
  • preserve safe migration from older installs where needed
  • clean up legacy disk fallback and .bak recovery paths where safe
  • improve CA lifecycle messaging and recovery guidance

Non-Goals

  • public CA program enrollment
  • automatic browser trust beyond local OS trust
  • enterprise PKI / MDM fleet rollout

Acceptance Criteria

  • Rockxy still generates a local per-install CA
  • release behavior does not depend on new plaintext private-key writes to disk
  • migration from older installs remains recoverable
  • CA validity and cleanup strategy are documented in code and covered by focused tests

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/https-interceptionCertificate trust, root CA, and HTTPS interception flowsenhancementNew feature or requestmacosApplies to macOS platform behaviorpriority/p1High-priority work with clear user or project impactstatus/needs-triageNew issue awaiting initial maintainer reviewuser-feedbackRaised from observed or likely user-facing pain points

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions