diff options
author | Morten Tokle <mortent@verizonmedia.com> | 2021-02-18 08:13:39 +0100 |
---|---|---|
committer | Morten Tokle <mortent@verizonmedia.com> | 2021-02-18 08:13:39 +0100 |
commit | ea0e765980a4bda89986b1ae8a8e486f34285ac2 (patch) | |
tree | 9bf87a4ad96f35e9a545293375cff0e6aaef985d /config-model | |
parent | d3d3e578041a077604afeef617fe42e66730ff26 (diff) |
Update config
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilter.java (renamed from config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilterConfigProducer.java) | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilterConfigProducer.java b/config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilter.java index cbba2ed3022..5d755d89fab 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilterConfigProducer.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/http/BlockFeedGlobalEndpointsFilter.java @@ -20,12 +20,15 @@ import static com.yahoo.jdisc.http.filter.security.rule.RuleBasedFilterConfig.Ru import static com.yahoo.jdisc.http.filter.security.rule.RuleBasedFilterConfig.Rule.Methods.Enum.POST; import static com.yahoo.jdisc.http.filter.security.rule.RuleBasedFilterConfig.Rule.Methods.Enum.PUT; -public class BlockFeedGlobalEndpointsFilterConfigProducer extends Filter implements RuleBasedFilterConfig.Producer { +/** + * @author mortent + */ +public class BlockFeedGlobalEndpointsFilter extends Filter implements RuleBasedFilterConfig.Producer { private final Set<ContainerEndpoint> endpoints; private final boolean dryRun; - public BlockFeedGlobalEndpointsFilterConfigProducer(Set<ContainerEndpoint> endpoints, boolean dryRun) { + public BlockFeedGlobalEndpointsFilter(Set<ContainerEndpoint> endpoints, boolean dryRun) { super(createFilterComponentModel()); this.endpoints = Set.copyOf(endpoints); this.dryRun = dryRun; @@ -38,8 +41,8 @@ public class BlockFeedGlobalEndpointsFilterConfigProducer extends Filter impleme .collect(Collectors.toSet()); RuleBasedFilterConfig.Rule.Builder rule = new RuleBasedFilterConfig.Rule.Builder() .hostNames(hostNames) - .pathExpressions("/feed") .pathExpressions("/reserved-for-internal-use/feedapi") + .pathExpressions("/document/v1/{*}") .methods(List.of(PUT, POST, DELETE)) .action(BLOCK) .name("block-feed-global-endpoints") |