Installation guide · Azure

An AKS landing zone, no stored keys.

This page installs the Helm chart into an AKS cluster where the platform team provides the services around it. The pods sign in to Azure with a workload identity, read their secrets from Key Vault and use Azure managed services for the database, the cache, the files and the models.

§ 01

Azure resources and roles

ResourceSettings Mislata needs
AKS clusterKubernetes 1.27 or later, x86-64 (amd64) nodes, OIDC issuer and workload identity enabled, the azure-keyvault-secrets-provider add-on, an internal ingress-nginx controller, and Calico or Azure network policy if networkPolicy.enabled.
User-assigned managed identityOne identity for the pods, federated with the chart’s service account.
Azure Container Registry (optional)A copy of the four images, when the cluster must not pull from ghcr.io.
Azure Database for PostgreSQL Flexible ServerPostgreSQL 16, VECTOR in azure.extensions, private access or a firewall rule for the cluster egress.
Azure Cache for RedisTLS port 6380, access-key authentication on.
Storage accountBlob Storage. The containers are created by Mislata on first use.
Key VaultAzure RBAC permission model. Holds the database password, the Redis access key and the guest sign-in signing key.
Azure AI Foundry or Azure OpenAIYour chat and embedding deployments. API keys can stay disabled.
Azure Front Door, API Management (optional)Public entry, TLS, WAF. See Front Door and API Management.
Microsoft Entra ID app registrationAs in What you prepare.
RoleScopeWhy
Key Vault Secrets UserThe Key VaultThe CSI driver reads the secrets.
Storage Blob Data ContributorThe storage accountRead and write files, create the containers.
Cognitive Services User (or Azure AI User)The Foundry or Azure OpenAI accountCall the models with an Entra token.
ReaderThe Foundry accountOnly to sync the model catalog from the Foundry deployments.
AcrPullThe container registryFor the cluster’s kubelet identity, when the images come from ACR.
Role assignments for the managed identity

§ 02

Workload identity

With the release name mislata in the namespace mislata, the chart’s service account is mislata-mislata-ai. The federated credential must name exactly that subject.

bash
az aks update -g <rg> -n <aks> --enable-oidc-issuer --enable-workload-identity
az aks enable-addons -g <rg> -n <aks> --addons azure-keyvault-secrets-provider

az identity create -g <rg> -n mislata-workload
CLIENT_ID=$(az identity show -g <rg> -n mislata-workload --query clientId -o tsv)
PRINCIPAL_ID=$(az identity show -g <rg> -n mislata-workload --query principalId -o tsv)
ISSUER=$(az aks show -g <rg> -n <aks> --query oidcIssuerProfile.issuerUrl -o tsv)

az identity federated-credential create -g <rg> --identity-name mislata-workload \
  --name mislata --issuer "$ISSUER" \
  --subject system:serviceaccount:mislata:mislata-mislata-ai \
  --audience api://AzureADTokenExchange

az role assignment create --assignee-object-id "$PRINCIPAL_ID" --assignee-principal-type ServicePrincipal \
  --role "Key Vault Secrets User" --scope <key vault resource id>
az role assignment create --assignee-object-id "$PRINCIPAL_ID" --assignee-principal-type ServicePrincipal \
  --role "Storage Blob Data Contributor" --scope <storage account resource id>
az role assignment create --assignee-object-id "$PRINCIPAL_ID" --assignee-principal-type ServicePrincipal \
  --role "Cognitive Services User" --scope <foundry account resource id>

The values file puts CLIENT_ID in serviceAccount.annotations and keyVault.clientId, and labels every pod with azure.workload.identity/use: "true". The same identity reads Key Vault, signs in to Blob Storage, lists the Foundry deployments and calls the models.

§ 03

Images

The cluster can pull from ghcr.io/victorzkov (public). To keep the images in your registry, import the four images; the import runs in Azure, so the cluster needs no egress to ghcr.io. Then set image.registry to the registry.

bash
az acr import --name <acr> --source ghcr.io/victorzkov/mislata-webapi:v0.2.64 --image mislata-webapi:v0.2.64
az acr import --name <acr> --source ghcr.io/victorzkov/mislata-frontend:v0.2.64 --image mislata-frontend:v0.2.64
az acr import --name <acr> --source ghcr.io/victorzkov/mislata-document-generator:v0.2.64 --image mislata-document-generator:v0.2.64
az acr import --name <acr> --source ghcr.io/victorzkov/mislata-document-export:v0.2.64 --image mislata-document-export:v0.2.64

# The chart, if Helm must also pull from your registry:
helm pull oci://ghcr.io/victorzkov/charts/mislata-ai --version 0.2.64
helm push mislata-ai-0.2.64.tgz oci://<acr>.azurecr.io/helm

Import all four images: without mislata-document-export, document exports stay in “processing”. Import the new tags at each upgrade.

§ 04

PostgreSQL Flexible Server

bash
az postgres flexible-server parameter set -g <rg> --server-name <pg> \
  --name azure.extensions --value VECTOR

Keep any extensions already listed in azure.extensions (comma separated). Then connect as the server admin and run:

sql
CREATE ROLE mislata LOGIN PASSWORD '<password>';
GRANT mislata TO CURRENT_USER;   -- PostgreSQL 16: needed to create a database owned by mislata
CREATE DATABASE mislata OWNER mislata;
\c mislata
CREATE EXTENSION IF NOT EXISTS vector;
ALTER SCHEMA public OWNER TO mislata;   -- managed servers (Azure): public is not owned by the database owner

Migrations run as mislata when the API starts. Flexible Server enforces TLS; the chart connects with sslMode: require. Connect directly, or through a session-mode pooler: the background workers use advisory locks. Keep the server’s automated backups and point-in-time restore on, and add the chart’s backup CronJob for a copy you control (see Backups).

§ 05

Azure Cache for Redis

Use the TLS port 6380 with externalRedis.ssl: true. The password is an access key, so access-key authentication must be on. The key must not contain , or =. Store it in Key Vault as mislata-redis-password.

§ 06

Blob Storage with the managed identity

Set storage.provider: azure and storage.azure.accountUrl: https://<account>.blob.core.windows.net, with no connection string. The pods sign in with DefaultAzureCredential through the workload identity, which needs Storage Blob Data Contributor. Read links to a file are then signed with a user delegation key and last at most 7 days. The containers mislata-documents and mislata-exports are created on first use.

§ 07

Key Vault secrets

bash
az keyvault secret set --vault-name <kv> --name mislata-db-password --value '<database password>'
az keyvault secret set --vault-name <kv> --name mislata-redis-password --value '<redis access key>'
az keyvault secret set --vault-name <kv> --name mislata-external-auth-signing-key --value "$(openssl rand -base64 48)"

With keyVault.enabled, the chart renders a SecretProviderClass and mounts it in the API, document generator, export worker and migrations pods. Each object in keyVault.objects maps a Key Vault secret to a key of one synced Kubernetes Secret, <release>-mislata-ai-keyvault (mislata-mislata-ai-keyvault for the release mislata). That Secret is loaded as environment variables, after the chart’s own Secret, so a key named like a setting (ExternalAuth__SigningKey) overrides it. externalPostgresql.existingSecret and externalRedis.existingSecret point at the same Secret for the passwords.

Add other secrets the same way, with the setting name as key, for example GraphApi__ClientSecret or Identity__EntraId__ClientSecret.

§ 08

Foundry or Azure OpenAI with Entra ID

Models are added in the application after the install. When the Foundry or Azure OpenAI account has API keys disabled, a platform administrator adds a connection in Mislata console → Models → Connections with the account endpoint as base URL and the auth mode entra-id; Mislata then sends a Microsoft Entra token of the workload identity with each call. Grant Cognitive Services User (or Azure AI User) on the account, and Reader to sync the catalog from the Foundry deployments. The token scope is https://cognitiveservices.azure.com/.default; change it with LlmCatalog__EntraScope in webapi.extraEnv only if the account needs another audience. See Models.

§ 09

The example values file

Download values-aks-landing-zone.yaml and replace the example names and IDs. With the release name mislata, the Secret names in it match.

values-aks-landing-zone.yaml
image:
  registry: myplatformacr.azurecr.io
  tag: "v0.2.64"
postgresql:
  enabled: false
externalPostgresql:
  host: my-pg.postgres.database.azure.com
  database: mislata
  username: mislata
  existingSecret: mislata-mislata-ai-keyvault   # synced from Key Vault, key "password"
  sslMode: require
redis:
  enabled: false
externalRedis:
  host: my-redis.redis.cache.windows.net
  port: 6380
  existingSecret: mislata-mislata-ai-keyvault
  existingSecretPasswordKey: redis-password
  ssl: true
storage:
  provider: azure
  azure:
    accountUrl: https://myplatformstorage.blob.core.windows.net
    containerName: mislata-documents
    exportsContainerName: mislata-exports
searxng:
  enabled: false
identity:
  provider: entraid
  entraId:
    tenantId: 00000000-0000-0000-0000-000000000002
    clientId: 00000000-0000-0000-0000-000000000003
app:
  baseUrl: https://mislata.example.com
  frontendUrl: https://mislata.example.com
serviceAccount:
  annotations:
    azure.workload.identity/client-id: 00000000-0000-0000-0000-000000000001
podLabels:
  azure.workload.identity/use: "true"
keyVault:
  enabled: true
  name: my-keyvault
  tenantId: 00000000-0000-0000-0000-000000000002
  clientId: 00000000-0000-0000-0000-000000000001
  objects:
    - name: mislata-db-password
      key: password
    - name: mislata-redis-password
      key: redis-password
    - name: mislata-external-auth-signing-key
      key: ExternalAuth__SigningKey
ingress:
  enabled: true
  className: nginx
  host: mislata.example.com
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/affinity: "cookie"
    nginx.ingress.kubernetes.io/session-cookie-name: "mislata-affinity"
    nginx.ingress.kubernetes.io/session-cookie-secure: "true"
  tls:
    enabled: false
networkPolicy:
  enabled: true
  ingressNamespaceLabel:
    kubernetes.io/metadata.name: ingress-nginx
email:
  smtp:
    host: "smtp-relay.example.internal"
    port: 25
    enableSsl: true
  fromEmail: "mislata@example.com"
  fromName: "Mislata AI"
BlockWhat it does
imagePulls the four images from your ACR, tag with the leading v. Remove registry to pull from ghcr.io.
postgresql, externalPostgresqlNo bundled database; Flexible Server with TLS, password from the Key Vault Secret (key password).
redis, externalRedisNo bundled Redis; Azure Cache for Redis on 6380 with TLS, access key from the Key Vault Secret.
storageBlob Storage through the workload identity, no key.
searxngOff: the chat’s web search tool is not available. Set enabled: true if the cluster may reach public search engines.
identityPre-configures Entra ID sign-in. The setup wizard then asks only for the bootstrap token (and the licence) and does not store credentials. Remove the block to enter the credentials in the wizard instead.
appThe public address users open (the Front Door host).
serviceAccount, podLabelsWorkload identity on every pod.
keyVaultThe SecretProviderClass and the secrets it syncs.
ingressInternal ingress-nginx, no TLS block and no HTTPS redirect: TLS ends at Front Door. Cookie affinity keeps the SignalR fallback transports on one API pod.
networkPolicyDefault deny in the namespace; only the ingress controller reaches the API and the frontend.
emailAn internal relay that authorises by source address: port 25 with STARTTLS, no credentials. The certificate is checked against the host name.
bash
helm install mislata oci://ghcr.io/victorzkov/charts/mislata-ai --version 0.2.64 \
  -n mislata --create-namespace -f values-aks-landing-zone.yaml
kubectl -n mislata get secret mislata-mislata-ai-secrets \
  -o jsonpath='{.data.Setup__BootstrapToken}' | base64 -d; echo

Internal SharePoint sites and the other Microsoft 365 connectors need more settings (graphApi.*, Identity__EntraId__ClientSecret); see Connectors.

§ 10

Front Door and API Management

  • TLS ends at Front Door. Front Door, and API Management when used, forward every path (/, /api, /hubs, /v1, /mcp) to the internal ingress.
  • An API Management HTTP API does not pass WebSocket upgrades. SignalR then falls back to server-sent events or long polling, and the frontend steps down on its own and remembers the level for the browser session. The server ends an idle long poll after 30 seconds, under Front Door’s 60-second origin timeout.
  • Each WebSocket attempt through an API Management HTTP API leaves a broken pooled connection that fails one later request with 500 BackendConnectionFailure. Add an inbound policy that answers 426 to requests with Upgrade: websocket on the portal API.
  • For WebSockets, publish /hubs as an API Management WebSocket API, or route /hubs from Front Door past API Management.
  • With more than one API replica, keep the cookie-affinity annotations of the example and Redis on: the API uses a Redis backplane for hub messages.