Skip to Content
Platform
Module Integration
Platform APIPlatform API Storage Configuration

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.providerBackendAuthentication
"" (default)S3-compatible storage. The chart leaves RHP_STORAGE_MODE unset, and the application defaults to S3-compatible storage.Username and password
s3compatibleS3-compatible storage, e.g. Google Cloud Storage, Amazon S3, MinIO, CephUsername and password
azureblobAzure Blob StorageMicrosoft Entra Workload Identity
adlsAzure Data Lake Storage Gen2Microsoft Entra Workload Identity
filesystemShared folderNone

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. Google Cloud installations use Google Cloud Storage through its S3-compatible API.

api: storage: provider: s3compatible url: "https://minio.example.com" bucket: rhp existingSecret: platform-storage
ParameterDescriptionRequiredDefault
urlS3 API endpoint, e.g. https://storage.googleapis.com or http://minio.minio.svc.cluster.local:9000. Must begin with https:// when SSL is used.Yesminio.minio.svc.cluster.local:9000
bucketBucket name. An empty value resolves to rhp in the application. On first upload the application creates the bucket when the credentials allow it.Norhp
usernameStorage username (access key).Unless existingSecret is set-
passwordStorage password (secret key).Unless existingSecret is set-
existingSecretName of an existing Kubernetes Secret holding the credentials. When set, username and password are ignored.No-
existingSecretUsernameKeyKey in existingSecret holding the username.Nousername
existingSecretPasswordKeyKey in existingSecret holding the password.Nopassword

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"
ParameterDescriptionRequiredDefault
azure.containerBlob container name. The container must already exist.Yes-
azure.endpointUrlStorage account endpoint, e.g. https://myaccount.blob.core.windows.net. A private endpoint URL can be used instead.Yes-
azure.workloadIdentityClientIdClient 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.

  1. 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
  2. Grant the managed identity the Storage Blob Data Contributor role 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}"
  3. 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.name overrides that name and is rendered with tpl. 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. With name left empty and api.name set to licensing, 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"
  4. Set api.storage.azure.workloadIdentityClientId to the client ID of the managed identity:

    az identity show \ --resource-group <identity-resource-group> \ --name <identity-name> \ --query clientId \ --output tsv

ServiceAccount

ParameterDescriptionDefault
api.serviceAccount.createCreate the ServiceAccount used by the Azure providers.true
api.serviceAccount.nameOverrides 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.