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

Document new authentication (including SQLite support) #3008

Closed
Tracked by #7
AlekSi opened this issue Jul 7, 2023 · 6 comments · Fixed by #4557
Closed
Tracked by #7

Document new authentication (including SQLite support) #3008

AlekSi opened this issue Jul 7, 2023 · 6 comments · Fixed by #4557
Assignees
Labels
area/auth Issues about authentication and authorization backend/sqlite Issues about SQLite backend code/feature Some user-visible feature is not implemented yet documentation Something user-visible is badly or not documented
Milestone

Comments

@AlekSi
Copy link
Member

AlekSi commented Jul 7, 2023

What should be done?

We should document our new experimentation authentication support, including setup flags.

Where?

Docs.

Definition of Done

  • Documentation updated.
@AlekSi AlekSi added code/feature Some user-visible feature is not implemented yet not ready Issues that are not ready to be worked on; PRs that should skip CI backend/sqlite Issues about SQLite backend labels Jul 7, 2023
@muety
Copy link

muety commented Jul 30, 2023

Am I right in understanding that currently there is no way to do authentication with SQLite whatsoever? That is, when creating two separate databases for two different applications, there is no way of preventing one app from accessing the other's data?

@AlekSi
Copy link
Member Author

AlekSi commented Aug 3, 2023

Correct. Currently, FerretDB does not store authentication or authorization information for any backend. For PostgreSQL, we use PostgreSQL's usernames and passwords: https://docs.ferretdb.io/security/authentication/. In SQLite, we don't even have that yet.

There are roughly two options to solve that issue. One is to use the user-auth SQLite extension mentioned in the description. Another is to do #7 and store authentication information ourselves.

@muety
Copy link

muety commented Aug 3, 2023

Second option sounds harder, but also more sensible, because would give us (a) SQLite authentication and (b) a couple more supported commands in addition. Looking forward to having this! Missing SQLite authentication is the only thing that currently keeps me from switching to Ferret for my apps.

@AlekSi AlekSi added this to the v2.0.0 milestone Oct 5, 2023
@AlekSi AlekSi removed this from the v2.0.0 milestone Jan 8, 2024
@AlekSi AlekSi added the area/auth Issues about authentication and authorization label Jan 15, 2024
@AlekSi AlekSi added this to the Next milestone Jul 4, 2024
@AlekSi
Copy link
Member Author

AlekSi commented Jul 4, 2024

v1.22 support authentication for SQLite via a new experimental flag: https://blog.ferretdb.io/new-ferretdb-v122-user-setup-feature/
What's left is community testing and documentation.

@AlekSi AlekSi changed the title Support authentication for SQLite Document new authentication (including SQLite support) Jul 4, 2024
@AlekSi AlekSi added the documentation Something user-visible is badly or not documented label Jul 4, 2024
@AlekSi AlekSi removed the not ready Issues that are not ready to be worked on; PRs that should skip CI label Jul 4, 2024
@AlekSi AlekSi self-assigned this Jul 4, 2024
@AlekSi AlekSi removed this from the Next milestone Jul 24, 2024
@AlekSi AlekSi added this to the Next milestone Aug 19, 2024
@Fashander
Copy link
Member

Fashander commented Aug 27, 2024

I'm picking this up. Mainly, we need to update the documentation for these pages:

@AlekSi AlekSi assigned Fashander and unassigned AlekSi Aug 27, 2024
AlekSi pushed a commit that referenced this issue Aug 28, 2024
@AlekSi
Copy link
Member Author

AlekSi commented Aug 28, 2024

It will be out in 1.24 later today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth Issues about authentication and authorization backend/sqlite Issues about SQLite backend code/feature Some user-visible feature is not implemented yet documentation Something user-visible is badly or not documented
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants