Actuator endpoints are forbidden

See original GitHub issue

First 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
essarecommented, Mar 30, 2021

Thank you @F43nd1r for your help! I really appreciate it.

1reaction
F43nd1rcommented, Mar 30, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found