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.

Keep portal workspace copy permission-honest

rcourtmand5513d479790
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index d60439cc4a..014df4727e 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -451,6 +451,11 @@ accessible from self-hosted environments.
Cloud paid readiness is materially behind architecture work. The main concern is
contract coherence between pricing, entitlements, and runtime enforcement.
+Pulse Account portal workspace copy is part of that same readiness contract:
+hosted view-only users may be invited to review workspace health and open ready
+workspaces, but workspace section lead copy must route lifecycle handling to an
+owner or admin instead of presenting Lifecycle as a live task for the current
+signed-in role.
That public-demo commercial boundary also owns monitored-system preview
unavailability wording. Browser presentation may keep the unavailable reason
nullable until the formatting edge, but it must normalize the message through
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 62d809db65..9c70b991db 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "2779d69a4fbc54c76da5976dbb001ef9603c97ceed967a7d989fcf589500616f",
+ "source_hash": "6495ce569dd3cc88f07508daf86b72d98c765d514f3225c23e568cc32018fa4e",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 82980f21e0..c5c0ce8c6c 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -2577,10 +2577,14 @@
return '<section class="workspace-summary-inline"><div class="workspace-summary-inline-copy"><p><strong>Next:</strong> ' + escapeHTML(decision.title) + "</p><p>" + escapeHTML(decision.description) + '</p></div><div class="workspace-summary-actions">' + decision.primaryAction + decision.secondaryAction + "</div></section>";
}
function workspaceSectionHeaderCopy(accounts, entries) {
+ var canManageAnyWorkspace = accounts.some(function(account) {
+ return account.can_manage;
+ });
if (!entries.length) {
- return accounts.some(function(account) {
- return account.can_manage;
- }) ? "Review hosted workspaces here, then create the next workspace when you are ready." : "Review hosted workspace state here. An owner or admin must create or change hosted workspaces.";
+ return canManageAnyWorkspace ? "Review hosted workspaces here, then create the next workspace when you are ready." : "Review hosted workspace state here. An owner or admin must create or change hosted workspaces.";
+ }
+ if (!canManageAnyWorkspace) {
+ return "Review hosted workspace health here and open ready workspaces. An owner or admin must handle lifecycle changes.";
}
return "Review hosted workspace health here, open the next ready workspace, and use Lifecycle only when an account-level change is required.";
}
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index ec5f89ff0f..c4f3aa1a55 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -432,6 +432,7 @@ describe('shell view', function() {
);
expect(html).toContain('Tech');
+ expect(html).toContain('Review hosted workspace health here and open ready workspaces. An owner or admin must handle lifecycle changes.');
expect(html).toContain('Review who has access. An owner or admin must make changes.');
expect(html).toContain('An owner or admin on this account needs to open hosted billing.');
expect(html).toContain('Try first');
@@ -444,6 +445,7 @@ describe('shell view', function() {
expect(html).not.toContain('Self-hosted billing, licenses, refunds, and privacy stay in Billing.');
expect(html).not.toContain('Use support only when the Workspaces, Access, or hosted Billing path has already stopped you.');
expect(html).not.toContain('Workspace or access path failed');
+ expect(html).not.toContain('use Lifecycle only when an account-level change is required');
});
it('renders read-only account roles without leaking internal identifiers', function() {
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index ae1dcace5a..e9c1f59dc4 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -680,11 +680,15 @@ function renderWorkspaceSummaryInline(
}
function workspaceSectionHeaderCopy(accounts: PortalAccountSummary[], entries: WorkspaceSummaryEntry[]): string {
+ var canManageAnyWorkspace = accounts.some(function(account) { return account.can_manage; });
if (!entries.length) {
- return accounts.some(function(account) { return account.can_manage; })
+ return canManageAnyWorkspace
? 'Review hosted workspaces here, then create the next workspace when you are ready.'
: 'Review hosted workspace state here. An owner or admin must create or change hosted workspaces.';
}
+ if (!canManageAnyWorkspace) {
+ return 'Review hosted workspace health here and open ready workspaces. An owner or admin must handle lifecycle changes.';
+ }
return 'Review hosted workspace health here, open the next ready workspace, and use Lifecycle only when an account-level change is required.';
}