Skip to content
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

research: Nerdpack data access cross-account #26

Open
devfreddy opened this issue Feb 4, 2020 · 0 comments
Open

research: Nerdpack data access cross-account #26

devfreddy opened this issue Feb 4, 2020 · 0 comments

Comments

@devfreddy
Copy link
Contributor

The workload account dictates the permissions for which users can see that workload.

Thinking about this scenario:

A 3rd party Nerdpack is deployed to master Account 1
Account 2 & Account 3 are sub-accounts of master Account 1
Account 2 is subscribed to the Nerdpack and is able to do so because it's a sub-account of Account 1 where it is deployed
Account 3 is not subscribed to the Nerdpack

Workload 1 has a workload.accountId of 2
Workload 1 contains entities from Account 2 & Account 3

The Nerdpack queries for all entities tied to Workload 1

Presumably only entities from Account 2 are returned. In order to return entities from Account 3 as well, the Nerdpack would need to be subscribed higher up the tree on Account 1.

From a UI perspective, we should do a diff on the accounts a Nerdpack/User combo has access to with the results from scopeAccounts on the workload collection to find the difference and inform the user "Hey, this Nerdpack cannot see the entities from Accounts [1, 2, 3] for this workload" and some recommendation for resolving.

This gets tricky, and may not be something we solve for a v1, but is worth noting and being mindful of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant