Skip to content

DIY image build under a restrictive umask leaves Tor's entrypoint unreadable to the tor user #3431

Closed

Description

@VijitSingh97

What's the problem

Found in 2.0.0 RC5 DIY testing (a tester fixture tripped it, but a real user can too).

Problem

A DIY install builds the service images from the local checkout, and the image build keeps the checkout's file modes. If the checkout is made under a restrictive umask (umask 077, as some hardened shells set), the Tor image's entrypoint is copied as 0711 and its template as 0600, both owned by root. The image's tor user cannot read them, so Tor fails before setup completes. A network-disabled image probe confirmed the exact permission failure; Tor's data ownership was fine.

Test

A tier-1 build test that makes a checkout under umask 077, builds each non-root image, and asserts that the runtime user can read and execute its entrypoint and templates (docker run --entrypoint sh <image> -c 'test -r … && test -x …'). It must be red on c59e5ad.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Expected

Images build the same whatever the umask of the checkout: every file a non-root image user needs is readable, for example via COPY --chmod= or an explicit chmod in each Dockerfile that runs as a non-root user (Tor and any other non-root service).

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added this to the v2.x - post-GA milestone on Oct 12, 2026
  2. added
    bug
    on Oct 12, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Moved to v2.1.0 (owner ruling 2026-10-21: 2.0.1 fixes only what home users on 2.0.0 actually hit). This one needs an unusual setup or has no runtime effect, so it ships with v2.1.0.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. Tier discovery exhausted bounded retries, and tier4-e2e submission plus its same-key retry failed with No route to host; no job was confirmed. The runner re-checks it (first at 2026-10-21T04:59Z, at most 5 times).

  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #3554 / PR #3556. The image permission fix and regression coverage are complete, and lifecycle job 2655@b0ed63f48d17039e843b8ee5f4f9438e9c77433c passed with baseline restoration verified; the artifacts confirm the reported Tor baseline fails and all five current images pass. Current-head shell/tooling and mini-stack checks pass, but the required dashboard image security scan still fails on certifi GHSA-6q48-6c7w-9gw2 (failed check). The canonical dependency fix must merge through its reviewer/owner approval process, then this branch can incorporate it and renew current-head CI and required proof. PR #3552 remains a draft; the scan will not be weakened.

  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #3554. PR #3552’s permission fix passed exact-head lifecycle proof, including the original Tor failure reproduction and all five corrected images. The required dashboard security scan still fails on certifi; #3554 / PR #3556 must merge before this branch can incorporate the correction and renew its checks. Blocker comments and completed bench evidence are published.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Oct 21, 2026
  8. removed
    blocked
    on Oct 21, 2026
  9. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on #2603 / PR #3539, tracked in bench-ci#2151. Job 2715@52369b2adf7c673d29936667dd7b0bf308b9223e failed during checkout cleanup before the image-permission and lifecycle assertions could run. Both retained logs show permission-denied and directory-not-empty errors on hardening recovery directories; the current candidate lacks the preservation exclusion already implemented in PR #3539. Baseline and rig restoration passed.

    The permission implementation, focused tests, clean reviews and previous-head proof are complete, but current-head proof is unavailable. The owner/reviewer must land #2603's fix; then this branch can merge the corrected base and submit fresh lifecycle proof. PR #3552 remains draft. No protected recovery material was changed and no unchanged retry was submitted.

  10. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on #2603. Job 2715 failed during checkout cleanup before this issue’s regression assertions ran; baseline and rig restoration passed. PR #3552 remains draft, blocked on #2603 / PR #3539’s recovery-directory preservation fix, tracked by bench-ci#2151. After that fix merges, incorporate it and renew current-head lifecycle proof; evidence and blocker comments are published.

    The runner resumes this issue when that one closes.

  11. 13 remaining items

  12. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    Contributor

    Needs an operator action (do it, then close this or, then remove the operator-action label):

    Publish replacement head 325d780119c16b1e08b03bd4a460cb32705ca3f1 with the authorized force-with-lease against cc7399b; the local pre-push policy rejected that operation. The three-commit rebuild, focused checks and reviews are complete, and PR #3552 targets develop-v2.0.2. Publication must precede fresh CI, lifecycle proof and merge.

  13. added
    operator-action
    on Oct 24, 2026
  14. added a commit that references this issue on Oct 27, 2026
    cbff255
  15. removed
    operator-action
    on Oct 27, 2026
  16. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #3782. Pushed d971c29; focused tests, metadata gates, verifier and security review pass. Required CI needs the separate fixes owned by #3782 and #3783. After both land on develop, merge the corrected base and renew GitHub checks and current-head lifecycle proof; the draft PR documents these blockers.

    The runner resumes this issue when that one closes.

  17. added
    blocked
    on Oct 30, 2026
  18. removed
    blocked
    on Oct 31, 2026
  19. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    Contributor

    Merged in #3552.

  20. added a commit that references this issue on Oct 31, 2026
    b51804b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions