-
Notifications
You must be signed in to change notification settings - Fork 6
[Multi-tenancy] refacto the endpoint build_url to accept tenant-id #205
Copy link
Copy link
Labels
architecture improvementArchitecture refactor or improvement is neededArchitecture refactor or improvement is neededmultirepositoryThere is more repositories related to this prThere is more repositories related to this prsolveduse to identify issue that has been solved (must be linked to the solving PR)use to identify issue that has been solved (must be linked to the solving PR)technical improvementTechnical refactor or improvement is neededTechnical refactor or improvement is needed
Milestone
Metadata
Metadata
Assignees
Labels
architecture improvementArchitecture refactor or improvement is neededArchitecture refactor or improvement is neededmultirepositoryThere is more repositories related to this prThere is more repositories related to this prsolveduse to identify issue that has been solved (must be linked to the solving PR)use to identify issue that has been solved (must be linked to the solving PR)technical improvementTechnical refactor or improvement is neededTechnical refactor or improvement is needed
Use case
In a multi-tenant deployment, the Python client must propagate
tenant_idon every API call so the backend can resolve the correct tenant context consistently.Right now, the client does not propagate
tenant_idacross all endpoints, which makes tenant-scoped usage incomplete and error-prone.This is needed so that:
client-pythonare properly tenant-scopedProposed Solution
Add
tenant_idsupport and propagation to all relevant API endpoints inclient-python.Expected behavior:
tenant_idvaluetenant_idshould be forwarded on every endpoint that requires tenant contextImplementation ideas:
tenant_idas a client-level default configuration and/or per-request parameterAdditional Information
Scope:
tenant_idis missingImportant points: