Intended Use and Limitations
What Hegemony is for, what it is not for, and the risks of automating changes to infrastructure. Read this page before you connect Hegemony to devices that carry production traffic.
Intended purpose
Hegemony runs automation workflows ("flows") against infrastructure that you operate or are authorised to manage. Typical uses:
- network and infrastructure changes (configuration over SSH, NETCONF, Ansible, OpenTofu/Terraform, HTTP APIs);
- checks before and after a change, with evidence of what each step did;
- scheduled and event-driven automation, with approvals, maintenance windows and an audit trail.
It is self-hosted: you run it on your own infrastructure, and you control its users, credentials and the devices it can reach. No component contacts the project or any vendor by default.
Supported deployments
- Supported: the Docker Compose deployment described in Instance Bootstrap, hardened as described in Production Hardening, on a Linux host you maintain.
- Not supported as shipped: other orchestration (for example Kubernetes) without your own adaptation, exposure of the UI or API to the internet without TLS and an authenticating reverse proxy, and running with
HEGEMONY_ENVIRONMENTleft at its development default. - Versions: see Supported versions and the Compatibility and Deprecation Policy.
Foreseeable misuse and its risks
Hegemony does what a flow tells it to, with the credentials you give it. The following uses are foreseeable and can cause outages, security incidents or data loss. Avoid them or add the safeguard named.
| Misuse | Risk | Safeguard |
|---|---|---|
| Running a change flow against all devices at once | A wrong change takes down many devices together | Target small batches first; use run limits |
| Changing devices outside a maintenance window | An outage at a busy time | Use maintenance windows |
| Running a change without a dry run | An unreviewed change is applied | Use the step's dry-run or check mode where it has one (for example Ansible check_mode, NETCONF dry_run), and show the differences before approving |
| Using a direct commit where a confirmed commit is possible | A change that cuts off management access cannot roll itself back | Keep NETCONF commit_mode at its default, a confirmed commit |
| Change flows with no approval step | One person can change production alone | Add an approval step. Give the approver role only to people who neither author the flow nor start its runs; the roles enforce this for everyone except administrators. Hegemony does not yet stop an administrator approving a run they started, so keep administrator accounts few and make it a written rule that each run is approved by someone other than the person who started it |
| Giving flows broader credentials than they need | A compromised or wrong flow reaches more than intended | Use per-flow credentials with the least privilege; keep secrets in a secret store, not in flows |
| Exposing the UI or API without TLS | Credentials and session tokens can be intercepted | Follow Production Hardening |
| Accepting unknown SSH host keys without checking | A device can be impersonated | Use the trusted host keys described in SSH host keys |
| Running untrusted flows, plugins or container images | Code runs with the platform's access | Only install plugins and images you trust; review flows like code |
| Leaving the deployment unpatched | Known vulnerabilities stay exploitable | Watch releases and apply security updates (see below) |
Known limitations
The honest list of what Hegemony cannot do today is in TODO.md. The residual risks that operators must cover are in the Threat Model.
Security updates and end of support
- Security fixes are announced as described in Security announcements.
- Each version's support ends as stated in Supported versions. After that it gets no more security fixes; upgrade before then.
- To verify an image before you deploy it, use the commands in the release process.
Taking an instance out of service
Before you decommission an instance: revoke its API tokens and the credentials it held for devices and secret stores, export what you must keep (for example the audit log), and then delete its data volumes. The data it stores is listed in the Personal Data Inventory.
Product information from your supplier
This page describes the open-source project. If you obtained Hegemony from a company that supplies it commercially (for example with support, an appliance or add-ons), that supplier may give you additional product information, such as its own contact point for security issues, the support period it commits to and its regulatory declarations. The project's documentation does not replace that information. Distributors can use the product information template.