-
Notifications
You must be signed in to change notification settings - Fork 533
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
[INLONG-8290][Manager] Add tenant info into each query by SQL interceptor #8304
Conversation
...er-common/src/main/java/org/apache/inlong/manager/common/tenant/MultitenancyQueryFilter.java
Outdated
Show resolved
Hide resolved
...ger-dao/src/main/java/org/apache/inlong/manager/dao/interceptor/MultitenancyInterceptor.java
Outdated
Show resolved
Hide resolved
...ger-dao/src/main/java/org/apache/inlong/manager/dao/interceptor/MultitenancyInterceptor.java
Outdated
Show resolved
Hide resolved
@vernedeng Please add more design detail in the PR comment, thanks. |
The main idea to achieve multiple tenant is to check the request permission in the web fitler #8201 , and add the target tenant at SQL preparation stage by annotating those queries. The developers just focus on the business logic, all current permission-related processes will be removed. |
Prepare a Pull Request
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve?
Modifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework/code cleanup without any test coverage.
This change is already covered by existing tests, such as:
(please describe tests)
This change added tests and can be verified as follows:
(example:)
Documentation