This release is a pre-release and may not be stable for production use.
Fujin Secrets - Environment Variable
Environment variable secret adapter for Fujin deployment tool. Reads secrets from a JSON-formatted environment variable, making it ideal for CI systems like GitHub Actions.
Installation
pip install fujin-secrets-env
Or with uv:
uv pip install fujin-secrets-env
Configuration
Add the following to your fujin.toml file:
[secrets]
adapter = "env"
[secrets.options]
source = "FUJIN_SECRETS"
The source option specifies the name of the environment variable containing the JSON-formatted secrets.
Usage
GitHub Actions
In your workflow file, pass all secrets as JSON using toJSON(secrets):
- name: Deploy
run: uvx --from fujin-cli --with fujin-secrets-env fujin deploy
env:
FUJIN_SECRETS: ${{ toJSON(secrets) }}
Environment File
In your environment configuration (via env in fujin.toml), prefix secret values with $:
DEBUG=False
SECRET_KEY=$SECRET_KEY
DATABASE_URL=$DATABASE_URL
AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
The $ prefix indicates to Fujin that the value should be resolved from the secrets source.
How it Works
The adapter:
- Reads the JSON string from the configured environment variable
- Parses the JSON into a dictionary
- For each secret reference (prefixed with
$), looks up the value in the parsed JSON - Returns the resolved environment variables
Example
Given this GitHub Actions secret setup:
SECRET_KEY:my-secret-keyDATABASE_URL:postgres://...
And this fujin.toml env configuration:
[[hosts]]
env = """
DEBUG=False
SECRET_KEY=$SECRET_KEY
DATABASE_URL=$DATABASE_URL
"""
The adapter will resolve $SECRET_KEY and $DATABASE_URL from the JSON passed via FUJIN_SECRETS.
Related
Metadata
Release files for fujin-secrets-env 0.28.0b6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fujin_secrets_env-0.28.0b6.tar.gz | 2.8 kB | With provenance | Details for fujin_secrets_env-0.28.0b6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fujin_secrets_env-0.28.0b6-py3-none-any.whl | Python 3 | none | any | Details for fujin_secrets_env-0.28.0b6-py3-none-any.whl |
Total release size: 6.3 kB
Release files / fujin_secrets_env-0.28.0b6.tar.gz
| Download URL | fujin_secrets_env-0.28.0b6.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caa0c04446475ac9f264395675b41524bd20096a57d2656e96b6b308224d675d
|
|
BLAKE2b-256 checksum How to use checksums |
e29bf94f0a58c5097160300bec1b200836efd05bff4196b0f5caa945e7322a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / fujin_secrets_env-0.28.0b6-py3-none-any.whl
| Download URL | fujin_secrets_env-0.28.0b6-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f09b72d9619f3365d1ee6046d6875f3e6f565b4507a7204cda498a1583f565e
|
|
BLAKE2b-256 checksum How to use checksums |
bb04b5f8b240bde3ccd5080398f43e3eabb732c601fb38a58df6f487e2f0e939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for fujin-secrets-env 0.28.0b6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fujin_secrets_env-0.28.0b6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.