Profile pictures from Gravatar or the identity provider, fetched and kept by the server
Both sources are off until switched on under Settings, Sign-in. The server asks only gravatar.com (by a hash of the email) and the identity provider's own host, accepts only small PNG/JPEG/WebP/GIF, keeps each picture for a day and serves it from /api/avatars/<id>, so browsers never contact either. Shown in the user menu and on the Users page, with initials as the fallback; the Privacy page says when it is on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9782bd3252
commit
c05c847d17
26 files changed
+4361
-21
No files matched your search
@@ -6,6 +6,8 @@ export interface CurrentUser {
|
||||
email?: string;
|
||||
name?: string;
|
||||
role: UserRole;
|
||||
/** Where this person's picture is, on this app (the server fetches it); null when no picture source is switched on for them. */
|
||||
avatarUrl?: string | null;
|
||||
/** Pages this person pinned to the top of their menu, by path — a page alone, or with filters ("/servers?status=offline"). */
|
||||
favorites?: string[];
|
||||
/** How this person arranged the dashboard cards. */
|
||||
@@ -134,6 +136,13 @@ export interface UserRecord {
|
||||
lastLoginAt: string | null;
|
||||
/** The groups the identity provider reported at their last sign-in; null until they have signed in with groups available. */
|
||||
groups: string[] | null;
|
||||
avatarUrl: string | null;
|
||||
}
|
||||
|
||||
/** Where profile pictures may come from. Both off until an administrator allows them. */
|
||||
export interface ProfilePictureSettings {
|
||||
gravatar: boolean;
|
||||
identityProvider: boolean;
|
||||
}
|
||||
|
||||
/** How roles are decided at sign-in: by hand on the Users page, or from the groups the identity provider reports. */
|
||||
@@ -533,6 +542,7 @@ export interface AppSettings {
|
||||
healthChecks: HealthCheckSettings;
|
||||
digest: DigestSettings;
|
||||
signIn: SignInSettings;
|
||||
profilePictures: ProfilePictureSettings;
|
||||
}
|
||||
|
||||
export type AppSettingsPatch = { [K in keyof AppSettings]?: Partial<AppSettings[K]> };
|
||||
@@ -1483,6 +1493,7 @@ export interface PrivacyOverview {
|
||||
tlsCertificateChecks: number;
|
||||
servers: number;
|
||||
serversWithAgent: number;
|
||||
profilePictures: ProfilePictureSettings & { identityProviderHost: string | null };
|
||||
channels: Record<"gotify" | "ntfy" | "smtp" | "webhook" | "webPush", { enabled: boolean; host: string | null }>;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user