Yet another question regarding tenancy and data access across tenants #514
Replies: 2 comments 5 replies
-
I don't see how you would need access to the production data as a developer... Usually you try to isolate an issue by simulating it on your development environment. If you really need the customer's data to be able to repeat a problem, I would think - worst case - you can always restore a backup of their database on your development environment... but you don't need access to the actual running production application database. And I would strongly advice against that anyway... that's why we have different environments (DEV - TEST - PROD). A business case might arrive where you indeed need some kind of umbrella thing across all the tenants. I like to use the StackOverflow (multi-tenant app) - StackExchange (umbrella app) example. Keeping things separate will also help with cleaner and less complex code on both sides I think... and is overall easier to reason about IMO. |
Beta Was this translation helpful? Give feedback.
-
Ok, maybe that was a bad example. I won't need it as a developer, but definitely as a customer support person. I think it's wierd you write that a business case "might" arrive, because every business selling a product need to have an administrative / support service for it's application. I don't want a "StackExchange" application (I'm not entirely sure if I even know what that means), because all the administrative and support actions are based on the data from the tenants. Take analytics data across all tenants for example. How would you approach this? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, so I've seen some questions around here regarding accessing data across tenants and letting a user be associated with multiple tenants, but I feel that question has been raised in the context of a user belong to one of the customers of the company (that are selling this service). If you catch my drift.
But I want to raise the question in a different context. Shouldn't I as the DevOps / developer of my company be able to access the data accross all tenants for customer service, debugging, just general support? Shouldn't there be a "super admin" access in order to view all the tenants data (i.e. products, brands, etc..)?
Or is the idea that the Tenants-table is all that will be needed? I guess also in addition to data from Serilog which will log everything from every tenant to a logfile/server.
Or maybe it's impossible to use a new IDbContext specifically for admin purposes without the tenant/finbuckle dependency, so the global tenant filter wouldn't be applied and then some custom api endpoints for super administrators that a standalone wasm client (for example) can consume?
Am I missing something?
Anyway, really great work! Have had a lot of fun toying around with this project for a couple of days now :)
Beta Was this translation helpful? Give feedback.
All reactions