Repository navigation
Fix jboss-cli local authentication for OpenShift arbitrary UIDs - #304
Merged
jmesnil merged 1 commit intoNov 12, 2026
Merged
Conversation
OpenShift runs containers with arbitrary numeric UIDs (e.g., 1006870000) but always in the root group (GID 0). The jboss-cli local authentication mechanism requires write access to the user's home directory (/opt/jboss) for storing authentication tokens and CLI configuration. This change ensures /opt/jboss is owned by group 0 and has group read/write permissions, allowing the jboss-cli to work correctly when the container runs with OpenShift's arbitrary UID assignments. Fixes wildfly#210 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
Author
|
@darranl @bstansberry can you review this pull request? |
1 similar comment
Contributor
Author
|
@darranl @bstansberry can you review this pull request? |
jmesnil
approved these changes
Nov 12, 2026
Member
|
I tested it with local Podman and OpenShift 5.0.1 and was able to connect locally to jboss-cli |
Member
|
@Pranaysaha2 thanks for the contribution |
Contributor
Author
|
@jmesnil Thanks for reviewing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
OpenShift runs containers with arbitrary numeric UIDs (e.g., 1006870000) instead of the "jboss" username, but always in the root group (GID 0). The jboss-cli local authentication mechanism requires write access to /opt/jboss for authentication tokens, which was failing.
Solution
Set group ownership of /opt/jboss to group 0 and add group read/write permissions, enabling jboss-cli to work correctly with OpenShift's arbitrary UID assignments.
Test plan
Fixes #210