Maxime B.
10/01/2025, 1:23 PMAsk Inkeep
10/01/2025, 1:23 PMAsk Inkeep
10/01/2025, 1:23 PMOPAL_POLICY_REPO_SSH_KEY environment variable (1) (2)
2. *Public repositories* - No authentication needed (3)
The documentation shows that for private repositories, SSH keys are the standard approach. The SSH private key content is configured via the OPAL_POLICY_REPO_SSH_KEY environment variable (1) (2) .
For the Helm chart specifically, the configuration would be set through the server.extraEnv field (4) , which allows passing extra configuration to the OPAL server including authentication credentials.
Unfortunately, the documentation doesn't show support for:
• Using Kubernetes serviceAccounts for Git authentication
• Mounting existing repositories as volumes
• Alternative authentication methods beyond SSH keys for private repos
*Potential Workarounds:*
1. *Use Kubernetes Secrets*: Instead of hardcoding values in YAML, you could store the SSH key in a Kubernetes Secret and reference it in your Helm values
2. *External Secrets Operator*: Consider using tools like External Secrets Operator to sync secrets from external secret management systems
3. *Public repository with webhooks*: If security permits, using a public repository with webhook-based updates for real-time synchronization (3) (5)
The documentation indicates that OPAL is designed to track Git repositories by cloning them rather than using pre-existing mounted volumes (3) .
Would you like guidance on setting up SSH keys with Kubernetes Secrets to avoid hardcoding credentials?Ask Inkeep
10/01/2025, 1:23 PMThomas
10/01/2025, 1:38 PMMaxime B.
10/01/2025, 1:47 PMMaxime B.
10/01/2025, 1:52 PMAsk Inkeep
10/01/2025, 1:52 PMAsk Inkeep
10/01/2025, 1:52 PMAsk Inkeep
10/01/2025, 1:52 PMMaxime B.
10/02/2025, 8:32 AMThomas
10/02/2025, 12:31 PM