Repository navigation
Block permissive PAM login for token deployments - #3
Conversation
OIDC does not disable the independent PAM authentication path, and standard images accept arbitrary credentials through pam_permit.so. Mount a rejecting policy for OIDC and externally supplied configuration unless administrators explicitly keep their PAM authentication setup. Document the upgrade behavior, restrict token examples, and release chart 0.5.1. Verify token queries and rejected basic login under both anyuid and restricted-v2 without changing the xGT application.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02c98f9be4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Chart 0.5.1 adds an explicit PAM restriction for xGT deployments that require token authentication. Standard images use permissive PAM, so configuring OIDC, Kerberos or certificate authentication alone can still leave arbitrary username/password login available.
Set
xgt.auth.pam.enabled=falseto mount a read-onlypam_deny.sopolicy. It blocks password/LDAP, custom PKI and trusted-proxy methods that use PAM, while independent token, Kerberos and standard PKI paths remain available. The defaulttrue, an omitted value, or legacynullpreserves the image/administrator's PAM policy. There is no automatic detection based on OIDC, external configuration or custom startup/mounts. Token examples explicitly setfalse, and the docs cover upgrading from the preliminary automatic policy.Extra mount paths are normalized before checking protected PAM paths and duplicate mounts. An administrator-owned volume named
xgt-pamis allowed when the chart preserves PAM; the name is reserved when the chart creates its own rejecting policy.Validation:
restricted-v2.Chart version remains 0.5.1. Server enforcement of permitted authentication mechanisms is tracked separately in XGT-3104.