Skip to content

security: redact revoked GitLab PAT from QUICKSTART.adoc — greens the last two reds - #536

Merged
hyperpolymath merged 2 commits into
mainfrom
security/purge-revoked-gitlab-token
Jul 27, 2026
Merged

security: redact revoked GitLab PAT from QUICKSTART.adoc — greens the last two reds#536
hyperpolymath merged 2 commits into
mainfrom
security/purge-revoked-gitlab-token

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Redacts the revoked GitLab PAT from rhodium-standard-repositories/rhodium-pipeline/docs/QUICKSTART.adoc — the last blocker keeping main red.

  • The file (a pasted session transcript) contained a live, write-scoped GitLab PAT 40 times. It has now been revoked at GitLab (owner-confirmed 2026-07-27).
  • All 40 occurrences replaced with [REDACTED-REVOKED-PAT] (no glpat- prefix / high-entropy body, so it can't re-trip gitleaks or Hypatia).
  • Clears the Hypatia secret_detected findings that .hypatia-baseline.json deliberately left unbaselined (a live credential must never be baselined). With them gone, the baseline gate has nothing left to block on.

Expected result: greens Hypatia Security Scan + Governance → main fully green.

History note: the token is still in git history (and was public), so revocation is the real fix and is already done. A git filter-repo/BFG history purge is optional cleanup, not required to neutralise the now-dead credential.

…ces)

The pasted session transcript in
rhodium-standard-repositories/rhodium-pipeline/docs/QUICKSTART.adoc contained a
live, write-scoped GitLab PAT 40 times. The token has now been REVOKED at GitLab
(owner-confirmed 2026-07-27); this redacts all 40 occurrences to
[REDACTED-REVOKED-PAT], clearing the Hypatia secret_detected findings that were
deliberately left unbaselined and are the sole cause of the red Hypatia +
Governance gates.

Revocation (already done) is the actual remediation; a history purge is optional.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath merged commit af5235e into main Jul 27, 2026
19 of 21 checks passed
@hyperpolymath
hyperpolymath deleted the security/purge-revoked-gitlab-token branch July 27, 2026 14:59
@sonarqubecloud

Copy link
Copy Markdown

hyperpolymath added a commit that referenced this pull request Jul 27, 2026
…tia Security Scan (#538)

Greens **Hypatia Security Scan**, the last red besides the token.

## Root cause
The `scan / Hypatia Neurosymbolic Analysis` job's **"Gate on baseline"**
step (in `hypatia-scan-reusable.yml`) ran `apply-baseline.sh` **directly
on the raw findings** — with none of the path relativization that
`governance-reusable.yml` performs. Hypatia's
`code_safety`/`honest_completion` modules emit **absolute** host paths
(`/home/runner/work/standards/standards/…`) in `.file`, while
`.hypatia-baseline.json` uses **repo-relative** paths. So those findings
never matched the baseline, were treated as unbaselined, and blocked the
gate — even though they're acknowledged.

That's why, on the token-purge PR (#536), the Governance baseline gate
**passed** but this scan gate **failed**: governance relativizes, this
one didn't.

## Fix
Added the identical `jq` relativization the governance gate uses (the
hypatia#566 stopgap). Estate-wide — fixes the scan gate for **every**
repo that commits a baseline.

## Verification
- The `jq` was unit-tested: `/root/a → a`, `rel/b` unchanged, `/root →
.`.
- Correctness proof: the governance gate passes at the stricter `info`
threshold once the token is gone, so at this gate's `high` threshold,
with matching relativization, nothing unbaselined remains to block on.

## Merge order
Independent of, but complementary to, **#536** (token purge). #536
greens Governance; this greens the scan gate. **Both** must land for
`Hypatia Security Scan` to go green (the scan sees the live token as a
real finding until #536, and sees unrelativized baselined findings until
this). Together → main fully green.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
hyperpolymath added a commit that referenced this pull request Jul 27, 2026
…536)

The token redaction in #536 edited a file under the
rhodium-standard-repositories spec home via the GitHub API, where no
pre-commit hook runs, so the derived registry went stale by exactly one
source_hash and Registry Verify turned red on main. Regenerated with
scripts/build-registry.sh: one hash updated, no entries added/removed,
TOPOLOGY.md unchanged; --check and scorecards --check --strict both pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
hyperpolymath added a commit that referenced this pull request Jul 27, 2026
… last red on main (#539)

Greens **Registry Verify** — the only remaining red on main.

**Cause:** #536's token redaction edited
`rhodium-standard-repositories/rhodium-pipeline/docs/QUICKSTART.adoc`,
which is under the `rhodium-standard-repositories` spec home. The commit
went in via the GitHub API (no local pre-commit hook), so the derived
registry went stale by **exactly one `source_hash`** — the RSR entry.

**Fix:** regenerated with `scripts/build-registry.sh` from a fresh clone
of main (`564413e82`):
- one hash updated (`6a00a68f…` → `d196156c…`), no entries
added/removed, `TOPOLOGY.md` unchanged
- verified locally: `build-registry.sh --check` ✓ and
`build-scorecards.sh --check --strict` ✓ (single-step fix this time — no
scorecard fallout)

With this merged, main should be **fully green** for the first time: the
token reds cleared via #536+#538, and this clears the drift #536 itself
introduced.

**Process note for the record:** any spec-home edit made via the API
bypasses the #381 pre-commit guard — the CI auto-regen bot (#381 option
2) would close that hole permanently.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant