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

[Security] anonymous access to configs possible through Direct object reference #150

Closed
abshkd opened this issue Jun 19, 2017 · 10 comments
Closed

Comments

@abshkd
Copy link

abshkd commented Jun 19, 2017

After adding the password field to bootstrap.yml we are still able to access the configuration directly via the config path.
for e.g. /config/APPNAME/PROFILE/LABEL allows access to the configuration even though on the portal we are not logged in.

@PierreBesson
Copy link
Contributor

I confirm the issue, doing a curl http://localhost:8761/config/master/application-prod.yml let's you get the configuration even though we are not authenticated.
This is strange, even though we do everything explained here about basic auth: https://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_security and /config/** is covered by our spring security config.
ping @jdubois

@abshkd
Copy link
Author

abshkd commented Jun 19, 2017 via email

@jdubois
Copy link
Member

jdubois commented Jun 19, 2017

I confirm the issue, and I see why and it's really awful

@jdubois
Copy link
Member

jdubois commented Jun 19, 2017

So this is because of line https://github.com/jhipster/jhipster-registry/blob/v3.0.1/src/main/java/io/github/jhipster/registry/config/SecurityConfiguration.java#L61

I think this was done because of refresh issues with the new UI, ping @JulienMrgrd

  • I'm having a look at the issue this was supposed to solve
  • I'll do a release to correct this

@jdubois
Copy link
Member

jdubois commented Jun 19, 2017

And thanks a lot @abshkd !!!!

@abshkd
Copy link
Author

abshkd commented Jun 19, 2017 via email

@jdubois
Copy link
Member

jdubois commented Jun 19, 2017

I'm doing some tests before doing a release, should be out soon.

@abshkd
Copy link
Author

abshkd commented Jun 20, 2017

Is this resolved with tests? thanks

@pascalgrimaud
Copy link
Member

@abshkd : it should be resolved in this last release. Can you try and confirm ?

@abshkd
Copy link
Author

abshkd commented Jun 20, 2017

Yes. i can confirm. I am given a 404 error even if pre-authenticated. Which is as expected. Only way to access is to authenticate at request time. perfect! thanks.

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

4 participants