Datasette plugin to expose some environment variables at /-/env for debugging
Datasette plugin to expose some environment variables at
/-/env - for debugging
:warning: This plugin is no longer maintained. datasette-expose-env is recommended as a safe replacement that only exposes environment variables that you have explicitly configured.
Install this plugin in the same environment as Datasette.
$ datasette install datasette-unsafe-expose-env
Once installed, the plugin will show a list of environment variables at
It will redact the following variables by default:
You can configure an alternative set of redacted secrets in your
plugins: datasette-unsafe-expose-env: redact: - DATASETTE_SECRET - GPG_KEY - MY_OTHER_SECRET
Once again though: only use this plugin if you need it for debugging purposes and are absolutely certain it won't expose any valuable information. If in doubt, do not use this at all.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-unsafe-expose-env python3 -mvenv venv source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for datasette-unsafe-expose-env-0.1.1.tar.gz
Hashes for datasette_unsafe_expose_env-0.1.1-py3-none-any.whl