Secrets

Fujin supports multiple secret management adapters for secure handling of sensitive data during deployment.

System

The system adapter uses environment variables directly from your system. This is the simplest adapter and requires no additional setup.

Update your fujin.toml file with the following configuration:

fujin.toml
[secrets]
adapter = "system"
Example of an environment file with system environment variables
DEBUG=False
AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY

The system adapter will look for environment variables with the same name as the value after the $ sign.

Plugin Adapters

Additional secret adapters are available as separate plugin packages:

Custom Adapters

You can create your own secret adapter by implementing the adapter interface and registering it via Python entry points.

See the plugin packages source code for examples of how to implement custom adapters.