feat: Add opt-in support for proxy CA cert installation (#318)

* feat: Add opt-in support for proxy CA cert installation

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* fix: Code review fixes

* docs: Add limitation for MacOS MDM script
This commit is contained in:
Abhisek Datta
2026-06-03 23:15:02 +05:30
committed by GitHub
parent c3f3920d2e
commit 4f0db15ede
31 changed files with 1806 additions and 77 deletions
+24
View File
@@ -0,0 +1,24 @@
//go:build !darwin && !linux && !windows
// +build !darwin,!linux,!windows
package truststore
import (
"errors"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/pmg/errcodes"
)
func installPlatform(_ []byte, _ Scope) error { return unsupportedPlatformError() }
func uninstallPlatform(_ string, _ Scope) error { return unsupportedPlatformError() }
func statusPlatform(_ string) (bool, bool, error) { return false, false, unsupportedPlatformError() }
func userScopeSupportedPlatform() bool { return false }
func unsupportedPlatformError() error {
return usefulerror.NewUsefulError().
WithCode(errcodes.UnsupportedPlatform).
WithHumanError("trust store operations are not supported on this platform").
WithHelp("Use PMG's default env-var trust injection, or install the CA manually").
Wrap(errors.New("unsupported platform"))
}