Skip to main content

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.

The human enters a value with secretops add, the agent saves a plan to sync it to a GitHub environment, the human approves it, and the agent executes it and verifies the secret name

How it works

  1. You enter the value. secretops add asks for it without echo and stores it in your vault (Infisical).
  2. The agent prepares a plan. For example: copy STRIPE_KEY from the vault to the GitHub environment staging. The plan holds names and destinations, never a value.
  3. You approve it. show-plan shows exactly what will run; the agent cannot approve its own plans.
  4. 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

To try the whole flow first, without a vault or a GitHub account, start the trial container (needs Docker or a compatible program).

For a real installation, 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.13/secretops-0.1.13-installer.tar.gz
sha256sum secretops-0.1.13-installer.tar.gz      # compare with the release notes
tar -xzf secretops-0.1.13-installer.tar.gz && cd secretops-0.1.13-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.13 from PyPI, checked against the hash in the bundle. sudo secretops-uninstall removes it again.

  1. Follow the installation guide for the details: prerequisites, a separate agent account, the GitHub login and checks.
  2. Try the demo with a test project and made-up values.
  3. 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.13, 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.13

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

Source distribution (sdist)

Source distribution for secretops 0.1.13
File Size Uploaded Provenance Actions
secretops-0.1.13.tar.gz 80.9 kB With provenance Details for secretops-0.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secretops 0.1.13
File Interpreter ABI Platform Actions
secretops-0.1.13-py3-none-any.whl Python 3 none any Details for secretops-0.1.13-py3-none-any.whl

Total release size: 170.7 kB

Release files / secretops-0.1.13.tar.gz

Download URL secretops-0.1.13.tar.gz
Size 80.9 kB
Tags Source
SHA-256 checksum
How to use checksums
588b72e6c8002f97121ed88e5c14fd6c7216d24d8b64bc5545a1fe7dd291d38e
BLAKE2b-256 checksum
How to use checksums
6604d09ca026f4c20545dd93d8b8770d64e9cb2489337234956a4d0114780bad
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 22, 2026.

Transparency log

Release files / secretops-0.1.13-py3-none-any.whl

Download URL secretops-0.1.13-py3-none-any.whl
Size 89.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e16cdd6e87496f609f2029370e9dc3e77c42c80f4fd4b2294775da2822af503d
BLAKE2b-256 checksum
How to use checksums
9b2e0255d4e6f6f789048b5fcddf16a866a0a4f2be9d15b0c514b944378371d8
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 22, 2026.

Transparency log

Security for secretops 0.1.13

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 secretops-0.1.13.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 22, 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