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.0b12

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.0b12
File Size Uploaded Provenance Actions
fujin_secrets_env-0.28.0b12.tar.gz 2.8 kB With provenance Details for fujin_secrets_env-0.28.0b12.tar.gz

Built distribution (wheel)

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

Total release size: 6.4 kB

Release files / fujin_secrets_env-0.28.0b12.tar.gz

Download URL fujin_secrets_env-0.28.0b12.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b6c39055e6e1187c940a72665674e0166fc5784e40681dc56efc4272e41e4f39
BLAKE2b-256 checksum
How to use checksums
a2fe451744a05c46cce4a4f6e1dd9e3ce30ba52fd391a64c0cc25391a44b34cc
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.0b12-py3-none-any.whl

Download URL fujin_secrets_env-0.28.0b12-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f53ce43e607354870ec95098ebbbcc203896934ac5cccf873a3bb6aa095b987
BLAKE2b-256 checksum
How to use checksums
3e26b3f5b2420c15db19729a01677c21823706eba8a1ab915f3577b74c8e0b1a
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.0b12

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.0b12.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