Select to view content in your preferred language

Notebook Server - Storing Credentials

46
1
a week ago
Justin_Greco
Occasional Contributor II

Are there any recommendations for storing credentials in Notebook Server?  Currently we are just running Jupyter notebooks on a Linux server with ArcGIS Server installed, but are looking at migrating to Notebook Server.

We are currently using keyring to store the credentials to ArcGIS Online and Portal and then calling it by profile name, for example GIS(profile="agol"). It doesn't look like this is supported with the supplied container images, but would this be possible by extending them?

I would like to avoid hardcoding passwords in Notebooks that others can potentially access.

0 Kudos
1 Reply
Justin_Greco
Occasional Contributor II

I have been able to get this set up in Docker, using the instructions here: 

https://pypi.org/project/keyring/#using-keyring-on-headless-linux-systems

However, I'm not able to figure out how to get the notebook to run in a dbus session.  If I run a container from my terminal, I can do run Python in a dbus session and I can store passwords in the keyring and store ArcGIS connections in a profile. 

Also exploring Docker Secrets, but would really like to use the profile option for the GIS connection.

0 Kudos