Skip to content

chore: add OSS security automation and community health files - #3

Merged
inureyes merged 4 commits into
mainfrom
chore/oss-security-and-community-health
May 18, 2026
Merged

inureyes merged 4 commits into
mainfrom
chore/oss-security-and-community-health

Conversation

@inureyes

@inureyes inureyes commented May 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Implements remaining OSS release follow-up work for #1: D-section security automation, B-section community health files, E-section README polish, plus a bonus discovery (the missing general PR-time audit gate).

Hold the merge — per #1, stack additional follow-ups on this branch or on main and merge them together when the OSS release follow-up is ready to ship.

Section D — Security automation

  • .github/dependabot.yml — cargo (root, mlxcel-core, mlxcel-surgery) + github-actions, weekly Monday 09:00 KST, minor/patch grouping, per-area labels (area:core, area:surgery).
  • deny.toml — cargo-deny config restricted to shipping platforms (aarch64-apple-darwin, aarch64-unknown-linux-gnu), permissive license allow-list, crates.io as only registry.
  • .github/workflows/ci.yml (bonus, not in original chore: complete OSS release rollout #1) — PR-time cargo deny check gate via EmbarkStudios/cargo-deny-action@v2 on ubuntu-latest, path-filtered to Rust changes, top-level read-only permissions and persist-credentials: false. Closes the "external PR can land without security audit" gap discovered while writing this PR.

Advisory fixes applied to Cargo.lock:

  • rustls-webpki 0.103.10 → 0.103.13 — RUSTSEC-2026-0098 / 0099 / 0104 (name-constraint wildcard bug, CRL parsing panic)
  • rand 0.9.2 → 0.9.4 — RUSTSEC-2026-0097 (ThreadRng unsoundness under custom logger + reseed)

Documented exceptions in deny.toml for unmaintained crates with no safe upgrade:

  • bincode 1.3.3 — RUSTSEC-2025-0141 (project permanently shut down; migration to postcard/bitcode/rkyv tracked separately)
  • paste 1.0.15 — RUSTSEC-2024-0436 (archived; transitive via tokenizers; pure macro crate with no runtime impact)

Deviation from #1 D-section: GitHub-native CodeQL is not included because Rust support is in beta tier and produces low-signal results for cargo crates. The functionally equivalent coverage comes from cargo deny check (RustSec advisories + license + source provenance), which is now also wired into the PR gate via ci.yml.

Section B — Community health files

  • SECURITY.md — 90-day coordinated disclosure, severity-based fix timelines, in-scope sections specific to mlxcel (weight-loader deserialization, KV-cache cross-request leakage, distributed-mode peer discovery, release-pipeline tampering), explicitly out-of-scope items (model output quality, upstream MLX bugs, prompt injection).
  • CONTRIBUTING.md — entry-level contributor guide pointing to AGENTS.md for the deep working contract.
  • CITATION.cff — Citation File Format v1.2.0 metadata, Apache-2.0, v0.0.27.
  • .github/ISSUE_TEMPLATE/bug_report.yml — structured form with version / install method / platform / model / logs.
  • .github/ISSUE_TEMPLATE/feature_request.yml — structured form with problem / proposal / scope / acceptance.
  • .github/ISSUE_TEMPLATE/config.yml — disables blank issues; routes security reports to SECURITY.md, questions to Discussions, upstream MLX bugs to ml-explore/mlx.
  • .github/PULL_REQUEST_TEMPLATE.md — summary + test plan + conventional-commit checklist + shared-function comment-update reminder.

After this merges, the community profile health should rise from 50% → 100%.

Section E — README polish

  • Status badges added directly under the H1: license (Apache-2.0), latest release, CI status (links to the new ci.yml). Homebrew badge intentionally omitted because lablup/tap is a third-party tap and shields.io's homebrew/v only resolves against homebrew-core.
  • Contributing section now links to CONTRIBUTING.md (workflow + quality gates) and SECURITY.md (vulnerability reports) with a "do not file as public issues" note.
  • docs/ link integrity check passed: no docs_internal/ references remain anywhere in the public-facing tree.

Test plan

  • cargo deny check — advisories ok, bans ok, licenses ok, sources ok after the advisory fixes and ignore-with-justification entries
  • docs_internal grep across docs/, README.md, CONTRIBUTING.md, SECURITY.md, AGENTS.md returns 0 matches
  • ci.yml runs successfully on this PR after push (verifies the workflow is well-formed and the cargo-deny gate passes against the lock file in this branch)
  • Visual inspection of issue / PR templates at https://github.com/lablup/mlxcel/issues/new/choose after merge
  • README badges render correctly on the public main page after merge
  • First Dependabot run after merge (next Monday 09:00 KST) produces expected per-area-labeled PRs

Explicitly out of scope (follow-up PRs)

  • cargo fmt drift cleanup: 214 fmt violations are accumulated in the tree. A separate fmt-only PR will reformat the tree and add cargo fmt --check to the CI gate. Skipping it here keeps this PR reviewable and lets the fmt diff land as a clearly-labeled noisy commit.
  • cargo clippy and cargo test as PR-level gates: these need a self-hosted macOS Apple Silicon runner because of the MLX C++ FFI build. Future ci.yml extension.
  • packaging env required-reviewer hardening to a real 4-eyes principle: currently registered with prevent_self_review: false while release tooling is being automated. Revisit later (tracked in chore: complete OSS release rollout #1 A-section follow-up note).

Refs

inureyes added 2 commits May 18, 2026 16:27
- Add `.github/dependabot.yml` covering cargo (root, mlxcel-core,
  mlxcel-surgery) and github-actions ecosystems on a weekly Monday
  09:00 Asia/Seoul schedule with minor/patch grouping and per-area
  labels.

- Add `deny.toml` configuring cargo-deny: targets restricted to the
  shipping platforms (aarch64-apple-darwin, aarch64-unknown-linux-gnu),
  permissive license allow-list including MIT-0 and CDLA-Permissive-2.0,
  crates.io as the only allowed registry, and advisory ignores with
  justifications for bincode 1.3.3 (RUSTSEC-2025-0141, permanently
  unmaintained, no safe upgrade) and paste 1.0.15 (RUSTSEC-2024-0436,
  archived, transitive via tokenizers).

- Update Cargo.lock to clear the three remaining actionable advisories:
  rustls-webpki 0.103.10 -> 0.103.13 (RUSTSEC-2026-0098/0099/0104, name
  constraint and CRL parsing bugs) and rand 0.9.2 -> 0.9.4
  (RUSTSEC-2026-0097, ThreadRng unsoundness with custom logger).

`cargo deny check` now reports `advisories ok, bans ok, licenses ok,
sources ok`.

Part of #1.
Fills the community-health gap left after the public flip (previously
50% on the GitHub community profile).

- `SECURITY.md`: 90-day coordinated disclosure policy with severity-based
  fix timelines, GitHub Security Advisories as the preferred report
  channel + [email protected], in/out-of-scope sections specific to
  the mlxcel runtime surface (weight loader deserialization, KV-cache
  cross-request leakage, distributed-mode peer discovery, release
  pipeline tampering), safe harbor for good-faith research, and pointer
  to cargo-deny / Dependabot as the dependency audit baseline.

- `CONTRIBUTING.md`: contributor entry point that links to AGENTS.md for
  the deep working contract; PR workflow with the local quality gates
  (fmt / clippy / test / cargo-deny), conventional commit prefixes,
  and pointers to docs/adding-models.md and the MLX upstream pin sync
  procedure.

- `CITATION.cff`: Citation File Format v1.2.0 metadata for academic
  citations (Apache-2.0, v0.0.27, 2026-05-18 release date).

- `.github/ISSUE_TEMPLATE/bug_report.yml`: structured form with
  version / install method / platform / model / logs fields, pre-submit
  checks that route security reports to SECURITY.md, and the
  type:bug + status:ready labels applied automatically.

- `.github/ISSUE_TEMPLATE/feature_request.yml`: structured form with
  problem / proposal / alternatives / scope / acceptance fields and
  type:enhancement + status:ready labels.

- `.github/ISSUE_TEMPLATE/config.yml`: disables blank issues and routes
  security to the private advisory channel, questions to Discussions,
  and upstream MLX bugs to ml-explore/mlx.

- `.github/PULL_REQUEST_TEMPLATE.md`: prompts for summary, related
  issues with closing keywords, test plan including cargo-deny and
  real-checkpoint validation, and conventional-commit + shared-function
  comment-update checklist.

Part of #1.
@inureyes inureyes added type:chore Maintenance tasks (build, CI, etc.) priority:high High priority status:review Under review labels May 18, 2026
@inureyes inureyes mentioned this pull request May 18, 2026
44 tasks done
inureyes added 2 commits May 18, 2026 16:51
Adds `.github/workflows/ci.yml` so every Rust-touching push and PR runs
`cargo deny check` automatically. Previously mlxcel had no general PR
audit gate — `release.yml` and `pipeline-parallel-ci.yml` only fire on
releases and labeled distributed test runs respectively, leaving
external PRs without any security audit.

Design:
- Runs on `ubuntu-latest` (github-hosted) using
  `EmbarkStudios/cargo-deny-action@v2` (pre-built binary, no cargo
  install delay).
- Path-filtered via `dorny/paths-filter@v4` so non-Rust changes
  (docs-only, workflow tweaks unrelated to Rust files) do not trigger
  the audit job.
- Top-level `permissions: contents: read` and job-level read-only
  permissions, matching the hardening pattern already established in
  `release.yml`. `persist-credentials: false` on every checkout.

`cargo fmt --check`, `clippy`, and `cargo test` are intentionally not
included here: 214 fmt drift entries are already accumulated in the
tree (separate fmt-only PR will reformat and add the fmt gate), and
clippy/test need a self-hosted macOS Apple Silicon runner because of
the MLX C++ FFI build — tracked as a future ci.yml extension.

Part of #1.
Closes the remaining E-section items from #1.

- Status badges directly under the H1: license (Apache-2.0), latest
  release, and CI status (links to the `ci.yml` workflow added in the
  previous commit). Homebrew badge intentionally omitted because
  `lablup/tap` is a third-party tap and shields.io's `homebrew/v` badge
  only resolves against homebrew-core.

- Contributing section now links to `CONTRIBUTING.md` for the
  contributor workflow and the local quality gates, and to
  `SECURITY.md` for vulnerability reports — with an explicit "do not
  file these as public issues" note.

`docs/` link integrity check passed: no `docs_internal/` references
remain in `docs/`, `README.md`, `CONTRIBUTING.md`, `SECURITY.md`, or
`AGENTS.md`.

Part of #1.
@inureyes
inureyes merged commit cb2002b into main May 18, 2026
2 checks passed
@inureyes
inureyes deleted the chore/oss-security-and-community-health branch May 18, 2026 08:02
@inureyes inureyes added status:done Completed and removed status:review Under review labels May 18, 2026
@inureyes inureyes self-assigned this May 18, 2026
@inureyes inureyes added this to the 0.1 milestone Jun 21, 2026
be-free-snowboy pushed a commit to freestylejs/snowbrain-mlxcel that referenced this pull request Oct 27, 2026
Closes the remaining D/B/E-section work from lablup#1 plus a bonus discovery
(missing PR-time audit gate).

Section D — security automation:
- .github/dependabot.yml (cargo root/core/surgery + github-actions,
  weekly Monday 09:00 KST, per-area labels)
- deny.toml (cargo-deny config for shipping platforms + permissive
  license allow-list + crates.io as only registry)
- .github/workflows/ci.yml (bonus): PR-time `cargo deny check` gate via
  EmbarkStudios/cargo-deny-action@v2 on ubuntu-latest, path-filtered,
  least-privilege permissions + persist-credentials false
- Advisory fixes: rustls-webpki 0.103.10 -> 0.103.13 (RUSTSEC-2026-0098
  /0099/0104), rand 0.9.2 -> 0.9.4 (RUSTSEC-2026-0097)
- Documented unmaintained-with-justification: bincode 1.3.3
  (RUSTSEC-2025-0141), paste 1.0.15 (RUSTSEC-2024-0436)

Section B — community health (50% -> 100% profile health):
- SECURITY.md (90-day coordinated disclosure, mlxcel-specific scope)
- CONTRIBUTING.md (entry-level, points to AGENTS.md for the deep
  contract)
- CITATION.cff (Citation File Format v1.2.0)
- .github/ISSUE_TEMPLATE/{bug_report,feature_request,config}.yml
- .github/PULL_REQUEST_TEMPLATE.md

Section E — README polish:
- Status badges (license, latest release, CI)
- Contributing section linked to CONTRIBUTING.md + SECURITY.md
- docs/ link integrity verified (no docs_internal/ references)

Follow-up issues filed: lablup#4 (fmt cleanup + fmt CI gate), lablup#5
(clippy/test PR gate on self-hosted macOS), lablup#6 (packaging env 4-eyes
hardening, backlog), lablup#7 (workspace conversion), lablup#8 (bincode 1.x
migration).

Part of lablup#1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:high High priority status:done Completed type:chore Maintenance tasks (build, CI, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant