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

POST to http://localhost:8080/refresh results in 401 Unauthorized #5

Closed
ziadloo opened this issue Feb 14, 2017 · 7 comments
Closed

Comments

@ziadloo
Copy link

ziadloo commented Feb 14, 2017

The Spring guide says that we should be able to refresh the client by sending a POST request to http://localhost:8080/refresh but doing so will result in an unauthorized 401 response.

$ curl -X POST http://localhost:8080/refresh {"timestamp":1487113045770,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/refresh"}

@gregturn
Copy link
Contributor

gregturn commented Feb 14, 2017

Possibly due to 1.5.1 locking down actuator by default. Comments @dsyer?

@dsyer
Copy link
Contributor

dsyer commented Feb 15, 2017

Yes that would be it. I guess we need management.security.enabled=false for this guide.

@Cepr0
Copy link

Cepr0 commented Mar 7, 2017

we need management.security.enabled=false for this guide.
Thanks @dsyer, that helped!

@alibaseit
Copy link

Thanks
management.security.enabled=false
solved my problem too.

@dsyer dsyer closed this as completed in ac32d42 Mar 16, 2017
@dulipchandana
Copy link

management.security.enabled=false

@mahamafzar
Copy link

management.security.enabled=false

So anyone can restart your service from your endpoint!

@robertomanfreda
Copy link

Yes that would be it. I guess we need management.security.enabled=false for this guide.

Don't do that! Anyone who guess ip and port of your microservice could take the control! For example he can see your configprops calling /actuator/configprops, or inspect the env and other stuff!

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

No branches or pull requests

8 participants