[cockpit] Admin-only link back to the admin console from a member instance #300

Closed
opened 2026-06-17 13:55:10 +00:00 by mik-tf · 1 comment
Owner

An admin who is signed into a member instance has no obvious way back to the admin console. Hiding the admin instance from a normal member is correct by design (a member must never see or reach the control plane), but an admin needs a path home. A senior dev with admin access hit this from their own member instance.

Add an admin-only Admin console link in the member cockpit navbar. Gate it on the signed-in user being an admin (the member instance is already seeded with the admin access accounts), not on the machine role, so a normal member never sees it and the by-design hiding is preserved. The deployer injects its own public console URL as a non secret config value at provision, and the cockpit renders the link (opening in a new tab) only for admin users.

Decisions to confirm at build time: gate on user-is-admin and not the machine role; the admin console URL is injected config (a public hostname, not a secret), which lightly couples a member instance to the admin instance for this admin-only convenience; cockpit navbar only for a first version, and revisit surfacing it inside hero_os later.

Cross repo: hero_cockpit (the conditional navbar link and the admin-user check) and the deployer (inject the admin console URL at provision). Relates to lhumina_code/home#282 (machine and fleet roles).

An admin who is signed into a member instance has no obvious way back to the admin console. Hiding the admin instance from a normal member is correct by design (a member must never see or reach the control plane), but an admin needs a path home. A senior dev with admin access hit this from their own member instance. Add an admin-only Admin console link in the member cockpit navbar. Gate it on the signed-in user being an admin (the member instance is already seeded with the admin access accounts), not on the machine role, so a normal member never sees it and the by-design hiding is preserved. The deployer injects its own public console URL as a non secret config value at provision, and the cockpit renders the link (opening in a new tab) only for admin users. Decisions to confirm at build time: gate on user-is-admin and not the machine role; the admin console URL is injected config (a public hostname, not a secret), which lightly couples a member instance to the admin instance for this admin-only convenience; cockpit navbar only for a first version, and revisit surfacing it inside hero_os later. Cross repo: hero_cockpit (the conditional navbar link and the admin-user check) and the deployer (inject the admin console URL at provision). Relates to https://forge.ourworld.tf/lhumina_code/home/issues/282 (machine and fleet roles).
Author
Owner

An admin signed into a member instance now sees a link back to the admin console, and a regular member never does. Live across the fleet. Closing as done.

An admin signed into a member instance now sees a link back to the admin console, and a regular member never does. Live across the fleet. Closing as done.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/home_lhumina#300
No description provided.