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
Canonicalize Docker and Podman token copy
rcourtmancbc34e7302df
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex efafacfe07..57d9ea5ec1 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -33,6 +33,7 @@ Own canonical runtime payload shapes between backend and frontend.6. `frontend-modern/src/api/responseUtils.ts`7. `frontend-modern/src/components/Settings/APITokenManager.tsx`8. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`+9. `frontend-modern/src/constants/apiScopes.ts`9. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`10. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts`11. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`@@ -101,6 +102,10 @@ Own canonical runtime payload shapes between backend and frontend.must inherit embedded table framing from `frontend-primitives``PulseDataGrid` rather than carrying API-token-local scroll or borderwrappers around the grid.+ Docker and Podman token usage copy must come from+ `frontend-modern/src/utils/apiTokenPresentation.ts` and its shared source+ platform label, so API-token tables, revoke warnings, and token presets do+ not reintroduce generic `container runtime` operator-facing labels.11. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `security-privacy`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.12. `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx` shared with `agent-lifecycle`: the inline node credential slot is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.13. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` shared with `agent-lifecycle`: the pure infrastructure operations inventory/install model is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.@@ -125,8 +130,14 @@ Own canonical runtime payload shapes between backend and frontend.24. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx` shared with `agent-lifecycle`: the infrastructure install state hook is both an agent fleet lifecycle control surface and an API token, lookup, and install transport contract boundary.25. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx` shared with `agent-lifecycle`: the shared infrastructure operations state hook is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.26. `frontend-modern/src/components/Settings/useNodeModalState.ts` shared with `agent-lifecycle`: the node setup modal state hook is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.+27. `frontend-modern/src/constants/apiScopes.ts` shared with `security-privacy`: the API token scope catalog is both a security/privacy token-management trust surface and a canonical API token payload boundary.+ Docker and Podman scope labels must use the shared source platform label+ rather than generic `container` copy, because those labels surface directly+ in token presets, custom scopes, and inventory badges.28. `frontend-modern/src/utils/agentInstallCommand.ts` shared with `agent-lifecycle`: the shared frontend install-command helper is both an agent lifecycle control surface and a canonical API/install transport contract boundary.29. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `security-privacy`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary.+ It owns the operator-facing Docker / Podman token vocabulary used by API+ Access, token presets, usage summaries, and revoke warnings.30. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts` shared with `agent-lifecycle`: the infrastructure settings presentation helper is both an agent lifecycle control surface and an API-backed direct-node/discovery settings boundary.31. `internal/api/access_control_handlers.go` shared with `organization-settings`: RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary.The shared node setup boundary above owns the guided/manual setup splitdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex cb7205a381..59dbac74a9 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -158,15 +158,20 @@ work extends shared components instead of creating new local variants.## Shared Boundaries-1. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx` shared with `security-privacy`: the data-handling settings surface is both a security/privacy trust surface and a canonical settings-shell presentation boundary.-2. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts` shared with `security-privacy`: the data-handling settings model is both a security/privacy posture projection and a canonical settings-shell presentation boundary.-3. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` shared with `security-privacy`: the general settings privacy panel is both a security/privacy control surface and a canonical settings-shell presentation boundary.-4. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx` shared with `security-privacy`: the authentication settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.-5. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx` shared with `security-privacy`: the security overview settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.-6. `frontend-modern/src/routing/routePreload.ts` shared with `performance-and-scalability`: the app-shell route preload registry is both a canonical frontend shell boundary and an authenticated hot-path performance boundary.-7. `frontend-modern/src/stores/aiChat.ts` shared with `ai-runtime`: the assistant drawer and session store is both an AI runtime control surface and a canonical app-shell presentation boundary.-8. `frontend-modern/src/utils/platformSupportManifest.generated.ts` shared with `unified-resources`: the generated platform support projection is both a canonical unified-resource platform union boundary and a shared frontend source/platform vocabulary boundary.-9. `frontend-modern/src/utils/sourcePlatforms.ts` shared with `unified-resources`: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary.+1. `frontend-modern/src/components/Settings/APIAccessPanel.tsx` shared with `security-privacy`: the API Access settings intro is both a security/privacy token-management trust surface and a canonical settings-shell presentation boundary.+ The panel may own shell placement and local action layout, but+ token-specific Docker / Podman copy must come from+ `frontend-modern/src/utils/apiTokenPresentation.ts` rather than page-local+ text.+2. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx` shared with `security-privacy`: the data-handling settings surface is both a security/privacy trust surface and a canonical settings-shell presentation boundary.+3. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts` shared with `security-privacy`: the data-handling settings model is both a security/privacy posture projection and a canonical settings-shell presentation boundary.+4. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` shared with `security-privacy`: the general settings privacy panel is both a security/privacy control surface and a canonical settings-shell presentation boundary.+5. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx` shared with `security-privacy`: the authentication settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.+6. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx` shared with `security-privacy`: the security overview settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.+7. `frontend-modern/src/routing/routePreload.ts` shared with `performance-and-scalability`: the app-shell route preload registry is both a canonical frontend shell boundary and an authenticated hot-path performance boundary.+8. `frontend-modern/src/stores/aiChat.ts` shared with `ai-runtime`: the assistant drawer and session store is both an AI runtime control surface and a canonical app-shell presentation boundary.+9. `frontend-modern/src/utils/platformSupportManifest.generated.ts` shared with `unified-resources`: the generated platform support projection is both a canonical unified-resource platform union boundary and a shared frontend source/platform vocabulary boundary.+10. `frontend-modern/src/utils/sourcePlatforms.ts` shared with `unified-resources`: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary.## Extension Pointsdiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex c4bb62b10f..2e587f9342 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -185,6 +185,14 @@"unified-resources"]},+ {+ "path": "frontend-modern/src/components/Settings/APIAccessPanel.tsx",+ "rationale": "the API Access settings intro is both a security/privacy token-management trust surface and a canonical settings-shell presentation boundary",+ "subsystems": [+ "frontend-primitives",+ "security-privacy"+ ]+ },{"path": "frontend-modern/src/components/Settings/APITokenManager.tsx","rationale": "the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary",@@ -361,6 +369,14 @@"api-contracts"]},+ {+ "path": "frontend-modern/src/constants/apiScopes.ts",+ "rationale": "the API token scope catalog is both a security/privacy token-management trust surface and a canonical API token payload boundary",+ "subsystems": [+ "api-contracts",+ "security-privacy"+ ]+ },{"path": "frontend-modern/src/routing/routePreload.ts","rationale": "the app-shell route preload registry is both a canonical frontend shell boundary and an authenticated hot-path performance boundary",@@ -1519,6 +1535,7 @@"frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx","frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx","frontend-modern/src/components/Settings/useNodeModalState.ts",+ "frontend-modern/src/constants/apiScopes.ts","frontend-modern/src/types/actionAudit.ts","frontend-modern/src/types/api.ts","frontend-modern/src/utils/agentInstallCommand.ts",@@ -1651,7 +1668,8 @@"match_files": ["frontend-modern/src/components/Settings/APITokenManager.tsx","frontend-modern/src/components/Settings/apiTokenManagerModel.ts",- "frontend-modern/src/components/Settings/useAPITokenManagerState.ts"+ "frontend-modern/src/components/Settings/useAPITokenManagerState.ts",+ "frontend-modern/src/constants/apiScopes.ts"],"allow_same_subsystem_tests": false,"test_prefixes": [],@@ -4531,6 +4549,7 @@"owned_files": ["docs/PRIVACY.md","frontend-modern/src/api/security.ts",+ "frontend-modern/src/components/Settings/APIAccessPanel.tsx","frontend-modern/src/components/Settings/APITokenManager.tsx","frontend-modern/src/components/Settings/apiTokenManagerModel.ts","frontend-modern/src/components/Settings/DataHandlingPanel.tsx",@@ -4543,6 +4562,7 @@"frontend-modern/src/components/Settings/SSOProviderTypeIcon.tsx","frontend-modern/src/components/Settings/useAPITokenManagerState.ts","frontend-modern/src/components/Settings/useSystemSettingsState.ts",+ "frontend-modern/src/constants/apiScopes.ts","frontend-modern/src/utils/apiTokenPresentation.ts","frontend-modern/src/utils/auditLogPresentation.ts","frontend-modern/src/utils/auditWebhookPresentation.ts",@@ -4611,6 +4631,7 @@"label": "security settings surface proof","match_prefixes": [],"match_files": [+ "frontend-modern/src/components/Settings/APIAccessPanel.tsx","frontend-modern/src/components/Settings/APITokenManager.tsx","frontend-modern/src/components/Settings/apiTokenManagerModel.ts","frontend-modern/src/components/Settings/DataHandlingPanel.tsx",@@ -4618,7 +4639,8 @@"frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx","frontend-modern/src/components/Settings/SecurityAuthPanel.tsx","frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",- "frontend-modern/src/components/Settings/useAPITokenManagerState.ts"+ "frontend-modern/src/components/Settings/useAPITokenManagerState.ts",+ "frontend-modern/src/constants/apiScopes.ts"],"allow_same_subsystem_tests": false,"test_prefixes": [],diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex d857c74844..46cf6b8714 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -29,58 +29,71 @@ visibility, and privacy controls to operators.3. `frontend-modern/public/docs/PRIVACY.md`4. `frontend-modern/src/utils/docsLinks.ts`5. `frontend-modern/src/api/security.ts`-6. `frontend-modern/src/components/Settings/APITokenManager.tsx`-7. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`-8. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`-9. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx`-10. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx`-11. `frontend-modern/src/components/Settings/QuickSecuritySetup.tsx`-12. `frontend-modern/src/components/Settings/SecurityPostureSummary.tsx`-13. `frontend-modern/src/components/Settings/SSOProviderTypeIcon.tsx`-14. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts`-15. `frontend-modern/src/components/Settings/useSystemSettingsState.ts`-16. `frontend-modern/src/utils/apiTokenPresentation.ts`-17. `frontend-modern/src/utils/auditLogPresentation.ts`-18. `frontend-modern/src/utils/auditWebhookPresentation.ts`-19. `frontend-modern/src/utils/securityAuthPresentation.ts`-20. `frontend-modern/src/utils/securityScorePresentation.ts`-21. `internal/api/security.go`-22. `internal/api/security_tokens.go`-23. `internal/api/system_settings.go`-24. `internal/config/config.go`-25. `internal/config/watcher.go`-26. `internal/telemetry/telemetry.go`-27. `internal/api/router_routes_auth_security.go`-28. `internal/crypto/crypto.go`-29. `internal/securityutil/secure_storage_dir.go`-30. `internal/cloudcp/auth/magiclink.go`-31. `internal/cloudcp/auth/magiclink_store.go`-32. `pkg/tlsutil/fingerprint.go`-33. `scripts/telemetry_adoption_report.py`-34. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx`-35. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts`+6. `frontend-modern/src/components/Settings/APIAccessPanel.tsx`+7. `frontend-modern/src/components/Settings/APITokenManager.tsx`+8. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`+9. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`+10. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx`+11. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx`+12. `frontend-modern/src/components/Settings/QuickSecuritySetup.tsx`+13. `frontend-modern/src/components/Settings/SecurityPostureSummary.tsx`+14. `frontend-modern/src/components/Settings/SSOProviderTypeIcon.tsx`+15. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts`+16. `frontend-modern/src/components/Settings/useSystemSettingsState.ts`+17. `frontend-modern/src/constants/apiScopes.ts`+18. `frontend-modern/src/utils/apiTokenPresentation.ts`+19. `frontend-modern/src/utils/auditLogPresentation.ts`+20. `frontend-modern/src/utils/auditWebhookPresentation.ts`+21. `frontend-modern/src/utils/securityAuthPresentation.ts`+22. `frontend-modern/src/utils/securityScorePresentation.ts`+23. `internal/api/security.go`+24. `internal/api/security_tokens.go`+25. `internal/api/system_settings.go`+26. `internal/config/config.go`+27. `internal/config/watcher.go`+28. `internal/telemetry/telemetry.go`+29. `internal/api/router_routes_auth_security.go`+30. `internal/crypto/crypto.go`+31. `internal/securityutil/secure_storage_dir.go`+32. `internal/cloudcp/auth/magiclink.go`+33. `internal/cloudcp/auth/magiclink_store.go`+34. `pkg/tlsutil/fingerprint.go`+35. `scripts/telemetry_adoption_report.py`+36. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx`+37. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts`## Shared Boundaries1. `frontend-modern/src/api/security.ts` shared with `api-contracts`: the security frontend client is both a security/privacy control surface and a canonical API payload contract boundary.-2. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `api-contracts`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary.+2. `frontend-modern/src/components/Settings/APIAccessPanel.tsx` shared with `frontend-primitives`: the API Access settings intro is both a security/privacy token-management trust surface and a canonical settings-shell presentation boundary.+ Its Docker / Podman token wording must come from+ `frontend-modern/src/utils/apiTokenPresentation.ts` rather than page-local+ copy.+3. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `api-contracts`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary.Token-management table rows are security-facing content, but the visualtable frame and scroll shell belong to `frontend-primitives``PulseDataGrid`; do not add token-surface-local overflow, side-border, ornegative-margin wrappers around the inventory grid.-3. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `api-contracts`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.-4. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx` shared with `frontend-primitives`: the data-handling settings surface is both a security/privacy trust surface and a canonical settings-shell presentation boundary.-5. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts` shared with `frontend-primitives`: the data-handling settings model is both a security/privacy posture projection and a canonical settings-shell presentation boundary.-6. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` shared with `frontend-primitives`: the general settings privacy panel is both a security/privacy control surface and a canonical settings-shell presentation boundary.-7. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx` shared with `frontend-primitives`: the authentication settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.-8. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx` shared with `frontend-primitives`: the security overview settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.-9. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `api-contracts`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary.-10. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `api-contracts`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary.-11. `internal/api/security.go` shared with `api-contracts`: the security handlers are both a security/privacy control surface and a canonical API payload contract boundary.-12. `internal/api/security_tokens.go` shared with `api-contracts`: the security token handlers are both a security/privacy control surface and a canonical API payload contract boundary.-13. `internal/api/system_settings.go` shared with `api-contracts`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary.-14. `internal/cloudcp/auth/magiclink.go` shared with `cloud-paid`: control-plane magic-link HMAC handling is both a Pulse Cloud account-access boundary and a security/privacy token-secrecy boundary.-15. `internal/cloudcp/auth/magiclink_store.go` shared with `cloud-paid`: control-plane magic-link persistence is both a Pulse Cloud account-access boundary and a security/privacy storage-hardening boundary.+4. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `api-contracts`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.+5. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx` shared with `frontend-primitives`: the data-handling settings surface is both a security/privacy trust surface and a canonical settings-shell presentation boundary.+6. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts` shared with `frontend-primitives`: the data-handling settings model is both a security/privacy posture projection and a canonical settings-shell presentation boundary.+7. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` shared with `frontend-primitives`: the general settings privacy panel is both a security/privacy control surface and a canonical settings-shell presentation boundary.+8. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx` shared with `frontend-primitives`: the authentication settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.+9. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx` shared with `frontend-primitives`: the security overview settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.+10. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `api-contracts`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary.+11. `frontend-modern/src/constants/apiScopes.ts` shared with `api-contracts`: the API token scope catalog is both a security/privacy token-management trust surface and a canonical API token payload boundary.+ Scope labels and descriptions are visible security controls. Docker /+ Podman scopes must use the shared source-platform label rather than+ generic `container` copy.+12. `frontend-modern/src/utils/apiTokenPresentation.ts` shared with `api-contracts`: the API token presentation helper is both a security/privacy control surface and a canonical API token management boundary.+ It owns Docker / Podman token copy for API Access, token presets, usage+ summaries, and revoke warnings so security-facing copy does not drift into+ page-local `container runtime` labels.+13. `internal/api/security.go` shared with `api-contracts`: the security handlers are both a security/privacy control surface and a canonical API payload contract boundary.+14. `internal/api/security_tokens.go` shared with `api-contracts`: the security token handlers are both a security/privacy control surface and a canonical API payload contract boundary.+15. `internal/api/system_settings.go` shared with `api-contracts`: the system settings telemetry and auth controls are both a security/privacy control surface and a canonical API payload contract boundary.+16. `internal/cloudcp/auth/magiclink.go` shared with `cloud-paid`: control-plane magic-link HMAC handling is both a Pulse Cloud account-access boundary and a security/privacy token-secrecy boundary.+17. `internal/cloudcp/auth/magiclink_store.go` shared with `cloud-paid`: control-plane magic-link persistence is both a Pulse Cloud account-access boundary and a security/privacy storage-hardening boundary.## Extension Points@@ -93,7 +106,7 @@ visibility, and privacy controls to operators.receive distinct bounded replacement tokens for one session, but explicitsession deletion, password-change invalidation, and logout must invalidateevery retained CSRF hash for that session.-5. Change security/privacy settings presentation through the shared `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`, `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx`, `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx`, `frontend-modern/src/components/Settings/QuickSecuritySetup.tsx`, `frontend-modern/src/components/Settings/SecurityPostureSummary.tsx`, `frontend-modern/src/components/Settings/SSOProviderTypeIcon.tsx`, `frontend-modern/src/utils/securityAuthPresentation.ts`, `frontend-modern/src/utils/securityScorePresentation.ts`, `frontend-modern/src/utils/auditLogPresentation.ts`, and `frontend-modern/src/utils/auditWebhookPresentation.ts` boundary.+5. Change security/privacy settings presentation through the shared `frontend-modern/src/components/Settings/APIAccessPanel.tsx`, `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`, `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx`, `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx`, `frontend-modern/src/components/Settings/QuickSecuritySetup.tsx`, `frontend-modern/src/components/Settings/SecurityPostureSummary.tsx`, `frontend-modern/src/components/Settings/SSOProviderTypeIcon.tsx`, `frontend-modern/src/constants/apiScopes.ts`, `frontend-modern/src/utils/apiTokenPresentation.ts`, `frontend-modern/src/utils/securityAuthPresentation.ts`, `frontend-modern/src/utils/securityScorePresentation.ts`, `frontend-modern/src/utils/auditLogPresentation.ts`, and `frontend-modern/src/utils/auditWebhookPresentation.ts` boundary.6. Change operator-facing telemetry/adoption reporting through `scripts/telemetry_adoption_report.py` together with the privacy disclosure whenever release-identity interpretation changes.7. Change data-at-rest encryption-key or control-plane magic-link HMAC key and storage-root hardening semantics through `internal/crypto/crypto.go`, `internal/cloudcp/auth/magiclink.go`, `internal/cloudcp/auth/magiclink_store.go`, and `internal/securityutil/secure_storage_dir.go` together so writable-but-not-owned runtime storage mounts stay supported without weakening file-level secrecy.8. Change auth-env password normalization, hosted commercial base URLdiff --git a/frontend-modern/src/components/Settings/APIAccessPanel.tsx b/frontend-modern/src/components/Settings/APIAccessPanel.tsxindex 95aaa433de..5aac46263d 100644--- a/frontend-modern/src/components/Settings/APIAccessPanel.tsx+++ b/frontend-modern/src/components/Settings/APIAccessPanel.tsx@@ -1,5 +1,6 @@import { Component } from 'solid-js';import SettingsPanel from '@/components/shared/SettingsPanel';+import { API_TOKEN_ACCESS_PANEL_DESCRIPTION } from '@/utils/apiTokenPresentation';import { API_TOKEN_SCOPES_DOC_URL } from '@/utils/docsLinks';import APITokenManager from './APITokenManager';@@ -19,11 +20,7 @@ export const APIAccessPanel: Component<APIAccessPanelProps> = (props) => {noPadding><div class="space-y-3 p-4 sm:p-6 pb-6">- <p class="text-sm text-muted">- Generate scoped tokens for container runtime agents, system agents, and automation- pipelines. Tokens are shown once—store them securely and rotate when infrastructure- changes.- </p>+ <p class="text-sm text-muted">{API_TOKEN_ACCESS_PANEL_DESCRIPTION}</p><ahref={API_TOKEN_SCOPES_DOC_URL}target="_blank"diff --git a/frontend-modern/src/components/Settings/APITokenManager.tsx b/frontend-modern/src/components/Settings/APITokenManager.tsxindex be30b477b1..347095b6b9 100644--- a/frontend-modern/src/components/Settings/APITokenManager.tsx+++ b/frontend-modern/src/components/Settings/APITokenManager.tsx@@ -4,6 +4,11 @@ import { SectionHeader } from '@/components/shared/SectionHeader';import { PulseDataGrid } from '@/components/shared/PulseDataGrid';import BadgeCheck from 'lucide-solid/icons/badge-check';import { MONITORING_READ_SCOPE } from '@/constants/apiScopes';+import {+ API_TOKEN_NAME_PLACEHOLDER,+ getAPITokenDockerPodmanUsageSummary,+ getAPITokenDockerPodmanUsageTitle,+} from '@/utils/apiTokenPresentation';import { useAPITokenManagerState } from './useAPITokenManagerState';interface APITokenManagerProps {@@ -330,14 +335,8 @@ export const APITokenManager: Component<APITokenManagerProps> = (props) => {const usageSegments: string[] = [];const usageTitleSegments: string[] = [];if (dockerUsageEntry) {- usageSegments.push(- dockerUsageEntry.count === 1- ? (dockerUsageEntry.items[0]?.label ?? 'Container runtime')- : `${dockerUsageEntry.count} container runtimes`,- );- usageTitleSegments.push(- `Container runtimes: ${dockerUsageEntry.items.map((runtime) => runtime.label).join(', ')}`,- );+ usageSegments.push(getAPITokenDockerPodmanUsageSummary(dockerUsageEntry));+ usageTitleSegments.push(getAPITokenDockerPodmanUsageTitle(dockerUsageEntry));}if (agentUsageEntry) {usageSegments.push(@@ -449,7 +448,7 @@ export const APITokenManager: Component<APITokenManagerProps> = (props) => {type="text"value={nameInput()}onInput={(e) => setNameInput(e.currentTarget.value)}- placeholder="e.g. Container pipeline"+ placeholder={API_TOKEN_NAME_PLACEHOLDER}disabled={!canManage()}class="w-full min-h-10 sm:min-h-10 rounded-md border border-border bg-surface px-3 py-2.5 text-sm text-base-content shadow-sm transition focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 dark:focus:border-blue-400 dark:focus:ring-blue-500"/>diff --git a/frontend-modern/src/components/Settings/__tests__/APITokenManager.test.tsx b/frontend-modern/src/components/Settings/__tests__/APITokenManager.test.tsxindex 5a51d51a62..7021fccd6a 100644--- a/frontend-modern/src/components/Settings/__tests__/APITokenManager.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/APITokenManager.test.tsx@@ -135,10 +135,10 @@ describe('APITokenManager', () => {expect(listTokensMock).toHaveBeenCalledTimes(1);});- fireEvent.input(screen.getByPlaceholderText('e.g. Container pipeline'), {+ fireEvent.input(screen.getByPlaceholderText('e.g. Docker / Podman automation'), {target: { value: 'Container automation' },});- fireEvent.click(screen.getByRole('button', { name: 'Container manage' }));+ fireEvent.click(screen.getByRole('button', { name: 'Docker / Podman manage' }));fireEvent.click(screen.getByRole('button', { name: 'Generate' }));await waitFor(() => {@@ -167,10 +167,10 @@ describe('APITokenManager', () => {await waitFor(() => {expect(screen.getAllByText('Container automation')).toHaveLength(2);expect(screen.getByText(/Token generated:/)).toBeInTheDocument();- expect(screen.getAllByText('Container lifecycle management').length).toBeGreaterThanOrEqual(- 2,- );- expect(screen.getAllByText('Container agent reporting').length).toBeGreaterThanOrEqual(2);+ expect(+ screen.getAllByText('Docker / Podman lifecycle management').length,+ ).toBeGreaterThanOrEqual(2);+ expect(screen.getAllByText('Docker / Podman reporting').length).toBeGreaterThanOrEqual(2);});});@@ -196,7 +196,7 @@ describe('APITokenManager', () => {expect(screen.getByText('Security')).toBeInTheDocument();expect(screen.getByRole('button', { name: 'Audit logs (read)' })).toBeInTheDocument();- fireEvent.input(screen.getByPlaceholderText('e.g. Container pipeline'), {+ fireEvent.input(screen.getByPlaceholderText('e.g. Docker / Podman automation'), {target: { value: 'Audit export' },});fireEvent.click(screen.getByRole('button', { name: 'Audit read' }));@@ -259,6 +259,9 @@ describe('APITokenManager', () => {expect(within(row as HTMLTableRowElement).getByText('Docker Edge • Edge Agent'),).toBeInTheDocument();+ expect(+ within(row as HTMLTableRowElement).queryByText(/container runtime/i),+ ).not.toBeInTheDocument();expect(within(row as HTMLTableRowElement).getByText('Agent reporting')).toBeInTheDocument();fireEvent.click(within(row as HTMLTableRowElement).getByRole('button', { name: 'Revoke' }));@@ -274,6 +277,9 @@ describe('APITokenManager', () => {expect(notificationSuccessMock).toHaveBeenCalledWith(expect.stringContaining('Token "Runtime token" was previously used by'),);+ expect(notificationSuccessMock).toHaveBeenCalledWith(+ expect.stringContaining('Docker / Podman runtime: Docker Edge'),+ );await waitFor(() => {expect(screen.queryByText('Runtime token')).not.toBeInTheDocument();@@ -344,7 +350,7 @@ describe('APITokenManager', () => {expect(listTokensMock).toHaveBeenCalledTimes(1);});- fireEvent.input(screen.getByPlaceholderText('e.g. Container pipeline'), {+ fireEvent.input(screen.getByPlaceholderText('e.g. Docker / Podman automation'), {target: { value: 'Blocked token' },});fireEvent.click(screen.getByRole('button', { name: 'Kiosk / Monitoring' }));@@ -375,10 +381,10 @@ describe('APITokenManager', () => {expect(listTokensMock).toHaveBeenCalledTimes(1);});- fireEvent.input(screen.getByPlaceholderText('e.g. Container pipeline'), {+ fireEvent.input(screen.getByPlaceholderText('e.g. Docker / Podman automation'), {target: { value: 'Needs settings scope' },});- fireEvent.click(screen.getByRole('button', { name: 'Container report' }));+ fireEvent.click(screen.getByRole('button', { name: 'Docker / Podman report' }));fireEvent.click(screen.getByRole('button', { name: 'Generate' }));await waitFor(() => {diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 71d78fae5b..78d5b6f1e2 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -13,6 +13,10 @@ import settingsNavCatalogSource from '../settingsNavCatalog.ts?raw';import settingsNavigationHookSource from '../useSettingsNavigation.ts?raw';import aiSettingsStateSource from '../useAISettingsState.ts?raw';import settingsPanelRegistryContextSource from '../settingsPanelRegistryContext.tsx?raw';+import apiAccessPanelSource from '../APIAccessPanel.tsx?raw';+import apiTokenManagerSource from '../APITokenManager.tsx?raw';+import apiTokenManagerModelSource from '../apiTokenManagerModel.ts?raw';+import apiTokenManagerStateSource from '../useAPITokenManagerState.ts?raw';import dataHandlingPanelSource from '../DataHandlingPanel.tsx?raw';import auditLogPanelSource from '../AuditLogPanel.tsx?raw';import auditWebhookPanelSource from '../AuditWebhookPanel.tsx?raw';@@ -204,6 +208,27 @@ describe('settings architecture guardrails', () => {);});+ it('keeps API token Docker and Podman copy on shared presentation helpers', () => {+ expect(apiAccessPanelSource).toContain('API_TOKEN_ACCESS_PANEL_DESCRIPTION');+ expect(apiTokenManagerModelSource).toContain('API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION');+ expect(apiTokenManagerModelSource).toContain('API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION');+ expect(apiTokenManagerSource).toContain('getAPITokenDockerPodmanUsageSummary');+ expect(apiTokenManagerSource).toContain('getAPITokenDockerPodmanUsageTitle');+ expect(apiTokenManagerStateSource).toContain('getAPITokenDockerPodmanUsageCountLabel');++ for (const source of [+ apiAccessPanelSource,+ apiTokenManagerSource,+ apiTokenManagerModelSource,+ apiTokenManagerStateSource,+ ]) {+ expect(source).not.toContain('container runtime');+ expect(source).not.toContain('Container runtime');+ expect(source).not.toContain('container runtimes');+ expect(source).not.toContain('Container runtimes');+ }+ });+it('keeps settings native select controls on the shared labelled primitive', () => {const rawSelectUsers = Object.entries(settingsRuntimeSources).filter(([, source]) => source.includes('<select'))diff --git a/frontend-modern/src/components/Settings/apiTokenManagerModel.ts b/frontend-modern/src/components/Settings/apiTokenManagerModel.tsindex e0856eb727..76571d227c 100644--- a/frontend-modern/src/components/Settings/apiTokenManagerModel.ts+++ b/frontend-modern/src/components/Settings/apiTokenManagerModel.ts@@ -15,6 +15,12 @@ import {getActionableDockerRuntimeIdFromResource,hasAgentFacet as resourceHasAgentFacet,} from '@/utils/agentResources';+import {+ API_TOKEN_DOCKER_MANAGE_PRESET_LABEL,+ API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION,+ API_TOKEN_DOCKER_REPORT_PRESET_LABEL,+ API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION,+} from '@/utils/apiTokenPresentation';import { API_TOKEN_SCOPES_DOC_URL as SHIPPED_API_TOKEN_SCOPES_DOC_URL } from '@/utils/docsLinks';import { getPreferredInfrastructureDisplayName } from '@/utils/resourceIdentity';import type { Resource } from '@/types/resource';@@ -51,15 +57,14 @@ export const getAPITokenScopePresets = (): APITokenPreset[] => [description: 'Allow the Pulse agent to submit OS, CPU, and disk metrics.',},{- label: 'Container report',+ label: API_TOKEN_DOCKER_REPORT_PRESET_LABEL,scopes: [DOCKER_REPORT_SCOPE],- description:- 'Permits container agents (Docker or Podman) to stream runtime and container telemetry only.',+ description: API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION,},{- label: 'Container manage',+ label: API_TOKEN_DOCKER_MANAGE_PRESET_LABEL,scopes: [DOCKER_REPORT_SCOPE, DOCKER_MANAGE_SCOPE],- description: 'Extends container reporting with lifecycle actions (restart, stop, etc.).',+ description: API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION,},{label: 'Settings read',@@ -183,7 +188,9 @@ export const buildAgentTokenUsage = (resources: Resource[]): Map<string, APIToke};export const sortAPITokensByCreatedAt = (tokens: APITokenRecord[]): APITokenRecord[] => {- return [...tokens].sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());+ return [...tokens].sort(+ (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(),+ );};export const countWildcardTokens = (tokens: APITokenRecord[]): number => {@@ -203,9 +210,9 @@ export const groupAPITokenScopes = (): [ScopeGroup, ScopeOption[]][] => {for (const option of API_SCOPE_OPTIONS) {grouped[option.group].push(option);}- return API_TOKEN_SCOPE_GROUP_ORDER.map((group) => [group, grouped[group]] as [ScopeGroup, ScopeOption[]]).filter(- ([, options]) => options.length > 0,- );+ return API_TOKEN_SCOPE_GROUP_ORDER.map(+ (group) => [group, grouped[group]] as [ScopeGroup, ScopeOption[]],+ ).filter(([, options]) => options.length > 0);};export const matchesScopePreset = (selectedScopes: string[], presetScopes: string[]): boolean => {@@ -214,9 +221,7 @@ export const matchesScopePreset = (selectedScopes: string[], presetScopes: strin.sort();const target = [...presetScopes].sort();if (target.length === 0) {- return (- selectedScopes.length === 0 || selectedScopes.includes(API_TOKEN_WILDCARD_SCOPE)- );+ return selectedScopes.length === 0 || selectedScopes.includes(API_TOKEN_WILDCARD_SCOPE);}if (selection.length !== target.length) return false;return target.every((scope) => selection.includes(scope));diff --git a/frontend-modern/src/components/Settings/useAPITokenManagerState.ts b/frontend-modern/src/components/Settings/useAPITokenManagerState.tsindex 38366539d0..ceddfbee16 100644--- a/frontend-modern/src/components/Settings/useAPITokenManagerState.ts+++ b/frontend-modern/src/components/Settings/useAPITokenManagerState.ts@@ -1,10 +1,4 @@-import {- createEffect,- createMemo,- createSignal,- onCleanup,- onMount,-} from 'solid-js';+import { createEffect, createMemo, createSignal, onCleanup, onMount } from 'solid-js';import type { APITokenRecord } from '@/api/security';import { SecurityAPI } from '@/api/security';import { useWebSocket } from '@/contexts/appRuntime';@@ -15,6 +9,7 @@ import { showTokenReveal, useTokenRevealState } from '@/stores/tokenReveal';import type { Resource } from '@/types/resource';import { formatRelativeTime } from '@/utils/format';import {+ getAPITokenDockerPodmanUsageCountLabel,getAPITokenGenerateErrorMessage,getAPITokenRevealSettingsNote,getAPITokensLoadErrorMessage,@@ -229,8 +224,7 @@ export const useAPITokenManagerState = (props: APITokenManagerProps) => {.join(', ');const extraCount = dockerUsage.items.length - 5;const summary = extraCount > 0 ? `${preview}, +${extraCount} more` : preview;- const label =- dockerUsage.count === 1 ? 'container runtime' : `${dockerUsage.count} container runtimes`;+ const label = getAPITokenDockerPodmanUsageCountLabel(dockerUsage.count);messageChunks.push(`${label}: ${summary}`);}diff --git a/frontend-modern/src/constants/apiScopes.ts b/frontend-modern/src/constants/apiScopes.tsindex 7b8fa972ad..f36614058e 100644--- a/frontend-modern/src/constants/apiScopes.ts+++ b/frontend-modern/src/constants/apiScopes.ts@@ -1,3 +1,5 @@+import { getSourcePlatformLabel } from '@/utils/sourcePlatforms';+export interface APIScopeOption {value: string;label: string;@@ -18,6 +20,8 @@ export const SETTINGS_READ_SCOPE = 'settings:read';export const SETTINGS_WRITE_SCOPE = 'settings:write';export const AUDIT_READ_SCOPE = 'audit:read';+const DOCKER_PODMAN_SOURCE_LABEL = getSourcePlatformLabel('docker');+export const API_SCOPE_OPTIONS: APIScopeOption[] = [{value: MONITORING_READ_SCOPE,@@ -33,14 +37,14 @@ export const API_SCOPE_OPTIONS: APIScopeOption[] = [},{value: DOCKER_REPORT_SCOPE,- label: 'Container agent reporting',- description: 'Allow the container agent to submit host and runtime telemetry.',+ label: `${DOCKER_PODMAN_SOURCE_LABEL} reporting`,+ description: `Allow ${DOCKER_PODMAN_SOURCE_LABEL} agents to submit host and runtime telemetry.`,group: 'Agents',},{value: DOCKER_MANAGE_SCOPE,- label: 'Container lifecycle management',- description: 'Enable agent-triggered runtime commands and host actions.',+ label: `${DOCKER_PODMAN_SOURCE_LABEL} lifecycle management`,+ description: `Enable agent-triggered ${DOCKER_PODMAN_SOURCE_LABEL} commands and host actions.`,group: 'Agents',},{diff --git a/frontend-modern/src/utils/__tests__/apiTokenPresentation.test.ts b/frontend-modern/src/utils/__tests__/apiTokenPresentation.test.tsindex 0516bb890f..6b26aafe0f 100644--- a/frontend-modern/src/utils/__tests__/apiTokenPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/apiTokenPresentation.test.ts@@ -1,5 +1,17 @@import { describe, expect, it } from 'vitest';+import { API_SCOPE_LABELS, DOCKER_MANAGE_SCOPE, DOCKER_REPORT_SCOPE } from '@/constants/apiScopes';import {+ API_TOKEN_ACCESS_PANEL_DESCRIPTION,+ API_TOKEN_DOCKER_MANAGE_PRESET_LABEL,+ API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION,+ API_TOKEN_DOCKER_PODMAN_RUNTIME_LABEL,+ API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL,+ API_TOKEN_DOCKER_REPORT_PRESET_LABEL,+ API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION,+ API_TOKEN_NAME_PLACEHOLDER,+ getAPITokenDockerPodmanUsageCountLabel,+ getAPITokenDockerPodmanUsageSummary,+ getAPITokenDockerPodmanUsageTitle,getAPITokenGenerateErrorMessage,getAPITokenManagementLocationMessage,getAPITokenRevealSettingsNote,@@ -23,6 +35,42 @@ describe('apiTokenPresentation', () => {);});+ it('keeps Docker and Podman token copy on the shared source-platform label', () => {+ expect(API_TOKEN_DOCKER_PODMAN_RUNTIME_LABEL).toBe('Docker / Podman runtime');+ expect(API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL).toBe('Docker / Podman runtimes');+ expect(API_TOKEN_DOCKER_REPORT_PRESET_LABEL).toBe('Docker / Podman report');+ expect(API_TOKEN_DOCKER_MANAGE_PRESET_LABEL).toBe('Docker / Podman manage');+ expect(API_TOKEN_NAME_PLACEHOLDER).toBe('e.g. Docker / Podman automation');+ expect(API_TOKEN_ACCESS_PANEL_DESCRIPTION).toBe(+ 'Generate scoped tokens for Docker / Podman, system agents, and automation pipelines. Tokens are shown once; store them securely and rotate when infrastructure changes.',+ );+ expect(API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION).toBe(+ 'Permits Docker / Podman agents to stream runtime and container telemetry only.',+ );+ expect(API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION).toBe(+ 'Extends Docker / Podman reporting with lifecycle actions (restart, stop, etc.).',+ );+ expect(API_SCOPE_LABELS[DOCKER_REPORT_SCOPE]).toBe('Docker / Podman reporting');+ expect(API_SCOPE_LABELS[DOCKER_MANAGE_SCOPE]).toBe('Docker / Podman lifecycle management');++ const singleUsage = { count: 1, items: [{ label: 'Docker Edge' }] };+ const multiUsage = {+ count: 2,+ items: [{ label: 'Docker Edge' }, { label: 'Podman Lab' }],+ };++ expect(getAPITokenDockerPodmanUsageCountLabel(1)).toBe('Docker / Podman runtime');+ expect(getAPITokenDockerPodmanUsageCountLabel(2)).toBe('2 Docker / Podman runtimes');+ expect(getAPITokenDockerPodmanUsageSummary(singleUsage)).toBe('Docker Edge');+ expect(getAPITokenDockerPodmanUsageSummary({ count: 1, items: [] })).toBe(+ 'Docker / Podman runtime',+ );+ expect(getAPITokenDockerPodmanUsageSummary(multiUsage)).toBe('2 Docker / Podman runtimes');+ expect(getAPITokenDockerPodmanUsageTitle(multiUsage)).toBe(+ 'Docker / Podman runtimes: Docker Edge, Podman Lab',+ );+ });+it('surfaces token scope denial copy for generate failures', () => {const error = Object.assign(new Error('Cannot grant scope "monitoring:read": your token does not have this scope'),diff --git a/frontend-modern/src/utils/apiTokenPresentation.ts b/frontend-modern/src/utils/apiTokenPresentation.tsindex 7e567a64f9..3d3bf8057e 100644--- a/frontend-modern/src/utils/apiTokenPresentation.ts+++ b/frontend-modern/src/utils/apiTokenPresentation.ts@@ -1,4 +1,5 @@import { API_SCOPE_LABELS } from '@/constants/apiScopes';+import { getSourcePlatformLabel } from '@/utils/sourcePlatforms';type APITokenErrorShape = {requiredScope?: string;@@ -6,6 +7,22 @@ type APITokenErrorShape = {message?: string;};+export type APITokenUsagePresentationEntry = {+ count: number;+ items: Array<{ label: string }>;+};++const DOCKER_PODMAN_SOURCE_LABEL = getSourcePlatformLabel('docker');++export const API_TOKEN_DOCKER_PODMAN_RUNTIME_LABEL = `${DOCKER_PODMAN_SOURCE_LABEL} runtime`;+export const API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL = `${DOCKER_PODMAN_SOURCE_LABEL} runtimes`;+export const API_TOKEN_DOCKER_REPORT_PRESET_LABEL = `${DOCKER_PODMAN_SOURCE_LABEL} report`;+export const API_TOKEN_DOCKER_MANAGE_PRESET_LABEL = `${DOCKER_PODMAN_SOURCE_LABEL} manage`;+export const API_TOKEN_NAME_PLACEHOLDER = `e.g. ${DOCKER_PODMAN_SOURCE_LABEL} automation`;+export const API_TOKEN_ACCESS_PANEL_DESCRIPTION = `Generate scoped tokens for ${DOCKER_PODMAN_SOURCE_LABEL}, system agents, and automation pipelines. Tokens are shown once; store them securely and rotate when infrastructure changes.`;+export const API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION = `Permits ${DOCKER_PODMAN_SOURCE_LABEL} agents to stream runtime and container telemetry only.`;+export const API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION = `Extends ${DOCKER_PODMAN_SOURCE_LABEL} reporting with lifecycle actions (restart, stop, etc.).`;+export function getAPITokensLoadErrorMessage(): string {return 'Unable to load API tokens.';}@@ -46,3 +63,22 @@ export function getAPITokenGenerateErrorMessage(error?: unknown): string {export function getAPITokenRevokeErrorMessage(): string {return 'Unable to revoke the API token.';}++export function getAPITokenDockerPodmanUsageCountLabel(count: number): string {+ return count === 1+ ? API_TOKEN_DOCKER_PODMAN_RUNTIME_LABEL+ : `${count} ${API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL}`;+}++export function getAPITokenDockerPodmanUsageSummary(entry: APITokenUsagePresentationEntry): string {+ return entry.count === 1+ ? (entry.items[0]?.label ?? API_TOKEN_DOCKER_PODMAN_RUNTIME_LABEL)+ : `${entry.count} ${API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL}`;+}++export function getAPITokenDockerPodmanUsageTitle(entry: APITokenUsagePresentationEntry): string {+ const labels = entry.items.map((item) => item.label).filter(Boolean);+ return labels.length > 0+ ? `${API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL}: ${labels.join(', ')}`+ : API_TOKEN_DOCKER_PODMAN_RUNTIMES_LABEL;+}diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex 48552cabda..3d46c69c7b 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -3095,6 +3095,7 @@ class SubsystemLookupTest(unittest.TestCase):self.assertEqual(file_entry["classification"], "runtime")subsystems = {match["subsystem"] for match in file_entry["matches"]}if file_entry["path"] in {+ "frontend-modern/src/components/Settings/APIAccessPanel.tsx","frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx","frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",}:@@ -3578,8 +3579,8 @@ class SubsystemLookupTest(unittest.TestCase):{"heading": "## Shared Boundaries","path": "internal/api/access_control_handlers.go",- "line": 131,- "heading_line": 88,+ "line": 142,+ "heading_line": 89,}],)