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:
Denis Mishin 2023-11-06 13:21:29 -05:00 committed by GitHub
parent ab104a643a
commit bfcc970839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 439 additions and 244 deletions

View file

@ -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) {