MCPcopy Create free account
hub / github.com/cloudflare/cfssl / warnSkippedSettings

Method warnSkippedSettings

config/config.go:567–582  ·  view source on GitHub ↗

warnSkippedSettings prints a log warning message about skipped settings in a SigningProfile, usually due to remote signer.

()

Source from the content-addressed store, hash-verified

565// warnSkippedSettings prints a log warning message about skipped settings
566// in a SigningProfile, usually due to remote signer.
567func (p *Signing) warnSkippedSettings() {
568 const warningMessage = `The configuration value by "usages", "issuer_urls", "ocsp_url", "crl_url", "ca_constraint", "expiry", "backdate", "not_before", "not_after", "cert_store" and "ct_log_servers" are skipped`
569 if p == nil {
570 return
571 }
572
573 if (p.Default.RemoteName != "" || p.Default.AuthRemote.RemoteName != "") && p.Default.hasLocalConfig() {
574 log.Warning("default profile points to a remote signer: ", warningMessage)
575 }
576
577 for name, profile := range p.Profiles {
578 if (profile.RemoteName != "" || profile.AuthRemote.RemoteName != "") && profile.hasLocalConfig() {
579 log.Warningf("Profiles[%s] points to a remote signer: %s", name, warningMessage)
580 }
581 }
582}
583
584// Signing codifies the signature configuration policy for a CA.
585type Signing struct {

Callers 1

ValidMethod · 0.95

Calls 3

WarningFunction · 0.92
WarningfFunction · 0.92
hasLocalConfigMethod · 0.80

Tested by

no test coverage detected