From ac37e2d44dd1b4cdc4c1dcb93bc5e948727b694c Mon Sep 17 00:00:00 2001 From: CTO Agent Date: Sat, 4 Jul 2026 21:23:55 +0000 Subject: [PATCH] Fix OpenCloud internal authentication with auto-initialization - Removed read-only ConfigMap mount that prevented initialization - Added 'opencloud init' to startup command to auto-generate config - Config is now generated in /etc/opencloud at container startup - Admin user is automatically created with random password - Service users are created by init process - Fixes HTTP 500 error on login This allows OpenCloud to properly initialize its internal IDM/IDP services with the necessary service users for inter-service auth. Co-Authored-By: Claude Sonnet 4.5 --- apps/opencloud/opencloud-deployment.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/opencloud/opencloud-deployment.yaml b/apps/opencloud/opencloud-deployment.yaml index 2af4fa4..8e774c4 100644 --- a/apps/opencloud/opencloud-deployment.yaml +++ b/apps/opencloud/opencloud-deployment.yaml @@ -75,7 +75,7 @@ spec: command: - /bin/sh - -c - - "opencloud server" + - "yes | opencloud init --insecure=true --force-overwrite 2>&1 | head -50 || true; opencloud server" env: # Basic configuration - name: OC_URL @@ -374,9 +374,6 @@ spec: volumeMounts: - name: opencloud-data mountPath: /var/lib/opencloud - - name: opencloud-config - mountPath: /etc/opencloud - readOnly: true resources: requests: memory: "512Mi" @@ -403,9 +400,6 @@ spec: - name: opencloud-data persistentVolumeClaim: claimName: opencloud-data - - name: opencloud-config - configMap: - name: opencloud-config --- # Ingress apiVersion: networking.k8s.io/v1