Skip to content

Commit

Permalink
修改spring boot actuator未授权漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyx committed Sep 30, 2024
1 parent 9508e99 commit 7b615d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions waggle-dance-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions waggle-dance-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
verbose: true
port: 48869
endpoint.port: 18000
management.security.enabled: true
security.user.name: admin
security.user.password: admin
management.endpoints.web.exposure.include: health,info,metrics,prometheus

0 comments on commit 7b615d3

Please sign in to comment.