Snapshot of development commit e8b02df1. Internal planning, review and agent files are no longer published; docs/design/SECURITY_PRINCIPLES.md holds the project's non-negotiable rules. The proof page separates mock passes from real-system results and shows the public release commit beside each version. Pre-1.0 internal builds are summarised in docs/release/PRE_1.0_INTERNAL_BUILDS.md. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
4.4 KiB
Contributing to Kryptkeeper
Thank you for your interest in contributing.
Development happens in a private repository. This public repository receives a signed snapshot at each release, so commit hashes in lab records point at the development history. An accepted pull request reaches this repository with the next snapshot.
Getting started
git clone https://github.com/bpmforge/kryptkeeper.git
cd kryptkeeper
go test ./... # all tests must pass
npm --prefix ui ci
npm --prefix ui run test # frontend tests
Development requirements
- Go 1.27 (matches
go.mod; itstoolchainline pins the patch) - Node.js 24 (
ui/.nvmrc) and npm for the frontend (ui/). Use npm, not pnpm. golangci-lint, needed bymake lintandmake gate:go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest- Optional: SoftHSM2 for PKCS#11 tests (
brew install softhsm) - Optional: Docker for integration testing
Pull request process
- Fork the repository and create a branch:
git checkout -b feat/my-feature - Write tests alongside any new code — we aim for >80% coverage on new packages.
- Run the gate before pushing (see below):
make gate. - Keep commits atomic — one logical change per commit, and use
Conventional Commits (
type(scope): subject, e.g.fix(notifications): retry on 503). The pre-commit hook rejects other messages. - Open a PR against
main. The PR description should explain why, not just what.
Before you push: make gate
make gate is the same check the project runs before anything lands on main. It runs, in order:
go build ./...go test ./...make lint(golangci-lint, plusmake plugins-check, which vets the delivery plugins forwasip1/wasm)bash scripts/validate-openapi.sh(docs/openapi.yamlmatches the routes)bash tests/protocol/run.shcd ui && npm run lint && npm test -- --run
make hooks installs a pre-push hook that runs make gate for pushes to main. If make lint
reports that golangci-lint is missing, install it with the command under
Development requirements.
Where things are
docs/plugins/README.md: writing a delivery plugin and the SDK (make pluginsbuilds them; the vetted list isdocs/plugins/REGISTRY.md).docs/APP_MAP.md: screens and routes of the UI.docs/site/README.md: the website. A new user-facing feature needs a guide story and a place insite/content/hubs.json; CI checks that every story is on the site or explicitly unlisted.docs/COMPONENT_MAP.md: Go packages and components.docs/openapi.yaml: the API contract, validated byscripts/validate-openapi.sh.
Code conventions
The rules in docs/design/SECURITY_PRINCIPLES.md
are not negotiable: a change that breaks one is rejected regardless of what it
adds.
- Follow existing package layout: feature-sliced, not layered.
- No new global state; inject dependencies via constructor arguments.
- No comments explaining what the code does — only why (hidden constraints, workarounds).
- New packages must have at least one
_test.gofile. - Build-tag-guarded files (
//go:build windows,//go:build pkcs11) must have a corresponding stub for the default build.
What to expect from maintainers
- We aim to give a first response within 5 business days on issues and PRs. A first response may be a question or a triage label rather than a fix.
- Issues labelled
good first issueare scoped to one package and point at a test to copy. - The label set is defined in
.github/labels.yml. - Security reports go through SECURITY.md, not public issues.
Reporting bugs
Open a GitHub Issue using the Bug Report template. For security issues, see SECURITY.md.
Proposing features
Open a GitHub Discussion or a Feature Request issue before writing code — we want to confirm the design fits before you invest time in implementation.
Licence
By contributing you agree that your changes will be licensed under the Apache 2.0 License.