secretops
Let a coding agent manage your secrets without ever seeing them.
Coding agents can set up deployments, but an API key they handle can end up in their context, logs or shell history. secretops is a broker between the agent and your secrets: the agent works with secret names and plans, a human enters values and approves writes, and values move only between the vault and the target. secretops is not a vault: Infisical stays the source of truth.
How it works
- You enter the value.
secretops addasks for it without echo and stores it in your vault (Infisical). - The agent prepares a plan. For example: copy
STRIPE_KEYfrom the vault to the GitHub environmentstaging. The plan holds names and destinations, never a value. - You approve it.
show-planshows exactly what will run; the agent cannot approve its own plans. - The agent runs it and checks the result by name. Values never appear in output, plans or logs.
The pieces
you ── secretops add, approve-plan ──────────────┐
▼
agent ── secretops-local (restricted SSH) ──▶ broker ◀──▶ Vault (Infisical): values
└──────▶ GitHub environment secrets
- Broker: a separate Linux account on your machine (
secretops-broker). It holds the Infisical token, the GitHub login and the saved plans, and it is the only place secretops runs with access to values. - Agent access: the agent talks to the broker only through
secretops-local, an SSH command limited to a fixed list: plan, show, check and run approved plans. It cannot approve, open a shell or read the token. - You: enter values and approve plans from your own terminal.
The boundary is only as strong as the separation: recommended are three accounts on one machine (you, the agent, the broker); strongest is a broker on another machine. If the agent runs as your own user, it can use your sudo and secretops is a workflow gate, not a boundary. See deployment levels.
Why not just pip install secretops? The PyPI package is only the program. The separation above (broker account, restricted agent access, your tools) needs root and is set up by the installer from the GitHub release, which takes the program from PyPI.
What it can do
- Store a secret you already have (hidden entry), or generate, rotate, import and copy secrets between environments in Infisical
- Sync secrets from Infisical to GitHub environment secrets and verify they are there
- Keep an audit log without values
- Refuse production writes by default, even with approval
How it differs
Runtime credential proxies let an agent use a secret without seeing it: the agent sends a placeholder and the proxy inserts the real value. secretops covers the other half: it lets an agent manage secrets (prepare and run generation, rotation, copying and sync to a target) through saved plans that a human approves, with an audit log. The two fit together; secretops replaces neither a proxy nor a vault.
Example
# You: store the value
secretops add STRIPE_KEY --env staging
# Agent: write a recipe and plan the sync
cat > sync.yaml <<'YAML'
action: github.env_secret.sync_many
env: staging
github_owner: example-owner
github_repo: example-app
github_environment: staging
secrets:
- source: STRIPE_KEY
target: STRIPE_KEY
YAML
secretops-local write-recipe sync.yaml < sync.yaml
secretops-local plan --file sync.yaml --save # prints plan_id
# You: review and approve
sudo -u secretops-broker /usr/local/bin/secretops-broker show-plan --id PLAN_ID
sudo -u secretops-broker /usr/local/bin/secretops-broker approve-plan --id PLAN_ID
# Agent: run it
secretops-local execute-plan --id PLAN_ID # OK GitHub writes acknowledged: 1
The complete walkthrough, with verification and cleanup, is in the demo.
Get started
First prepare the vault: an Infisical project, a machine identity and its token (PREPARE).
Then, on Ubuntu 24.04 or Debian 12, with curl, python3-venv, openssh-server and a root-owned infisical CLI installed (the GitHub CLI gh is needed only for syncing to GitHub), in your own terminal:
curl -fsSLO https://github.com/feistify/secretops/releases/download/v0.1.8/secretops-0.1.8-installer.tar.gz
sha256sum secretops-0.1.8-installer.tar.gz # compare with the release notes
tar -xzf secretops-0.1.8-installer.tar.gz && cd secretops-0.1.8-installer
sudo ./install.sh --create-agent-user agent --infisical-domain https://app.infisical.com
# use the address of your own Infisical: EU Cloud https://eu.infisical.com or your self-hosted URL (see PREPARE)
sudo secretops-configure # Infisical project, folder and token (hidden prompt)
--create-agent-user creates a separate account without sudo for your coding agent; to use an existing account, give --agent-user NAME instead. The installer sets up the broker account, the restricted agent access and your tools, and installs secretops 0.1.8 from PyPI, checked against the hash in the bundle. sudo secretops-uninstall removes it again.
- Follow the installation guide for the details: prerequisites, a separate agent account, the GitHub login and checks.
- Try the demo with a test project and made-up values.
- Add the agent instructions to your project, so your agent uses the broker.
Working with a coding agent? Point it to docs/AGENT_START.md: it can check prerequisites and prepare the installation commands, while you run the steps that need sudo, a token or a login.
Status and limits
v0.1.8, early-stage software. Try it with test values first.
| Available now | Current limits |
|---|---|
| Hidden entry, generation, rotation, import and environment copy in Infisical | One Infisical project and folder per broker; switch with sudo secretops-configure |
| Sync to GitHub environment secrets and name verification | GitHub cannot return values: secretops verifies names, not values |
| Saved plans bound to their destination, human approval, audit without values | Production writes are refused by the default policy |
| Local broker with restricted agent access, an installer and an uninstaller | Ubuntu 24.04 or Debian 12 with Python 3.11 or newer; run the agent under its own account, otherwise it is a workflow gate, not a security boundary |
Details: limitations and tested versions.
Documentation
| Read this | For |
|---|---|
| PREPARE | What the vault needs before installing |
| INSTALL | Installing a local broker |
| OPERATIONS | Daily use, failures, token renewal, upgrade, backup |
| USAGE | Adding secrets, the plan lifecycle, all actions |
| RECIPES | Every action: fields, approval, environments, example |
| AGENT_START | Start page for coding agents |
| AGENT_USAGE | How agents work with the broker; instructions for your project |
| SECURITY_MODEL | What is enforced, threats, safety rules |
| CONFIGURATION | Vault and GitHub settings |
| BROKER_HOST | Deployment variants: remote or temporary broker |
| DEVELOPMENT | Working on secretops itself |
Security and license
Report vulnerabilities privately; see SECURITY.md. secretops is licensed under the Apache License 2.0.
Metadata
Release files for secretops 0.1.8
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 |
|---|---|---|---|---|
| secretops-0.1.8.tar.gz | 66.2 kB | With provenance | Details for secretops-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secretops-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for secretops-0.1.8-py3-none-any.whl |
Total release size: 140.4 kB
Release files / secretops-0.1.8.tar.gz
| Download URL | secretops-0.1.8.tar.gz |
|---|---|
| Size | 66.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22db02569395b538525f7cc60b78c9e08439de3f2ee4b1c37b6697d6614854d9
|
|
BLAKE2b-256 checksum How to use checksums |
03cf85443832b4f1565e020628190a7fbe58112885624ebefb1790a259350cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 14, 2026.
Transparency logRelease files / secretops-0.1.8-py3-none-any.whl
| Download URL | secretops-0.1.8-py3-none-any.whl |
|---|---|
| Size | 74.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1e7ae4e3af0d70e8aa6b273da2c351d33805fccea1d9e54b8d2d1bff509a7f1
|
|
BLAKE2b-256 checksum How to use checksums |
3b50796729cccd4be22ca37f58367bbcbb72083a42226a15859224707217184a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 14, 2026.
Transparency logSecurity for secretops 0.1.8
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 secretops-0.1.8.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 14, 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.