Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

#689 Fixing h2 console with Spring security #693

Closed
wants to merge 1 commit into from

Conversation

jdiazgon
Copy link

@jdiazgon jdiazgon commented Oct 4, 2018

This pull requests addresses #689.

When enabling spring-security, the H2 database console will be blocked with 403 error, making it impossible to use it. This Pull Request provides a way to fix this issue.

Unfortunately, the drawback is that for using the H2 console you need to disable csrf authentication. That is why I decided to comment those lines, so that the user decides when to enable the console.

@hohwille
Copy link
Member

hohwille commented Oct 8, 2018

@jdiazgon thank you so much for your feedback and investigation.
Disabling security features for the sake of accessing some h2 feature is somewhat odd however. We IMHO need at least to find a way how to configure these "disabling" only for the h2 URLs. Still I do not like such tweaks in productive code. Great that you just added it as comment. However, there is a high risk that people using it may accidentally commit such change and break the security. Therefore we still need to find a safer and more elegant way.
Anyhow, thank you very much as you help us to guide the way to the "perfect solution".

@jdiazgon jdiazgon closed this Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants