Skip to content

Feature/add init secretes#85

Merged
Tim-herbie merged 5 commits into
mainfrom
feature/add-init-secretes
May 16, 2026
Merged

Feature/add init secretes#85
Tim-herbie merged 5 commits into
mainfrom
feature/add-init-secretes

Conversation

@Tim-herbie
Copy link
Copy Markdown
Owner

@Tim-herbie Tim-herbie commented May 16, 2026

Instead of running opencloud init, we can inject all secrets via ENVs from a secret to avoid the need of an additional config volume

Issue: #57

bernardgut and others added 2 commits March 16, 2026 11:27
Remove opencloud init from startup command. All secrets and UUIDs are
now injected directly as runtime ENV vars from Kubernetes Secrets.
This eliminates the need for a custom binary or config persistence.

Changes:
- Remove opencloud init from container entrypoint
- init-secrets.yaml: add 5 UUIDs alongside 11 secrets (16 keys total)
- deployment.yaml: inject 24 runtime ENV vars (secrets, UUIDs, LDAP
  bind passwords, IDM admin, service account IDs)
- README.md: update Init Secrets section

Tested with upstream opencloudeu/opencloud-rolling:latest image.
All 5 pods (opencloud, keycloak, collabora, collaboration, tika) start
and run successfully without opencloud init.

Closes: opencloud-eu/opencloud#2483
Copilot AI review requested due to automatic review settings May 16, 2026 14:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces “init secrets” for OpenCloud’s internal service credentials so that credentials can be injected deterministically via a Kubernetes Secret, and removes the runtime opencloud init step from the main container startup.

Changes:

  • Add opencloud.initSecrets.existingSecret value to allow using a pre-created Secret (otherwise auto-generate).
  • Add a new *-init Secret template that generates/persists internal credentials using lookup.
  • Inject the init-secret values into the OpenCloud Deployment via environment variables; switch probes from HTTP /health to TCP socket checks.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
charts/opencloud/values.yaml Adds configuration for selecting an existing init Secret.
charts/opencloud/templates/opencloud/init-secrets.yaml New template to create/persist internal init credentials in a Secret.
charts/opencloud/templates/opencloud/deployment.yaml Removes opencloud init startup, injects init credentials via env vars, and changes probes to TCP.
charts/opencloud/README.md Documents the new init secrets option and required keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/opencloud/templates/opencloud/deployment.yaml
Comment thread charts/opencloud/templates/opencloud/deployment.yaml
Comment thread charts/opencloud/templates/opencloud/init-secrets.yaml
Comment thread charts/opencloud/templates/opencloud/init-secrets.yaml
Comment thread charts/opencloud/README.md
@Tim-herbie Tim-herbie merged commit 4a85166 into main May 16, 2026
1 check passed
@Tim-herbie Tim-herbie deleted the feature/add-init-secretes branch May 16, 2026 15:33
This was referenced May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants