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
fix(web): preserve scoped local principal for organisation management
pulse-triage[bot]857e25f6b1dc
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 8dd94d00a0..87d6bc83c1 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -618,6 +618,8 @@ installer download and the agent's subsequent Pulse TLS connection.## Shared Boundaries+The shared security-status route may expose the validated caller currentUsername to authenticated clients, including organisation-scoped local sessions. This presentation identity is not an agent credential, enrollment grant or command authority; agent download, enrollment and token-scope checks remain independent of this field.+`internal/models/models.go` and `internal/monitoring/monitor.go` also carrymonitoring-owned Proxmox cluster node identity and membership-confirmationstate. Provider instances with equal cluster/member display names must notdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex a729fcffb4..53221b0468 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -435,6 +435,8 @@ enums locally.## Shared Boundaries+GET /api/security/status includes currentUsername in authenticated and privileged responses, derived from the validated authentication snapshot rather than configured administrator identity. Public login discovery omits it. The field is identity only: it does not grant instance-settings authority or change token scopes. Scoped local sessions retain this identity when privileged authUsername is withheld.+Commercial migration payloads are a shared API/cloud-paid contract. Thelicense-server client must preserve canonical v6 nested error-envelope codessuch as `RENEWED_KEY_AVAILABLE`, and commercial posture payloads may carrydiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 1193511adc..8b448c8e73 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -466,6 +466,8 @@ that manual-channel consequence must stay visible at desktop and narrow widths.## Shared Boundaries+The settings panel registry supplies organisation overview, access and sharing with security-status currentUsername. An explicitly empty principal must not fall back to configured administrator identity; only older responses lacking the field use proxy/SSO/configured-username compatibility fallback. This identity plumbing must not change settings shell framing or bypass panel capability gates.+Settings navigation discoverability is part of the shared settings-shellboundary. A settings route that is available in normal commercial presentationmust be reachable through the sidebar unless it is explicitly a hiddendiff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.mdindex 16ae4e726f..203e210bae 100644--- a/docs/release-control/v6/internal/subsystems/organization-settings.md+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md@@ -64,6 +64,8 @@ create, review, and approve cross-organization shares.## Shared Boundaries+Organisation overview, access and sharing use the authenticated currentUsername for owner/member comparisons, including local sessions scoped to a non-default organisation. They must not infer the current principal from the privileged configured-administrator field when currentUsername is present. Existing owner/admin membership checks and server-side enforcement remain authoritative.+1. `frontend-modern/src/api/orgs.ts` shared with `api-contracts`: the organization frontend client is both an organization settings control surface and a canonical API payload contract boundary.2. `frontend-modern/src/api/rbac.ts` shared with `api-contracts`: the RBAC frontend client is both an organization settings control surface and a canonical API payload contract boundary.3. `internal/api/access_control_handlers.go` shared with `api-contracts`: RBAC role and user-assignment handlers are both an organization settings control surface and a canonical API payload contract boundary.diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex 102138e198..ef8b2c9a38 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -278,6 +278,8 @@ invisible to operators reviewing exactly what Pulse sends.## Shared Boundaries+The authenticated security-status currentUsername is the validated caller principal, not an administrator configuration disclosure. Public responses omit it. An organisation-scoped local session may receive its own identity while authUsername and instance-settings capabilities remain withheld; clients must not interpret identity availability as privilege.+API token scope copy must match runtime authority. `ai:chat` covers Assistantconversation, model selection, sessions, and knowledge reads only. Knowledgesave/delete/import/clear and explicit governed action approval/executiondiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 1194cc4d85..ab6cb2f3fb 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -254,6 +254,8 @@ command-capable profile.## Shared Boundaries+Recovery consumers of security status must distinguish currentUsername (the validated caller identity) from privileged authUsername (administrator configuration). Presence of currentUsername in a scoped response does not authorise export, import, recovery or unprotected backup transfer; existing settings capabilities and backend enforcement still gate those operations.+The Patrol action broker and shared policy-writer wiring under `internal/api/`remain API/action-lifecycle authority even when the target is storage-related.Automatic admission requires a fresh, resource-bound policy lease and andiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex b46cd46cba..b3cec5a334 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,38 +1,37 @@{"version": 1,- "base_sha": "58413ebdf6af81018bce15ff4023ca9824c0cdae",- "verified_at": "2026-09-05T09:32:59.247Z",+ "base_sha": "2356e4300022a9e0502b97030b84fc902ca15281",+ "verified_at": "2026-09-05T15:02:51Z","result": "passed","changed_paths": [- "frontend-modern/src/useAppRuntimeState.ts"+ "frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx",+ "frontend-modern/src/types/config.ts"],"content_sha256": {- "frontend-modern/src/useAppRuntimeState.ts": "d1de019dad5bff7fcb78116a8cf53663f1ddcd4c631bdbf0260b68580ebe0eb7"+ "frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx": "a4c53fd983db3390e43771e484ef7337c72a0ada6e6c28bcc311b02e88cbde19",+ "frontend-modern/src/types/config.ts": "07c9961a8ca87998b6d6e4f398770efd11bfd4b089ce25f18e93e5bafffd9c8d"},"routes": [- "/alerts",- "/settings",- "/docker"+ "/settings/organization/sharing"],"viewports": [{- "width": 1440,- "height": 900+ "width": 1280,+ "height": 720},{"width": 390,- "height": 900+ "height": 844}],"states": [- "Full application served by isolated local Vite; synthetic HTTP, two synthetic organisations and cold socket; Chromium 141.0.7390.37, fresh contexts, default zoom.",- "Six cases: incoming admission fails, succeeds all-false, or completes after outgoing response. Superseded outgoing response cannot restore platform navigation.",- "Backend tenancy, populated resource rendering, production build, external notification delivery and candidate soak not qualified."+ "Source-built isolated e2e_runtime with mock inventory, Chromium desktop context at default zoom; narrow run changes scenario 6 viewport only, not device emulation.",+ "Cookie-session organisation switch preserves currentUsername while security detail drops from privileged to authenticated; both owner memberships match. Pending incoming/outgoing shares render; incoming Accept succeeds with persisted accepted status and viewer role.",+ "Pending and accepted screenshots inspected at both widths. Wide table rows and narrow scrolled layout are clipped; this is functional identity/acceptance proof, not a clean visual-layout claim. No installed customer, release, reconnect/admission or automatic interruption-cleanup qualification."],"interactions": [- "pulse-heavy-run -- bash -c 'for w in 390 1440; do for mode in failure success reverse; do PULSE_PROOF_WIDTH=$w PULSE_PROOF_MODE=$mode node scripts/check-navigation-admission-race.mjs || exit; done; done'",- "Production reconnect subscriber invoked; switch organisation via real selector; release held outgoing response; assert no platform navigation and exact organisation request sequence.",- "390px: More open, Escape, reopen, Settings; subsequent successful organisation switch restores platform selector; choose Docker and verify route without reload.",- "1440px: Settings remains visible; subsequent successful switch restores Proxmox destination without reload. Desktop and narrow screenshots inspected."+ "pulse-heavy-run -- bash tests/integration/scripts/run-tests.sh multi-tenant: 6 passed, 1 expected disabled-feature skip.",+ "PULSE_E2E_SHARING_NARROW=1 pulse-heavy-run -- bash tests/integration/scripts/run-tests.sh multi-tenant: 6 passed, 1 expected disabled-feature skip.",+ "Scenario 6 creates two organisations and pending shares, reloads scoped cookie session, asserts owner identity, clicks Accept, verifies Active/Remove and accepted API role, switches to default and deletes fixtures. Scenario 7 cookie-session RBAC scope checks pass."]}diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 173c337542..eee1ade428 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -330,7 +330,7 @@ describe('settings architecture guardrails', () => {expect(settingsPanelRegistryContextSource).toContain('params.securityStatus()?.ssoSessionUsername',);- expect(settingsPanelRegistryContextSource).toContain('params.securityStatus()?.authUsername;');+ expect(settingsPanelRegistryContextSource).toContain('params.securityStatus()?.authUsername);');expect(settingsPanelRegistryContextSource).toContain('getOrganizationOverviewPanelProps');expect(settingsPanelRegistryContextSource).toContain('getOrganizationAccessPanelProps');expect(settingsPanelRegistryContextSource).toContain('getOrganizationSharingPanelProps');@@ -2078,3 +2078,17 @@ describe('settings architecture guardrails', () => {expect(JSON.stringify(sanitized)).not.toContain('192.168.1.20');});});++// Principal selection belongs to the shared shell registry, not an individual+// organisation panel or a browser storage hint.+describe('organisation principal shell boundary', () => {+ it('prefers authenticated identity with a nullish legacy fallback', () => {+ expect(settingsPanelRegistryContextSource).toContain('params.securityStatus()?.currentUsername ??');+ expect(settingsPanelRegistryContextSource).not.toContain('sessionStorage');+ for (const panel of ['Overview', 'Access', 'Sharing']) {+ expect(settingsPanelRegistryContextSource).toContain(+ `getOrganization${panel}PanelProps: () => ({\n currentUser: currentUser(),`,+ );+ }+ });+});diff --git a/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.tsindex a7f51251cf..9eba46c797 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts@@ -41,6 +41,24 @@ function buildParams(securityStatus: SecurityStatus | null): UseSettingsPanelReg}describe('buildSettingsPanelRegistryContext', () => {+ it('uses the authenticated principal rather than the configured administrator', () => {+ const context = buildSettingsPanelRegistryContext(buildParams({+ currentUsername: 'org-owner',+ authUsername: 'instance-admin',+ } as SecurityStatus));+ expect(context.getOrganizationSharingPanelProps().currentUser).toBe('org-owner');+ expect(context.getOrganizationAccessPanelProps().currentUser).toBe('org-owner');+ expect(context.getOrganizationOverviewPanelProps().currentUser).toBe('org-owner');+ });++ it('does not replace an explicitly empty principal with the configured admin', () => {+ const context = buildSettingsPanelRegistryContext(buildParams({+ currentUsername: '',+ authUsername: 'instance-admin',+ } as SecurityStatus));+ expect(context.getOrganizationSharingPanelProps().currentUser).toBe('');+ });+it('passes the effective current user into organization panels', () => {const context = buildSettingsPanelRegistryContext(buildParams({diff --git a/frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx b/frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsxindex f7b1541517..09f3a4faa0 100644--- a/frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx+++ b/frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx@@ -40,9 +40,10 @@ export function buildSettingsPanelRegistryContext(): SettingsPanelRegistryContext {const settingsCapabilities = () => params.securityStatus()?.settingsCapabilities ?? null;const currentUser = () =>- params.securityStatus()?.proxyAuthUsername ||- params.securityStatus()?.ssoSessionUsername ||- params.securityStatus()?.authUsername;+ params.securityStatus()?.currentUsername ??+ (params.securityStatus()?.proxyAuthUsername ||+ params.securityStatus()?.ssoSessionUsername ||+ params.securityStatus()?.authUsername);const systemAiPanel: Component = () => (<div class="space-y-6">diff --git a/frontend-modern/src/types/config.ts b/frontend-modern/src/types/config.tsindex f417e7cb48..a7d1904bed 100644--- a/frontend-modern/src/types/config.ts+++ b/frontend-modern/src/types/config.ts@@ -162,6 +162,8 @@ export interface SecurityStatus {proxyAuthUsername?: string;proxyAuthIsAdmin?: boolean;proxyAuthLogoutURL?: string;+ // Effective authenticated principal, including organisation-scoped local sessions.+ currentUsername?: string;authUsername?: string;authLastModified?: string;message?: string;diff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex 4a766f2e63..d751382f0e 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -24750,3 +24750,44 @@ func TestContract_NotificationDestinationWritesPublishOnlyAfterPersistence(t *te})}}++// Local organisation owners must be identifiable without exposing the+// configured administrator identity or granting instance settings access.+func TestSecurityStatusCurrentUserForScopedLocalSession(t *testing.T) {+ cfg := newCapabilityConfig(t, "instance-admin")+ router := NewRouter(cfg, nil, nil, nil, nil, "1.0.0")+ for _, username := range []string{"", "org-owner", "instance-admin"} {+ authenticated := username != ""+ req := httptest.NewRequest(http.MethodGet, "/api/security/status", nil)+ if authenticated {+ req.AddCookie(capabilitySessionCookie(t, username))+ req = req.WithContext(context.WithValue(req.Context(), OrgContextKey, &models.Organization{ID: "customer-org"}))+ }+ rec := httptest.NewRecorder()+ router.mux.ServeHTTP(rec, req)+ if rec.Code != http.StatusOK {+ t.Fatalf("status = %d", rec.Code)+ }+ var payload map[string]any+ if err := json.Unmarshal(rec.Body.Bytes(), &payload); err != nil {+ t.Fatal(err)+ }+ if authenticated {+ if payload["currentUsername"] != username {+ t.Errorf("currentUsername = %v", payload["currentUsername"])+ }+ if payload["detailLevel"] != "authenticated" {+ t.Errorf("detailLevel = %v", payload["detailLevel"])+ }+ if _, ok := payload["authUsername"]; ok {+ t.Error("configured admin identity exposed")+ }+ caps := payload["settingsCapabilities"].(map[string]any)+ if caps["authenticationWrite"] != false {+ t.Error("instance settings capability granted")+ }+ } else if _, ok := payload["currentUsername"]; ok {+ t.Error("public response exposes currentUsername")+ }+ }+}diff --git a/internal/api/router_routes_auth_security.go b/internal/api/router_routes_auth_security.goindex 60b3194c2a..571aaa152f 100644--- a/internal/api/router_routes_auth_security.go+++ b/internal/api/router_routes_auth_security.go@@ -49,6 +49,7 @@ type publicSecurityStatusResponse struct {}type authenticatedSecurityStatusResponse struct {+ CurrentUsername string `json:"currentUsername"`publicSecurityStatusResponseHasProxyAuth bool `json:"hasProxyAuth"`ProxyAuthLogoutURL string `json:"proxyAuthLogoutURL"`@@ -381,6 +382,7 @@ func (r *Router) registerAuthSecurityInstallRoutes() {publicStatus.DetailLevel = securityStatusDetailAuthenticatedauthenticatedStatus := authenticatedSecurityStatusResponse{publicSecurityStatusResponse: publicStatus,+ CurrentUsername: authSnapshot.username,HasProxyAuth: authSnapshot.authMethod == "proxy",ProxyAuthLogoutURL: r.config.ProxyAuthLogoutURL,ProxyAuthUsername: proxyAuthUsername,diff --git a/tests/integration/tests/03-multi-tenant.spec.ts b/tests/integration/tests/03-multi-tenant.spec.tsindex 7ba442d6ad..44dd70f932 100644--- a/tests/integration/tests/03-multi-tenant.spec.ts+++ b/tests/integration/tests/03-multi-tenant.spec.ts@@ -286,6 +286,8 @@ test.describe('Multi-tenant E2E flows', () => {});test('Scenario 6: cross-org share preserves intended access role and requires target acceptance', async ({ page, isMobile }) => {+ const narrowProof = process.env.PULSE_E2E_SHARING_NARROW === '1';+ if (narrowProof) await page.setViewportSize({ width: 390, height: 844 });// This is a user-session flow, not a token-isolation test. The primary// API token is deliberately restricted and must not gain cross-org access.await ensureSessionAuthenticated(page);@@ -299,10 +301,39 @@ test.describe('Multi-tenant E2E flows', () => {const orgA = await createOrg(page, `E2E Share Source ${Date.now()}`);const orgB = await createOrg(page, `E2E Share Target ${Date.now()}`);+ // Report relationships only: never retain cookies, tokens or raw identities.+ const inspectIdentity = async (phase: string) => {+ const statusResponse = await apiRequest(page, '/api/security/status');+ expect(statusResponse.ok()).toBeTruthy();+ const status = await statusResponse.json();+ expect(status.currentUsername).toBe(E2E_CREDENTIALS.username);+ const sessionUser = await page.evaluate(() => sessionStorage.getItem('pulse_auth_user'));+ const organizations = await Promise.all([orgA, orgB].map(async ({ id }) => {+ const response = await apiRequest(page, `/api/orgs/${encodeURIComponent(id)}`);+ expect(response.ok()).toBeTruthy();+ const organization = await response.json();+ const membersResponse = await apiRequest(page, `/api/orgs/${encodeURIComponent(id)}/members`);+ expect(membersResponse.ok()).toBeTruthy();+ const members = await membersResponse.json();+ const presentedUser = status.currentUsername ?? (status.proxyAuthUsername || status.ssoSessionUsername || status.authUsername);+ return {+ ownerMatchesLogin: organization.ownerUserId === E2E_CREDENTIALS.username,+ ownerMatchesPresentedUser: organization.ownerUserId === presentedUser,+ loginMembership: members.find((member: OrganizationMember) => member.userId === E2E_CREDENTIALS.username)?.role ?? null,+ };+ }));+ console.log('sharing identity relationships', JSON.stringify({+ phase, detailLevel: status.detailLevel,+ hasPresentedUser: Boolean(status.currentUsername ?? (status.proxyAuthUsername || status.ssoSessionUsername || status.authUsername)),+ sessionHintMatchesLogin: sessionUser === E2E_CREDENTIALS.username,+ organizations,+ }));+ };const outboundResourceName = `Shared View Outbound ${Date.now()}`;const inboundResourceName = `Shared View Inbound ${Date.now()}`;try {+ await inspectIdentity('before-switch');const createShareRes = await apiRequest(page, `/api/orgs/${encodeURIComponent(orgA.id)}/shares`, {method: 'POST',data: {@@ -361,10 +392,11 @@ test.describe('Multi-tenant E2E flows', () => {expect(incomingMatch?.status).toBe('pending');await switchOrg(page, orgA.id);+ await inspectIdentity('after-switch');await page.goto('/settings/organization/sharing', { waitUntil: 'domcontentloaded' });await page.waitForURL(/\/settings\/organization\/sharing/, { timeout: 15_000 });- if (isMobile) {+ if (isMobile || narrowProof) {await expect(page.getByRole('heading', { level: 1, name: 'Sharing', exact: true })).toBeVisible();await expect(page.getByRole('heading', { level: 2, name: 'Organization Sharing' })).toBeVisible();} else {@@ -378,6 +410,7 @@ test.describe('Multi-tenant E2E flows', () => {await expect(incomingRow.getByRole('button', { name: 'Accept' })).toBeVisible();await expect(incomingRow.getByRole('button', { name: 'Decline' })).toBeVisible();+ await page.screenshot({ path: test.info().outputPath('sharing-pending.png'), fullPage: true });await incomingRow.getByRole('button', { name: 'Accept' }).click();await expect(incomingRow.getByText('Active')).toBeVisible();await expect(incomingRow.getByRole('button', { name: 'Accept' })).toHaveCount(0);@@ -394,16 +427,25 @@ test.describe('Multi-tenant E2E flows', () => {);expect(acceptedIncomingMatch?.status).toBe('accepted');expect(acceptedIncomingMatch?.accessRole).toBe('viewer');+ await page.screenshot({ path: test.info().outputPath('sharing-accepted.png'), fullPage: true });} finally {+ // Leave the active tenant before deleting its fixture data.+ await switchOrg(page, 'default');await deleteOrg(page, orgB.id);await deleteOrg(page, orgA.id);}});test('Scenario 7: role changes update effective permissions only in the scoped org', async ({ page }) => {- await ensureAuthenticated(page);+ // RBAC mutations are also a user-session flow; do not combine a browser+ // API token with a potentially stale cookie in page.request.+ await ensureSessionAuthenticated(page);- const mtEnabled = await isMultiTenantEnabled(page);+ const availability = await apiRequest(page, '/api/orgs');+ if (process.env.PULSE_MULTI_TENANT_ENABLED === 'true') {+ expect(availability.status(), 'enabled fixture must not silently skip RBAC coverage').toBe(200);+ }+ const mtEnabled = availability.ok();test.skip(!mtEnabled, 'Multi-tenant feature not enabled in this environment');const orgA = await createOrg(page, `E2E RBAC Scope A ${Date.now()}`);diff --git a/tests/qualification/runner-isolation/2026-09-05-sharing-principal.md b/tests/qualification/runner-isolation/2026-09-05-sharing-principal.mdnew file mode 100644index 0000000000..3869a3c260--- /dev/null+++ b/tests/qualification/runner-isolation/2026-09-05-sharing-principal.md@@ -0,0 +1,134 @@+# Scoped sharing principal — 5 September 2026++Main-based source: 2356e4300022a9e0502b97030b84fc902ca15281 plus+this additive fix. No release image changed or published.++## Diagnosis++Fresh official external evidence: https://playwright.dev/docs/auth distinguishes+cookie storage state from sessionStorage. This informs diagnostic method, not+new product demand. This work repairs an existing authenticated flow.++The source-built cookie-session baseline reproduced 5 passes, 1 failure and+1 skip. Scenario 6 failed on missing Accept; screenshot inspected and showed the+admin/owner-required warning. Relationship-only instrumentation showed:++| Property | Before switch | After switch |+| --- | --- | --- |+| Security status detail | privileged | authenticated |+| Presented username available | yes | no |+| Session hint matches fixture login | yes | yes |+| Source and target owner match fixture login | yes | yes |+| Source and target login membership | owner | owner |++No credentials or raw identities are retained here. The actual endpoint is+`/api/security/status` (not `/api/security-status`).++The scoped response correctly withholds instance-administrator configuration,+including `authUsername`. Settings incorrectly relied on that configuration+field to identify local users. The fix exposes `currentUsername` from the+already-validated authentication snapshot, only in authenticated responses, and+uses it for organisation panel identity. Explicitly empty principals cannot fall+back to the configured administrator. Older responses retain the legacy fallback.+No membership, role, token restriction or server-side permission check changed.++## Validation++- Focused API security-status and settings-enforcement tests passed. New test+ covers public omission, scoped ordinary local identity and scoped configured+ administrator identity while retaining denied instance-settings capability.+ It invokes the status mux with an explicit organisation context; it does not+ qualify tenant middleware. Browser coverage exercises the actual middleware.+- 40 focused frontend tests passed (registry, sharing panel, org utilities).+- 16 existing runner image/cleanup fixture checks passed; these do not prove+ signal-time credential or browser artifact cleanup.+- First browser invocation built successfully but could not load+ @playwright/test. Installed locked integration dependencies and reran.+- One intermediate fixed-image invocation was invalidated by an edit/restore of+ the running shell script and exited on a parsing error. The experimental runner+ changes were discarded; this is not a product failure or qualifying run.++## Cleanup scope and remaining work++Worker-finally cleanup remains insufficient: helpers.ts still uses the+checkout-shared `tests/integration/tmp/playwright-auth/shared-cookie-session.json`.+Runner signal traps tear down the stack but do not guarantee deletion of+invocation videos/reports or this cache. A future repair must stop/wait for child+writers before deleting owned output roots, isolate the shared cookie path per+invocation, and prove signal behaviour; merely adding rm to a trap can race+surviving writers. No cleanup repair is claimed in this commit.++Delayed outgoing admission, failed/superseded incoming admission and the requested+reconnect-recovery assertions remain separate unfinished qualification work.+This identity fix does not qualify those behaviours, stable release readiness,+or installed customer operation. Do not promote the quarantined diagnostic tier.++## Follow-on matrix finding++The first fixed run passed scenario 6 but reported 5 passes and 2 skips, not a+complete enabled matrix. Scenario 7's feature probe silently treated HTTP 401 as+an absent entitlement. Added a fail-closed assertion for this explicitly enabled+fixture, which reproduced the 401. Switching back to default before deleting+scenario 6's organisations did not resolve it; no causal claim is made for that+experiment. Scenario 7 also mixes browser token auth with ambient cookie-based+API requests; its retained change uses the existing cookie-session login instead.++Reproduction commands:++```sh+pulse-heavy-run -- bash tests/integration/scripts/run-tests.sh multi-tenant+bash scripts/ensure_test_assets.sh+go test ./internal/api -run 'TestSecurityStatus|TestSettingsCapabilitiesMatchRouteEnforcementWithoutRBAC' -count=1+npm --prefix frontend-modern test -- src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts src/components/Settings/__tests__/OrganizationSharingPanel.test.tsx src/utils/__tests__/orgUtils.test.ts+```++The focused Go selector covers 23 top-level tests. Local Go tests use the+repository's dummy embed asset helper, not a frontend release build. All browser+runs used source-built e2e_runtime and mock fixtures through pulse-heavy-run.++## Final browser result++Final source-built matrix: **6 passed, 1 skipped**, exit 0, 35.2 seconds.+Scenario 6 passed (accept control, accepted API status, intended viewer role);+scenario 7 passed scoped RBAC updates. Only the disabled-feature scenario skipped.+Before and after switching, currentUsername matches the fixture login and both+organisation owners; detail still changes from privileged to authenticated.++Project: pulse-e2e-1058aa3ef256a5f155d1dfe80934cd60++Loopback HTTP / agent / mock ports: 32820 / 32821 / 32819.++Server: sha256:6ce8b61b624214c3f34a4a6815ec1871b6d409e4d461d38b0079e10794a9cc18++Mock: sha256:7eadf2ea47737afbadb86ba7725081a8ce613a6903092b3af768bcc04144c049++After completion, label-scoped container/network/volume inventories were empty+for all seven invocations. Removed only their owned browser report/result roots+and this isolated checkout's shared cookie cache. This was manual post-run+cleanup, not proof of automatic interruption cleanup.++## Bounded preflight repair++The original commit lacked same-commit subsystem contracts, registry-recognised+proof paths and a matching browser receipt. No contract-neutral exemption used.+Documented the identity-only API addition and its six subsystem boundaries;+moved the scoped/public API proof into contract_test.go and updated the Settings+architecture proof (including its stale legacy-fallback source assertion).+78 focused architecture/registry tests and the migrated scoped API test pass.++Fresh desktop project pulse-e2e-c183e95ab1168905085b1c9996705dd8 and narrow project+pulse-e2e-76ec75fc0fee54b9aa57f9ad225f2652 each returned 6 passes and one expected+disabled-feature skip. Scenario 6 narrow proof uses 390x844, desktop uses+1280x720. Inspected pending/accepted screenshots from both. Narrow scrolled+tables are clipped: functional acceptance passed, visual polish is not claimed.+The committed browser receipt binds the unchanged runtime source hashes and+records these limits. External authentication guidance was reread from+https://playwright.dev/docs/auth; cookie artifacts remain sensitive even for+fixture accounts.++Repair validation: 23 focused API tests passed after moving the proof. Canonical+completion, browser receipt, governance-stage and staged-shape guards passed;+contract, control-plane, status and registry audits exited zero. These governance+results do not establish release readiness. Both repair invocation resource+inventories were empty, and owned browser roots/shared checkout cookie cache+were manually removed after screenshot inspection.