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

Adding admin console auth #836

Merged
merged 16 commits into from
Oct 13, 2024
Merged

Adding admin console auth #836

merged 16 commits into from
Oct 13, 2024

Conversation

mieciu
Copy link
Member

@mieciu mieciu commented Oct 3, 2024

Adding admin console auth. This might seem really funny at glance with the whole empty NewElasticsearchAuthProvider() which is essentially used only to add two routes, but in the future adding any oAuth provider should be trivial.

In fact, I was able to create Google oAuth app and log in using my credentials.

For now however, we have a nice login screen asking for our Elasticsearch credentials. The whole logic is really in HandleElasticsearchLogin.

At this moment, if Elasticsearch cluster allows unauthenticated access, Quesma disables admin console auth.

image (20)

Simple ElasticsearchAuth
@mieciu mieciu marked this pull request as ready for review October 9, 2024 14:07
@mieciu mieciu requested a review from a team as a code owner October 9, 2024 14:07
quesma/quesma/ui/console_routes.go Outdated Show resolved Hide resolved
quesma/quesma/ui/login.go Show resolved Hide resolved
quesma/quesma/ui/login.go Show resolved Hide resolved
@jakozaur
Copy link
Contributor

At this moment, if Elasticsearch cluster allows unauthenticated access, Quesma disables admin console auth.
Not sure, currently unauthenticated access is useful for dev or evaluation mode, maybe we should keep it that way.

@mieciu mieciu requested a review from nablaone October 11, 2024 12:14
@mieciu mieciu enabled auto-merge October 11, 2024 13:12
@mieciu mieciu added this pull request to the merge queue Oct 13, 2024
Merged via the queue into main with commit 0b117b5 Oct 13, 2024
5 checks passed
@mieciu mieciu deleted the console-auth branch October 13, 2024 14:32
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

Successfully merging this pull request may close these issues.

3 participants