Skip to content

fix(trust): remove stale system anchors - #21

Merged
ralyodio merged 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/uninstall-stale-system-anchor
Aug 10, 2026
Merged

fix(trust): remove stale system anchors#21
ralyodio merged 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/uninstall-stale-system-anchor

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • remove an existing system CA anchor even when it never reached the active trust bundle
  • rebuild the bundle after cleanup so a later refresh cannot reactivate a root the user already uninstalled
  • preserve the existing no-op behavior for genuinely absent roots and non-system stores

Closes #20

Testing

  • node --test --test-name-pattern="stale anchor" tests/upstream-and-system-trust.test.ts — 1 passed
  • focused TypeScript check for lib/trust.ts and the modified test — passed
  • git diff --check — passed

Notes

The regression uses an injected in-memory trust environment and never touches the machine's real certificate stores. The broader trust tests contain existing Linux-path assumptions and an NSS certutil name collision on Windows; the focused regression is platform-safe, and repository CI provides the Linux suite.

@ralyodio
ralyodio merged commit a03422f into profullstack:main Aug 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uninstall leaves a stale system CA anchor after a failed bundle refresh

2 participants