mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-09 23:27:43 +02:00
databroker: build config concurrently, option to bypass validation (#4655)
* validation: option to bypass * concurrently build config * add regex_priority_order and route sorting * rm mutex
This commit is contained in:
parent
ab104a643a
commit
bfcc970839
9 changed files with 439 additions and 244 deletions
|
@ -34,6 +34,10 @@ func (c *CertificatesIndex) Add(cert *x509.Certificate) {
|
|||
|
||||
// OverlapsWithExistingCertificate returns true if the certificate overlaps with an existing certificate.
|
||||
func (c *CertificatesIndex) OverlapsWithExistingCertificate(cert *x509.Certificate) (bool, string) {
|
||||
if c == nil {
|
||||
return false, ""
|
||||
}
|
||||
|
||||
usage := getCertUsage(cert)
|
||||
for _, name := range cert.DNSNames {
|
||||
if c.match(name, usage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue