Regent
Adapt the tool to the job
Regent is a multi-paradigm configuration management system released as a library. It lets you embed a generic automation engine in any codebase that fits your use case. By leveraging Rust's powerful type system, fearless concurrency and rich ecosystem, regent allows you to industrialize automation, configuration management, and self-remediation systems at scale.
A few use cases
Regent integrates nicely with the rest of the ecosystem and with crates you already know.
- Need a small CLI tool to run some configuration changes on a group of hosts? Wrap regent with clap.
- Thousands of hosts to handle ? Leverage tokio and work concurrently or in parallel.
- You want to distribute work? Serialize your RegentTasks, send them across a wire (http, gRPC, RabbitMQ...), and have them run by some worker node.
- Make any host observable? Have some axum handler behind a
/healthroute run a regent compliance assessment on localhost and respond accordingly. Then have this host regularly checked by your external monitoring service (Centreon, Nagios, Zabbix...).
2 ways to use regent
The YAML API
async
The Rusty API
async
Why
Very often, automation frameworks will impose their architecture on you and thus limit their scope. You will end up accepting blind spots and manual interventions at scale, adapting your infrastructure to meet the tool's requirements or finding "workarounds" which will become the norm over time (a cron job which runs a bash script which runs an ansible playbook which connects to...). And very often, you have to assemble a solution to your specific use case with a mixture of official tooling, custom scripting, creativity and a little bit of trickery. With regent, we are not even trying to build another unicorn. Instead, we acknowledge that your use case is unique to you, so must be your solution. No more mixture and trickery - you build what you need, nothing more, nothing less.
Secrets management
As any other automation framework, regent will have to handle secrets. We don't try to store and manage secrets ourselves. We prefer to rely on the concept of SecretProvider. Regent will dynamically bind to an external source and retrieve secrets at runtime whenever needed. For the sake of abstraction, files and environment variables are considered external sources.
Secrets can be retrieved from :
- Environment variables
- Files
- AWS Secretsmanager
- GCP Secret Manager
- Hashicorp Vault
- Delinea SecretServer (Thycotic)
Contributing
We welcome contributions from the community! Whether it's bug fixes, new features, or documentation improvements, feel free to submit a pull request.
Join our Discord server to chat with other contributors: Regent project