Skip to content
Search 1.2

Contributing

Thanks for your interest in uds-takserver. Bug reports, feature requests, and pull requests are all welcome.

This project follows the Contributor Covenant 2.1. Report conduct violations through the private channel in Security Policy, the same way as a vulnerability. Do not open a public issue for one.

Open an issue at https://github.com/jonathanagustin/uds-takserver/issues. Search the existing issues first, since yours may already be there.

For a bug, include:

  • the commit or package version you deployed
  • the cluster (for example the k3d-core-slim-dev bundle) and its architecture
  • what you ran, what you expected, and what happened
  • relevant logs, for example from uds run actions:debug-output or uds zarf tools kubectl logs -n takserver <pod>

For a feature request, describe the problem you want solved and how you would use the result.

Do not report security vulnerabilities in a public issue. Follow Security Policy instead.

  1. Fork the repository and create a branch from main.
  2. Make your change, with tests and documentation (see below).
  3. Run the lint checks and the tests that cover your change.
  4. Open a pull request against main and fill in the template.
  5. CI runs lint, CodeQL, dependency review, and the k3d install test (see CI workflows). All required checks must pass.
  6. The maintainer reviews the pull request. When it is approved and green, it is squash-merged, so the pull request title becomes the commit message on main.

Release Please builds the changelog and the release pull requests from the merged titles. Leave CHANGELOG.md and the version numbers for that pull request.

  • Title. Use Conventional Commits, for example feat: ..., fix: ..., docs: ..., ci: ..., or chore: .... The Commitlint workflow checks it.

  • Lint. hk check --all must pass. It runs yamllint, shellcheck, hadolint, actionlint, codespell, Helm lint and template checks, Zarf lint, gitleaks, and the key-material check (see hk.pkl). uds run lint:all runs the shared YAML, shell, Zarf, Helm, and license-header checks. All tools are pinned in mise.toml; mise install installs them.

  • License headers. New source files carry the SPDX header used across the repository:

    Copyright 2026 uds-takserver authors
    SPDX-License-Identifier: GPL-3.0-only
  • No secrets. Never commit private keys, keystores, passwords, or enrolled certificates. Certificates are generated at deploy time (ADR 2).

  • Pinned dependencies. Pin images and GitHub Actions by digest or full commit SHA, with the version in a comment. Renovate keeps them current.

  • Documentation. Update the README, docs/, or an ADR in adr/ when behavior, configuration, or a design decision changes. The docs site is built from those files by the Docs workflow. A new page under docs/ also needs an entry in docs-site/scripts/sync-docs.mjs and the sidebar in docs-site/astro.config.mjs. Run npm ci && npm run build in docs-site/ to check it: a broken internal link fails the build. npm test there runs the browser checks against that build. Install the browser once with npx playwright install chromium.

Task-oriented documentation belongs in docs/how-to/. Copy docs/how-to/_template.md, name the new page for its task without a leading underscore, and keep the template’s sections. These pages are discovered automatically by the docs sync and How-to sidebar; the template stays out of the published site. Existing reference pages keep their URLs when a how-to guide is added.

  • Shell scripts use strict mode (set -euo pipefail) and pass shellcheck.
  • YAML passes yamllint with .yamllint.
  • Dockerfiles pass hadolint with .hadolint.yaml.
  • The Pepr module in pepr/ is TypeScript with strict mode on.
  • Helm charts pass helm lint and render with helm template.
  • Keep UDS policy exemptions and NetworkPolicy allow rules as narrow as possible, and explain any new one in the pull request.

Policy: new functionality comes with automated tests. A pull request that adds a feature or fixes a bug adds or updates a test that would fail without the change. If a change can’t reasonably be tested, say why in the pull request.

Where tests live:

Kind Location How to run
Pepr module unit tests pepr/capabilities/*.test.ts cd pepr && npm ci && npm test
Deployment checks (pods, mesh, policy, gateways) tasks/test.yaml uds run test-install
Marti API smoke tests tests/api-smoke.sh part of uds run test-install
Browser and SSO tests (Playwright) tests/*.spec.ts part of uds run test-install
Docs site browser tests docs-site/tests/*.spec.ts cd docs-site && npm ci && npm run build && npx playwright install chromium && npm test
Upgrade tests tests/upgrade*.py, tests/upgrade.sh uds run test-upgrade
Python and shell unit tests tests/test_*.py, tests/test_*.sh python3 -B -m unittest discover -s tests -p 'test_*.py', and bash tests/test_<name>.sh. test_package_values.py needs the UDS CLI and bash pepr/build.sh first
Full Core checks (monitoring, logging, Falco, Portal, backup and restore) test:full-core in tasks/test.yaml, tests/backup-restore.sh uds run test-full-core
Benchmark harness bench/, tests/test_bench.py the Benchmark workflow. See Benchmarks

uds run test-install builds the package, deploys k3d-core-slim-dev and the test bundle, and runs the whole suite. The same suite runs in the Test workflow on every pull request that changes code.

The Unit tests workflow (.github/workflows/unit-tests.yaml) measures coverage on every pull request and on main, and writes it to the job summary:

  • Pepr module: cd pepr && npm ci && npm run test:coverage uses Node’s built-in coverage. Every file in pepr/capabilities/ must stay at 100% of lines, branches and functions. That covers the five capabilities and their helpers. The run fails below 100%, or if no test loads a capability file. pepr/pepr.ts, which only registers the capabilities with PeprModule, isn’t measured.
  • Python upgrade helpers: coverage.py measures tests/upgrade-baseline.py and tests/upgrade-stream.py under tests/test_upgrade_*.py (66% of lines and branches combined when this was added). The parts that aren’t covered call git, gh and the cluster, and the upgrade job exercises them.

The shell scripts, Helm templates and the TAK and CloudTAK behavior are tested by the deployment suite on a real cluster. That suite isn’t instrumented for coverage.

The two videos in the README come from the Demo workflow (.github/workflows/demo.yaml). Pull requests that touch demo/ or tests/demo/ run it as a check, and nothing is published.

One run records everything from the same cluster:

  • The two videos. demo-deploy.mp4 and demo-operate-and-trust.mp4.
  • One short clip per chapter. For example demo-clip-airgap.mp4. The doc pages show these.
  • Stills for the docs. The video recordings and the browser walkthroughs save the stills as they record, so a still cannot show a different version than the video.

The run shows the release in .release-please-manifest.json. It stamps that version on the package and the bundle, and it checks the published package for that version. Record after the release workflow has published it. The upgrade chapter runs last. It installs the release before that one on a new cluster, then upgrades it to this run’s bundle (demo/upgrade.sh).

To update everything after a release:

  1. Run the Demo workflow by hand from main with atak on. To record exactly the release, set app_ref to its tag, for example v0.7.2. The last jobs put the videos and clips on the fixed demo release and sign them, so the download links stay valid across package releases.
  2. Run uds run demo-sync-assets --set DEMO_RUN_ID=<run id>. It copies the posters and stills into docs-site/public/demo/ and rewrites the README chapter lists and lengths.
  3. Update the README players by hand. GitHub only plays a video in a page when it was uploaded through its web editor, and there is no API for that. Download the two videos from the demo release, drag them into the README editor, and paste the new user-attachments URLs into README.md.
  4. Open a pull request with the changes.

The doc pages link a clip as a poster image: [![Alt text](../docs-site/public/demo/demo-clip-airgap.jpg)](https://github.com/jonathanagustin/uds-takserver/releases/download/demo/demo-clip-airgap.mp4). GitHub shows the poster, which links to the clip. The docs site turns the same line into a player.

By contributing, you agree that your contributions are licensed under the GPL-3.0-only license of this repository.