Hello everyone,
I hope you’re doing well. I wanted to share some progress I’ve made with our Jupyterhub setup, particularly regarding LDAP authentication. Users with access can now log in and initiate container instances successfully.
However, I’m currently facing a challenge as I collaborate with my team: we need a secure way to share secrets and API keys within these containers. While researching solutions, I came across HashiCorp’s Vault, a tool that centralizes and dynamically manages secrets. It seems like a promising solution for our needs.
My goal is to set up the Vault client inside the spawned container using LDAP user credentials, like this:
# Initialize the HVAC client
client = hvac.Client(url='https://vault-server-url', token='your-vault-token')
# Authenticate HVAC client using LDAP user credentials
def authenticate_ldap(username, password):
client.auth.ldap.login(username=username, password=password)
if client.is_authenticated():
return True
else:
return False
ldap_username = 'ldap-username'
ldap_password = 'ldap-password'
Hello everyone,
I hope you’re doing well. I wanted to share some progress I’ve made with our Jupyterhub setup, particularly regarding LDAP authentication. Users with access can now log in and initiate container instances successfully.
However, I’m currently facing a challenge as I collaborate with my team: we need a secure way to share secrets and API keys within these containers. While researching solutions, I came across HashiCorp’s Vault, a tool that centralizes and dynamically manages secrets. It seems like a promising solution for our needs.
My goal is to set up the Vault client inside the spawned container using LDAP user credentials, like this:
python
# Initialize the HVAC client
client = hvac.Client(url='https://vault-server-url', token='your-vault-token')
# Authenticate HVAC client using LDAP user credentials
def authenticate_ldap(username, password):
client.auth.ldap.login(username=username, password=password)
if client.is_authenticated():
return True
else:
return False
ldap_username = 'ldap-username'
ldap_password = 'ldap-password'
Once a user is authenticated, they’ll be able to securely access secrets from our central server. My question is, can we achieve this using Jupyterhub? I’ve attempted to install the Vault client via pip (pip install hvac
), but I’m encountering difficulties accessing the LDAP credentials to initialize the client.
I’m reaching out to seek your support in accomplishing this goal. Additionally, I’d love to know if there are any similar tools or approaches for securely sharing secrets and API keys among our team within the Jupyterhub environment.
Your guidance and assistance would be greatly appreciated.
Thank you in advance!