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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user