Skip to content

Block permissive PAM login for token deployments - #3

Merged
landwehrj merged 4 commits into
mainfrom
fix/helm_pam_auth
Oct 12, 2026
Merged

landwehrj merged 4 commits into
mainfrom
fix/helm_pam_auth

Conversation

@landwehrj

@landwehrj landwehrj commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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=false to mount a read-only pam_deny.so policy. It blocks password/LDAP, custom PKI and trusted-proxy methods that use PAM, while independent token, Kerberos and standard PKI paths remain available. The default true, an omitted value, or legacy null preserves the image/administrator's PAM policy. There is no automatic detection based on OIDC, external configuration or custom startup/mounts. Token examples explicitly set false, 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-pam is allowed when the chart preserves PAM; the name is reserved when the chart creates its own rejecting policy.

Validation:

  • All 82 chart tests, Helm lint and all six snapshots passed, including explicit policy selection across OIDC configuration forms, external configuration, custom startup, OAuth examples and mount validation.
  • Six new live OpenShift cases passed with default/false/null/true OIDC policy selection and default/false external ConfigMaps. Valid tokens retained the expected identity, labels and query results; basic login matched the chosen policy and invalid tokens failed. Both policy states worked under restricted-v2.
  • Earlier live checks also covered the standard image, FIPS, a shared-files PVC, Keycloak JWT, and an administrator-owned PAM ConfigMap volume. Temporary deployments and tokens were removed.

Chart version remains 0.5.1. Server enforcement of permitted authentication mechanisms is tracked separately in XGT-3104.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T19:30:43.342815Z 370ed70 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@landwehrj

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 370ed70f18

ℹ️ 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".

@landwehrj
landwehrj merged commit d1deacc into main Oct 12, 2026
5 checks passed
@landwehrj
landwehrj deleted the fix/helm_pam_auth branch October 12, 2026 20:06
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