Datasette plugin to expose some environment variables at /-/env for debugging
Project description
datasette-unsafe-expose-env
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.
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-unsafe-expose-env
Usage
Once installed, the plugin will show a list of environment variables at /-/env
It will redact the following variables by default:
DATABASE_URL
GPG_KEY
DATASETTE_SECRET
You can configure an alternative set of redacted secrets in your metadata.yml
configuration:
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.
Development
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:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datasette-unsafe-expose-env-0.1.1.tar.gz
.
File metadata
- Download URL: datasette-unsafe-expose-env-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a90e47c65b1536887e631ea07ebbccba363ddd21bbc841ecd284039c65c488 |
|
MD5 | 1a4b0701b0f0a74e241ef257c5c0ea98 |
|
BLAKE2b-256 | 23fccc5342b6ab32be4c1b2d005535b465437d8f22c7ae07ce0eb671a585c8e4 |
File details
Details for the file datasette_unsafe_expose_env-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_unsafe_expose_env-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853a9c44414f731e012fbdd0da3a3616e7c7f620c9f866e18940725a71b70b65 |
|
MD5 | d1b349879dc00a7e5e66916e303702f7 |
|
BLAKE2b-256 | b19ebc54e379b8aaf5e1b6732e83fe0e1c1377610e4efd4fce433ce8f71725ec |