Coding Standards
Contribute / Build & Change
Learn the project rules before your change becomes someone else’s cleanup.
These standards define how OpenBao Operator code, docs, generated artifacts, and commit history should look. Use this section before you start refactoring, adding APIs, changing manifests, or touching generated output.
Build & change guides
- 01Open
Project conventions
OpenBao Operator-specific rules around type safety, metrics, logging, testing depth, and architectural boundaries.
- 02Open
Go style guide
Naming, formatting, package structure, and idiomatic Go patterns expected in the repo.
- 03Open
Kubernetes operator patterns
Reconcile-loop shape, controller behavior, and Kubernetes-native design expectations.
- 04Open
Error handling
Required error-wrapping, propagation, and debugging conventions for production-grade controller code.
- 05Open
Generated artifacts
What must never be edited by hand and which commands regenerate the project outputs CI verifies.
- 06Open
Security practices
Contributor rules for secrets, file permissions, input handling, and secure-by-default changes.
- 07Open
Conventional commits
Commit message format used for consistent history and release automation.
- 08Open
Documentation style guide
Writing, page-type, and design-system rules for user-facing and contributor-facing docs.
Verify
Baseline contributor gate
make bootstrap
make doctor
make ci-core
If your change affects generated artifacts, manifests, or docs, run the more specific regeneration commands before the baseline gate.
Pair standards with execution
You are reading the unreleased main docs. Use the version menu for the newest published release, or check the release notes for what is already out.
Was this page helpful?
Use Needs work to open a structured GitHub issue for this page. The Yes button only acknowledges the signal locally.