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

feat: initial implementation of metabase group migration into guardian #167

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

singhvikash11
Copy link
Member

No description provided.

@singhvikash11 singhvikash11 marked this pull request as draft May 19, 2022 11:45
func MigrationCmd(config *Config) *cobra.Command {
cmd := &cobra.Command{
Use: "migrate",
Short: "Guardian migration",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rahmatrhd @singhvikash11 I think we need to think of a better approach than attaching it on migrate. One possible suggestion could be to call it import and scope it with the provider itself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravisuhag this is a good idea, we need to implement migrate for bigquery provider and other providers too. Then we could expose it as a sub-command on the provider

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravisuhag @rahmatrhd If you folks are okay with Metabase migrate for now then I can move this as sub-command to provider.

Copy link
Member

@ravisuhag ravisuhag May 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singhvikash11 What do you mean okay with metabase provider?

Also, i would recommend checking out https://github.com/GoogleCloudPlatform/terraformer for some inspiration on how command could look like.

guardian provider import <provide-name> -r <resources>

what do you guys think? cc @rahmatrhd

Copy link
Member Author

@singhvikash11 singhvikash11 Jun 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravisuhag we already have the command guardian provider create command to register the resources with guardian. Let's use the following command as suggested by you to import ACL of existing resources from a source system:

guardian provider import <provide-name> acl
guardian provider import <provide-name> acl -r <resources>

what do you guys think? cc @rahmatrhd

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singhvikash11 What does acl represent in this command?

Copy link
Member Author

@singhvikash11 singhvikash11 Jun 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravisuhag Bigquery, Metabase resources like table, dataset, collection etc are defined by a set of permissions associated with a set of people, groups, service-account in the source system. By importing access-control of these resources into our system we'll replicate it in the model of appeal-resource in Guardian.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singhvikash11 Yes, understood. But what i meant is that we don't need acl word in the comamnd right? the command can plainly be guardian provider import <provide-name> -r <resources> where -r flag will take the kind of resources you want to import from that provider.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravisuhag This makes sense, we can go ahead with this command.

cc @rahmatrhd

@ravisuhag ravisuhag linked an issue Jul 8, 2022 that may be closed by this pull request
@ravisuhag
Copy link
Member

ravisuhag commented Nov 12, 2022

@singhvikash11 @rahmatrhd Given provider import is done. Can we move this to use that contract and update the PR?

@ravisuhag
Copy link
Member

@rahmatrhd @bsushmith Is there any plan to pick this up?

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

Successfully merging this pull request may close these issues.

Import pre-existing access from providers
3 participants