fix(security): protect first-run notifications and server errors (#3126)

* fix(security): close anonymous notification setup and mask server errors

* fix: hide internal errors in default deployment

* fix: route HTTP errors through application logger

* test: mock logger in API fallback regression

* fix: avoid sensitive SQL details in HTTP error logs
This commit is contained in:
whyour authored and GitHub committed 2026-11-10 01:11:54 +08:00
1 parent cae580e02f
commit 1cfc0c8e2e
11 files changed
+104 -146

No files matched your search

-7
View File
@@ -608,13 +608,6 @@ export const openOperations: readonly OpenOperation[] = [
body: 'json',
anonymous: true,
},
{
name: 'user notification-init',
method: 'PUT',
path: 'user/notification/init',
body: 'json',
anonymous: true,
},
{
name: 'user avatar',
method: 'PUT',