Chucky - A control panel for Puppet/OpenVox servers
  • Python 67.7%
  • HTML 20.5%
  • Shell 6.8%
  • JavaScript 3.2%
  • Dockerfile 0.9%
  • Other 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-16 11:53:29 +01:00
chucky fix: Drop legacy 'user' property for sources 2026-08-03 13:40:10 +02:00
docker fix: gunicorn missing from container image 2026-09-07 10:10:18 +02:00
examples Formatting changes in rekey tool 2026-11-04 12:13:43 +01:00
sidecar More sidecar tweaks 2026-11-16 11:53:29 +01:00
tests Fix (remove) some tests 2024-02-16 12:04:43 +01:00
.gitignore build: Move away from poetry 2026-08-03 13:17:31 +02:00
.gitlab-ci.yml build: Fix kaniko based image build 2026-08-08 13:29:25 +02:00
gnu-agpl-v3.0.md Added LICENSE and copy of AGPL 2026-07-30 16:13:39 +02:00
LICENSE Added LICENSE and copy of AGPL 2026-07-30 16:13:39 +02:00
pyproject.toml build: Move away from poetry 2026-08-03 13:17:31 +02:00
README.md docs: Added UI screenshots as examples 2026-08-08 14:06:36 +02:00
uv.lock build: Move away from poetry 2026-08-03 13:17:31 +02:00

Chucky - A control panel for OpenVox Server

Chucky is a web application to simplifying or automate common tasks usually done via console commands directly on an OpenVox (or Puppet) server. It enables teams or groups to easily manage client certificates, deploy environments from git or configure deployment triggers via webhooks.

Features:

  • Sign or revoke client certificates.
  • Deploy environments from git version control.
  • Trigger deployments automatically via github/gitlab webhooks.
  • Encrypt eyaml secrets or update secrets encrypted with an old key.
  • Query OpenVoxDB (or PuppetDB) with PQL.
  • Browse your inventory with Puppetboard (included in chucky).
  • Authenticate users with OpenID Connect and limit permissions with role based access control (optional).

Compatibility with Puppet

In November 2024, Perforce announced that they will stop providing most tools & projects as open source. We test against OpenVox, a community fork and drop-in replacement for Puppet 7/8. Chucky should work just fine with Puppet up to version 8.11, but testing against future versions of Puppet is no longer an option. If Perforce does not change its course, the paths will split and compatibility will break eventually.

Configuration

Chucky reads configuration from a yaml file as well as environment variables named CHUCKY_* (all uppercase). Config values from the yaml file have preference over environment variables. Lists are usually comma-separated if defined as an environment variable.

  • CHUCKY_CONF Path to the config yaml file. (default: /etc/chucky/config.yaml)
  • workdir (required) Path to a work directory where git repositories are checked out to and other runtime files are stored.
  • secret (required) Base secret used to generate other secrets e.g. webhook_secret
  • webhook_secret API secret for webhooks (default: derive from secret)
  • public_url Full public url (including scheme and tailing slash) for this service. (default: /)
  • links List of links to display in the header of the admin dashboard. Each link should have a title and an url, separated by space.
  • openvoxserver Domain name (and port) of the openvox server. Optional, just used to display a help text in UI.
  • puppetserver Alias for openvoxserver (deprecated).
  • openvoxdb Full url (e.g. https://domain:port/") for openvoxdb. Optional, but required for puppetboard.
  • puppetdb Aloas for openvoxdb (deprecated).
  • protected_certs List of certnames that should not be revoke- or removable via UI (default: openvox,openvoxdb,puppet,puppetdb).
  • sidecar Command to execute sidecar actions on the openvox/puppet server. Chucky does not directly call openvox/puppet commands, but passes simplified commands to a sidecar script that runs either locally or on a remote openvox/puppet server and does the actual work. If chucky runs with lowered privileges, you can use sudo here to trigger sidecar actions as a privileged user. Sidecar actions on a different server can be triggered via ssh. See sidecar/README.md for details and more examples.
  • oidc_client If configured, this enables authentication against an OpenID Connect identity provider.
    • oidc_secret (required) Client secret.
    • oidc_config_uri (required) OpenID configuration URI (e.g. https://keycloak.example.com/realms/my-realm/.well-known/openid-configuration)
    • oidc_scopes Client scopes, separated by space (default: openid).
    • oidc_redirect_uri OpenID redirect_uri. (default: /oidc)
    • oidc_id_claim Claim for the unique account ID (default: sub). See oidc_id_mapping.
    • oidc_name_claim Claim for an account display name (default: name)
    • oidc_role_claim Claim or list of claims used to assign roles to users (default: roles). See oidc_role_mapping.
    • oidc_role_mapping A list of oidcRole=chuckyRole mappings to translate roles that came from OIDC claims to roles understood by chucky. The mapping rules are applied in order, which allows to translate each OIDC-role to multiple chucky-roles if needed. OIDC-roles without a mapping are ignored. The empty OIDC-role is applied to all authenticated users, even if the role-claim is empty or missing. So, in order to grant everyone admin privileges, simply configure =admin. If not configured at all (default), roles starting with chucky_ will be translated to chucky roles.
    • oidc_id_mapping A list of accountId=chuckyRole mappings to add additional chucky roles to specific accounts. This is useful if your OIDC provider does not provide meaningful roles or groups on its own.
  • sources: An optional map of default sources that should be created on startup if no source with the same name exists. Sources can also be added interactively in the web UI.
    • <name> Sources are identified by name. Non-dynamic sources will deploy a single environment with the same name.
      • git: (required) Full GIT URL suitable for cloning the repository, including auth information if needed.
      • branch: A single branch name to check for updates. Required if pattern is not defined.
      • pattern: A regular expression pattern matching branch names that should be checked for updates. Required if branch is not defined.
      • dynamic: Sources deploy only one environment by default and use the newest commit of all matching branches. Set this to True to create one environment per matching branch instead. The environment will have the name of the branch. (default: False)
      • paused: Skip updates, webhooks or deployments for this source. (default: False)

Authentication and Authorization

Chucky assumes that it runs either in a protected environment with no authentication at all (anyone can do anything) or in an enterprise environment with an OpenID Connect provider (e.g. Keycloak). Authorization works via OAuth claims mapped to chucky-specific roles. Two claims are involved here, oidc_id_claim (default: sub) and oidc_roles_claim (default: roles). These can be mapped to chucky roles via oidc_id_mapping (for individual users) and oidc_role_mapping (for user groups). The following roles are implemented:

  • info can view the dashboard. This is the most basic role.
  • cert can sign, revoke or delete certificates. Implies info.
  • deploy can trigger deployments. Implies info.
  • source can edit sources. Implies info
  • eyaml can encode secrets. Implies info.
  • board can view puppetboard and query the database. Implies info.
  • dev implies info,cert,deploy,source,eyaml,board.
  • admin can do everything.

A word on environments, secrets and security

There is a not very well documented pitfall with openvox/puppet that has major implications on security: Modules are code. They are executed on the openvox/puppet server with all permissions needed to read (and sometimes write) configuration, code and data from all environments, including eyaml private keys. This also applies to modules pulled in from external sources (e.g. puppetforge). Anyone allowed to push code to a openvox/puppet server can easily decode eyaml secrets, extract private keys or run arbitrary commands as a privileged user. External node classifiers (ENCs) often used to force nodes into specific environments do not prevent this kind of attack. There is virtually no isolation between environments.

For this reason, Chucky does not even try to separate user permissions based on environments. If you feel the need to give only some users access to certain environments, think about deploying multiple openvox/puppet server instances instead.

Sources

Sources tell Chucky how to deploy OpenVox/Puppet environments from git repositories. Static sources have a name, a git url and either a branch or regular expression pattern. In case of a pattern, the most recently updated branch matching the pattern is used for that environment. If all matching branches disappears from git, then the environment will also be removed.

sources:
  production:
    git: https://example.com/environments.git
    branch: main
  development:
    git: https://example.com/environments.git
    pattern: "^dev-.+$" # Branches starting with `dev-`

Sources with a dynamic flag are handled differently: These automatically create or destroy environments based on branches matching the pattern. Each matching branch will spawn a new environment with the same name. Deleting a branch also destroys the corresponding environment.

# ... other config ...
sources:
  example:
    git: https://example.com/environments.git
    pattern: "^dev-.+$" # Branches starting with `dev-`
    dynamic: True

Environments stick to the source they were originally created from. If multiple dynamic sources map to the same environment name, only changes to the original source will update the environment. This ensures that environments would not uncontrollably 'flap' between two sources if there are naming conflicts.

SSH keys and git@ URLs

Cloning or fetching from git@ URIs requires ssh and a password-less key pair in ~/.ssh/ to work properly. Note that SSH will only pick up keys that have certain names, or have matching IdentityFile entries in ~/.ssh/config. If you are running chucky as a docker container, most of the work is done for you. See below.

The UI will display all id_*.pub files it can find in ~/.ssh/ or its subdirectories. You can hide a key from UI by removing its public key, or by adding a matching id_*.hidden file. They are still used for SSH connections or git clone/fetch operations if configured properly in ~/.ssh/config.

Credentials and https:// URLs

Chucky will use credentials provided as part of https:// git urls when cloning or fetching from a private git repository. This is often easier than configuring ssh keys, and secure enough when using read-only tokens instead of actual user credentials. These credentials are only visible to privileged users in the web UI and hidden by default. Webhooks will match sources regardless of credentials.

Webhooks and automated deployments (CI/CD)

Chucky deployments can be triggered with a webhook, allowing fully automated deployments and a git-centric workflow. GitHub, GitLab and Forgejo/Codeberg webhooks are supported natively, but you can also trigger them from custom CI/CD pipelines or scripted cronjobs.

To use this feature, configure a webhook that authenticates with the shared webhook_secret and sends an HTTPS POST request to the /githook or /githook/<source> endpoint of your chucky server. The /githook endpoint tries to guess the affected sources from the application/json request payload. The /githook/<source> endpoint will always trigger deployments for the named source and ignore the request body. The <source> part can be a comma-separated list of multiple source names if you want to trigger multiple deployments with a single webhook.

To manually trigger a webhook (e.g. from a CI/CD pipeline, script or test) you can either use the /githook/<source> endpoint and send an empty POST request, or send a small JSON payload with just the required fields: {"repository": {"clone_url": "...", "ssh_url": "..."}}. Add a X-Chucky-Token: <webhook_secret as plaintext> header to authenticate, or use Basic auth with any username and the webhook_secret as the password.

Chucky Docker Container

The chucky docker container performs a bunch of operation on startup to make operation easier. Namely:

  • Automatically generate /home/chucky/.ssh/id_ed25519 and /home/chucky/.ssh/id_ed25519.pub, if missing.
  • Search for id_* files in /etc/chucky/ssh/ (including subdirectories) and copy them over to /home/chucky/.ssh/keys/ with the correct permissions.
  • Generate /home/chucky/.ssh/config with one IdentityFile entry per id_* files found in /home/chucky/.ssh/ or its subdirectories. Warning, git servers will accept the first known key and ignore all the others. Do not used multiple keys for the same git server.
  • Append /etc/chucky/ssh/config to /home/chucky/.ssh/config, if present.
  • Fixing file and directory permissions if needed.

You may want to mount /home/chucky/ as a persistent volume, but be careful: Chucky will fix permissions to match the internal chucky user on startup, so DO NOT mount your actual home or ~/.ssh/ folder into the container. Mount a directory with custom keys to /etc/chucky/ssh/ instead.

Screenshots

Screenshot of the landing page
Overview page for sources, deployed environments, and information related to webhooks and git keys.

Screenshot of the deployment details page
Details about the state of a given environment. This page also shows deployment logs (r10k/librarian) to help debugging dependency issues.

Screenshot of the certificate overview page
List of known certificates with buttons to sign, revoke or delete them.

Screenshot of the db query tool
You can query OpenVoxDB/PuppetDB directly, or browse the embedded puppetboard.

Screenshot of the eyaml page
Encrypt secrets in your browser, or download the (public) eyaml encryption key.

License

Copyright (C) 2024-2026 Marcel Hellkamp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.