Skip to content

feat: built-in PAM masking - #8196

Merged
sheensantoscapadngan merged 4 commits into
mainfrom
feat/pam-built-in-masking
Sep 21, 2026
Merged

sheensantoscapadngan merged 4 commits into
mainfrom
feat/pam-built-in-masking

Conversation

@sheensantoscapadngan

@sheensantoscapadngan sheensantoscapadngan commented Sep 17, 2026

Copy link
Copy Markdown
Member

Context

This PR adds support for built-in PAM masking

Screenshots

Steps to verify the change

Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g., fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Updated CLAUDE.md files (if needed)
  • Read the contributing guide

@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-infisical-8196-feat-built-in-pam-masking

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@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: b4ff290d72

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread frontend/src/pages/pam/components/AccountMaskingBadge.tsx Outdated
@veria-ai

veria-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

@greptile-apps

greptile-apps Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

Safe to merge; no outstanding blocking issues were identified.

Summary

This PR adds built-in PAM session-log masking configuration, gateway capability signaling, masking warnings for affected accounts, and template controls for configuring masking behavior. It also updates pool warning calculation to consider only healthy gateway members.

Reviews (3) · Last reviewed commit: "misc: addressed greptile"

Comment thread backend/src/ee/services/pam-account/pam-account-service.ts Outdated
Comment thread frontend/src/pages/pam/components/AccountMaskingBadge.tsx
Comment thread backend/src/ee/services/pam-account/pam-account-service.ts
Comment thread backend/src/ee/services/pam/pam-enums.ts Outdated
Comment thread frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx Outdated
Comment thread backend/src/ee/services/pam-account/pam-account-service.ts Outdated
Comment thread backend/src/ee/routes/v1/pam-routers/pam-account-router.ts
Comment thread frontend/src/hooks/api/pam/enums.ts
Comment thread frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx Outdated
@greptile-apps

greptile-apps Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P1 Security Preserve enabled masking backend/src/ee/services/pam-account-template/pam-account-template-service.ts:238

    A valid partial settings update replaces the stored settings object at this line. When the template already has built-in detection enabled and the request updates an unrelated settings field without sessionLogMaskingBuiltInDetection, the enabled value is removed. Subsequent reads default the missing value to false, silently disabling session-log masking and potentially exposing sensitive values in later session recordings. Merge supplied settings with the existing settings before saving, while still allowing an explicit false.

    How this was verified: An executed update with a partial settings payload removed the stored enabled value, and the persisted settings parsed as built-in detection disabled.

@sheensantoscapadngan
sheensantoscapadngan merged commit 5641308 into main Sep 21, 2026
19 checks passed
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.

2 participants