feat: initial implementation of metabase group migration into guardian#167
feat: initial implementation of metabase group migration into guardian#167singhvikash11 wants to merge 21 commits intomainfrom
Conversation
Add permission to group Add logs
…groups created by guardian
…groups created by guardian
…etabase group as resource
| func MigrationCmd(config *Config) *cobra.Command { | ||
| cmd := &cobra.Command{ | ||
| Use: "migrate", | ||
| Short: "Guardian migration", |
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
@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
There was a problem hiding this comment.
@ravisuhag @rahmatrhd If you folks are okay with Metabase migrate for now then I can move this as sub-command to provider.
There was a problem hiding this comment.
@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
There was a problem hiding this comment.
@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
There was a problem hiding this comment.
@singhvikash11 What does acl represent in this command?
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
@ravisuhag This makes sense, we can go ahead with this command.
cc @rahmatrhd
|
@singhvikash11 @rahmatrhd Given provider import is done. Can we move this to use that contract and update the PR? |
|
@rahmatrhd @bsushmith Is there any plan to pick this up? |
fdb418b to
cb600c1
Compare
No description provided.