Skip to content

Chown fail fix - #1287

Open
karypid wants to merge 2 commits into
devcontainers:mainfrom
karypid:chown-fail-fix
Open

Chown fail fix#1287
karypid wants to merge 2 commits into
devcontainers:mainfrom
karypid:chown-fail-fix

Conversation

@karypid

@karypid karypid commented Aug 26, 2026

Copy link
Copy Markdown

When podman maps a high ID to a low ID there is no need to chown the workspace. Inside podman the low ID applies both to user (vscode by default, 1000), as well as the mounted workspace.

This complimentary logic makes sure to behave as updateRemoteUserUID: false

Once again, if any explicit user configuration is present it will override this "internal default" change so everything is backwards compatible.

Prefer parsing a numeric user spec directly from config and only fall
back to resolving named users via a throwaway container, producing an
explicit --userns=keep-id:uid=...,gid=... mapping. Add tests and config
fixtures for numeric and named keep-id cases.
@karypid
karypid requested a review from a team as a code owner August 26, 2026 17:24
@karypid

karypid commented Aug 26, 2026

Copy link
Copy Markdown
Author

This is a complement to fix #1284

I have separated the PRs as they are orthogonal.

Both are needed for correct operation when the host UID/GID is abnormally high (as is the case when using SSSD or FreeIPA).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant