Skip to content

Commit

Permalink
[ISSUE alibaba#10752] Fix Prometheus sd api security is not compatiab…
Browse files Browse the repository at this point in the history
…le with nacos original security configs (alibaba#11470)

* fix issue alibaba#10752

* fix issue alibaba#10752
  • Loading branch information
karsonto authored Dec 6, 2023
1 parent 01a28ee commit 327ebaf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.alibaba.nacos.prometheus.filter;

import com.alibaba.nacos.plugin.auth.constant.Constants;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -35,6 +37,7 @@
* @author vividfish
*/
@Configuration
@ConditionalOnProperty(value = Constants.Auth.NACOS_CORE_AUTH_ENABLED, havingValue = "true")
public class PrometheusAuthFilter {

@Bean
Expand Down

0 comments on commit 327ebaf

Please sign in to comment.