Good morning, anyone got any luck with setting up ...
# opal
m
Good morning, anyone got any luck with setting up OPAL server with git ssh with a key that has a passphrase?
a
Hi @Mathieu Viau, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
Yes, OPAL Server supports SSH keys with passphrases (1) . You need to provide the passphrase via the
OPAL_AUTH_PRIVATE_KEY_PASSPHRASE
environment variable . Here's how to set it up: 1. ​*Generate your SSH key with a passphrase*​ :
Copy code
ssh-keygen -t rsa -b 4096 -m pem
2. ​*Configure the environment variables*​ :
Copy code
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) .
To learn more, see the sources I considered: [[1] Running the Server and Client in Secure Mode](https://docs.opal.ac/getting-started/running-opal/as-python-package/secure-mode-setup) [[2] Setting up the OPAL Server](https://docs.opal.ac/getting-started/running-opal/as-python-package/opal-server-setup)
m
Thanks you @Ask Inkeep, I will git it a try 🙂
💪 1
a
Thanks for tagging me @Mathieu Viau. I'll look through relevant sources and get back to you shortly.
You're welcome! Good luck with the setup. If you run into any issues, feel free to ask. The documentation should have everything you need to get SSH keys with passphrases working properly with OPAL Server (1) (2) .
To learn more, see the sources I considered: [[1] Running the Server and Client in Secure Mode](https://docs.opal.ac/getting-started/running-opal/as-python-package/secure-mode-setup) [[2] Configuring the Security Parameters](https://docs.opal.ac/getting-started/running-opal/run-opal-server/security-parameters)
s
Hi, @Mathieu Viau if you need any more help, let us know.