Mathieu Viau
07/21/2025, 3:22 PMAsk Inkeep
07/21/2025, 3:22 PMAsk Inkeep
07/21/2025, 3:22 PMOPAL_AUTH_PRIVATE_KEY_PASSPHRASE environment variable .
Here's how to set it up:
1. *Generate your SSH key with a passphrase* :
ssh-keygen -t rsa -b 4096 -m pem
2. *Configure the environment variables* :
export OPAL_AUTH_PRIVATE_KEY=~/opal
export OPAL_AUTH_PUBLIC_KEY=~/opal.pub
export OPAL_AUTH_PRIVATE_KEY_PASSPHRASE="your-passphrase-here"
export OPAL_AUTH_MASTER_TOKEN="RANDOM-SECRET-STRING"
opal-server run
You can provide the keys to OPAL-server via the OPAL_AUTH_PRIVATE_KEY and OPAL_AUTH_PUBLIC_KEY options, and in these vars you can either provide the path to the keys, or the actual strings of the key's content (with newlines replaced with "_") .
For policy repository SSH access, you can also use POLICY_REPO_SSH_KEY which allows you to authenticate to a private repository (2) .Ask Inkeep
07/21/2025, 3:22 PMMathieu Viau
07/21/2025, 3:23 PMAsk Inkeep
07/21/2025, 3:23 PMAsk Inkeep
07/21/2025, 3:23 PMShuvy Ankor
07/21/2025, 3:45 PM