IaaS Console Configuration
Configuring JSON for the IaaS Console.
This document explains the JSON configuration for the IaaS Console API Helm Chart.
Configuration Sections
1. Initial Users
To create initial users add them into the operator_users list in the inventory. This list should contain only the emails for each user. Users will be added to the default tenant as Operators.
Example:
operator_users:
- "user1@example.com"
- "user2@example.com"
2. Flavors
Defines available VM instance types.
Structure:
{
"display_name": "Human-readable name",
"ost_name": "openstack-flavor-name",
"node_type": "baremetal"
}
Fields:
- display_name: Name shown in UI
- ost_name: OpenStack flavor name
- node_type: Optional (e.g., "baremetal" for physical servers)
3. Networks
Defines available networks for VMs.
Structure:
{
"display_name": "Human-readable name",
"ost_name": "openstack-network-name"
}
Fields:
- display_name: Name shown in UI
- ost_name: OpenStack/Neutron network name
4. Hedgehog Kubeconfig
The hedgehog_kubeconfig_b64 in the inventory allows the IaaS Console to interact with the Hedgehog Kubernetes cluster. It must be provided as a base64-encoded kubeconfig containing the IP address of the hedgehog management node.
Steps to generate:
# Connect to the Hedgehog management node
ssh core@hedgehog0
# Get the public IP of eth0 (used to access the cluster from IaaS)
IP=$(ip -4 addr show eth0 | grep inet | awk '{print $2}' | cut -d/ -f1)
# Generate base64-encoded kubeconfig with public IP
kubectl config view --flatten \
| sed "s#server: https://127.0.0.1:6443#server: https://$IP:6443#" \
| base64 -w0
5. Azure Single Sign-On
The IaaS Console supports Single Sign-On via Azure Active Directory. When configured, users can log in with their Azure AD accounts.
To enable it, obtain the required credentials by following the Azure SSO Setup Guide and add them to your inventory:
# inventory.yml
all:
vars:
iaas_console:
azure_client_id: "6088c67f-45dd-4bca-b08c-c6fbcd26c40b"
azure_tenant_id: "c36da824-36c5-4f3d-ae7c-a9e880782886"
azure_redirect_uri: "https://console.example.aifactory.midokura.jp/api/auth/azure/callback"
azure_client_secret: !vault |
$ANSIBLE_VAULT;1.1;AES256
...
Variables:
azure_client_id: Application (client) ID from the Azure app registrationazure_tenant_id: Directory (tenant) ID of your Azure AD tenantazure_redirect_uri: Must match the redirect URI registered in Azure, in the formhttps://<console-hostname>/api/auth/azure/callbackazure_client_secret: Client secret generated in Azure — store vault-encrypted
Azure SSO is optional. If azure_client_id is not set (or left empty), the feature is disabled and the deployment is unaffected.
6. PostgreSQL Credentials (Disaster Recovery)
The iaas-api Helm chart generates random PostgreSQL credentials on first install. These survive normal Helm upgrades but are permanently lost if the cluster is destroyed or the Secret is deleted. Without the original credentials, existing S3 backups cannot be decrypted.
To preserve credentials across cluster recreations, extract them before destroying the cluster and add them vault-encrypted to inventory.yml:
# Run from inside the deployment container (./scripts/platform-setup.sh --shell)
kubectl get secret iaas-api-postgresql -n iaas-console -o jsonpath='{.data.password}' | base64 -d
kubectl get secret iaas-api-postgresql -n iaas-console -o jsonpath='{.data.postgres-password}' | base64 -d
kubectl get secret iaas-api-postgresql -n iaas-console -o jsonpath='{.data.replication-password}' | base64 -d
kubectl get secret iaas-api-postgresql -n iaas-console -o jsonpath='{.data.backup-key}' | base64 -d
# inventory.yml
all:
vars:
iaas_console:
postgresql_credentials:
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
...
postgres_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
...
replication_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
...
backup_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
...
On the next deployment, the original credentials will be restored and existing S3 backups will remain decryptable.
All four keys must be provided together — a partial configuration will cause the playbook to fail. When omitted, the chart generates random credentials as before.
Rotating the backup key
The backup-key encrypts all PostgreSQL backups stored in S3. In inventory.yml, this key is stored vault-encrypted. If you rotate the Ansible Vault password, the backup-key value does not change. Existing S3 backups remain decryptable. But if you rotate the backup-key value itself, the new key cannot decrypt existing S3 backups.
Do these steps to rotate the backup-key every year:
-
Get the current
backup-keyfrom the cluster secret:kubectl get secret iaas-api-postgresql -n iaas-console -o jsonpath='{.data.backup-key}' | base64 -d -
Add the old
backup-keyto the credential management system with a legacy label that includes the rotation date — for example,iaas-console-backup-key-legacy-YYYY-MM-DD. -
Record the expiry date for this legacy entry. Use the date on which all S3 backups from before the rotation pass their retention period and are deleted.
-
Update
inventory.ymlwith the newbackup-keyvalue (vault-encrypted). Then redeploy the IaaS Console. New backups will use the new key. -
Keep the legacy entry in the credential store until the expiry date. If you need to restore a backup from before the rotation, use the legacy key.
-
Once the expiry date passes and all old backups are deleted, remove the legacy entry from the credential store.
Do not delete S3 backups from before the rotation. Delete these backups only after the escrow period ends and you no longer need to restore from them.
Console URL
The IaaS Console is served at:
https://console.<cluster_name>.<cluster_public_domain>
Both values come from the inventory:
cluster_name— the short identifier for the deployment (for example,mycluster)cluster_public_domain— the public domain registered for the environment (for example,example.com)
TLS is enabled when iaas_console_tls_enabled: true is set in the inventory (the default scheme is http when omitted).
Setup Workflow
- Configure flavors and networks for tenant use
- Add initial users to
operator_usersin the inventory - Configure
hedgehog_kubeconfig_b64in the inventory - Provision IaaS Console (ansible playbook)
- Operators log in and manage users via the Operator API
- Users create VMs by selecting from available resources