Proxmox API Tokens and Permission Management
Understand Proxmox API tokens, ACLs and privilege separation. Plan least-privilege access, token rotation and negative tests.
A Proxmox API token lets an automation application authenticate to the Proxmox API. Creating a token alone does not establish appropriate authorization. Plan its associated user, the operations allowed on each resource path and how it will be revoked together. Giving the application administrator access across the infrastructure merely to make it work obscures a security decision that needs review.
This guide offers operational recommendations for ACLs, token permissions and token rotation. It is not a set of commands to copy directly into production. Required permissions depend on the endpoints and version in use. When evaluating a VMRobot integration, review the product scope and require the necessary API operations and access boundaries to be verified in your own environment.
Separate authentication and authorization
Authentication identifies the user or token making a request. Authorization determines whether that identity may perform the requested operation on a resource. A connection test can therefore succeed while machine creation is denied. Read permissions may not be enough for writes.
Proxmox's official feature documentation describes access control through resource paths, subjects and roles. Document these concepts in your design: the subject is the automation identity, the resource path defines the managed scope, and the role contains the required privileges. A broad role that works is not necessarily the least-privileged role that meets the requirement.
What does token privilege separation change?
Proxmox’s official user management documentation explains that a privilege-separated token’s effective permissions are limited to the intersection of its user’s permissions and the token’s permissions. A full-privilege token uses its associated user’s permissions. Review both the token’s ACLs and the user’s scope.
In a hypothetical test, an automation user can access a particular resource pool, while the token has read-only permissions. The token being unable to modify machines may be the expected result. Identify the permission required for the operation rather than disabling privilege separation. Permission denial may indicate a configuration problem, but it can also demonstrate that the intended boundary works.
Build a permission matrix from the required operations
List the automation’s operations before copying permissions from an online example. Reading inventory, using templates, creating VMs, changing configuration, power operations and removing resources carry different risks. Determine permissions only for the operations you use. Verify endpoint-specific requirements against the API schema for your version.
| Operation group | Scope to be examined | Negative test |
|---|---|---|
| Reading inventory | Required nodes and resources | Is information outside the permitted scope hidden? |
| Setup | Template and target storage | Is provisioning on another target denied? |
| Service management | Relevant set of machines | Are changes to other services denied? |
| Removal | Confirmed service association | Is targeting the wrong machine blocked? |
The table does not recommend specific Proxmox role names. Permissions should follow business requirements. Some operations need permissions on several resources; use documentation and controlled testing together to determine the appropriate scope. Record expected failures as well as successful calls. Evidence that access boundaries work belongs in access testing.
Use separate identities for different integrations
Shared tokens make it harder to identify which automation or monitoring application changed a resource. Consider separate identities per application and environment. Keeping test credentials invalid in production can limit misconfiguration impact. Set the details according to access policy and infrastructure capacity.
If WHMCS connection and WISECP connection manage the same infrastructure, document permission boundaries and service ownership separately. Two systems managing the same machine without coordination create a consistency problem independent of token security. Separate identities help diagnosis, but application checks are still needed to maintain correct service associations.
Store token secrets securely and keep them out of logs
Store token secrets using the application’s approved secret-storage mechanism. Never put real secrets in source code, support messages or blog examples. Redact sensitive fields in configuration exports, error logs and screenshots. If an HTTP error log includes all request headers, check that credentials have not inadvertently entered the report.
Diagnostic details such as task IDs and error summaries often allow investigation without sharing secrets. If support access is needed, define its temporary scope, expiry and the person responsible for revoking it. Verify that temporary access is removed after the work. Use a recorded checklist rather than relying on memory.
Combine token restrictions with application authorization
A Proxmox token’s permission to modify a machine must not imply that every application customer may request that change. The automation application must also verify service ownership and user roles. Customer isolation is especially important when one infrastructure token manages services for many customers. Treat these as two separate control layers.
In an authorized test environment, use a second customer account to request an operation on another customer’s service and check that the application rejects it. Ideally rejection occurs before a change request reaches Proxmox. Narrow token scope does not replace application checks, and application checks do not justify unnecessary administrator permissions. Record results for both layers separately.
Plan token rotation to avoid downtime
For rotation, prepare the new token’s scope, verify required operations in testing and check that the application can use it. Then switch through a controlled process. Assign an owner and deadline for revoking the old token. Leaving both active indefinitely undermines the purpose of rotation.
After switching tokens, verify reads, controlled writes and required task monitoring as well as connectivity. Approve the scope of any production test using disposable data in advance. Prepare rollback steps if the new token fails, then review the state of both old and new tokens after rollback.
The official user management documentation also explains token expiry and revocation mechanisms. Apply them according to your organization’s policy. Revoking a token does not automatically undo work it started earlier. During an incident review, assess access status separately from running tasks and existing resources.
Record permission changes in a dated review log
When granting a token another permission, record why it is needed as well as whether it works. The record can include the requested operation, affected resource scope, approving owner and review date. Use it to track broad access granted for temporary provisioning needs so it does not remain active for years. Set review intervals through business policy.
Review associated access when staff or suppliers change. An apparently active token without an application owner does not have clear accountability. Last-used information, when available, can help diagnosis but cannot alone determine whether access is still needed. Understand operational dependencies before removing unused permissions through a controlled change.
Make the permission record understandable to responsible staff outside the technical team. Explain which operation needs access to which scope rather than merely recording “administrator role granted.” Retain negative-test results so the next team member can understand the boundary without broadening it. Reassess whether an old permission example suits each new infrastructure environment.
How should you review authorization denials?
First verify the identity in use and the target resource. Then compare the requested operation, resource path and required permissions. Review user and token permissions separately. Before granting a general administrator role to fix the error, identify the missing permission at the narrowest possible scope. Use a controlled lab test if the cause remains unclear.
Include successful operations, attempts outside the permitted scope and access after revocation in the test plan. Repeat these scenarios after token rotation. Record redacted identity details and outcomes, never the token secret. Assess network access boundaries with the Proxmox firewall guide too; network controls and API permissions do not replace one another.
Token management should enable required work and prevent operations outside the intended scope. Naming the role is a starting point; observing its restrictions in actual calls supplies acceptance evidence. Update this evidence after version and configuration changes so access planning remains part of operations.
Related implementation guides
Panel account and session access
Assess API permissions separately from management-panel login rights. For team roles, account recovery and session controls, see the cloud account security and passkey guide.