ophix-client-management
Know which fleet clients need attention, before a stale token becomes a security problem.
Client tokens don't rotate themselves, and a forgotten one sitting unrotated for months (or years) is exactly the kind of thing that only surfaces during an audit — or an incident. ophix-client-management gives you a fleet-wide status dashboard showing every client's token age and reported software version at a glance, lets you request rotation or lock out a client directly from the admin, and enforces a hard rotation deadline automatically once you've configured one.
Installation
pip install ophix-client-management
ophix-manage migrate
The plugin registers itself automatically via the ophix.plugins entry point — no changes
to INSTALLED_APPS or MIDDLEWARE are needed.
What this plugin provides
- Status dashboard at
/client-management/— linked from the admin left-hand nav under Client Management - Per-client status bars with six states: OK / Warning / Rotation Required / Locked / Never Rotated / Operator Requested
- Per-client actions: Request Rotation, Clear Request, Unlock Client
- Bulk Request Rotation — All Overdue action
X-Token-Rotation-Warning: trueresponse header injected for clients in the warn stateX-Token-Rotation-Required: trueresponse header injected for clients past the require threshold or operator-flagged- Hard lockout enforcement in
ClientTokenAuthentication— clients pastTOKEN_LOCKOUT_DAYSare denied API access until an operator unlocks them from the dashboard - Client version tracking — captures the
X-*-Client-Versionrequest header on every successful API call and displays the last-seen version per client in the dashboard
Dashboard states
| State | Meaning |
|---|---|
| OK | Token age below warn threshold — no action needed |
| Warning | Token age between warn and require thresholds — X-Token-Rotation-Warning sent |
| Rotation Required | Token age past require threshold — X-Token-Rotation-Required sent |
| Locked | Token age past lockout threshold — API access blocked until operator unlocks |
| Never Rotated | No rotation recorded — lockout does not apply |
| Operator Requested | Flagged manually via the dashboard — X-Token-Rotation-Required sent |
Configuration (.env)
| Variable | Default | Purpose |
|---|---|---|
TOKEN_WARN_DAYS |
30 |
Age (days) at which the warning signal is sent |
TOKEN_REQUIRE_DAYS |
90 |
Age (days) at which the required signal is sent |
TOKEN_LOCKOUT_DAYS |
180 |
Age (days) at which API access is blocked. Set to 0 to disable lockout. A value below TOKEN_REQUIRE_DAYS is invalid and will be ignored with a log warning. |
Recommended values are shown above. TOKEN_LOCKOUT_DAYS must be greater than or equal to
TOKEN_REQUIRE_DAYS to take effect.
Client signalling and automatic rotation
Tier 1 clients built on ophix-client-core check the rotation signal headers automatically
on every API response. Two env vars in each client's domain env file control the behaviour:
| Variable | Default | Purpose |
|---|---|---|
ROTATE_ON_WARNING |
true |
Rotate automatically when X-Token-Rotation-Warning is received |
ROTATE_ON_REQUIRED |
true |
Rotate automatically when X-Token-Rotation-Required is received |
Set either to false to suppress automatic rotation and handle it manually instead.
With both defaults in place, tokens rotate silently as they age — no operator intervention
required under normal circumstances.
Lockout and recovery
When a client reaches TOKEN_LOCKOUT_DAYS, every API request returns 403 until an operator
intervenes. To recover a locked client:
- Open the Status dashboard in the admin under Client Management.
- Click Unlock Client on the locked row.
This sets the lockout override and the rotation-required flag. On the client's next successful
API call, X-Token-Rotation-Required is sent and ophix-client-core rotates the token
automatically. Normal operation resumes without any manual token handling.
Clients that have never rotated (last_token_rotation is null) are not subject to lockout.
Requirements
ophix-server-base >= 2026.06.08.01
Metadata
Release files for ophix-client-management 2026.10.8.1
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 |
|---|---|---|---|---|
| ophix_client_management-2026.10.8.1.tar.gz | 22.0 kB | Without provenance | Details for ophix_client_management-2026.10.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ophix_client_management-2026.10.8.1-py3-none-any.whl | Python 3 | none | any | Details for ophix_client_management-2026.10.8.1-py3-none-any.whl |
Total release size: 47.8 kB
Release files / ophix_client_management-2026.10.8.1.tar.gz
| Download URL | ophix_client_management-2026.10.8.1.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f70a02acc0e4c33e25ff9d460616b5c742c6807b396a6ecc60fd057f19e32dd
|
|
BLAKE2b-256 checksum How to use checksums |
2c001ed9d99483ad515be52952e11e39988d287b3aa94a474deeb0ec829606b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / ophix_client_management-2026.10.8.1-py3-none-any.whl
| Download URL | ophix_client_management-2026.10.8.1-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5518c874df13c24c1d6f4a175063beb324302f39c272ed786ce3f11d614284b3
|
|
BLAKE2b-256 checksum How to use checksums |
7c0496a53db96600b8aab3592409c6244fb5af39d1b28038d70231f50797217d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for ophix-client-management 2026.10.8.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.