Skip to content

fix(podman): accept default rootless socket layout - #11730

Merged
ericksoa merged 1 commit into
mainfrom
fix/podman-socket-authority-11716
Sep 14, 2026
Merged

ericksoa merged 1 commit into
mainfrom
fix/podman-socket-authority-11716

Conversation

@ericksoa

@ericksoa ericksoa commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Accept Podman's default rootless systemd socket layout when an owner-controlled directory elsewhere in the socket path prevents group and other users from reaching the endpoint. This lets native Podman onboarding proceed with a 0755 Podman socket directory beneath the standard 0700 per-user runtime directory without weakening rejection of reachable group-writable or world-writable sockets.

Related Issue

Fixes #11716

Changes

  • Evaluate the complete qualified socket directory chain for a private current-user traversal boundary.
  • Keep world-writable sockets and group-writable sockets without a private boundary fail-closed.
  • Reproduce Podman's default 0755 directory and 0660 socket layout in the authority regression test.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Verification

GitHub CI passes the complete 12-shard CLI suite and final aggregate gate on exact head c1d0907bfb02c58a50d32180c09b3fab6c19c156. The rootless Podman admission, Docker-disabled lifecycle, and portable rootless E2E lanes also pass on that head. Locally, the Podman authority/provider tests pass 38/38, npm run validate:pr passes, and all pre-commit hooks pass.

  • npx prek run --all-files passes
  • npm test passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • Docs updated for user-facing behavior changes
  • make docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

AI Disclosure

  • AI-assisted — tool: Codex

Signed-off-by: Aaron Erickson [email protected]

@ericksoa ericksoa added area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images platform: linux Affects non-Ubuntu Linux environments labels Sep 14, 2026
@ericksoa ericksoa self-assigned this Sep 14, 2026
@copy-pr-bot

copy-pr-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-code-quality

github-code-quality Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit c1d0907 in the fix/podman-socket-au... branch remains at 96%, unchanged from commit e976c17 in the main branch.

TypeScript / code-coverage/cli

The overall line coverage in commit c1d0907 in the fix/podman-socket-au... branch remains at 83%, unchanged from commit e976c17 in the main branch.

Show a line coverage summary of the most impacted files.
File main e976c17 fix/podman-socket-au... c1d0907 +/-
src/lib/adapter...et-authority.ts 84% 84% 0%
src/lib/sandbox...rce-identity.ts 82% 82% 0%
src/lib/onboard...uild-context.ts 74% 75% +1%

Updated September 14, 2026 14:51 UTC

@ericksoa
ericksoa marked this pull request as ready for review September 14, 2026 14:38
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: afd41887-2a67-4345-ac4d-07347b0ebaae

📥 Commits

Reviewing files that changed from the base of the PR and between e976c17 and c1d0907.

📒 Files selected for processing (2)
  • src/lib/adapters/podman/socket-authority.test.ts
  • src/lib/adapters/podman/socket-authority.ts

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


📝 Walkthrough

Walkthrough

The socket authority check now accepts Podman’s default 0755 socket directory when a private 0700 parent protects the path. The test verifies this layout with a 0660 socket.

Changes

Podman socket authority

Layer / File(s) Summary
Path permission validation
src/lib/adapters/podman/socket-authority.ts, src/lib/adapters/podman/socket-authority.test.ts
The validation checks for a current-user-owned directory that blocks group and other traversal. The test covers a 700 runtime directory, a 755 Podman directory, and a 660 socket.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: senthilr-nv

Merge Risk: ⚪ Minimal · up to c1d09

The changed Podman layout validation has no supported merge-blocking risk remaining.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed PR #11716 requirements are met. capturePodmanSocketAuthority evaluates the full directory chain and accepts a 0660 socket when a current-UID-owned directory provides a private traversal boundary, …
Out of Scope Changes check ✅ Passed The changes are limited to Podman socket-authority validation and its regression tests. The changes directly support issue #11716 and do not introduce unrelated behavior.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating Podman validation to accept the default rootless socket layout.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/podman-socket-authority-11716

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit c1d0907. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

All previous runs

@ericksoa
ericksoa merged commit 5854d96 into main Sep 14, 2026
118 of 121 checks passed
@ericksoa
ericksoa deleted the fix/podman-socket-authority-11716 branch September 14, 2026 14:58
cjagwani added a commit that referenced this pull request Sep 15, 2026
## Release target

This pre-tag documentation PR prepares `v0.0.125` from merged changes
after `v0.0.124` through `a05d1f238f84e59e6d4fbdc30e547ec7281772c4`.

It adds the canonical dated release entry in
`docs/changelog/2026-09-14.mdx` with the exact `## v0.0.125` heading. It
also retains the independently authored cumulative updates to the
Ollama, sandbox recovery, command reference, and troubleshooting pages.

## Source summary

- [#11759](#11759) ->
`docs/inference/set-up-ollama.mdx`,
`docs/manage-sandboxes/recover-rebuild-sandboxes.mdx`,
`docs/reference/commands.mdx`, and `docs/changelog/2026-09-14.mdx`:
Documents recovery of the exact stopped managed Ollama runtime during
interactive Hermes connect and launch.
- [#11735](#11735) ->
`docs/reference/commands.mdx` and `docs/changelog/2026-09-14.mdx`:
Documents the bounded Hermes forward authority and transaction budgets.
- [#11691](#11691) ->
`docs/reference/commands.mdx`,
`docs/manage-sandboxes/recover-rebuild-sandboxes.mdx`, and
`docs/changelog/2026-09-14.mdx`: Documents authorized recovery of the
selected unreachable Hermes ACP gateway.
- [#11681](#11681) ->
`docs/reference/commands.mdx`,
`docs/manage-sandboxes/recover-rebuild-sandboxes.mdx`, and
`docs/changelog/2026-09-14.mdx`: Documents the fail-closed conflicting
or ambiguous gateway identity boundary.
- [#11760](#11760) ->
`docs/reference/commands.mdx` and `docs/changelog/2026-09-14.mdx`:
Documents incomplete, resumable onboarding after process-inspection or
secret-boundary refusal.
- [#11745](#11745) ->
`docs/changelog/2026-09-14.mdx`: Records experimental version 2
activation-evidence ID alignment.
- [#11612](#11612) ->
`docs/reference/commands.mdx`,
`docs/manage-sandboxes/recover-rebuild-sandboxes.mdx`, and
`docs/changelog/2026-09-14.mdx`: Documents legacy upgrade identity and
digest-verified prepared policy reuse.
- [#11585](#11585) ->
`docs/changelog/2026-09-14.mdx`: Records awaited Hermes Portable
lifecycle policy observation and authority revalidation.
- [#11496](#11496) ->
`docs/reference/commands.mdx` and `docs/changelog/2026-09-14.mdx`:
Documents recorded-gateway upload and download completion semantics.
- [#11695](#11695) ->
`docs/changelog/2026-09-14.mdx`: Records managed OpenClaw native
loopback and removal of private-interface dialback layers.
- [#11730](#11730) ->
`docs/reference/troubleshooting.mdx` and
`docs/changelog/2026-09-14.mdx`: Documents safe admission of Podman's
standard rootless socket layout.
- [#11713](#11713) ->
`docs/changelog/2026-09-14.mdx`: Records restored protected
managed-image qualification, bounded diagnostics, and rollback ordering.
- [#11663](#11663) ->
`docs/changelog/2026-09-14.mdx`: Records lifecycle-trigger coverage for
activation and publication.
- [#11607](#11607) ->
`docs/changelog/2026-09-14.mdx`: Records retained platform compatibility
evidence per tested main commit.
- [#11769](#11769) ->
`docs/changelog/2026-09-14.mdx`: Records explicit gateway initialization
before isolated qualification cleanup.
- [#11742](#11742) ->
`docs/changelog/2026-09-14.mdx`: Records bounded transient tool-download
retries and repository-local lint tooling.
- [#11743](#11743) ->
`docs/changelog/2026-09-14.mdx`: Records removal of the unused full-E2E
container wrapper.
- [#11588](#11588) ->
`docs/changelog/2026-09-14.mdx`: Records the narrower EXDEV live-test
boundary.
- [#11708](#11708) ->
`docs/changelog/2026-09-14.mdx`: Records bounded parallel onboarding
probes with unchanged assertions.
- [#11704](#11704) ->
`docs/changelog/2026-09-14.mdx`: Records bounded parallel agent-alias
cases with unchanged behavior coverage.
- [#11773](#11773) ->
`docs/changelog/2026-09-14.mdx`: Records valid unresolved required-E2E
evidence when no supported selector exists.
- [#11762](#11762) ->
`docs/changelog/2026-09-14.mdx`: Records Advisor's nonempty
required-evidence read contract.
- [#11728](#11728) ->
`docs/changelog/2026-09-14.mdx`: Records bounded, redacted Advisor
tool-flow failure metadata.
- [#11705](#11705) ->
`docs/changelog/2026-09-14.mdx`: Records removal of unused messaging
internals without runtime behavior changes.
- [#11740](#11740) ->
`docs/changelog/2026-09-14.mdx`: Records the exact read-only Hermes
documentation-key scan allowlist.

## Verification

- Independent documentation-writer review approved the exact changelog
patch; binary diff SHA-256
`ebc4d3cd837e7bc85aeb92f2f7379933a92076abc4afd0bd83c530d6b95878a5`.
- `npx vitest run --project integration
test/automation/releases/release-candidate-evidence.test.ts` passed 8
tests.
- `npm run docs` passed with zero errors and validated native changelog
links and guarded routes.
- Normal pre-commit and pre-push hooks passed, including publication
validation, repository checks, secret scanning, builds, and commitlint.
- The documented `test/changelog-docs.test.ts` path does not exist on
this commit; it was not counted as passing evidence.

Signed-off-by: Charan Jagwani <[email protected]>

---------

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Charan Jagwani <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Charan Jagwani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images platform: linux Affects non-Ubuntu Linux environments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ubuntu 24.04][Onboard] Podman onboarding rejects Podman's own default socket folder permissions

1 participant