Actuator endpoints are forbidden
See original GitHub issueFirst I’d like to thank the developers for this awesome project.
I’m using Acrarium’s docker image f43nd1r/acrarium:latest
in Kubernetes and I passed Actuator’s properties as Environment variable to enable it, however when I visit /actuator/health
I get HTTP Status 403 – Forbidden
This is how I passed actuator properties to Acrarium container:
containers:
- name: acrarium-container
image: f43nd1r/acrarium:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: SPRING_APPLICATION_JSON
value: '{ "management": { "endpoints": { "enabled-by-default": true }, "endpoint": { "health": { "show-details": "always", "probes": { "enabled": true } } }, "health": { "livenessState": { "enabled": true }, "readinessState": { "enabled": true } } } }'
please permit actuator endpoints in your security configuration so we can profit from Actuator. Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
WhyI am Getting 403 Forbidden error for actuator /refresh ...
I notice that Spring Boot 2 cloud config dont need to be "hooked to /refresh endpoint" after commit (or other events), because the...
Read more >How to Enable All Endpoints in Spring Boot Actuator - Baeldung
In this tutorial, we're going to learn how to enable all the endpoints in the Spring Boot Actuator. We'll start with the necessary...
Read more >codecentric/spring-boot-admin - Gitter
However, I am unable to access the actuator endpoints as it is showing a 403 forbidden access. the sba user configured on the...
Read more >Production-ready Features - Spring
This means that the actuator endpoints that require a POST (shutdown and loggers endpoints), a PUT , or a DELETE get a 403...
Read more >Trying to secure actuator health endpoint giving 403 ...
Coding example for the question Trying to secure actuator health endpoint giving 403 Forbidden error-Springboot.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @F43nd1r for your help! I really appreciate it.
I have no experience with Kubernetes, but I’ll redirect you to a hopefully helpful stackoverflow post: https://stackoverflow.com/questions/33484942/how-to-use-basic-authentication-in-a-http-liveness-probe-in-kubernetes