certs: reject certs from databroker if they conflict with local (#2309)

This commit is contained in:
wasaga 2021-06-24 18:40:59 -04:00 committed by GitHub
parent b162307a96
commit 41a2622736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 225 additions and 16 deletions

View file

@ -91,7 +91,7 @@ func (src *ConfigSource) rebuild(ctx context.Context, firstTime firstTime) {
// add all the config policies to the list
for id, cfgpb := range src.dbConfigs {
cfg.Options.ApplySettings(cfgpb.Settings)
cfg.Options.ApplySettings(ctx, cfgpb.Settings)
var errCount uint64
err := cfg.Options.Validate()