CXH-3209: register go-mssqldb's krb5 authenticator for keytab auth #156
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 280 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #156"
general
weight: 0.35
c1-squire-dev[bot]
Registers go-mssqldb's
krb5integrated-auth provider so a SQL Server DSN withauthenticator=krb5and keytab params authenticates via Kerberos instead of failing withprovider krb5 not found.What changed
pkg/database/sqlserver/sqlserver.go: blank import ofgithub.com/microsoft/go-mssqldb/integratedauth/krb5. Itsinit()registers thekrb5provider. Nothing imported it before, so the driver's registry never had it.pkg/database/sqlserver/krb5_test.go: asserts thekrb5registry lookup reaches the provider (fails withprovider krb5 not foundif the import is dropped).docs/docs-info.md: Kerberos/keytab DSN andconnect.user/connect.paramsforms, runtime file mounts, SPN/FQDN andconnect.databasegotchas.go.mod,go.sum,vendor/: addsjcmturner/gokrb5/v8and its transitive modules. No existing pin moved.Testing
go test ./pkg/database/sqlserver/.CORP.EXAMPLE.COM) and SQL Server 2022 configured with anMSSQLSvckeytab. LoginCORP\svcbatonwas createdFROM WINDOWS. baton-sql ran with only the client keytab, using the ticket's DSN form plus a username and no password.- With this change: the sync completes and the session reports
auth_scheme=KERBEROSasCORP\svcbaton, with 3 table rows synced. The KDC logs AS-REQ and TGS-REQ forMSSQLSvc/sql1.corp.example.com:1433as SUCCESS.- Same tree with the import removed:
validate failed: database "" ping failed: provider krb5 not found. This reproduces the ticket.- Using
connect.databaseinstead of?database=fails withKDC_ERR_S_PRINCIPAL_UNKNOWN, because the path is read as an instance name. This is now documented.Risk
The gokrb5/v8 tree is vendored into every build, including for users who never use Kerberos.
Release Notes
baton-sql now supports Kerberos keytab authentication for SQL Server. Use a DSN with the Kerberos principal as the username (no password) plus
authenticator=krb5,krb5-realm,krb5-keytabfileandkrb5-configfile.Resolves CXH-3209
🤖 Generated with Claude Code