mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 01:47:33 +02:00
config: fix databroker policies (#1821)
This commit is contained in:
parent
bcc8c17855
commit
84e8f6cc05
11 changed files with 42 additions and 20 deletions
|
@ -82,7 +82,7 @@ func (src *ConfigSource) rebuild(firstTime bool) {
|
|||
src.runUpdater(cfg)
|
||||
|
||||
seen := map[uint64]struct{}{}
|
||||
for _, policy := range cfg.Options.Policies {
|
||||
for _, policy := range cfg.Options.GetAllPolicies() {
|
||||
seen[policy.RouteID()] = struct{}{}
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ func (src *ConfigSource) rebuild(firstTime bool) {
|
|||
}
|
||||
|
||||
// add the additional policies here since calling `Validate` will reset them.
|
||||
cfg.Options.Policies = append(cfg.Options.Policies, additionalPolicies...)
|
||||
cfg.Options.AdditionalPolicies = append(cfg.Options.AdditionalPolicies, additionalPolicies...)
|
||||
|
||||
src.computedConfig = cfg
|
||||
if !firstTime {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue