Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Align auth restart guidance with managed dev runtime

rcourtman0f32d5b0795e
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index b958845731..13ee5ff27a 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -258,6 +258,11 @@ of allowing plaintext licensing state to remain on the runtime primary path.
That same shared token-settings boundary must stay under explicit proof routing
on both sides: `frontend-modern/src/components/Settings/APITokenManager.tsx`,
`frontend-modern/src/components/Settings/apiTokenManagerModel.ts`, and
+That same security settings presentation boundary also owns deployment-specific
+restart guidance after auth changes. When `securityAuthPresentation.ts`
+describes the development deployment, it must point at the canonical managed
+runtime control surface (`npm run dev:restart` from the repo root), not a
+stale `pulse-hot-dev` service name or any lane-local restart folklore.
`frontend-modern/src/components/Settings/useAPITokenManagerState.ts` must
continue to carry the direct `security-settings-surfaces` proof path together
with the API-contract token-management proof instead of borrowing coverage only
diff --git a/frontend-modern/src/utils/__tests__/securityAuthPresentation.test.ts b/frontend-modern/src/utils/__tests__/securityAuthPresentation.test.ts
index 47e327b180..fdf3b85ef8 100644
--- a/frontend-modern/src/utils/__tests__/securityAuthPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/securityAuthPresentation.test.ts
@@ -36,8 +36,8 @@ describe('securityAuthPresentation', () => {
command: 'systemctl restart pulse',
});
expect(getSecurityAuthRestartInstruction('development')).toEqual({
- label: 'Restart the development server:',
- command: 'sudo systemctl restart pulse-hot-dev',
+ label: 'Restart the managed development runtime from the repo root:',
+ command: 'npm run dev:restart',
});
expect(getSecurityAuthRestartInstruction()).toEqual({
label: 'Restart Pulse using your deployment method',
diff --git a/frontend-modern/src/utils/securityAuthPresentation.ts b/frontend-modern/src/utils/securityAuthPresentation.ts
index 5d864ff3a5..a9de9fa1f3 100644
--- a/frontend-modern/src/utils/securityAuthPresentation.ts
+++ b/frontend-modern/src/utils/securityAuthPresentation.ts
@@ -45,8 +45,8 @@ export function getSecurityAuthRestartInstruction(
};
case 'development':
return {
- label: 'Restart the development server:',
- command: 'sudo systemctl restart pulse-hot-dev',
+ label: 'Restart the managed development runtime from the repo root:',
+ command: 'npm run dev:restart',
};
default:
return {