Repository navigation
chore: add OSS security automation and community health files - #3
Merged
Merged
Conversation
- 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.
44 tasks done
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.
This was referenced May 18, 2026
4 tasks done
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.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mainand 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-denyconfig 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-timecargo deny checkgate viaEmbarkStudios/cargo-deny-action@v2onubuntu-latest, path-filtered to Rust changes, top-level read-only permissions andpersist-credentials: false. Closes the "external PR can land without security audit" gap discovered while writing this PR.Advisory fixes applied to
Cargo.lock:rustls-webpki0.103.10 → 0.103.13— RUSTSEC-2026-0098 / 0099 / 0104 (name-constraint wildcard bug, CRL parsing panic)rand0.9.2 → 0.9.4— RUSTSEC-2026-0097 (ThreadRngunsoundness under custom logger + reseed)Documented exceptions in
deny.tomlfor unmaintained crates with no safe upgrade:bincode1.3.3 — RUSTSEC-2025-0141 (project permanently shut down; migration to postcard/bitcode/rkyv tracked separately)paste1.0.15 — RUSTSEC-2024-0436 (archived; transitive viatokenizers; 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 viaci.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 toAGENTS.mdfor 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 toSECURITY.md, questions to Discussions, upstream MLX bugs toml-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
ci.yml). Homebrew badge intentionally omitted becauselablup/tapis a third-party tap and shields.io'shomebrew/vonly resolves against homebrew-core.CONTRIBUTING.md(workflow + quality gates) andSECURITY.md(vulnerability reports) with a "do not file as public issues" note.docs/link integrity check passed: nodocs_internal/references remain anywhere in the public-facing tree.Test plan
cargo deny check—advisories ok, bans ok, licenses ok, sources okafter the advisory fixes and ignore-with-justification entriesdocs_internalgrep acrossdocs/,README.md,CONTRIBUTING.md,SECURITY.md,AGENTS.mdreturns 0 matchesci.ymlruns 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)https://github.com/lablup/mlxcel/issues/new/chooseafter mergeExplicitly out of scope (follow-up PRs)
cargo fmtdrift cleanup: 214 fmt violations are accumulated in the tree. A separate fmt-only PR will reformat the tree and addcargo fmt --checkto the CI gate. Skipping it here keeps this PR reviewable and lets the fmt diff land as a clearly-labeled noisy commit.cargo clippyandcargo testas PR-level gates: these need a self-hosted macOS Apple Silicon runner because of the MLX C++ FFI build. Futureci.ymlextension.packagingenv required-reviewer hardening to a real 4-eyes principle: currently registered withprevent_self_review: falsewhile release tooling is being automated. Revisit later (tracked in chore: complete OSS release rollout #1 A-section follow-up note).Refs