Skip to content

docs: add OpenSSF Best Practices badge guides - #5176

Merged
TomOnTime merged 2 commits into
DNSControl:mainfrom
chicks-net:chicks/openssf-badge-guides
Dec 5, 2026
Merged

TomOnTime merged 2 commits into
DNSControl:mainfrom
chicks-net:chicks/openssf-badge-guides

Conversation

@chicks-net

Copy link
Copy Markdown
Collaborator

Why

DNSControl's OpenSSF Scorecard sits at 8, and CII-Best-Practices is the only check still scoring 0. As of the 2026-12-02 run, everything else is 3 or better. The only way to fix that check is to fill out the OpenSSF Best Practices badge form.

Fair warning: that form is tedious. Passing has 67 criteria and silver adds 55 more. Each one needs a radio button, a justification, and often a URL, and the form has a session timeout that eats unsaved work. It's mostly copy and paste, but you have to know what to paste. These guides work that out ahead of time, so whoever fills out the form can keep this in one window and the form in the other and get through it in about an hour.

What's here

A new top-level OpenSSF/ directory with developer-only notes. They aren't published to docs.dnscontrol.org (documentation/) or dnscontrol.org (docs/):

  • OpenSSF/README.md: what this is, plus how to register the project on bestpractices.dev. DNSControl isn't registered yet, so the guides use NNNNN as a placeholder project number.
  • OpenSSF/openssf-badge-passing.md: every passing criterion with an answer, a paste-ready justification, and an evidence link.
  • OpenSSF/openssf-badge-silver.md: the same for silver, plus drafts of the documents silver requires that don't exist yet: governance, code of conduct, roadmap, architecture, and a threat model.
  • OpenSSF/.markdownlint-cli2.yaml: relaxes line length for the wide tables, and allows bare URLs because the form wants plain URLs pasted in.

The format is borrowed from the guides I wrote for fini-net/gh-observer, which got through the passing form this way. Every answer here was checked against DNSControl's actual repo rather than carried over.

Things the guides flag (separate PRs, not this one)

Passing isn't quite free. Two MUST criteria need small fixes first:

  • SECURITY.md tells people to report vulnerabilities in a public issue. GitHub private vulnerability reporting is already enabled on the repo, but SECURITY.md never mentions it.
  • There's no written test policy. The guide includes a short "Tests" section to add to CONTRIBUTING.md.

Silver is a bigger lift. Unit-test statement coverage is about 37%, against a required 80%. Release builds also aren't bit-for-bit reproducible yet, though -trimpath plus mod_timestamp in GoReleaser probably fixes that. Silver also needs governance and similar documents that @TomOnTime should sign off on.

Testing

  • markdownlint-cli2 "OpenSSF/*.md" is clean.
  • Every blob/main/... evidence path exists in the repo, except the documents the silver guide says to create.
  • Every URL-required criterion has a full URL in its justification text.
  • The criterion counts per section match the live form.

🤖 Generated with Claude Code

Add developer-only copy-paste guides for filling out the OpenSSF Best
Practices badge form (passing and silver tiers), adapted to DNSControl's
actual evidence. CII-Best-Practices is the only OpenSSF Scorecard check
still scoring 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chicks-net
chicks-net requested a review from TomOnTime as a code owner December 5, 2026 01:13
TomOnTime added a commit that referenced this pull request Dec 5, 2026
## Why

Follow-up to #5176, which adds guides for the OpenSSF Best Practices
badge (the last 0 on our OpenSSF Scorecard). Those guides flagged two
passing-tier MUST criteria we can't honestly mark Met today. This PR
fixes both.

## What changed

**SECURITY.md** (`vulnerability_report_private`,
`vulnerability_report_process`)

The "Reporting a Vulnerability" section told people to report
vulnerabilities by opening a public GitHub issue, which announces the
hole to everyone before there's a fix. GitHub private vulnerability
reporting is already enabled on this repo, but nothing pointed to it.
The section now:

- asks reporters not to use public issues for security bugs
- links to the private advisory form (`/security/advisories/new`)
- states the response process: we aim to acknowledge within 1 week (14
days at most), fix in the next release, then publish the advisory and
credit the reporter

The 14-day ceiling matches the badge's `vulnerability_report_response`
criterion, and the credit line covers silver's
`vulnerability_report_credit`. I kept the existing "usually within 1
week" goal.

**CONTRIBUTING.md** (`test_policy`, and later silver's
`test_policy_mandated`)

We already test new features, and in the last six months 42 of 54 fix
commits touched tests, but the rule was never written down. A new
"Tests" section says major new functionality needs automated tests, bug
fixes should come with a failing-then-passing test, new record types
need parse tests, new providers need integration coverage, and CI must
pass before merge. It links to the existing rtype, provider, and
integration-test guides.

@TomOnTime, both of these are policy wording, so please adjust anything
that doesn't match how you want the project run.

## Testing

- Docs only, no code changes.
- `markdownlint-cli2` reports no new issues. The remaining warnings are
long lines that were already in these files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
@TomOnTime
TomOnTime merged commit 819c3d9 into DNSControl:main Dec 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants