Metadata-Version: 2.4
Name: hegemony-steps-secret
Version: 0.59.1
Summary: Secret-store step handlers for Hegemony (write, swap and delete a secret)
License-Expression: AGPL-3.0-or-later
License-File: LICENSE-AGPL-3.0-or-later.txt
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Systems Administration
Requires-Dist: hegemony-step-sdk>=1.1,<2
Requires-Python: >=3.11
Project-URL: Homepage, https://hegemony.sh
Project-URL: Documentation, https://hegemony.sh
Project-URL: Source, https://github.com/hegemony-sh/hegemony-step-plugins
Project-URL: Issues, https://github.com/hegemony-sh/hegemony-step-plugins/issues
Project-URL: Changelog, https://github.com/hegemony-sh/hegemony-step-plugins/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

<!--
SPDX-FileCopyrightText: 2025-2026 Rexonix s.r.o.
SPDX-FileContributor: Jakub Trávník <jakub.travnik@gmail.com>

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# hegemony-steps-secret

Secret-store steps for Hegemony flows — the `secret.` namespace.

Handlers: `secret.write` — store keys in a secret of the run's organization,
from files an earlier step left in the run's shared workspace or from secret
references and literals; swap the keys of two secrets; or delete a secret.
The step names a path under the organization's own secret root (`certs/web`)
and never a backend: it calls the platform's `read_secret`, `write_secret`
and `delete_secret` services, which decide where the path lives, refuse what
the organization's administrators have not allowed, register the values for
redaction and audit every call. Its output names keys and the reference
later steps read them through, never the values. See
`src/hegemony_steps_secret/docs/secret.write.md`.

**In the platform's images**, as a wheel of its own (CONVENTIONS.md, "Wheel
granularity"), because writing secrets from a flow is a security surface: a
deployment that must not allow it builds its api and worker images without the
wheel (`uv pip uninstall hegemony-steps-secret` in a derived image). Installed,
it writes nothing until an organization admin turns on secret writes by steps,
and then only under the path prefixes they name, on a platform whose worker
provides the secret store services.

Namespace prefix (= entry-point name): `secret.` — see the repo-level
`CONVENTIONS.md` for the naming rules.
