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

Add access control calls #329

Merged
merged 21 commits into from
Aug 28, 2020
Merged

Conversation

dataclouder
Copy link
Contributor

Introduce access control management for vApps and Catalogs

  • Added methods Client.GetAccessControl, Client.SetAccessControl
  • Added methods VApp.GetAccessControl, VApp.SetAccessControl, VApp.RemoveAccessControl, VApp.IsShared
  • Added methods AdminCatalog.GetAccessControl, AdminCatalog.SetAccessControl, AdminCatalog.RemoveAccessControl, AdminCatalog.IsShared
  • Added methods Catalog.GetAccessControl, Catalog.SetAccessControl, Catalog.RemoveAccessControl, Catalog.IsShared
  • Added methods Vdc.GetVappAccessControl, AdminOrg.GetCatalogAccessControl, Org.GetCatalogAccessControl
  • Added methods Vdc.QueryVappList, Vdc.GetVappList, AdminVdc.GetVappList, client.GetQueryType
  • Update VM query record (it was missing several fields)
  • Added VM and vApp tp search query engine

Giuseppe Maxia added 7 commits July 17, 2020 12:32
* Added methods Client.GetAccessControl, Client.SetAccessControl
* Added methods VApp.GetAccessControl, VApp.SetAccessControl, VApp.RemoveAccessControl, VApp.IsShared
* Added methods AdminCatalog.GetAccessControl, AdminCatalog.SetAccessControl, AdminCatalog.RemoveAccessControl, AdminCatalog.IsShared
* Added methods Catalog.GetAccessControl, Catalog.SetAccessControl, Catalog.RemoveAccessControl, Catalog.IsShared
* Added methods Vdc.GetVappControlAccess, AdminOrg.GetCatalogControlAccess, Org.GetCatalogControlAccess
@dataclouder dataclouder marked this pull request as ready for review August 16, 2020 18:14
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

From my perspective, a very clean PR. Thanks! Just a few remarks. Hopefully, others will find more :)

types/v56/types.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Pass one. Looks good but I need to play with it. This one contains things I noticed while reading it through.

govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control_catalog_test.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control_catalog_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

Nice work!

govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
govcd/access_control.go Show resolved Hide resolved
govcd/access_control.go Show resolved Hide resolved
types/v56/types.go Outdated Show resolved Hide resolved
@@ -2,6 +2,13 @@

* Improved testing tags isolation [#320](https://github.com/vmware/go-vcloud-director/pull/320)
* Added command `make tagverify` to check tags isolation tests [#320](https://github.com/vmware/go-vcloud-director/pull/320)
* Added methods `Client.GetAccessControl`, `Client.SetAccessControl`[#329](https://github.com/vmware/go-vcloud-director/pull/329)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe worth adding a brief mention about useTenantContextfeature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

Just a few possible improvements left. Overall LGTM

govcd/admincatalog.go Outdated Show resolved Hide resolved
govcd/catalog.go Show resolved Hide resolved
govcd/catalog.go Outdated Show resolved Hide resolved
govcd/vapp.go Show resolved Hide resolved
@dataclouder dataclouder merged commit 4133f6a into vmware:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants