Repository navigation
Description
What's the problem
The Monero payout view key reaches the view-only wallet-rpc container as an environment value: MONERO_VIEW_KEY=${MONERO_VIEW_KEY} in the Compose wallet-rpc service, and Environment=... MONERO_VIEW_KEY=... in the rendered Quadlet unit (lib/pithead/36-quadlet-units.sh). Environment values are readable through docker inspect, podman inspect and systemctl show. The Tari wallet already avoids this: its view key is delivered in an owner-only file through the Compose secrets: entry tari_wallet_secret.
What it impacts
Every stack with monero.view_key set, whether the node is local or remote. Anyone who can inspect containers or read unit environments can read the view key. The key reveals every incoming payout amount and time for the payout address, but it cannot spend funds.
How I found it
Review of PR #3969 (#2866). The #2866 acceptance criterion "the view key never appears in container or unit environment dumps" is unmet for Monero. The PR keeps the existing local-node delivery and discloses it as a shortcut. The behavior predates #2866 (#381).
How important is it
Medium. This is a privacy leak of payout history on the host, not a loss of funds. It is a stated acceptance criterion, and the Tari path already meets it.
Acceptance criteria
- With
monero.view_keyset,docker inspect wallet-rpcand the rendered Quadlet unit's environment contain no view-key value. - The wallet still creates its view-only wallet and confirms payouts, for both a local and a remote node (existing
test-monero-wallet-scan.sh,test-render-quadlet.shand thelocal-pruned-main-payout-confirmtier4-e2e scenario stay green). - A tier-1 test fails if the view key reappears in the Compose or Quadlet environment.
Possible solutions
- Mirror the Tari path: render the address and view key into an owner-only secret file, mount it read-only (Compose
secrets:, QuadletSecret=or a read-only bind mount), and havewallet-entrypoint.shread it instead of the environment.
Release: PR pithead#4299 merged
Who: operator
Activity
Fix stale view-key consumers in wallet selftests and the payout-pairs…
pithead-developer commentedon Nov 20, 2026
Blocked on #4301. The Monero view key now reaches wallet-rpc as an owner-only file secret,
data/monero-view-key.secret, mounted read-only. The change is in draft PR #4299 (Closes #4198), and it is blocked on #4301 for the tier-4 proof. Compose and the Quadlet unit no longer carry the key in their environment. A tier-1 test intest-render-quadlet.shfails if the key reappears there. The verifier and security reviewer ran, and their stale-consumer, redaction-list and comment findings are fixed. GitHub tiers 1 to 3 on head fc435cb are 42 pass and 2 skipped; the one red row isBuild + scan the appliance rootfs, a fixable HIGH Trivy finding in thedocker-composebinary. This diff does not touch it, and I did not check whether the base branch shows the same red. #4301, the backport of golang 1.26.11 and Compose v5.7.2, is open and should clear it.bench-submitholds thetier4-e2etargeted job (exit 75) until every check is green, so no bench job exists on this head. After #4301 lands: merge the base into the branch, confirm the rootfs check is green, then submittier4-e2ewithmode=targetedand--base develop-v2.0.5and paste thebench-ci evidenceblock into the PR. I did not test a new Monero payout landing, the live-container check thatdocker inspectis clean, or uninstall removing the new file. The PR comment records the blocker.The runner resumes this issue when that one closes.
Merge develop-v2.0.5 into the #4198 branch
Drop explanatory comments from edited hunks (#4198)
Wallet fixture identity reads the view key from the container's secre…
Wallet fixture identity reads the view key from the container's secre…
pithead-developer commentedon Nov 22, 2026
Blocked on #4302. Job 4425 (lifecycle-only, recovered as 1038) was cancelled because the owner reserved the fleet for the 2.0.4 release gate. The cancellation says not to resubmit until pithead 2.0.4 is published and #4302 is closed, so I did not resubmit. Finished on PR #4299, head 3baad65: the change, tests, docs, verifier and security review, and GitHub CI (43 pass, 2 skipped). In the earlier targeted bench run the Monero payout rows passed. The only failed row there was the rig enriched feed, tracked in #2890, which this diff does not touch. Still unproven on bench are the wallet-fixture rows in the
lifecyclephase, because that phase was skipped behind the #2890 failure. When #4302 closes, resubmittier4-e2ewithphases=lifecycleon the current head (merge the base first if it moved), paste thebench-ci evidenceblock into the PR body and finalize. I commented the same explanation on the PR.The runner resumes this issue when that one closes.
Merge develop-v2.0.5 into the #4198 branch
pithead-developer commentedon Nov 27, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):GitHub Actions is not starting jobs, so the tier-4 proof cannot be submitted. #4302 closed, so I merged develop-v2.0.5 into the branch cleanly and pushed head e2fbe65. All 42 checks on it have been queued since 16:28 UTC. Across the repo, 25 runs are queued and none is in progress, so the hosted runners look unavailable, which only a human can fix.
bench-submitholds tier4 until every check is green, so no bench job exists on this head. Needed: restore or investigate the Actions runners. After that the checks run, and I submittier4-e2ewithphases=lifecycleon this head and paste its evidence. Still unproven on bench: the wallet-fixture rows in thelifecyclephase. Earlier evidence: the Monero payout rows passed, and the only failed row was the rig enriched feed (#2890), which this diff does not touch. I posted the same on the PR.