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

Documentation is not clear about required privileges and at which level these should be applied #1356

Closed
greeneg opened this issue Mar 5, 2021 · 3 comments · Fixed by #1513
Labels
enhancement Type: Enhancement

Comments

@greeneg
Copy link

greeneg commented Mar 5, 2021

Description

Our environment uses a least-privilege environment. When we provision, we get NoPermission errors when it tries to provision:

NoPermission: RESOURCE (vm-3962:2000), ACTION (queryAssociatedProfile): RESOURCE (vm-3962), ACTION (PolicyIDByVirtualDisk)

Current privileges:

  • Datastore
    • Allocate space
    • Browse datastore
    • Low level file operations
    • Remove file
    • Update virtual machine files
    • Update virtual machine metadata
  • Folder (all)
    • Create folder
    • Delete folder
    • Move folder
    • Rename folder
  • Network
    • Assign network
  • Resource
    • Apply recommendation
    • Assign virtual machine to resource pool
  • Virtual Machine
    • Configuration (all) - for now
    • Guest Operations (all) - for now
    • Interaction (all)
    • Inventory (all)
    • Provisioning (all)

Looking for more thorough documentation on privileges required and what segments of the vCenter the privileges should be assigned under.

@greeneg greeneg added the enhancement Type: Enhancement label Mar 5, 2021
@tenthirtyam
Copy link
Collaborator

tenthirtyam commented Nov 4, 2021

Hi @greeneg -

Are you looking for single-set documentation of privileges or per resource / data source?

Recommended: type/documentation , not type/enhancement

Ryan

@bhadrim
Copy link

bhadrim commented Nov 17, 2021

@tenthirtyam Thank you for looking into this. It would be nice to have a table in a single page as documented in Required Privileges for Common Tasks table in this page

Any documentation on this is welcome as we have customers (who are very security conscious) who argue that they can create VMs on vCenter directly without certain privileges and why additional privileges are required while using Terraform providers. If we have a definitive documentation on this it would help us.

appilon pushed a commit that referenced this issue Jan 19, 2022
Updates `virtual_machine.html.markdown`:
- Updated for content accuracy.
- Updated all examples to be more readable and complete.
- Included continuity between examples.
- Addressed concerns mentioned in #1425, #1414, and #1356.
- Added some clarify based on issues #1435 and #1406 re: `scsi_type`

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants