mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-18 17:18:16 +02:00
validation: option to bypass
This commit is contained in:
parent
6511440c2f
commit
63d4c8fbf9
3 changed files with 16 additions and 3 deletions
|
@ -101,9 +101,12 @@ func (src *ConfigSource) rebuild(ctx context.Context, firstTime firstTime) {
|
|||
ids := maps.Keys(src.dbConfigs)
|
||||
sort.Strings(ids)
|
||||
|
||||
certsIndex := cryptutil.NewCertificatesIndex()
|
||||
for _, cert := range cfg.Options.GetX509Certificates() {
|
||||
certsIndex.Add(cert)
|
||||
var certsIndex *cryptutil.CertificatesIndex
|
||||
if !cfg.Options.DisableValidation {
|
||||
certsIndex = cryptutil.NewCertificatesIndex()
|
||||
for _, cert := range cfg.Options.GetX509Certificates() {
|
||||
certsIndex.Add(cert)
|
||||
}
|
||||
}
|
||||
|
||||
// add all the config policies to the list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue