> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Permissions reference

> Every Azure role and identity an e6data In-VPC install on AKS uses, with each permission, its scope and why it is needed.

ReferenceApplies to: CloudPrem on Azure

This page lists every cloud role and identity an e6data In-VPC install uses, each permission it holds, the scope, and why. Your team creates all of them; e6data software never creates, changes or passes roles at runtime.

This is the single home for cloud permissions. Other pages link here instead of repeating the lists. To shrink these permissions further, see [Least privilege](https://docs.e6data.com/platform/deploy/azure-cloudprem/least-privilege.md).

## Requirements

* Every e6data workload gets cloud access through a Kubernetes service account mapped to a cloud identity: AKS Workload Identity. The cluster's OIDC issuer and Workload Identity must both be on (see [Component versions and operations](https://docs.e6data.com/platform/deploy/azure-cloudprem/component-versions-and-operations.md)).
* No e6data identity holds permission to create identities, roles or role assignments (`Microsoft.Authorization/roleAssignments/write`).
* No e6data person gets access to your cloud account or tenant.
* e6data needs no Microsoft Entra ID directory role.
* New role assignments take a few minutes to apply. A cluster started too early fails with `E6_CLUSTER_CLOUD_PERMISSION_DENIED`; start it again a few minutes later.

## Summary: who needs what

| Purpose | Azure | Required? |
| - | - | - |
| Query engines, metadata, catalog reads | Workspace identity | Yes |
| e6data console (cluster sizing, health checks) | Workspace identity (shared) | Yes |
| Copilot / Metriq | Workspace identity (shared) | Only if used |
| Adding and removing machines | Karpenter identity (only with e6data's Karpenter), or AKS's own identity with NAP | Yes, one of them |
| Nodes joining the cluster, pulling images | Kubelet identity | Yes |
| Cluster networking | AKS cluster identity | Yes (cloud-managed) |
| Load balancer | AKS cluster identity | Only if e6data creates the load balancer |
| Disks | AKS-managed | No |
| TLS with Let's Encrypt | cert-manager DNS identity | Only with Let's Encrypt |
| Running the install | Installer rights | During install only |

> [!WARNING]
>
> One workspace identity is shared by the query engines, the console, Copilot and Metriq. Any storage you grant to the workspace identity can be read by all of them, including the console.

> [!NOTE]
>
> For a cluster in another Microsoft Entra tenant, e6data issues an image pull secret. It is a registry credential for e6data's container registry, stored in your cluster.

## Azure identities and roles

Placeholders: `<RG>` is your resource group; `<NODE_RG>` is the AKS node resource group; `<NS>` and `<WS>` are the workspace namespace and name. Every federated credential uses audience `api://AzureADTokenExchange` and your cluster's OIDC issuer.

### Workspace identity (`<WS>-engine-identity`, one per workspace)

Federated credentials (5): `system:serviceaccount:<NS>:<WS>-engine`, `-console`, `-laminar`, `-copilot`, `-metriq`. Azure allows at most 20 federated credentials per identity, so one identity can serve at most 4 workspaces (see [Organization policies](https://docs.e6data.com/platform/deploy/azure-cloudprem/organization-policies.md)).

| Permission (role) | Scope | Purpose |
| - | - | - |
| Storage Blob Data Contributor | e6data storage account | Query history, results, workspace metadata. Reader is not enough |
| Storage Blob Data Reader | Each storage account with your data | Read your tables |
| Custom network reader: `Microsoft.Network/virtualNetworks/read`, `Microsoft.Network/virtualNetworks/subnets/read` | Your VNet | Optional. Health check for free IPs in the subnet. e6data's installer grants it; the install steps ([Deploy the workspace](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md)) don't, so add it if you want this check. Without it, the check shows "could not run". Read-only, and the check never blocks a cluster start |
| Custom compute reader: `Microsoft.Compute/locations/usages/read`, `Microsoft.Compute/skus/read`, `Microsoft.ResourceHealth/events/read` | Subscription | Optional. Health checks for vCPU quota, VM sizes and Azure service issues. Read-only. Safe to leave out: the checks never block a cluster start |

e6data does not use storage account keys. A workspace pod can list blobs but is denied when it tries to list storage account keys.

### AKS cluster identity (AKS's own)

| Permission (role) | Scope | Purpose |
| - | - | - |
| Network Contributor (default), or custom role with `Microsoft.Network/virtualNetworks/read`, `Microsoft.Network/virtualNetworks/subnets/read`, `Microsoft.Network/virtualNetworks/subnets/join/action` | Your VNet or AKS subnet | Place nodes, network interfaces and the load balancer in your subnet |
| Contributor | AKS node resource group | Added by AKS itself. Not an e6data role and not removable |

### Karpenter identity (`<cluster>-karpenter-identity`, only with e6data's Karpenter)

Not needed with AKS Node Auto-Provisioning (NAP) or AKS node pools. Federated credential: `system:serviceaccount:kube-system:karpenter`.

Standard install:

| Permission (role) | Scope | Purpose |
| - | - | - |
| Virtual Machine Contributor | AKS node resource group | Create, start, stop and delete engine VMs |
| Network Contributor | Your VNet | Create network interfaces in the subnet |
| Managed Identity Operator | AKS node resource group | Attach the kubelet identity to new VMs |
| Reader | Your resource group | Read the cluster's resources |

Alternative with no built-in roles (two custom roles, 24 actions in total on the node resource group):

| Permission | Scope | Purpose |
| - | - | - |
| `Microsoft.Compute/virtualMachines/read`, `/write`, `/delete`, `/start/action`, `/deallocate/action`, `/powerOff/action`, `/instanceView/read` | AKS node resource group | Manage engine VMs |
| `Microsoft.Compute/virtualMachines/extensions/read`, `/write`, `/delete` | AKS node resource group | Node bootstrap extensions |
| `Microsoft.Compute/disks/read`, `/write`, `/delete` | AKS node resource group | OS disks |
| `Microsoft.Network/networkInterfaces/read`, `/write`, `/delete`, `/join/action` | AKS node resource group | Node network interfaces |
| `Microsoft.Network/loadBalancers/read`, `Microsoft.Network/loadBalancers/backendAddressPools/join/action` | AKS node resource group | Add nodes to the cluster load balancer |
| `Microsoft.Network/networkSecurityGroups/read`, `Microsoft.Network/networkSecurityGroups/join/action` | AKS node resource group | Attach the node security group |
| `Microsoft.ManagedIdentity/userAssignedIdentities/read`, `Microsoft.ManagedIdentity/userAssignedIdentities/assign/action` | AKS node resource group | Attach the kubelet identity |
| `Microsoft.Resources/subscriptions/resourceGroups/read` | AKS node resource group | Read the resource group |
| `Microsoft.Network/virtualNetworks/read`, `Microsoft.Network/virtualNetworks/subnets/read`, `Microsoft.Network/virtualNetworks/subnets/join/action` | AKS subnet | Join new nodes to the subnet |

### Other identities

| Identity | Permission (role) | Scope | Purpose |
| - | - | - | - |
| Kubelet identity (AKS's own) | AcrPull | e6data's Azure Container Registry, or your own registry | Pull images. AcrPull on e6data's registry works only when your cluster is in the same Microsoft Entra tenant as the registry. For a cluster in another tenant, e6data issues a pull secret |
| cert-manager DNS identity (federated credential `system:serviceaccount:cert-manager:cert-manager`) | DNS Zone Contributor (Private DNS Zone Contributor for a private DNS zone) | Your DNS zone | Only for Let's Encrypt certificates |
| ACI connector identity | Network Contributor | The ACI subnet | Only with AKS virtual nodes |

### Key Vault permissions (only with your own keys or certificates)

No e6data identity needs any Key Vault permission. The workspace identity keeps only its Storage Blob Data roles. Each Key Vault grant goes to an Azure-side identity:

| Use | Identity | Permission (role) | Scope |
| - | - | - | - |
| Your key on the e6data storage account | The storage account's own managed identity | Key Vault Crypto Service Encryption User | The key |
| Volumes from a StorageClass that names your Disk Encryption Set | AKS cluster identity | Reader | The Disk Encryption Set. Grant it before the first volume is created |
| Endpoint TLS certificate from Key Vault | Identity of the AKS Key Vault Secrets Provider add-on | Read (get) on the certificate's secret | Your key vault |

Details and steps: [Encryption at rest](https://docs.e6data.com/platform/trust/encryption-at-rest.md).

### Installer (person or pipeline running the install)

| Setup | Rights needed | Scope |
| - | - | - |
| e6data's standard guide creates identities and role assignments | Owner, or Contributor plus User Access Administrator. Contributor alone can't create role assignments. For the Kubernetes steps on a cluster with local accounts off, also Azure Kubernetes Service RBAC Cluster Admin on the cluster (Entra sign-in with kubelogin): Owner and Contributor give no Kubernetes data access under Azure RBAC | Subscription, plus the AKS cluster |
| Your identity team pre-creates every identity and role assignment (see [Organization policies](https://docs.e6data.com/platform/deploy/azure-cloudprem/organization-policies.md)) | Azure Kubernetes Service RBAC Cluster Admin on the cluster. No Owner, no User Access Administrator | AKS cluster |
| Creating the DNS record for the query endpoint | DNS Zone Contributor (Private DNS Zone Contributor for a private DNS zone, as in the Standard and Isolated architectures) | Your DNS zone |
| Registering resource providers (once), derived from what the install creates: `Microsoft.ContainerService`, `Microsoft.Network`, `Microsoft.Storage`, `Microsoft.ManagedIdentity`, `Microsoft.Compute`, `Microsoft.ContainerRegistry`, `Microsoft.OperationalInsights`, `Microsoft.ResourceHealth` (health check), and `Microsoft.ContainerInstance` (only with virtual nodes) | Contributor | Subscription |

### What e6data grants on its side

* AcrPull on e6data's registry for your AKS kubelet identity (same Microsoft Entra tenant only), or a pull secret (any tenant).

## Preflight check

Read-only:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
for p in <workspace-principal-id> <cluster-principal-id> <karpenter-principal-id>; do
  az role assignment list --assignee $p --all --include-inherited -o table
done
az identity federated-credential list -g <RG> --identity-name <WS>-engine-identity -o table
```

Expected: the roles and scopes in the tables above, and 5 federated credentials. Fix: add the missing assignment or credential.

## Verify

1. Resume a cluster from the e6data console. It reaches **Running**.
2. Run a query in the SQL Editor on your data. It succeeds.
3. Open **Query History** and select refresh. The query is listed.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Cluster start fails with `E6_CLUSTER_CLOUD_PERMISSION_DENIED` | A new role assignment hasn't applied yet | Wait a few minutes, then start the cluster again |
| Catalog refresh or query fails with access denied | Workspace identity lacks read on the storage account or container | Add Storage Blob Data Reader for that storage account or container |
| Query history, results or saved sheets go missing | Workspace identity can't write the e6data storage account | Check its Storage Blob Data Contributor assignment |
| Health check shows "could not run" for subnet free IPs | Workspace identity has no read access on the VNet | Optional: assign the custom network reader role on your VNet (see above). The check never blocks a cluster start |

## Limitations

* Container-scoped roles (instead of storage-account scope): the metadata service runs with Storage Blob Data Contributor on its own container, and Storage Blob Data Reader on one lake container can read files over a private endpoint. Storage-account scope, as in the tables above, is the standard setup.

## See also

* [Least privilege](https://docs.e6data.com/platform/deploy/azure-cloudprem/least-privilege.md)
* [Organization policies](https://docs.e6data.com/platform/deploy/azure-cloudprem/organization-policies.md)
* [Kubernetes permissions](https://docs.e6data.com/platform/deploy/azure-cloudprem/kubernetes-permissions.md)
* [What e6data can access](https://docs.e6data.com/platform/trust/what-e6data-can-access.md)
* [Encryption at rest](https://docs.e6data.com/platform/trust/encryption-at-rest.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.