Skip to main content
Pre-release

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:

  1. Reads the JSON string from the configured environment variable
  2. Parses the JSON into a dictionary
  3. For each secret reference (prefixed with $), looks up the value in the parsed JSON
  4. Returns the resolved environment variables

Example

Given this GitHub Actions secret setup:

  • SECRET_KEY: my-secret-key
  • DATABASE_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.

Metadata

Release files for fujin-secrets-env 0.28.0b11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fujin-secrets-env 0.28.0b11
File Size Uploaded Provenance Actions
fujin_secrets_env-0.28.0b11.tar.gz 2.8 kB With provenance Details for fujin_secrets_env-0.28.0b11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fujin-secrets-env 0.28.0b11
File Interpreter ABI Platform Actions
fujin_secrets_env-0.28.0b11-py3-none-any.whl Python 3 none any Details for fujin_secrets_env-0.28.0b11-py3-none-any.whl

Total release size: 6.4 kB

Release files / fujin_secrets_env-0.28.0b11.tar.gz

Download URL fujin_secrets_env-0.28.0b11.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cce56f1d23879d66664328a502afd0a3e2eac99e6337476487f01dcb34e0e599
BLAKE2b-256 checksum
How to use checksums
7e53ae3f8b63f9f5579e9a6e28dcda96c4285b1b68a4ab13bd83c98a798d20fb
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 Nov 11, 2026.

Transparency log

Release files / fujin_secrets_env-0.28.0b11-py3-none-any.whl

Download URL fujin_secrets_env-0.28.0b11-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94cb127a8ac186f926dd78e9c769bb344a5e122addc058d129006cfbbb81f87f
BLAKE2b-256 checksum
How to use checksums
2b799dbeb8714d3498daf8c18f0d4ad07034a534647cfc0a0821a990e0045eb8
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 Nov 11, 2026.

Transparency log

Security for fujin-secrets-env 0.28.0b11

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.

Select from 2 files

Attestation for fujin_secrets_env-0.28.0b11.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 Nov 11, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page