Files
coder/coderd/azureidentity/roots_other.go
T
Spike Curtis 132fa87bf3 fix: only embed Azure roots on darwin (#25312)
Partially reverts #25136 for non-darwin platforms.

In general we want to avoid pinning trust roots to embedded Certs, since that limits operational flexibility. If Azure changes CAs, operators should, at most, be able to update the OS trust store to keep Coder working correctly. Embedding roots means we need to upgrade the Coder binary.

Since Coder Server on macOS is not really supported for production use, embedding only in that case to ease development and testing is OK.
2026-05-14 11:45:21 -04:00

11 lines
212 B
Go

//go:build !darwin
package azureidentity
import "crypto/x509"
// rootCertPool returns the system cert pool on non-Apple platforms.
func rootCertPool() (*x509.CertPool, error) {
return x509.SystemCertPool()
}