Skip to content

feat(ca): Improve root privilege handling for macOS trust operations - #12

Merged
scflode merged 1 commit into
mainfrom
improve-privilege-handling-macos
Jan 19, 2026
Merged

scflode merged 1 commit into
mainfrom
improve-privilege-handling-macos

Conversation

@scflode

@scflode scflode commented Jan 19, 2026

Copy link
Copy Markdown
Contributor
  • Modify macOS CA trust management to handle root and non-root scenarios
    more gracefully.
  • Add isRoot() function to detect current process
    privileges.
  • Update InstallTrust(), UninstallTrust(), and IsTrusted()
    methods to conditionally use sudo and improve certificate verification
    logic.

- Modify macOS CA trust management to handle root and non-root scenarios
more gracefully.
- Add isRoot() function to detect current process
privileges.
- Update InstallTrust(), UninstallTrust(), and IsTrusted()
methods to conditionally use sudo and improve certificate verification
logic.
@scflode
scflode force-pushed the improve-privilege-handling-macos branch from 9662e84 to 914fe53 Compare January 19, 2026 11:21
@scflode scflode self-assigned this Jan 19, 2026
@scflode
scflode merged commit 7ecaabd into main Jan 19, 2026
5 checks passed
@scflode
scflode deleted the improve-privilege-handling-macos branch January 19, 2026 11:24
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.

1 participant