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  ──▶  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

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

On Ubuntu 24.04 or Debian 12, with curl, python3-venv, openssh-server and a root-owned infisical CLI installed, in your own terminal:

curl -fsSLO https://github.com/feistify/secretops/releases/download/v0.1.3/secretops-0.1.3-installer.tar.gz
sha256sum secretops-0.1.3-installer.tar.gz      # compare with the release notes
tar -xzf secretops-0.1.3-installer.tar.gz && cd secretops-0.1.3-installer
sudo ./install.sh --create-agent-user agent --infisical-domain https://app.infisical.com
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.3 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.3, 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
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.3

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.3
File Size Uploaded Provenance Actions
secretops-0.1.3.tar.gz 58.2 kB With provenance Details for secretops-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 123.5 kB

Release files / secretops-0.1.3.tar.gz

Download URL secretops-0.1.3.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5029575dd1ee1f283b8f9af62c261155c522766e30e5fa7927073358b9a985b6
BLAKE2b-256 checksum
How to use checksums
eb0b984ff42f74a243811df9ead4ae0e57b4dedc657b6681e13f92e6e495ca3d
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 Oct 22, 2026.

Transparency log

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

Download URL secretops-0.1.3-py3-none-any.whl
Size 65.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a6698208aee447ab0c38be7deee3a6abc38b52d0936aa038f707cafd992021e
BLAKE2b-256 checksum
How to use checksums
1e90e8ecbadc17204f7882803cdc472c2e5a4e3f8bfc2f46a9bcaf04131adf68
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 Oct 22, 2026.

Transparency log

Security for secretops 0.1.3

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.3.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 Oct 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