Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

Harden benchmark stack and CI supply chain - #19

Merged
frahlg merged 4 commits into
mainfrom
claude/bench-ci-hardening
Jul 21, 2026
Merged

frahlg merged 4 commits into
mainfrom
claude/bench-ci-hardening

Conversation

@frahlg

@frahlg frahlg commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • bind every benchmark database port to 127.0.0.1
  • reject malformed bundle CRC values before Prometheus or MetricsQL use
  • pin CI actions to full commit SHAs
  • keep Rust 1.97.1 explicit while pinning dtolnay/rust-toolchain to commit 2c7215f in its main history

Roadmap

This supports M4 comparative benchmark and edge hardening. It keeps the local benchmark stack private and makes its CI inputs stable.

Checks

  • GitHub CI: format, Clippy, and all tests
  • docker compose -f bench/compose.yml config
  • Python compile and CRC input checks

Closes #11
Closes #12
Closes #13

claude added 3 commits July 21, 2026 09:12
The bench compose stack published every database port on 0.0.0.0,
exposing unauthenticated stores to the local network. Bind all host
port mappings to 127.0.0.1, which the benchmark clients already
target.

Fixes #11

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCz23P2PXpQ7QAiVtCM5so
The VictoriaMetrics adapter interpolated the crc read from
summary.txt directly into label values and MetricsQL selectors.
Require the crc to be exactly eight lowercase hex digits and fail
with a clear error otherwise.

Fixes #12

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCz23P2PXpQ7QAiVtCM5so
Mutable tags allow a compromised action repository to inject code
into CI. Pin actions/checkout to the v4.4.0 commit and
dtolnay/rust-toolchain to the 1.97.1 commit, keeping the version in
a trailing comment.

Fixes #13

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCz23P2PXpQ7QAiVtCM5so

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f63954232

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Resolved
The previous pin (46511b1) was the generated 1.97.1 version-branch
commit. dtolnay/rust-toolchain documents that full-SHA pins must
reference a commit in the master branch history: version branches are
regenerated and can be pruned, after which the pinned commit is
garbage-collected and the action fails to resolve.

Pin the current master head instead and pass the toolchain version
explicitly via the toolchain input.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCz23P2PXpQ7QAiVtCM5so
@frahlg
frahlg merged commit ffb038e into main Jul 21, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants