docs: describe the nil encryptor, not the deployment (S04-A required encryption block plan: 14/16)

Summary

  • Problem: many comments in cmd/ and internal/datastore/ say a nil encryptor is "a deployment with no encryption block". Step 12 makes the block required, so those comments go false.
  • Impact: none for users. Only comments, three subtest names and some assertion messages change.
  • Change: each comment now says what the store or the wiring does with a nil encryptor. A sealed row or a credential write is refused, and an anonymous row still reads. That text is true before and after Step 12.
  • Downsides: docs/dev/observability.md still has the old wording. It waits for Step 15.

Checklist

  • Ran it: n/a, comments only. The pre-commit unit suites for both packages pass. The CI integration lint gate, scripts/ci/lint-integration.sh, reports 0 findings on the changed lines.
  • Interfaces and data: none. Three subtests are renamed: the nil-encryptor constructor cases in the container, maven and npm credential test files. Nothing in the tree refers to the old names.
  • Failure: n/a, no behavior change.
  • Rollout: n/a, no production code change.
  • Hot path: no.
  • Database: no migration or query.
  • Security: no new input, route or permission. The comments name the refusals the code has: in every remote store, a nil encryptor refuses a sealed read and a credential write.
  • ADRs: none. ./scripts/adr-freshness.sh reports the mirror current. ADR-007 describes the credential columns, not how a store treats a nil encryptor.
  • E2E: none. No user journey changes.
  • Simplicity: one grep list in the plan decides which files change, so a reviewer can rerun it. It finds none of its phrases in those files now.

Plan and spec amendments

Step 14's own text changes:

  • The grep list gains "configured-nothing". At 78fddbba8 it matches maven_remote_repositories.go, so the file list gains that file.
  • The file list gains wire_iam_test.go. It matches at 84e5e5e60f, not at 78fddbba8, and no other step owns it.
  • Shared seams name !2969 (merged) (see Merge order).
  • The lint acceptance now reads "gain no finding", which is what the CI gate checks. A full integration-tagged run over cmd/artifact-registry and internal/datastore reports 5,886 findings, all on lines this MR does not touch, so "pass" was out of reach for a comments-only step.
  • Scope and Files name assertion messages next to comments and subtest names.
  • The Status row records this MR.

Merge order

  • No dependency. This MR can merge before or after Step 12.
  • !2969 (merged) rewrites the base constants in wire_iam_test.go and already conflicts with main there. Whichever lands second keeps both changes.
  • !3226 (closed) touches two of these test files, but it already conflicts with main in many files. Re-check once it rebases.
  • !3379 (merged) touches wire_oci_remote_test.go and merges cleanly.

Closes https://gitlab.com/gitlab-org/ops/artifact-registry/-/work_items/1490

Merge request reports

Loading
Loading