Forums

How to set up a secrets manager?

I use Doppler as my secrets manager, but this requires you to inject the Doppler secrets by running doppler run -- python app.py instead of python app.py for example. I'd really like to keep with Doppler since everything else is configured to use it and it's easy to update values if need be.

Have you tried installing doppler and do you get any errors?

I can install it no problem, but Doppler requires you to initialize it when you run a Python application, and I don't know how to set that up. Just installing and configuring Doppler doesn't automatically make the env variables available, the injection needs to happen too.

I see. Unfortunately, you won't be able to initialize your app that way on PythonAnywhere. A workaround might be to export the Doppler env variables to a file, but I'm not sure if that suits your use case.

Hi, turns out I couldn't install it - I hadn't tried yet but hadn't realized that you don't have access to dpkg or apt-get commands in PythonAnywhere. Is there a workaround to that?

There is a python sdk that imports them so I don't need to inject it using the run command I mentioned previously

If the install requires root (like dpkg or apt), then you will not be able to install it on PythonAnywhere