diff --git a/CHANGES.md b/CHANGES.md index b0c62dc988c..d278bf8a551 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,6 +24,7 @@ Apollo 2.4.0 * [Feature: highlight diffs for properties](https://github.com/apolloconfig/apollo/pull/5282) * [Feature: Add rate limiting function to ConsumerToken](https://github.com/apolloconfig/apollo/pull/5267) * [Feature: add JSON formatting function in apollo-portal](https://github.com/apolloconfig/apollo/pull/5287) +* [Fix: add missing url patterns for AdminServiceAuthenticationFilter](https://github.com/apolloconfig/apollo/pull/5291) ------------------ All issues and pull requests are [here](https://github.com/apolloconfig/apollo/milestone/15?closed=1) diff --git a/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/AdminServiceAutoConfiguration.java b/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/AdminServiceAutoConfiguration.java index 84453d6cf1d..1018de14824 100644 --- a/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/AdminServiceAutoConfiguration.java +++ b/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/AdminServiceAutoConfiguration.java @@ -36,12 +36,15 @@ public FilterRegistrationBean adminServiceAuth FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean<>(); filterRegistrationBean.setFilter(new AdminServiceAuthenticationFilter(bizConfig)); + filterRegistrationBean.addUrlPatterns("/apollo/audit/*"); filterRegistrationBean.addUrlPatterns("/apps/*"); filterRegistrationBean.addUrlPatterns("/appnamespaces/*"); filterRegistrationBean.addUrlPatterns("/instances/*"); filterRegistrationBean.addUrlPatterns("/items/*"); + filterRegistrationBean.addUrlPatterns("/items-search/*"); filterRegistrationBean.addUrlPatterns("/namespaces/*"); filterRegistrationBean.addUrlPatterns("/releases/*"); + filterRegistrationBean.addUrlPatterns("/server/*"); return filterRegistrationBean; }