Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/release-image-serve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ name: Release feed server image
# name (upload-artifact v7 refuses a second upload). A second workflow
# file is a second run, so the names do not meet.
#
# reusable-release-image.yml@v0.28.1 has a context input and no file
# input. smoke-test-command runs after that workflow's checkout and
# before the build, so copying Dockerfile.serve over Dockerfile selects
# the feed server image.
# reusable-release-image.yml has a context input and no file input.
# smoke-test-command runs on every platform runner after that workflow's
# checkout and before that platform's build, so copying Dockerfile.serve
# over Dockerfile selects the feed server image on every leg. The per-
# platform digest artifacts collide across two calls in one run too.
#
# GHCR packages pushed with GITHUB_TOKEN must live under this repository:
# ghcr.io/mechubsec/mecfeedmcp/mecfeed-serve. Docker Hub is a separate
Expand All @@ -26,12 +27,11 @@ jobs:
contents: read
packages: write
id-token: write
uses: mechubsec/mecmcp/.github/workflows/reusable-release-image.yml@39e7308cda922dadad18a0b0a5775ec1ab4a0bca # v0.32.0
uses: mechubsec/mecmcp/.github/workflows/reusable-release-image.yml@ab6786faca282cfbfffed5668f6a15929ce26bef # v0.33.1
with:
image: ghcr.io/${{ github.repository }}/mecfeed-serve
dockerhub-image: docker.io/mechub/mecfeed-serve
description: 'Read-only TLS feed server firewalls pull from'
platforms: linux/amd64
smoke-test-command: cp Dockerfile.serve Dockerfile
secrets:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -56,6 +56,10 @@ jobs:
with:
version: v0.70.0
- name: Scan pushed image
# The digest is a multi-arch manifest list, so scan each platform.
# --image-src remote: a local daemon copy would silently win over --platform.
run: |
trivy image --scanners vuln --exit-code 1 --ignore-unfixed \
"ghcr.io/${{ github.repository }}/mecfeed-serve@${{ needs.release-serve.outputs.digest }}"
for platform in linux/amd64 linux/arm64; do
trivy image --image-src remote --platform "${platform}" --scanners vuln --exit-code 1 --ignore-unfixed \
"ghcr.io/${{ github.repository }}/mecfeed-serve@${{ needs.release-serve.outputs.digest }}"
done
11 changes: 7 additions & 4 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ jobs:
contents: read
packages: write
id-token: write
uses: mechubsec/mecmcp/.github/workflows/reusable-release-image.yml@39e7308cda922dadad18a0b0a5775ec1ab4a0bca # v0.32.0
uses: mechubsec/mecmcp/.github/workflows/reusable-release-image.yml@ab6786faca282cfbfffed5668f6a15929ce26bef # v0.33.1
with:
image: ghcr.io/${{ github.repository }}
dockerhub-image: docker.io/mechub/mecfeedmcp
description: 'Governed threat-intel feed MCP server'
platforms: linux/amd64
secrets:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -40,9 +39,13 @@ jobs:
with:
version: v0.70.0
- name: Scan pushed image
# The digest is a multi-arch manifest list, so scan each platform.
# --image-src remote: a local daemon copy would silently win over --platform.
run: |
trivy image --scanners vuln --exit-code 1 --ignore-unfixed \
"ghcr.io/${{ github.repository }}@${{ needs.release.outputs.digest }}"
for platform in linux/amd64 linux/arm64; do
trivy image --image-src remote --platform "${platform}" --scanners vuln --exit-code 1 --ignore-unfixed \
"ghcr.io/${{ github.repository }}@${{ needs.release.outputs.digest }}"
done

tag-version:
name: Resolve tag version
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- Workspace scaffold: `mecfeedmcp-core`, `mecfeedmcp`, `mecfeed-serve`.
- CI, cargo-deny, cargo-audit, gitleaks, CodeQL, packaging conformance.
- Distroless images and the mecmcp v0.28.1 release pipeline.
- Images for `linux/amd64` and `linux/arm64`, each built on a native runner; the
post-release Trivy scan covers both (mechubsec/rustjunosmcp#648).
- Empty MCP tool surface and empty read-only feed server. Not usable in production.
- Indicator checks reject special-purpose ranges and overly broad prefixes.
- `mecfeedmcp-core` admits indicators, versions immutable snapshots, and renders vendor feed documents.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# binaries. Builder glibc generation must be ≤ runtime generation: Debian 13
# (trixie) on both sides.

# Pinned to the amd64 digest resolved on 2026-08-25.
# Pinned to the multi-arch image index digest resolved on 2026-08-25.
FROM rust:1.99-slim-trixie@sha256:2752b332db73fdbb7dc576f06c82ed1f312005784ef913d7e04a28f5f55dc581 AS builder

WORKDIR /build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.serve
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Multi-stage build producing a distroless image with no shell. Builder glibc
# generation must be ≤ runtime generation: Debian 13 (trixie) on both sides.

# Pinned to the amd64 digest resolved on 2026-08-25.
# Pinned to the multi-arch image index digest resolved on 2026-08-25.
FROM rust:1.99-slim-trixie@sha256:2752b332db73fdbb7dc576f06c82ed1f312005784ef913d7e04a28f5f55dc581 AS builder

WORKDIR /build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The feed server is on the enforcement path of every subscribed firewall, so it i
- **TLS only**, modern ciphers; optional **mTLS** and/or per-feed credentials (HTTP Basic for firewalls that support it) and a **client IP/CIDR allowlist**.
- **Integrity**: every snapshot carries a digest-signed manifest; the server refuses to serve a snapshot whose manifest does not verify. `ETag`/`If-None-Match` so firewalls fetch only on change.
- **Abuse limits**: request size/time limits, per-client rate limits, structured access log feeding the mecmcp audit pipeline.
- **mecmcp image rules** ([DOCKER-STANDARD](https://github.com/mechubsec/mecmcp/blob/main/docs/DOCKER-STANDARD.md), [PACKAGING](https://github.com/mechubsec/mecmcp/blob/main/docs/PACKAGING.md)): distroless `cc-debian13:nonroot`, uid/gid **65532**, no shell, read-only root filesystem, `cap_drop: ALL`, linux/amd64, cosign-signed and SBOM-attested images published on signed tags to GHCR and Docker Hub, plus the signed Debian 13 LXC tarball.
- **mecmcp image rules** ([DOCKER-STANDARD](https://github.com/mechubsec/mecmcp/blob/main/docs/DOCKER-STANDARD.md), [PACKAGING](https://github.com/mechubsec/mecmcp/blob/main/docs/PACKAGING.md)): distroless `cc-debian13:nonroot`, uid/gid **65532**, no shell, read-only root filesystem, `cap_drop: ALL`, linux/amd64 + linux/arm64, cosign-signed and SBOM-attested images published on signed tags to GHCR and Docker Hub, plus the signed Debian 13 LXC tarball.

## What stays out of this repo

Expand Down
Loading