Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
feat: Add server-wide control to disable Docker update actions
rcourtman60220ee1610a
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsxindex a41eb137cc..9ecf116bf0 100644--- a/frontend-modern/src/App.tsx+++ b/frontend-modern/src/App.tsx@@ -52,6 +52,8 @@ import { AIChat } from './components/AI/AIChat';import { AIStatusIndicator } from './components/AI/AIStatusIndicator';import { aiChatStore } from './stores/aiChat';import { useResourcesAsLegacy } from './hooks/useResources';+import { updateSystemSettingsFromResponse } from './stores/systemSettings';+const Dashboard = lazy(() =>import('./components/Dashboard/Dashboard').then((module) => ({ default: module.Dashboard })),@@ -567,6 +569,8 @@ function App() {if (!hasLocalPreference) {try {const systemSettings = await SettingsAPI.getSystemSettings();+ // Update system settings store (for Docker update actions, etc.)+ updateSystemSettingsFromResponse(systemSettings);if (systemSettings.theme && systemSettings.theme !== '') {const prefersDark = systemSettings.theme === 'dark';setDarkMode(prefersDark);@@ -613,6 +617,8 @@ function App() {if (!hasLocalPreference) {try {const systemSettings = await SettingsAPI.getSystemSettings();+ // Update system settings store (for Docker update actions, etc.)+ updateSystemSettingsFromResponse(systemSettings);if (systemSettings.theme && systemSettings.theme !== '') {const prefersDark = systemSettings.theme === 'dark';setDarkMode(prefersDark);@@ -670,6 +676,8 @@ function App() {if (!hasLocalPreference) {try {const systemSettings = await SettingsAPI.getSystemSettings();+ // Update system settings store (for Docker update actions, etc.)+ updateSystemSettingsFromResponse(systemSettings);if (systemSettings.theme && systemSettings.theme !== '') {const prefersDark = systemSettings.theme === 'dark';setDarkMode(prefersDark);@@ -687,6 +695,10 @@ function App() {} else {// We have a local preference, just mark that we've checked the serversetHasLoadedServerTheme(true);+ // Still load system settings for other features (Docker update actions, etc.)+ SettingsAPI.getSystemSettings()+ .then((settings) => updateSystemSettingsFromResponse(settings))+ .catch((error) => logger.warn('Failed to load system settings', error));}}} catch (error) {diff --git a/frontend-modern/src/components/Docker/UpdateBadge.tsx b/frontend-modern/src/components/Docker/UpdateBadge.tsxindex 963ef6db56..4c033be92e 100644--- a/frontend-modern/src/components/Docker/UpdateBadge.tsx+++ b/frontend-modern/src/components/Docker/UpdateBadge.tsx@@ -10,6 +10,8 @@ import {clearContainerUpdateState,updateStates} from '@/stores/containerUpdates';+import { shouldHideDockerUpdateActions, areSystemSettingsLoaded } from '@/stores/systemSettings';+interface UpdateBadgeProps {@@ -126,16 +128,28 @@ interface UpdateButtonProps {externalState?: 'updating' | 'queued' | 'error';}+type UpdateState = 'idle' | 'confirming' | 'updating' | 'success' | 'error';/*** UpdateButton displays a clickable button to trigger container updates.* Uses a persistent store to maintain state across WebSocket refreshes.+ *+ * If the server has disabled Docker update actions (via PULSE_DISABLE_DOCKER_UPDATE_ACTIONS+ * or the Settings UI), this component will render a read-only UpdateBadge instead,+ * allowing users to see that updates are available without being able to trigger them.+ *+ * While system settings are loading, the button displays in a disabled/loading state+ * to prevent premature clicks before the server configuration is known.*/export const UpdateButton: Component<UpdateButtonProps> = (props) => {const [localState, setLocalState] = createSignal<'idle' | 'confirming'>('idle');const [errorMessage, setErrorMessage] = createSignal<string>('');+ // Reactive check for whether settings are loaded and what they say+ const settingsLoaded = () => areSystemSettingsLoaded();+ const shouldHideButton = () => shouldHideDockerUpdateActions();+// Get persistent state from store - this survives WebSocket updatesconst storeState = createMemo(() => {// Access updateStates() to create reactive dependency@@ -264,72 +278,96 @@ export const UpdateButton: Component<UpdateButtonProps> = (props) => {}};+ // Compute if the button should be disabled due to loading or settings+ const isButtonDisabled = () => currentState() === 'updating' || !settingsLoaded();+return (<Show when={hasUpdate()}>- <div class="inline-flex items-center gap-1" data-prevent-toggle>- <button- type="button"- class={getButtonClass()}- onClick={handleClick}- onMouseDown={(e) => { e.stopPropagation(); }}- disabled={currentState() === 'updating'}- data-prevent-toggle- onMouseEnter={(e) => {- const rect = e.currentTarget.getBoundingClientRect();- showTooltip(getTooltip(), rect.left + rect.width / 2, rect.top, {- align: 'center',- direction: 'up'- });- }}- onMouseLeave={() => hideTooltip()}- >- <Show when={currentState() === 'updating'}>- {/* Spinner */}- <svg class="w-3 h-3 animate-spin" fill="none" viewBox="0 0 24 24">- <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />- <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" />- </svg>- </Show>- <Show when={currentState() === 'success'}>- {/* Check icon */}- <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">- <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />- </svg>- </Show>- <Show when={currentState() === 'error'}>- {/* X icon */}- <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />- </svg>- </Show>- <Show when={currentState() === 'idle' || currentState() === 'confirming'}>- {/* Upload/update icon */}- <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">- <path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />- </svg>- </Show>- <Show when={!props.compact}>- <span>- {currentState() === 'confirming' ? 'Confirm?' :- currentState() === 'updating' ? 'Updating...' :- currentState() === 'success' ? 'Queued!' :- currentState() === 'error' ? 'Failed' : 'Update'}- </span>- </Show>- </button>- <Show when={currentState() === 'confirming'}>+ {/* Case 1: Settings loaded and updates are disabled - show read-only badge */}+ <Show when={settingsLoaded() && shouldHideButton()}>+ <UpdateBadge updateStatus={props.updateStatus} compact={props.compact} />+ </Show>++ {/* Case 2: Settings loading OR settings loaded with updates enabled - show button */}+ <Show when={!settingsLoaded() || !shouldHideButton()}>+ <div class="inline-flex items-center gap-1" data-prevent-toggle><buttontype="button"- class="inline-flex items-center justify-center w-5 h-5 rounded-full bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors"- onClick={handleCancel}- title="Cancel"+ class={getButtonClass()}+ onClick={handleClick}+ onMouseDown={(e) => { e.stopPropagation(); }}+ disabled={isButtonDisabled()}+ data-prevent-toggle+ onMouseEnter={(e) => {+ const rect = e.currentTarget.getBoundingClientRect();+ const tooltip = !settingsLoaded()+ ? 'Loading settings...'+ : getTooltip();+ showTooltip(tooltip, rect.left + rect.width / 2, rect.top, {+ align: 'center',+ direction: 'up'+ });+ }}+ onMouseLeave={() => hideTooltip()}>- <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />- </svg>+ {/* Loading state - settings haven't loaded yet */}+ <Show when={!settingsLoaded()}>+ <svg class="w-3 h-3 animate-pulse opacity-50" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />+ </svg>+ </Show>+ {/* Normal states - settings loaded */}+ <Show when={settingsLoaded()}>+ <Show when={currentState() === 'updating'}>+ {/* Spinner */}+ <svg class="w-3 h-3 animate-spin" fill="none" viewBox="0 0 24 24">+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />+ <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" />+ </svg>+ </Show>+ <Show when={currentState() === 'success'}>+ {/* Check icon */}+ <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />+ </svg>+ </Show>+ <Show when={currentState() === 'error'}>+ {/* X icon */}+ <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />+ </svg>+ </Show>+ <Show when={currentState() === 'idle' || currentState() === 'confirming'}>+ {/* Upload/update icon */}+ <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />+ </svg>+ </Show>+ </Show>+ <Show when={!props.compact}>+ <span class={!settingsLoaded() ? 'opacity-50' : ''}>+ {!settingsLoaded() ? 'Update' :+ currentState() === 'confirming' ? 'Confirm?' :+ currentState() === 'updating' ? 'Updating...' :+ currentState() === 'success' ? 'Queued!' :+ currentState() === 'error' ? 'Failed' : 'Update'}+ </span>+ </Show></button>- </Show>- </div>+ <Show when={settingsLoaded() && currentState() === 'confirming'}>+ <button+ type="button"+ class="inline-flex items-center justify-center w-5 h-5 rounded-full bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors"+ onClick={handleCancel}+ title="Cancel"+ >+ <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />+ </svg>+ </button>+ </Show>+ </div>+ </Show></Show>);};diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsxindex b7e115f64a..c591bc3704 100644--- a/frontend-modern/src/components/Settings/Settings.tsx+++ b/frontend-modern/src/components/Settings/Settings.tsx@@ -622,12 +622,18 @@ const Settings: Component<SettingsProps> = (props) => {const [hideLocalLogin, setHideLocalLogin] = createSignal(false);const [savingHideLocalLogin, setSavingHideLocalLogin] = createSignal(false);+ // Docker update actions control (server-wide setting to hide update buttons)+ const [disableDockerUpdateActions, setDisableDockerUpdateActions] = createSignal(false);+ const [savingDockerUpdateActions, setSavingDockerUpdateActions] = createSignal(false);+const temperatureMonitoringLocked = () =>Boolean(envOverrides().temperatureMonitoringEnabled || envOverrides()['ENABLE_TEMPERATURE_MONITORING'],);const hideLocalLoginLocked = () =>Boolean(envOverrides().hideLocalLogin || envOverrides()['PULSE_AUTH_HIDE_LOCAL_LOGIN']);+ const disableDockerUpdateActionsLocked = () =>+ Boolean(envOverrides().disableDockerUpdateActions || envOverrides()['PULSE_DISABLE_DOCKER_UPDATE_ACTIONS']);const pvePollingEnvLocked = () =>Boolean(envOverrides().pvePollingInterval || envOverrides().PVE_POLLING_INTERVAL);@@ -721,6 +727,37 @@ const Settings: Component<SettingsProps> = (props) => {}};+ const handleDisableDockerUpdateActionsChange = async (disabled: boolean): Promise<void> => {+ if (disableDockerUpdateActionsLocked() || savingDockerUpdateActions()) {+ return;+ }++ const previous = disableDockerUpdateActions();+ setDisableDockerUpdateActions(disabled);+ setSavingDockerUpdateActions(true);++ try {+ await SettingsAPI.updateSystemSettings({ disableDockerUpdateActions: disabled });+ // Also update the global store so UpdateButton reacts immediately+ const { updateDockerUpdateActionsSetting } = await import('@/stores/systemSettings');+ updateDockerUpdateActionsSetting(disabled);++ if (disabled) {+ notificationStore.success('Docker update buttons hidden', 2000);+ } else {+ notificationStore.info('Docker update buttons visible', 2000);+ }+ } catch (error) {+ logger.error('Failed to update Docker update actions setting', error);+ notificationStore.error(+ error instanceof Error ? error.message : 'Failed to update Docker update actions setting',+ );+ setDisableDockerUpdateActions(previous);+ } finally {+ setSavingDockerUpdateActions(false);+ }+ };+const applySavedDiscoverySubnet = (subnet?: string | null) => {const raw = typeof subnet === 'string' ? subnet.trim() : '';if (raw === '' || raw.toLowerCase() === 'auto') {@@ -1777,6 +1814,9 @@ const Settings: Component<SettingsProps> = (props) => {// Load hideLocalLogin settingsetHideLocalLogin(systemSettings.hideLocalLogin ?? false);+ // Load Docker update actions setting+ setDisableDockerUpdateActions(systemSettings.disableDockerUpdateActions ?? false);+// Backup polling controlsif (typeof systemSettings.backupPollingEnabled === 'boolean') {setBackupPollingEnabled(systemSettings.backupPollingEnabled);@@ -3355,6 +3395,64 @@ const Settings: Component<SettingsProps> = (props) => {</Show>{/* Unified Agents Tab */}<Show when={activeTab() === 'agents'}>+ {/* Docker Settings Card */}+ <Card padding="lg" class="mb-6">+ <div class="space-y-4">+ <div class="space-y-1">+ <h3 class="text-base font-semibold text-gray-900 dark:text-gray-100">Docker Settings</h3>+ <p class="text-sm text-gray-600 dark:text-gray-400">+ Server-wide settings for Docker container management.+ </p>+ </div>++ {/* Hide Docker Update Buttons Toggle */}+ <div class="flex items-start justify-between gap-4 p-4 rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800/50">+ <div class="flex-1 space-y-1">+ <div class="flex items-center gap-2">+ <span class="text-sm font-medium text-gray-900 dark:text-gray-100">+ Hide Docker Update Buttons+ </span>+ <Show when={disableDockerUpdateActionsLocked()}>+ <span class="inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300" title="Locked by environment variable PULSE_DISABLE_DOCKER_UPDATE_ACTIONS">+ <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />+ </svg>+ ENV+ </span>+ </Show>+ </div>+ <p class="text-xs text-gray-500 dark:text-gray-400">+ When enabled, the "Update" button on Docker containers will be hidden across all views.+ Update detection will still work, allowing you to see which containers have updates available.+ Use this in production environments where you prefer Pulse to be read-only.+ </p>+ <p class="text-xs text-gray-500 dark:text-gray-400 mt-1">+ Can also be set via environment variable: <code class="px-1 py-0.5 rounded bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300">PULSE_DISABLE_DOCKER_UPDATE_ACTIONS=true</code>+ </p>+ </div>+ <div class="flex-shrink-0">+ <button+ type="button"+ onClick={() => handleDisableDockerUpdateActionsChange(!disableDockerUpdateActions())}+ disabled={disableDockerUpdateActionsLocked() || savingDockerUpdateActions()}+ class={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${disableDockerUpdateActions()+ ? 'bg-blue-600'+ : 'bg-gray-300 dark:bg-gray-600'+ } ${disableDockerUpdateActionsLocked() ? 'opacity-50 cursor-not-allowed' : ''}`}+ role="switch"+ aria-checked={disableDockerUpdateActions()}+ title={disableDockerUpdateActionsLocked() ? 'Locked by environment variable' : undefined}+ >+ <span+ class={`inline-block h-4 w-4 transform rounded-full bg-white shadow-sm transition-transform ${disableDockerUpdateActions() ? 'translate-x-6' : 'translate-x-1'+ }`}+ />+ </button>+ </div>+ </div>+ </div>+ </Card>+<UnifiedAgents /></Show>diff --git a/frontend-modern/src/stores/systemSettings.ts b/frontend-modern/src/stores/systemSettings.tsnew file mode 100644index 0000000000..b47e51bc7a--- /dev/null+++ b/frontend-modern/src/stores/systemSettings.ts@@ -0,0 +1,68 @@+/**+ * System Settings Store+ *+ * Provides reactive access to server-wide system settings.+ * Used to control features like Docker update buttons based on server configuration.+ */++import { createSignal } from 'solid-js';+import { SettingsAPI } from '@/api/settings';+import { logger } from '@/utils/logger';+import type { SystemConfig } from '@/types/config';++// Server-side setting to hide Docker update buttons while still detecting updates+const [disableDockerUpdateActions, setDisableDockerUpdateActions] = createSignal(false);++// Track if settings have been loaded+const [systemSettingsLoaded, setSystemSettingsLoaded] = createSignal(false);++/**+ * Update the system settings store from an existing settings object.+ * Call this after you've already fetched system settings (e.g., for theme loading).+ */+export function updateSystemSettingsFromResponse(settings: SystemConfig): void {+ setDisableDockerUpdateActions(settings.disableDockerUpdateActions ?? false);+ setSystemSettingsLoaded(true);+ logger.debug('System settings updated from response', {+ disableDockerUpdateActions: settings.disableDockerUpdateActions+ });+}++/**+ * Load system settings from the server.+ * Use this only when you need settings but haven't fetched them elsewhere.+ * Prefer `updateSystemSettingsFromResponse` when you already have the settings.+ */+export async function loadSystemSettings(): Promise<void> {+ try {+ const settings = await SettingsAPI.getSystemSettings();+ updateSystemSettingsFromResponse(settings);+ } catch (err) {+ logger.warn('Failed to load system settings, using defaults', err);+ // Use safe defaults+ setDisableDockerUpdateActions(false);+ setSystemSettingsLoaded(true);+ }+}++/**+ * Check if Docker update actions (buttons) should be hidden.+ * Returns true if the server has configured to hide update buttons.+ */+export function shouldHideDockerUpdateActions(): boolean {+ return disableDockerUpdateActions();+}++/**+ * Check if system settings have been loaded from the server.+ */+export function areSystemSettingsLoaded(): boolean {+ return systemSettingsLoaded();+}++/**+ * Update the local state when settings change (e.g., from Settings page).+ */+export function updateDockerUpdateActionsSetting(disabled: boolean): void {+ setDisableDockerUpdateActions(disabled);+}diff --git a/frontend-modern/src/types/config.ts b/frontend-modern/src/types/config.tsindex 9483e639a3..a0063bf462 100644--- a/frontend-modern/src/types/config.ts+++ b/frontend-modern/src/types/config.ts@@ -49,6 +49,7 @@ export interface SystemConfig {webhookAllowedPrivateCIDRs?: string; // Comma-separated list of private CIDR ranges allowed for webhooks (e.g., "192.168.1.0/24,10.0.0.0/8")hideLocalLogin?: boolean; // Hide local login form (username/password)publicURL?: string; // Public URL for email notifications (e.g., http://192.168.1.100:8080)+ disableDockerUpdateActions?: boolean; // Hide Docker update buttons while still detecting updates (server-wide)}/**diff --git a/internal/api/docker_agents.go b/internal/api/docker_agents.goindex 1506344484..ab72f5219f 100644--- a/internal/api/docker_agents.go+++ b/internal/api/docker_agents.go@@ -7,6 +7,7 @@ import ("strings""time"+ "github.com/rcourtman/pulse-go-rewrite/internal/config""github.com/rcourtman/pulse-go-rewrite/internal/monitoring""github.com/rcourtman/pulse-go-rewrite/internal/utils""github.com/rcourtman/pulse-go-rewrite/internal/websocket"@@ -18,6 +19,7 @@ import (type DockerAgentHandlers struct {monitor *monitoring.MonitorwsHub *websocket.Hub+ config *config.Config}type dockerCommandAckRequest struct {@@ -54,8 +56,8 @@ func normalizeCommandStatus(status string) (string, error) {}// NewDockerAgentHandlers constructs a new Docker agent handler group.-func NewDockerAgentHandlers(m *monitoring.Monitor, hub *websocket.Hub) *DockerAgentHandlers {- return &DockerAgentHandlers{monitor: m, wsHub: hub}+func NewDockerAgentHandlers(m *monitoring.Monitor, hub *websocket.Hub, cfg *config.Config) *DockerAgentHandlers {+ return &DockerAgentHandlers{monitor: m, wsHub: hub, config: cfg}}// SetMonitor updates the monitor reference for docker agent handlers.@@ -499,6 +501,13 @@ func (h *DockerAgentHandlers) HandleContainerUpdate(w http.ResponseWriter, r *htreturn}+ // Check if Docker update actions are disabled server-wide+ if h.config != nil && h.config.DisableDockerUpdateActions {+ writeErrorResponse(w, http.StatusForbidden, "docker_updates_disabled",+ "Docker container updates are disabled by server configuration. Set PULSE_DISABLE_DOCKER_UPDATE_ACTIONS=false or disable in Settings to enable.", nil)+ return+ }+// Queue the update commandcommandStatus, err := h.monitor.QueueDockerContainerUpdateCommand(req.HostID, req.ContainerID, req.ContainerName)if err != nil {diff --git a/internal/api/router.go b/internal/api/router.goindex 79c6b70e3f..347f6b8794 100644--- a/internal/api/router.go+++ b/internal/api/router.go@@ -190,7 +190,7 @@ func (r *Router) setupRoutes() {hostMetadataHandler := NewHostMetadataHandler(r.config.DataPath)r.configHandlers = NewConfigHandlers(r.config, r.monitor, r.reloadFunc, r.wsHub, guestMetadataHandler, r.reloadSystemSettings)updateHandlers := NewUpdateHandlers(r.updateManager, r.updateHistory)- r.dockerAgentHandlers = NewDockerAgentHandlers(r.monitor, r.wsHub)+ r.dockerAgentHandlers = NewDockerAgentHandlers(r.monitor, r.wsHub, r.config)r.kubernetesAgentHandlers = NewKubernetesAgentHandlers(r.monitor, r.wsHub)r.hostAgentHandlers = NewHostAgentHandlers(r.monitor, r.wsHub)r.temperatureProxyHandlers = NewTemperatureProxyHandlers(r.config, r.persistence, r.reloadFunc)diff --git a/internal/api/system_settings.go b/internal/api/system_settings.goindex f022df31f7..660f514f78 100644--- a/internal/api/system_settings.go+++ b/internal/api/system_settings.go@@ -403,6 +403,8 @@ func (h *SystemSettingsHandler) HandleGetSystemSettings(w http.ResponseWriter, rsettings.BackupPollingEnabled = &enabledsettings.DiscoveryConfig = config.CloneDiscoveryConfig(h.config.Discovery)settings.TemperatureMonitoringEnabled = h.config.TemperatureMonitoringEnabled+ // Expose Docker update actions setting (respects env override)+ settings.DisableDockerUpdateActions = h.config.DisableDockerUpdateActions}// Include env override information@@ -635,6 +637,9 @@ func (h *SystemSettingsHandler) HandleUpdateSystemSettings(w http.ResponseWritersettings.TemperatureMonitoringEnabled = updates.TemperatureMonitoringEnabledtempToggleRequested = true}+ if _, ok := rawRequest["disableDockerUpdateActions"]; ok {+ settings.DisableDockerUpdateActions = updates.DisableDockerUpdateActions+ }// Update the configif _, ok := rawRequest["pvePollingInterval"]; ok && settings.PVEPollingInterval > 0 {diff --git a/internal/config/config.go b/internal/config/config.goindex 1107ad85ec..a088deabc2 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -129,17 +129,18 @@ type Config struct {LogCompress bool `envconfig:"LOG_COMPRESS" default:"true"`// Security settings- APIToken string `envconfig:"API_TOKEN"`- APITokenEnabled bool `envconfig:"API_TOKEN_ENABLED" default:"false"`- APITokens []APITokenRecord `json:"-"`- SuppressedEnvMigrations []string `json:"-"` // Hashes of env tokens deleted by user (prevent re-migration)- AuthUser string `envconfig:"PULSE_AUTH_USER"`- AuthPass string `envconfig:"PULSE_AUTH_PASS"`- DisableAuthEnvDetected bool `json:"-"`- DemoMode bool `envconfig:"DEMO_MODE" default:"false"` // Read-only demo mode- AllowedOrigins string `envconfig:"ALLOWED_ORIGINS" default:"*"`- IframeEmbeddingAllow string `envconfig:"IFRAME_EMBEDDING_ALLOW" default:"SAMEORIGIN"`- HideLocalLogin bool `envconfig:"PULSE_AUTH_HIDE_LOCAL_LOGIN" default:"false"`+ APIToken string `envconfig:"API_TOKEN"`+ APITokenEnabled bool `envconfig:"API_TOKEN_ENABLED" default:"false"`+ APITokens []APITokenRecord `json:"-"`+ SuppressedEnvMigrations []string `json:"-"` // Hashes of env tokens deleted by user (prevent re-migration)+ AuthUser string `envconfig:"PULSE_AUTH_USER"`+ AuthPass string `envconfig:"PULSE_AUTH_PASS"`+ DisableAuthEnvDetected bool `json:"-"`+ DemoMode bool `envconfig:"DEMO_MODE" default:"false"` // Read-only demo mode+ AllowedOrigins string `envconfig:"ALLOWED_ORIGINS" default:"*"`+ IframeEmbeddingAllow string `envconfig:"IFRAME_EMBEDDING_ALLOW" default:"SAMEORIGIN"`+ HideLocalLogin bool `envconfig:"PULSE_AUTH_HIDE_LOCAL_LOGIN" default:"false"`+ DisableDockerUpdateActions bool `envconfig:"PULSE_DISABLE_DOCKER_UPDATE_ACTIONS" default:"false"` // Hide Docker update buttons (read-only mode for containers)// Proxy authentication settingsProxyAuthSecret string `envconfig:"PROXY_AUTH_SECRET"`@@ -689,6 +690,8 @@ func Load() (*Config, error) {}// Load HideLocalLogincfg.HideLocalLogin = systemSettings.HideLocalLogin+ // Load DisableDockerUpdateActions (hide Docker update buttons)+ cfg.DisableDockerUpdateActions = systemSettings.DisableDockerUpdateActions// Load PublicURL from settings (will be overridden by env var if set)if systemSettings.PublicURL != "" {cfg.PublicURL = systemSettings.PublicURL@@ -866,6 +869,17 @@ func Load() (*Config, error) {}}+ if disableDockerUpdateActionsStr := utils.GetenvTrim("PULSE_DISABLE_DOCKER_UPDATE_ACTIONS"); disableDockerUpdateActionsStr != "" {+ if disabled, err := strconv.ParseBool(disableDockerUpdateActionsStr); err == nil {+ cfg.DisableDockerUpdateActions = disabled+ cfg.EnvOverrides["PULSE_DISABLE_DOCKER_UPDATE_ACTIONS"] = true+ cfg.EnvOverrides["disableDockerUpdateActions"] = true+ log.Info().Bool("disabled", disabled).Msg("Overriding Docker update actions setting from environment")+ } else {+ log.Warn().Str("value", disableDockerUpdateActionsStr).Msg("Invalid PULSE_DISABLE_DOCKER_UPDATE_ACTIONS value, ignoring")+ }+ }+if enabledStr := utils.GetenvTrim("ENABLE_BACKUP_POLLING"); enabledStr != "" {switch strings.ToLower(enabledStr) {case "0", "false", "no", "off":diff --git a/internal/config/persistence.go b/internal/config/persistence.goindex 3c499e40a8..e830fd9904 100644--- a/internal/config/persistence.go+++ b/internal/config/persistence.go@@ -956,6 +956,11 @@ type SystemSettings struct {MetricsRetentionHourlyDays int `json:"metricsRetentionHourlyDays,omitempty"` // Hourly averages, default: 7 daysMetricsRetentionDailyDays int `json:"metricsRetentionDailyDays,omitempty"` // Daily averages, default: 90 days+ // Docker update control - server-wide settings+ // These allow admins to control Docker update features globally, addressing concerns+ // about Pulse being a "monitoring-first" tool vs an orchestration tool.+ DisableDockerUpdateActions bool `json:"disableDockerUpdateActions"` // Hide update buttons while still detecting updates+// APIToken removed - now handled via .env file only}