Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hawtio Spring Boot basic authentication Jolokia Endpoint 404 Problem #3196

Open
angelsinistanbul opened this issue Jan 29, 2024 · 8 comments

Comments

@angelsinistanbul
Copy link

angelsinistanbul commented Jan 29, 2024

Hi,

Using hawtio-springboot 4.0-beta-1 version with "hawtio.authenticationEnabled=false". There was no problem with hawtio console.

I did look on chrome browser logs , http://localhost:8080/servlet-ctx-path/actuator/hawtio/jolokia/ OK

However, "hawtio.authenticationEnabled=true" with spring security I mean using basic authentication
There will be a problem with the endpoint http://localhost:8080/actuator/hawtio/jolokia/ NOK - 404
context path will be removed.

Thank you in advance for your help.

@tadayosi
Copy link
Member

Can you share your application.properties?

@angelsinistanbul
Copy link
Author

github_hawtio.json
jolokia-access.txt

Hello @tadayosi

I attached application.yml and jolokia-access below.

Best,

@tadayosi
Copy link
Member

tadayosi commented Feb 6, 2024

@angelsinistanbul Sorry for the late reply. Thanks for your config files. We'll look into the issue.

@mmelko
Copy link
Contributor

mmelko commented Feb 22, 2024

Hi @angelsinistanbul, I have tried this with the provided application.yaml by copying that to spring-security example and I worked for me with the current 4.x branch. I could login and use hawtio at http://localhost:8080/application-path/actuator/hawtio/springboot/health
Screenshot 2024-02-22 at 16 55 10

@angelsinistanbul
Copy link
Author

Hello @mmelko

Could you share your pom.xml ?
Many thanks

@mmelko
Copy link
Contributor

mmelko commented Feb 22, 2024

Well I've build locally this repo and I tried with the springboot-security quickstart so my pom was: https://github.com/hawtio/hawtio/blob/4.x/examples/springboot-security/pom.xml

@angelsinistanbul
Copy link
Author

Well, i will try and back to you all. Many thanks.

Best,

@angelsinistanbul
Copy link
Author

angelsinistanbul commented May 3, 2024

still facing 404 problem on Openshift. The application based on spring boot + using 4.0.0 hawtio spring dependency
JMX endpoint looking /jolokia endpoint. But serving in app, /context-path/actuator/jolokia.

Also, authenticated disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants