fix(security): close six open GHSA findings from security triage

Harden share-link listing, password rotation, OIDC callback binding,
org invite search, knowledge batch mutations, and connector redirects.
This commit is contained in:
wizardchen
2026-07-02 14:49:27 +08:00
committed by lyingbug
parent fc64751f4e
commit f23c674bad
12 changed files with 400 additions and 34 deletions
+4
View File
@@ -19,6 +19,7 @@ import (
// 1. Add a *T field below + JSON tag (snake_case, must match the front-end key).
// 2. Extend the merge logic in service.UserService.UpdateUserPreferences.
// 3. Surface the new knob in the frontend settings store.
//
// No DB DDL is required — preferences is a single jsonb column.
type UserPreferences struct {
// EnableMemory mirrors the "开启记忆功能" switch in General Settings.
@@ -143,6 +144,9 @@ type OIDCAuthURLResponse struct {
ProviderDisplayName string `json:"provider_display_name,omitempty"`
AuthorizationURL string `json:"authorization_url,omitempty"`
State string `json:"state,omitempty"`
// Nonce is bound to an HttpOnly cookie on /auth/oidc/url and verified
// on callback; omitted from JSON so clients cannot replay it alone.
Nonce string `json:"-"`
}
type OIDCConfigResponse struct {