-
Notifications
You must be signed in to change notification settings - Fork 51
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
Multi-tenancy #288
Labels
Comments
This was referenced Sep 23, 2022
joepio
added a commit
that referenced
this issue
Sep 28, 2022
joepio
added a commit
that referenced
this issue
Sep 30, 2022
joepio
added a commit
that referenced
this issue
Oct 11, 2022
joepio
added a commit
that referenced
this issue
Oct 12, 2022
joepio
added a commit
that referenced
this issue
Oct 12, 2022
joepio
added a commit
that referenced
this issue
Oct 13, 2022
joepio
added a commit
that referenced
this issue
Nov 2, 2022
joepio
added a commit
that referenced
this issue
Nov 9, 2022
joepio
added a commit
that referenced
this issue
Dec 16, 2022
joepio
added a commit
that referenced
this issue
Jan 23, 2023
joepio
added a commit
that referenced
this issue
Jan 24, 2023
joepio
added a commit
that referenced
this issue
Feb 5, 2023
joepio
added a commit
that referenced
this issue
Feb 25, 2023
joepio
added a commit
that referenced
this issue
Feb 28, 2023
joepio
added a commit
that referenced
this issue
Mar 11, 2023
joepio
added a commit
that referenced
this issue
Mar 30, 2023
joepio
added a commit
that referenced
this issue
Jul 31, 2023
joepio
added a commit
that referenced
this issue
Jul 23, 2024
joepio
added a commit
that referenced
this issue
Jul 23, 2024
joepio
added a commit
that referenced
this issue
Oct 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's consider what it would take to give users / organisations their own store.
Relates to #481
Some considerations:
Current situation
QueryFilter should include tenant
Tenant
option toQueryFilter
objects, we solve the performance issue discussed above.Relates to adding a
parent
toQueryFilter
#295 #481 #570One
Tree
per tenantWe use a bunch of
sled
'sTree
items to store stuff on the disk. We do this for Resources and various indexes.For each request, we could determine which
tenant
is used, and pass this in following functions.In this scenario, each tenant will have their own indexes.
tenant
to the tantivy scheme, and filter there.Require different subdomain for every tenant / Drive
Advantages:
range
queries, as they start with different URLs.atomicdata.dev
Disadvantages:
Considerations
subject
. We currently useString
or&str
, but maybe we need to change this to something that allows us to easily extract the subdomain. Or maybe we can simply use some new regex function for this.Subdomains with actix
Not sure how to implement this with
actix-web
using SSL / TLS. It does not support hot-swapping SSL credentials and I don't think it supports creating subdomains at all.However, if I run
atomic-server
locally I can visitexample.localhost
, and it actually works. So There's probably some things I can do in routes to fix this.Also, there is the
Host
guard that allows me to filter by hostname. I want to do this dynamically, and find a solution for the SSL stuff. Maybe we can use a wildcard domain certificate.Update: we can use
actix_web::dev::ConnectionInfo
to get thehostname
, thus we can find a subdomain. #502Subdomains with Axum
Seems doable! Here's an example.
But that would mean I'd have to rewrite most of the server part... That's a big investment!
The text was updated successfully, but these errors were encountered: