Merged PR 1548298: Removing PII from user crud error messages

### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to remove Personally Identifiable Information (PII) from user CRUD error messages.

#### PR Summary
This pull request ensures that PII is not leaked in error messages during user CRUD operations by only logging error hints for specific internal errors.
- `PostgresMongoClient.cs`: Added checks to log only error hints for error code "42710" to prevent PII leakage in `CreateUserAsync`, `UpdateUserAsync`, `DropUserAsync`, and `UsersInfoAsync` methods.
This commit is contained in:
Deepak Pemmaraju authored and Zhe Li committed 2025-01-15 07:48:41 +00:00
1 parent 722ef60784
commit b7d51c3013
4 files changed
+5

No files matched your search

+1
View File
@@ -342,6 +342,7 @@ MongoError,ErrorName
50752,Location50752
50759,Location50759
50989,Location50989
51003,Location51003
51024,Location51024
51044,Location51044
51045,Location51045
1 MongoError ErrorName
342 50752 Location50752
343 50759 Location50759
344 50989 Location50989
345 51003 Location51003
346 51024 Location51024
347 51044 Location51044
348 51045 Location51045