mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-06 12:52:53 +02:00
config: generate cookie secret if not set in all-in-one mode (#3742)
* config: generate cookie secret if not set in all-in-one mode * fix tests * config: add warning about cookie_secret * breakup lines
This commit is contained in:
parent
2c9087f5e7
commit
9413123c0f
8 changed files with 111 additions and 17 deletions
|
@ -55,9 +55,7 @@ func GetCertificateForDomain(certificates []tls.Certificate, domain string) (*tl
|
|||
}
|
||||
}
|
||||
|
||||
log.Error(context.Background()).
|
||||
Str("domain", domain).
|
||||
Msg("cryptutil: no TLS certificate found for domain, using self-signed certificate")
|
||||
log.WarnNoTLSCertificate(domain)
|
||||
|
||||
// finally fall back to a generated, self-signed certificate
|
||||
return GenerateSelfSignedCertificate(domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue