Skip to content

feat(pam): add NTLM auth support for MSSQL#6544

Closed
saifsmailbox98 wants to merge 6 commits into
mainfrom
saif/pam-226-add-ntlm-auth-support-for-mssql-in-pam
Closed

feat(pam): add NTLM auth support for MSSQL#6544
saifsmailbox98 wants to merge 6 commits into
mainfrom
saif/pam-226-add-ntlm-auth-support-for-mssql-in-pam

Conversation

@saifsmailbox98
Copy link
Copy Markdown
Contributor

@saifsmailbox98 saifsmailbox98 commented May 20, 2026

Context

MSSQL PAM accounts now support Windows Authentication (NTLM) in addition to SQL Server Authentication. Auth method is selected per-account following the same discriminated union pattern as SSH, with a domain field for NTLM.

Infisical/cli#241

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

MSSQL PAM accounts now support Windows Authentication (NTLM) in
addition to SQL Server Authentication. The auth method is selected
per-account via a discriminated union on the credentials schema,
following the same pattern as SSH (password/publickey/certificate).

Backend: new MsSqlAuthMethod enum, discriminated union on account
credentials, NTLM branch in Tedious/Knex connection validation,
MSSQL added to session credentials response union.

Frontend: auth method selector on the MSSQL account form with
conditional domain field for NTLM.
@linear
Copy link
Copy Markdown

linear Bot commented May 20, 2026

PAM-226

@infisical-review-police
Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-infisical-6544-feat-pam-add-ntlm-auth-support-for-mssql

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

@infisical-github-bot
Copy link
Copy Markdown

infisical-github-bot Bot commented May 20, 2026

Preview environment failed to deploy.

View details in the preview orchestrator

…hema

Old MSSQL accounts without authMethod are handled via .default() in
account/sanitized schemas (scoped by parentType) and a service-level
backfill in getSessionCredentials. Session credentials schema uses a
strict variant without .default() to avoid cross-resource false matches
in the flat z.union.
@saifsmailbox98
Copy link
Copy Markdown
Contributor Author

@claude review once

@saifsmailbox98 saifsmailbox98 requested a review from x032205 May 20, 2026 12:18
@gitguardian
Copy link
Copy Markdown

gitguardian Bot commented May 27, 2026

⚠️ GitGuardian has uncovered 3 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9387833 Triggered Generic Password 8395a31 backend-go/docker-compose.test.yml View secret
29105343 Triggered Generic High Entropy Secret 8395a31 backend-go/internal/server/gen/http/secrets/client/encode_decode.go View secret
28944329 Triggered PostHog Project API Key 8395a31 backend-go/internal/config/config.go View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@saifsmailbox98 saifsmailbox98 removed the request for review from x032205 May 29, 2026 01:09
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