MCPcopy Create free account
hub / github.com/PostHog/duckgres / validateControlPlaneSecurity

Function validateControlPlaneSecurity

controlplane/validation.go:32–40  ·  view source on GitHub ↗
(cfg ControlPlaneConfig)

Source from the content-addressed store, hash-verified

30}
31
32func validateControlPlaneSecurity(cfg ControlPlaneConfig) error {
33 if err := validateTLSFiles(cfg.TLSCertFile, cfg.TLSKeyFile); err != nil {
34 return err
35 }
36 if err := validateUsers(cfg.Users); err != nil {
37 return err
38 }
39 return nil
40}
41
42func validateWorkerBackendConfig(cfg ControlPlaneConfig) error {
43 if cfg.WorkerBackend == "remote" && strings.TrimSpace(cfg.ConfigStoreConn) == "" {

Callers 2

RunControlPlaneFunction · 0.85

Calls 2

validateTLSFilesFunction · 0.85
validateUsersFunction · 0.85

Tested by 1