Gopass Provider
The Gopass provider integrates with gopass, a multi-user, multi-store abstraction layer on top of pass that keeps secrets GPG-encrypted and syncs them via git.
At a glance
Section titled “At a glance”| Provider | gopass |
| URI | gopass://[folder_prefix] |
| Access | Read and write |
| Best for | GPG-encrypted, git-synced, multi-user password stores |
| Authentication | The GPG key configured for the password store |
| Availability | Monosecret 0.2+ |
| Default storage | monosecret/{project}/{profile}/{key} |
Quick start
Section titled “Quick start”# Set a secret$ monosecret set DATABASE_URL --provider gopassEnter value for DATABASE_URL: postgresql://localhost/mydb✓ Secret DATABASE_URL saved to gopass
# Get a secret$ monosecret get DATABASE_URL --provider gopasspostgresql://localhost/mydb
# Run with secrets$ monosecret run --provider gopass -- npm startPrerequisites
Section titled “Prerequisites”Install the gopass CLI and initialize a password store:
# macOS$ brew install gopass
# Debian/Ubuntu$ sudo apt install gopass
# NixOS$ nix-env -iA nixpkgs.gopassAuthentication
Section titled “Authentication”Monosecret uses the GPG identities configured by gopass. Confirm that the
target store is initialized and can be unlocked before using the provider.
Configuration
Section titled “Configuration”URI format
Section titled “URI format”gopass://[folder_prefix]folder_prefix: Optional path prefix supporting{project},{profile}, and{key}placeholders. Defaults tomonosecret/{project}/{profile}/{key}.
URI examples
Section titled “URI examples”gopassgopass://monosecret/shared/{profile}/{key}Project configuration
Section titled “Project configuration”[providers]team = "gopass://"
[profiles.default]DATABASE_URL = { description = "Database URL", providers = ["team"] }Storage model
Section titled “Storage model”Each secret is stored under monosecret/{project}/{profile}/{key}. Gopass
encrypts the entry with GPG and can synchronize the password store through git.
Use existing secrets
Section titled “Use existing secrets”A secret’s ref field names an
existing entry instead: item is the full entry path, including any mount-point
prefix for multi-store setups (field is not supported). Reads and writes
target that entry in place.
[profiles.production]DATABASE_URL = { description = "Production DB", ref = { item = "work-store/infra/postgres" }, providers = [ "gopass",] }Advanced configuration
Section titled “Advanced configuration”Shared secrets
Section titled “Shared secrets”By default, secrets are stored under monosecret/{project}/{profile}/{key}, which isolates them per project. To share secrets across projects, use a custom folder prefix via the URI:
[defaults.providers]shared = "gopass://monosecret/shared/{profile}/{key}"The URI supports {project}, {profile}, and {key} placeholders. By omitting {project}, multiple projects can read and write the same store entry:
# monosecret.toml (in project-A and project-B)[profiles.default]ARTIFACTORY_USER = { description = "Artifactory user", providers = ["shared"] }Both projects will resolve ARTIFACTORY_USER from monosecret/shared/default/ARTIFACTORY_USER.
Troubleshooting and limitations
Section titled “Troubleshooting and limitations”Only the first line of an entry is read back — if an entry was written outside
of monosecret and contains multiple lines, everything after the first line is
discarded on get.