Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
13efda0
The rendered control-proxy unit carries the same switches as the comp…
pithead-developer[bot] Nov 27, 2026
6e732af
install.sh keeps every download on HTTPS and checks the signature of …
pithead-developer[bot] Nov 27, 2026
fae304a
A requested factory reset stays requested until the reformat has succ…
pithead-developer[bot] Nov 27, 2026
73264e8
The egress request runner removes entries that are not regular files
pithead-developer[bot] Nov 27, 2026
3223ed1
Support bundles mask the generated login and setup token, and the boo…
pithead-developer[bot] Nov 27, 2026
68cd8d5
Bound XvB player counts, future-dated wins and a rig's config block
pithead-developer[bot] Nov 27, 2026
7275176
Mount the Tari config folder read-only and render config.toml in a pr…
pithead-developer[bot] Nov 27, 2026
7614280
Read the Tor cookie, the Tor state file and markers through one check…
pithead-developer[bot] Nov 27, 2026
0bfc257
Say so when stratum TLS is on and the key pair is missing
pithead-developer[bot] Nov 27, 2026
8ffca93
A Fresh start reinstall also empties the stack's named volumes
pithead-developer[bot] Nov 27, 2026
96c074c
The boot egress unit waits for the xtables lock, and Docker does not …
pithead-developer[bot] Nov 27, 2026
5e36720
The schema-hold marker replaces whatever sits at its name
pithead-developer[bot] Nov 27, 2026
027903e
The data-folder check refuses when a protected folder cannot be resolved
pithead-developer[bot] Nov 27, 2026
1856dca
The setup wizard's cookie no longer carries the setup code
pithead-developer[bot] Nov 27, 2026
d8b1eea
The monerod entrypoint writes its config file owner-only
pithead-developer[bot] Nov 27, 2026
d75ca7d
Hand passwords, tokens and keys to jq and awk through the environment
pithead-developer[bot] Nov 27, 2026
b18f4f7
Add dependency review and diff-only image gates; report the rootfs sc…
pithead-developer[bot] Nov 27, 2026
580eb7d
Fix red pin-watch and lychee schedules; add a daily security sweep
pithead-developer[bot] Nov 27, 2026
09a0cb4
Trivy hygiene, mute expiry report, zizmor on composite actions, Depen…
pithead-developer[bot] Nov 27, 2026
f5b290d
KVM battery: XvB off by default, one short XvB-on leg
pithead-developer[bot] Nov 27, 2026
f5eac24
Count failed logins per IPv6 /64 network in the dashboard and setup w…
pithead-developer[bot] Nov 27, 2026
fd316f5
doctor warns on a Docker Engine older than 28; the docs name 28 as th…
pithead-developer[bot] Nov 27, 2026
239dd07
A rig pools change from the dashboard needs a typed APPLY
pithead-developer[bot] Nov 27, 2026
eba7e8e
Docs install with install.sh and check a bundle's signature before un…
pithead-developer[bot] Nov 27, 2026
70094c6
up refuses to start containers when the Tor-only egress rules are not…
pithead-developer[bot] Nov 27, 2026
32c8f7c
Count failed Basic-auth logins in the dashboard's sign-in limiter
pithead-developer[bot] Nov 27, 2026
089797a
Keep the setup wizard server within its line budget
pithead-developer[bot] Nov 27, 2026
39ae293
Dashboard app answers only requests that come through Caddy
pithead-developer[bot] Nov 28, 2026
0e71d16
Give the Tari upgrade-space test the firewall stubs the rest of the s…
pithead-developer[bot] Nov 28, 2026
4a27e38
Keep the combined files within their line budgets
pithead-developer[bot] Nov 28, 2026
a7abbc7
Print where the dashboard proxy secret stands when the fresh default …
pithead-developer[bot] Nov 28, 2026
358884e
Take the dashboard web-front check out of this batch
pithead-developer[bot] Nov 28, 2026
5cc9851
Merge develop into fix/batch-20261127
Nov 28, 2026
5254cb3
Send the typed APPLY with pools changes from the end-to-end harness
pithead-developer[bot] Nov 28, 2026
b171f72
Re-run the boot egress unit in the end-to-end harness without restart…
pithead-developer[bot] Nov 28, 2026
288668a
Poll the short XvB leg's route check and name the part that differs
pithead-developer[bot] Nov 28, 2026
5189c6b
Read Podman's container start time in the XvB-off dwell row
pithead-developer[bot] Nov 28, 2026
96541e5
Drop the duplicate libzstd1 line from the dashboard image
pithead-developer[bot] Nov 28, 2026
411648a
Read the short XvB leg's route in the same step that routes it, as th…
pithead-developer[bot] Nov 28, 2026
9b2969b
Run Caddy with its admin endpoint off and check its health on a loopb…
pithead-developer[bot] Dec 1, 2026
049f4fb
Name iptables from the system folders in the boot firewall units
pithead-developer[bot] Dec 1, 2026
3be3cc8
Ship early CPU microcode for Intel and AMD in the appliance image
pithead-developer[bot] Dec 1, 2026
c8a311f
Merge develop into fix/batch-20261201
pithead-developer[bot] Dec 1, 2026
2b48193
Keep the doctor appliance test within its line budget
pithead-developer[bot] Dec 1, 2026
de56da9
Let the Caddy loopback health site answer the previous release's prob…
Dec 1, 2026
bde388b
Check both release health probes in the live Caddy test
pithead-developer[bot] Dec 1, 2026
9fa3b46
Re-run the hardware set on a new head
pithead-developer[bot] Dec 4, 2026
7dd704b
Bump the Tor pin to 0.4.9.18-r0
pithead-developer[bot] Dec 4, 2026
8084cc9
Upgrade busybox, busybox-binsh and ssl_client in the Alpine images
pithead-developer[bot] Dec 4, 2026
2eafb84
Keep the tor user at 100:101 in the tor image
pithead-developer[bot] Dec 4, 2026
9232e67
Merge develop into fix/batch-20261201
pithead-developer[bot] Dec 4, 2026
0cd6545
Retry the config-reset shutdown, restart the proxy on a new TLS pair,…
Dec 4, 2026
db4568e
Give the retry and TLS-restart tests the stubs they need to run
Dec 4, 2026
ee6ac3a
Count the retried shutdowns in the host firewall reset rows
Dec 4, 2026
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
10 changes: 6 additions & 4 deletions .config/trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
# distro CVEs are reported but don't block. The entries below are the currently-accepted *fixable*
# findings, each with a rationale and how it clears. Revisit whenever Dependabot bumps a base image.

# Base-image build tooling living in the python:3.11-slim *system* site-packages — NOT in the app's
# /app/.venv and never invoked at runtime (the entrypoint runs the venv's python). Cleared by a base bump.
CVE-2026-23949
CVE-2026-24049
# Mute policy: a mute carries `exp:YYYY-MM-DD` about 30 days out and a one-sentence reason.
# Trivy stops muting an expired entry; trivyignore-expiry.sh reports entries expiring within 7 days.

# Vendored setuptools copies in the python:3.11-slim base (never run by the app); a base-image bump clears them.
CVE-2026-23949 exp:2026-12-20
CVE-2026-24049 exp:2026-12-20

# Appliance rootfs Go binaries. THIS BLOCK IS DELIBERATELY EMPTY — it stays so nobody re-adds a
# line to it without reading why the last one went. It once held three findings on the grounds that
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/install-trivy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
steps:
- id: attempt1
continue-on-error: true
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # v0.3.1
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # zizmor: ignore[unpinned-tools] v0.3.1
with:
version: ${{ inputs.version }}
cache: true
Expand All @@ -34,15 +34,15 @@ runs:
- id: attempt2
if: steps.attempt1.outcome == 'failure'
continue-on-error: true
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # v0.3.1
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # zizmor: ignore[unpinned-tools] v0.3.1
with:
version: ${{ inputs.version }}
cache: true
- if: steps.attempt1.outcome == 'failure' && steps.attempt2.outcome == 'failure'
run: sleep 30
shell: bash
- if: steps.attempt1.outcome == 'failure' && steps.attempt2.outcome == 'failure'
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # v0.3.1
uses: aquasecurity/setup-trivy@81e514348e19b6112ce2a7e3ecbafe19c1e1f567 # zizmor: ignore[unpinned-tools] v0.3.1
with:
version: ${{ inputs.version }}
cache: true
6 changes: 3 additions & 3 deletions .github/actions/retry-trivy-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ description: >

The retry also covers a vulnerability-DB registry refusal (#3296): mirror.gcr.io answered 403 to
both attempts of one run because they ran within the same second. So the retry waits first, and
lists ghcr.io ahead of the mirror (TRIVY_DB_REPOSITORY, tried in order), so a refusing mirror
no longer fails an unrelated PR. The first attempt keeps trivy's default order.
lists ghcr.io ahead of the ECR mirror (TRIVY_DB_REPOSITORY, tried in order), so a refusing registry
no longer fails an unrelated PR. The first attempt gets the same list from install-trivy.
inputs:
image-ref:
required: true
Expand All @@ -27,7 +27,7 @@ runs:
run: sleep 30
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db:2,mirror.gcr.io/aquasec/trivy-db:2
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db:2
with:
skip-setup-trivy: true
image-ref: ${{ inputs.image-ref }}
Expand Down
38 changes: 35 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Dependabot (Wave 7 tooling, #282): automated dependency + CVE update PRs across every
# supply-chain surface. Grouped + weekly to keep PR volume sane.
#
# Dependabot reads this file from the DEFAULT branch (`develop`) only and resolves every `directory:`
# there; one entry per surface covers everything (CONTRIBUTING.md § One integration branch, #1163, #1425).
version: 2
Expand All @@ -14,6 +11,9 @@ updates:
groups:
actions:
patterns: ["*"]
actions-security:
applies-to: security-updates
patterns: ["*"]

# Dashboard Python deps — bumps the hashed uv.lock + pyproject floors (#283).
- package-ecosystem: "uv"
Expand All @@ -23,6 +23,9 @@ updates:
groups:
python:
patterns: ["*"]
python-security:
applies-to: security-updates
patterns: ["*"]
ignore:
# protobuf/grpcio are pinned to what the vendored Tari gRPC stubs assert at import time
# (see dashboard/pyproject.toml); a major bump needs the stubs regenerated first.
Expand All @@ -48,6 +51,9 @@ updates:
groups:
docker:
patterns: ["*"]
docker-security:
applies-to: security-updates
patterns: ["*"]
ignore:
# Major/minor base bumps (e.g. python 3.11->3.14, ubuntu 24.04->26.04) are deliberate
# migrations, not security updates — keep Dependabot to digest + patch within the pinned tag.
Expand All @@ -65,6 +71,9 @@ updates:
groups:
docker-appliance:
patterns: ["*"]
docker-appliance-security:
applies-to: security-updates
patterns: ["*"]
ignore:
# Same policy as the docker entry above, and it binds the golang builder tag: a 1.26 -> 1.27
# move is a deliberate rebake, not a security update. It does NOT constrain
Expand Down Expand Up @@ -96,6 +105,9 @@ updates:
groups:
compose:
patterns: ["*"]
compose-security:
applies-to: security-updates
patterns: ["*"]
ignore:
# Same policy as the docker entry: digest + patch within the pinned tag. A Tari or Caddy
# major/minor is a deliberate migration (compose flags, config compatibility), not a CVE fix.
Expand Down Expand Up @@ -137,11 +149,31 @@ updates:
groups:
test-harness:
patterns: ["*"]
test-harness-security:
applies-to: security-updates
patterns: ["*"]

- package-ecosystem: "npm"
directory: "/dashboard/tests/browser"
schedule:
interval: "weekly"
groups:
browser-tests:
patterns: ["*"]
browser-tests-security:
applies-to: security-updates
patterns: ["*"]

- package-ecosystem: "cargo"
directory: "/tests/integration/mergemine/fixture"
schedule:
interval: "weekly"
groups:
mergemine-fixture:
patterns: ["*"]
mergemine-fixture-security:
applies-to: security-updates
patterns: ["*"]

- package-ecosystem: "pre-commit"
directory: "/"
Expand Down
184 changes: 4 additions & 180 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,19 @@ on:
push:
branches: [main, develop]
pull_request:
# Two Monday sweeps hang off this schedule (every other job gates itself off the event):
# build-images (#833) rebuilds this branch and scans the rebuild, the only sweep that can go red
# before a release; sweep-shipped (#1313) scans the published ghcr images by resolved digest
# and reports into a tracking issue rather than reddening, since a fixable CVE in a shipped
# image asks for a patch release, a person's decision.
# THIS cron block is the one that fires (`schedule:` reads the DEFAULT branch, `develop`). Prove
# a cadence change fired with `gh run list --json event`: a schedule that never runs looks
# exactly like one that ran and found nothing (#1162).
schedule:
- cron: "0 5 * * 1" # Mondays 05:00 UTC

# Least privilege (#282): every job here only reads the repo — none push commits, comment, or
# publish packages. Narrowing the default GITHUB_TOKEN limits the blast radius of a compromised step.
permissions:
contents: read

# Cancel superseded runs of the same PR; never cancel push runs on main/develop (they set the
# diff-cover baseline and are required checks on the protected branch). #415.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db:2

jobs:
dashboard:
name: Dashboard tests (pytest + coverage)
Expand Down Expand Up @@ -146,173 +137,6 @@ jobs:
image-ref: pithead-${{ matrix.service }}:ci
trivyignores: .config/trivyignore

sweep-shipped:
# The half of the Monday sweep that reports on what users are running (#1313). `build-images`
# above scans a rebuild of this branch; this scans the bytes on the registry.
#
# Every leg resolves the published TAG to a DIGEST and scans the digest: a tag is a moving
# pointer, so only the digest names the bytes a user pulled. It is printed in the report.
#
# fail-fast: false; the report job (always()) names an unscanned image UNCHECKED, not clean.
name: Shipped-image CVE sweep (${{ matrix.service }})
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
service: [monero, p2pool, tor, xmrig-proxy, dashboard, os-rootfs]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Resolve the shipped tag to a digest, and take main's own Trivy ignore file
id: shipped
env:
SERVICE: ${{ matrix.service }}
run: |
set -Eeuo pipefail
# The scheduled run checks out develop. `main` is a different ref and a shallow clone
# does not carry it, so fetch it rather than assume it is here — since #1076 `main` is a
# fast-forward pointer to the released tag, and it is the only ref that knows what
# shipped.
git fetch --no-tags --depth=1 origin main
ver="$(git show origin/main:VERSION)"
[ -n "$ver" ] || { echo "::error::main carries no VERSION — cannot tell what shipped"; exit 1; }
tag="v$ver"
# main's OWN .trivyignore, never develop's; tries the moved path, falls back to the
# pre-move root path until main carries #1901's move (PR #2201), then drop the fallback.
git show origin/main:.config/trivyignore >main.trivyignore 2>/dev/null || git show origin/main:.trivyignore >main.trivyignore
repo="p2pool-starter-stack/pithead-$SERVICE"
# The packages are public, so an anonymous pull token is enough — no registry secret
# enters this workflow.
token="$(curl -fsS "https://ghcr.io/token?scope=repository:$repo:pull" | jq -er .token)"
digest="$(curl -fsSI \
-H "Authorization: Bearer $token" \
-H "Accept: application/vnd.oci.image.index.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.docker.distribution.manifest.v2+json" \
"https://ghcr.io/v2/$repo/manifests/$tag" |
tr -d '\r' | awk 'tolower($1) == "docker-content-digest:" { print $2 }')"
# An unresolved digest must never fall through to a tag scan: the report would then say
# "shipped image" about bytes nobody can identify. Fail the leg instead and let it read
# UNCHECKED.
printf '%s' "$digest" | grep -Eq '^sha256:[0-9a-f]{64}$' ||
{ echo "::error::could not resolve ghcr.io/$repo:$tag to a digest — got [$digest]"; exit 1; }
echo "ref=ghcr.io/$repo@$digest" >>"$GITHUB_OUTPUT"
# The tag every leg swept, so the report can refuse to mix two releases if a cut lands
# mid-run.
printf '%s\n' "$tag" >"sweep-$SERVICE.tag"
- uses: ./.github/actions/install-trivy # the only step that installs trivy here (#2214)
with:
version: v0.73.0 # THE live pin, read by `make lint-trivy-parity` — see build-images (#1290)
- name: Scan the published image by digest (Trivy)
# Same scope as the gate above, and the same engine — but only because #1290's pin is on
# both jobs' install-trivy steps, each read by `make lint-trivy-parity`. Comparing this
# sweep's verdict against the rebuild's is the whole reason both exist, and those two
# literals are what decide which engine each job installs and therefore scans with.
#
# trivy pulls the digest from the registry itself — nothing is built here.
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
skip-setup-trivy: true # scans with the binary the step above installed (#1290, #2214)
image-ref: ${{ steps.shipped.outputs.ref }}
scanners: vuln
severity: HIGH,CRITICAL
ignore-unfixed: true
# Report-only, deliberately. A fixable CVE in an image that is already published cannot
# be fixed by failing this run; it asks for a patch release. The run goes red only when
# the sweep itself could not do its job, which the report job decides.
exit-code: "0"
trivyignores: main.trivyignore
cache: "false"
format: json
output: sweep-${{ matrix.service }}.json
- name: Upload this image's scan output
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: shipped-sweep-${{ matrix.service }}
path: |
sweep-${{ matrix.service }}.json
sweep-${{ matrix.service }}.tag
# An empty upload would reach the report job as a scan that found nothing, which is the
# one thing this must never say off a leg that did not scan.
if-no-files-found: error

sweep-shipped-report:
# One tracking issue, edited in place — the pin-watch.yml / trivyignore-watch.yml posture. An
# issue persists, is assignable, and lets a person write "held until the next cut, here's why"
# in a comment. A red square in the Actions tab cannot hold that, and this finding's whole
# value is the conversation about whether to cut a patch release.
name: Shipped-image CVE sweep — tracking issue
# always() so a failed scan leg still reports: an image with no scan output is UNCHECKED, and
# saying so is the entire point. Skipping the report on a partial sweep would leave the last
# good report standing as if it were current.
if: always() && github.event_name == 'schedule'
needs: sweep-shipped
runs-on: ubuntu-latest
timeout-minutes: 10
# Least privilege (#282): issues.write is this job's one output — it never pushes or publishes.
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Collect every leg's scan output
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: shipped-sweep-*
merge-multiple: true
path: shipped-sweep
- name: Render the report
id: report
run: |
set -uo pipefail
# NOT `set -e`: an incomplete sweep is a result to publish, not a reason to publish
# nothing. The script names the images it could not check and exits 1; the rc is
# carried to the last step so the run still fails loudly.
bash scripts/watch/shipped-image-sweep-report.sh shipped-sweep >report.md
rc=$?
# An empty report is itself a failure to report — never publish silence.
[ -s report.md ] || { echo "The shipped-image sweep produced no report at all — see the run log." >report.md; rc=1; }
echo "rc=$rc" >>"$GITHUB_OUTPUT"
- name: Publish it to the tracking issue
env:
GH_TOKEN: ${{ github.token }}
RC: ${{ steps.report.outputs.rc }}
run: |
set -Eeuo pipefail
# The title is the upsert key and it lives in the script, so there is exactly one
# spelling of it anywhere. A second spelling here would file a second issue on the very
# next run and then keep both stale.
TITLE="$(bash scripts/watch/shipped-image-sweep-report.sh --title)"
body=$(cat report.md)
# Exact title match over the open list, NOT `--search`: the search index lags issue
# creation by minutes, so a search-based dedup files a second issue on the next run.
n=$(bash scripts/watch/find-open-issue.sh "$TITLE")
# A run that could not do its job must not DELETE the "last fully successful" date —
# that date is the only thing separating "failed once this morning" from "has been dead
# for six weeks". Stamp it on success, carry it forward on failure (pin-watch pattern).
if [ "$RC" = "0" ]; then
body="$body"$'\n\n'"_Last fully successful sweep: $(date -u +%F)_"
elif [ -n "$n" ]; then
prev=$(gh issue view "$n" --json body --jq .body | grep -a "^_Last fully successful sweep:" || true)
if [ -n "$prev" ]; then
body="$body"$'\n\n'"$prev (this run could not complete)"
fi
fi
if [ -n "$n" ]; then
gh issue edit "$n" --body "$body"
echo "updated #$n"
else
gh issue create --title "$TITLE" --label infra --body "$body"
fi
- name: Fail the run if the sweep could not cover every shipped image
if: steps.report.outputs.rc != '0'
run: |
echo "::error::the shipped-image sweep did not cover every published image — those images are UNCHECKED, not clean"
exit 1

hadolint:
name: Dockerfile lint (hadolint)
if: github.event_name != 'schedule' # scheduled runs are the CVE sweep — build-images only (#833)
Expand Down Expand Up @@ -395,7 +219,7 @@ jobs:
checksum: 745765a3b6e360ad76743599ae5c42e9278c7edf8bbff9fc76d05bf2623a04dd
enable-cache: false
- name: Audit workflows (injection, token scope, self-hosted-runner risks)
run: uvx zizmor@1.25.2 --offline .github/workflows/
run: uvx zizmor@1.25.2 --offline .github/workflows/ .github/actions/

compose:
name: Compose config + security hardening
Expand Down
Loading
Loading