-
Notifications
You must be signed in to change notification settings - Fork 52
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
[Feature Request] SCRAM functions are in the internal schema #46
Comments
Hello @AlekSi -- these are utility functions that probably shouldn't even have landed on the internal schema nor the public one. At the end this is more of a wire protocol problem rather than the extension's functionality as PG provides auth already. However, we could have a formal proposal with the benefits of it vs implementing your own wire protocol auth and discuss further here, but we are still not convinced this should be public and broadly used/maintained by us for customer to do their auth. Would you mind expanding on why FerretDB needs to use these APIs, the motivation behind it and examples? FYI: @visridha |
@AlekSi were debating that this might not belong in documentdb schema itself but instead in a separate utility schema or even a separate utility extension for gateways that implement the wire protocol. We will review this still figuring out how to do public reviews. |
I would like to point out that the blog post explicitly mentions
As for whatever it should be in DocumentDB at all… We implemented all possible versions of that during v1 development. First, we relied on PostgreSQL only, but it had a limitation of supporting the |
Purpose of the feature.
FerretDB uses the following functions for authentication:
documentdb_api_internal.scram_sha256_get_salt_and_iterations
documentdb_api_internal.authenticate_with_scram_sha256
They are in the internal schema. They probably should be in the
documentdb_api
.Describe the solution you'd like
Those functions are in the non-internal schema, documented and supported.
Describe alternatives you've considered
Continue using internal schema.
Additional context
None.
The text was updated successfully, but these errors were encountered: