From d285519ced2ec67ac4743f83679739f4cf620cc7 Mon Sep 17 00:00:00 2001 From: Yoshiofthewire Date: Tue, 17 Nov 2026 18:36:52 -0500 Subject: [PATCH] docs: require CodeQL before merging pull requests Document the trusted current-head CodeQL gate added to the default-branch ruleset after a PR merged without its SAST result. Keep administrator bypass visible while requiring contributors to wait for the scan. AI-assisted-by: GPT-6.1 Sol (Codex) --- AGENTS.md | 2 ++ CONTRIBUTING.md | 5 +++++ docs/ASSURANCE-CASE.md | 8 +++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7c917a6..6f2c96d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -270,6 +270,8 @@ edge compatibility: `docs/redirect.md`. - Contribution process, test policy and coding standard: `CONTRIBUTING.md`. Threat model, trust boundaries and the weaknesses table: `docs/ASSURANCE-CASE.md`, updated by any change that moves a trust boundary or security requirement. + Follow `CONTRIBUTING.md`'s current-head CodeQL merge gate even when administrator bypass + is available. - `CHANGELOG.md` owns version-by-version release summaries and upgrade impact, including maintenance releases and missing/failed artifacts. The daily publisher checks generated notes before creating a release; `release-image.yml` checks the published body before diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d4d11bb..03b7612 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,6 +58,11 @@ Every pull request gets an adversarial review pass; see [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md#hostile-reviews-are-about-code-never-people) for what that is and the boundary it keeps. +Wait for the trusted GitHub CodeQL check to pass on the current pull-request head +before merging, alongside the required CI checks. A scan of the resulting +default-branch merge commit does not replace the pre-merge check. Follow this gate +even when administrator bypass is available. + ## Licence KyQuickStart is licensed under the MIT License. See [LICENSE.txt](LICENSE.txt). diff --git a/docs/ASSURANCE-CASE.md b/docs/ASSURANCE-CASE.md index e78c956..896cb7a 100644 --- a/docs/ASSURANCE-CASE.md +++ b/docs/ASSURANCE-CASE.md @@ -216,14 +216,16 @@ operator's job ([README](../README.md#targets)). and kind clusters, including drift, stale-lock and refusal cases. - **Backup TLS:** `TestResticTLSKeyFloor` drives `dockerhost.Store.Snapshots` and the pinned restic image against real disposable TLS chains; weak leaf/intermediate/root controls and strong RSA/P-256 cases run in the default e2e shard. Its fixture uses host networking solely to reach the owned host server; existing backup/restore acceptance retains the production bridge network. This does not establish whole-installer key-length compliance. - **TLS profile qualification:** actual-client local Go1.26.10 race probes cover132 Kubernetes REST/exec/port-forward and NPM/KyDNS/route outcomes. Six local-mTLS outcomes establish that client credential selection remains a separate condition; no claim of automatic weak-client-key rejection. [STRONG-CRYPTO.md](STRONG-CRYPTO.md) records scope and primary runtime sources. -- **Static analysis:** CodeQL (GitHub default setup, Go and Actions) on every push and pull +- **Static analysis:** CodeQL (GitHub default setup, Go, Python and Actions) on every push and pull request, `go vet` (with and without the `e2e,goolm` tags), `govulncheck`, and `actionlint` and `zizmor` on the workflows (`make workflow-lint`). - **Dynamic analysis:** the race detector on the full suite and the e2e suite against real targets. - **Review:** the `main: green checks` ruleset requires a pull request into `master` with - `test (ubuntu-latest, stable)`, `test (ubuntu-latest, 1.26.x)` and `vulncheck` green; repository - administrators can bypass it. + `test (ubuntu-latest, stable)`, `test (ubuntu-latest, 1.26.x)`, `vulncheck` and the trusted + GitHub Advanced Security `CodeQL` check green. Repository administrators retain bypass, + but the [contribution policy](../CONTRIBUTING.md#pull-requests) requires waiting for the + current-head CodeQL result before merging. - **Releases:** attested binaries and runner image; binaries rebuild to the same bytes ([VERIFYING-RELEASES.md](VERIFYING-RELEASES.md)); [human notes](../CHANGELOG.md) and the missing-summary publication guard (`make notes-check`).