warnSkippedSettings prints a log warning message about skipped settings in a SigningProfile, usually due to remote signer.
()
| 565 | // warnSkippedSettings prints a log warning message about skipped settings |
| 566 | // in a SigningProfile, usually due to remote signer. |
| 567 | func (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. |
| 585 | type Signing struct { |
no test coverage detected