-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Multitenancy Extension #27942
Comments
Interesting. @FroMage Hi Steph, can it be of interest to Renarde as well ? |
I'd have a use case for this |
Also related to eclipse/microprofile-config#729 |
Somewhat related #11861 |
Hey @gastaldi, are you OK with having this possible Quarkiverse extension enabled ? |
@sberyozkin that looks really cool, I wonder if it shouldn't be a core feature or be a core extension, given that it can be useful to other extensions. WDYT @gsmet ? |
Just wanted to check back in on this I think multi-tenancy ought to be a core, optional feature of Quarkus tbh. It's a critical feature for some applications, who have their entire domain & design based around it (my org's app is one case). The author's code has some testing stuff in it (like a demo homepage etc) This touches a lot of stuff I haven't contributed to before, like core |
I am willing to contribute further in any capacity if desired. I concur that it would be beneficial if multitenancy be a core feature for security and extensibility purposes. Other extensions could add multitenancy support using a unified framework instead of individual patchwork approaches. Perhaps there could a build time flag like The tenant custom CDI scope is nice syntactic sugar but it wouldn't necessarily need to be a core feature. There could be other alternatives like a @Tenant qualifier annotation on a @requestScope or @ConfigProperty injection or even a utility method to retrieve the tenant information from the Vert.X RoutingContext where the tenant resolution actually occurs. |
Sorry for a delay, I missed it all, I'm just not sure it is a generic kind of feature, we have a dedicate multi-tenancy support in Aaron mentions OIDC multi-tenant compatibility, so it means it is also OIDC centric. I'm just not quite sure it is a core type of feature |
Description
A prototype is available here: quarkus-multitenancy
Quarkus already has some multitenancy support via the OIDC extension. This extension provides high level multitenancy support that other Quarkus extensions or web-based applications can utilize to tailor individual application tenant security and settings.
Key features:
Tenant Resolution - Identification based on subdomain, i.e. (
tenant1.acme.com
) or base path, i.e. (acme.com/tenant1
).Tenant Routing - Optional automatic Vert.x internal rerouting of requests from tenant paths to root paths, ie.
/tenant1/
->/
or/tenant1/graphql
->/graphql
Tenant Configuration Loading - lazy load application specific tenant settings that are cached and then made available on every request as Vert.x RoutingContext data.
Custom CDI Tenant Scope - Inject tenant configuration properties per request
Quarkus OIDC TenantConfigResolver Compatability - Support per tenant OIDC configurations.
Repository name
quarkus-multitenancy
Short description
Web application Multitenancy support with tenant resolution and tenant CDI scope
Repository Homepage URL
https://github.com/aaronanderson/quarkus-multitenancy
Repository Topics
...
Team Members
GitHub Applications?
Additional context
No response
The text was updated successfully, but these errors were encountered: