Skip to main content

ophix-creds

One place to store fleet secrets, instead of one more copy in every server's .env file.

If your deploy scripts and server configs have ended up with database passwords, API keys, and other secrets copied onto every host that happens to need them, ophix-creds gives your fleet one central place to store them instead. Clients fetch a named secret on demand over HTTPS — authenticated with a per-client token and IP check — and hold it in memory only; nothing is written to disk or cached locally on the client side.

Access is granted per client, per credential: a client can be given read, update, delete, or no access at all to any given secret, and any grant can be revoked instantly without touching the credential itself. Secrets are encrypted at rest on the server.


Installation

See installation.md for the full step-by-step guide — service user, TLS setup, the guided installer, and getting the service running under nginx and systemd.


Routine upgrades

The guided installer generates ophixcredserver-update.sh (Step 4 in installation.md) — a single script that checks for and installs package updates, then runs migrate, collectstatic, generate_config --append (picks up any new .env settings automatically), refreshes documentation, and refreshes the Plugin Versions table. Run it as the service user, not root:

./ophixcredserver-update.sh

It finishes by printing a reminder to restart the service — it doesn't restart it for you. If you ever move the venv or change INSTALL_DIR, re-run ophix-manage create_update_script first to regenerate the script with the new paths.


What this plugin provides

  • Credential model — named JSON secret with enabled flag
  • ClientCredential join model — per-client permissions (enabled, can_update, can_delete, can_share)
  • GET/POST/PUT/DELETE /api/credentials/<name>/ API endpoints
  • Django admin with inline ClientCredential management and linked-artifact columns
  • Access audit logging via ophix.core.audit
  • Built-in documentation (loaded by update_docs if ophix-docs is installed)

Configuration (.env)

Variable Default Purpose
CRED_ENCRYPTION_KEY (generated) Fernet key used to encrypt secrets at rest — generated by configure_install
ENABLE_ARTIFACT_DELETE False Allow clients to delete credentials they own

Client

Fleet clients use ophix-cred-client to authenticate and fetch credentials.


Documentation

If ophix-docs is installed, documentation is loaded automatically during run_install. To load or refresh docs manually after an upgrade:

ophix-manage update_docs --include-app-docs ophix.core,ophix_creds,ophix_docs

See ophix-docs for the full list of documentation management commands.

Metadata

Release files for ophix-creds 2026.11.20.1

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

Source distribution (sdist)

Source distribution for ophix-creds 2026.11.20.1
File Size Uploaded Provenance Actions
ophix_creds-2026.11.20.1.tar.gz 34.2 kB Without provenance Details for ophix_creds-2026.11.20.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ophix-creds 2026.11.20.1
File Interpreter ABI Platform Actions
ophix_creds-2026.11.20.1-py3-none-any.whl Python 3 none any Details for ophix_creds-2026.11.20.1-py3-none-any.whl

Total release size: 75.6 kB

Release files / ophix_creds-2026.11.20.1.tar.gz

Download URL ophix_creds-2026.11.20.1.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f46eba15d397b74bcb4dab057164afc2c89d4c88960d852223b7cf380be3c7ee
BLAKE2b-256 checksum
How to use checksums
6826259c33040a58f6580f76a14e38828993c775db2335c49f26d2e3d5afc0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / ophix_creds-2026.11.20.1-py3-none-any.whl

Download URL ophix_creds-2026.11.20.1-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94e8588c970b52741c1918463d1cae6832ce5ef8f86fcc1f1b48620b33986451
BLAKE2b-256 checksum
How to use checksums
d5ab51f51be1834082d2355f695e9b82690ae711516209e142a6851abd74217a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for ophix-creds 2026.11.20.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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