Platform API Storage Configuration
This document describes how to configure the storage backend of the Platform API Helm chart. The backend is selected with api.storage.provider. When the Platform API is deployed as a subchart, for example in the IAM chart, the same values sit under platform-api.api.storage.
For the storage concepts (file types, folders and URIs), see File Storage. For the equivalent application settings in server deployments, see Configuration.
Storage Providers
api.storage.provider |
Backend | Authentication |
|---|---|---|
"" (default) |
S3-compatible storage. The chart leaves RHP_STORAGE_MODE unset, and the application defaults to S3-compatible storage. |
Username and password |
s3compatible |
S3-compatible storage, e.g. Google Cloud Storage, Amazon S3, MinIO, Ceph | Username and password |
azureblob |
Azure Blob Storage | Microsoft Entra Workload Identity |
adls |
Azure Data Lake Storage Gen2 | Microsoft Entra Workload Identity |
filesystem |
Shared folder | None |
Azure Blob Storage and Azure Data Lake Storage Gen2 are available from Platform API version 1.11.6. Any other provider value fails the chart rendering.
S3-Compatible Storage
S3-compatible storage is the application default. With api.storage.provider left empty, the chart does not set RHP_STORAGE_MODE. Rcloud uses Google Cloud Storage through its S3-compatible API.
api:
storage:
provider: s3compatible
url: "https://minio.example.com"
bucket: rhp
existingSecret: platform-storage
| Parameter | Description | Required | Default |
|---|---|---|---|
url |
S3 API endpoint, e.g. https://storage.googleapis.com or http://minio.minio.svc.cluster.local:9000. Must begin with https:// when SSL is used. |
Yes | minio.minio.svc.cluster.local:9000 |
bucket |
Bucket name. An empty value resolves to rhp in the application. On first upload the application creates the bucket when the credentials allow it. |
No | rhp |
username |
Storage username (access key). | Unless existingSecret is set |
- |
password |
Storage password (secret key). | Unless existingSecret is set |
- |
existingSecret |
Name of an existing Kubernetes Secret holding the credentials. When set, username and password are ignored. |
No | - |
existingSecretUsernameKey |
Key in existingSecret holding the username. |
No | username |
existingSecretPasswordKey |
Key in existingSecret holding the password. |
No | password |
The Platform API chart does not create the Secret referenced by existingSecret. It can be created manually or synced from a Secret Manager by the External Secrets Operator. See Secret Management.
Files are stored with URIs of the form s3://<bucket>/<file type>/<file name>. URIs with the gs scheme are also accepted when downloading.
Azure Blob Storage
Azure Blob Storage authenticates with a user-assigned managed identity through Microsoft Entra Workload Identity, so no storage account key is required. The Azure prerequisites must be completed first.
api:
storage:
provider: azureblob
azure:
container: rhp
endpointUrl: "https://myaccount.blob.core.windows.net"
workloadIdentityClientId: "00000000-0000-0000-0000-000000000000"
| Parameter | Description | Required | Default |
|---|---|---|---|
azure.container |
Blob container name. The container must already exist. | Yes | - |
azure.endpointUrl |
Storage account endpoint, e.g. https://myaccount.blob.core.windows.net. A private endpoint URL can be used instead. |
Yes | - |
azure.workloadIdentityClientId |
Client ID of the user-assigned managed identity. Added to the ServiceAccount created by the chart. | When serviceAccount.create is true |
- |
Files are stored with URIs of the form wasbs://<container>@<host>/<file type>/<file name>, where <host> is the host of azure.endpointUrl. URIs with the wasb scheme are also accepted when downloading. A URI whose host differs from the configured endpoint is rejected.
Azure Data Lake Storage Gen2
Azure Data Lake Storage Gen2 uses the same identity and parameters as Azure Blob Storage. azure.container is the ADLS filesystem name and azure.endpointUrl is the DFS endpoint.
api:
storage:
provider: adls
azure:
container: rhp
endpointUrl: "https://myaccount.dfs.core.windows.net"
workloadIdentityClientId: "00000000-0000-0000-0000-000000000000"
Files are stored with URIs of the form abfss://<filesystem>@<host>/<file type>/<file name>. URIs with the abfs scheme are also accepted when downloading. As for Blob Storage, the host must match the configured endpoint.
Filesystem
In exceptional cases, files can be shared through a folder mounted into all modules.
api:
storage:
provider: filesystem
url: "/app/rhp"
url is the shared folder path and is required. Files are stored with URIs of the form file://<path>.
Azure Prerequisites
Both Azure providers require an AKS cluster with Workload Identity and a managed identity that can access the storage account. The chart does not create these resources.
-
Enable the OIDC issuer and Workload Identity on the AKS cluster:
az aks update \ --resource-group <aks-resource-group> \ --name <aks-cluster-name> \ --enable-oidc-issuer \ --enable-workload-identity -
Grant the managed identity the
Storage Blob Data Contributorrole on the storage account. The role covers both Azure Blob Storage and Azure Data Lake Storage Gen2:IDENTITY_PRINCIPAL_ID=$(az identity show \ --resource-group <identity-resource-group> \ --name <identity-name> \ --query principalId \ --output tsv) STORAGE_ACCOUNT_ID=$(az storage account show \ --resource-group <storage-resource-group> \ --name <storage-account-name> \ --query id \ --output tsv) az role assignment create \ --assignee-object-id "${IDENTITY_PRINCIPAL_ID}" \ --assignee-principal-type ServicePrincipal \ --role "Storage Blob Data Contributor" \ --scope "${STORAGE_ACCOUNT_ID}" -
Add a federated credential for the Platform API ServiceAccount. The subject has to be the name the chart resolves, not a fixed pattern.
api.serviceAccount.nameoverrides that name and is rendered withtpl. When it is empty, the name is<release>-<api.name>-platform-api.api: serviceAccount: name: "{{ .Release.Name }}-storage"With the value above, the subject ends in
<release>-storage. Withnameleft empty andapi.nameset tolicensing, it ends in<release>-licensing-platform-api.AKS_OIDC_ISSUER=$(az aks show \ --resource-group <aks-resource-group> \ --name <aks-cluster-name> \ --query oidcIssuerProfile.issuerUrl \ --output tsv) az identity federated-credential create \ --resource-group <identity-resource-group> \ --identity-name <identity-name> \ --name <federated-credential-name> \ --issuer "${AKS_OIDC_ISSUER}" \ --subject "system:serviceaccount:<namespace>:<service-account-name>" \ --audiences "api://AzureADTokenExchange" -
Set
api.storage.azure.workloadIdentityClientIdto the client ID of the managed identity:az identity show \ --resource-group <identity-resource-group> \ --name <identity-name> \ --query clientId \ --output tsv
ServiceAccount
| Parameter | Description | Default |
|---|---|---|
api.serviceAccount.create |
Create the ServiceAccount used by the Azure providers. | true |
api.serviceAccount.name |
Overrides the ServiceAccount name. Rendered with tpl, so {{ .Release.Name }} works. The federated credential subject has to use the rendered name. |
<release>-<api.name>-platform-api |
The chart sets serviceAccountName on the pod only for the Azure providers. With api.serviceAccount.create: false it uses an existing ServiceAccount of that resolved name and does not add the azure.workload.identity/client-id annotation. The existing account already has to carry the annotation, and azure.workloadIdentityClientId can be left empty.