fix(statusbar): show public origin, never the internal server address #57
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VAPP-44-statusbar-public-origin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The statusbar read get_server_url(), which after the VAPP-41 internal/public split returns VERVAIN_SERVER_INTERNAL_URL and so leaked the deployment-private internal host/port (e.g. http://vervain-server:15443) to every signed-in browser. Switch the statusbar URL source to get_public_url() (VERVAIN_SERVER_PUBLIC_URL), keeping the footer layout while showing only the browser-reachable public origin.
The Settings Connection card also rendered the internal URL to all roles, not just admins. Gate the internal-URL row behind is_site_admin() via a self-hiding InternalServerUrlRow (mirroring the AgentBinariesCard pattern); the public-origin row stays visible to everyone. After this, no non-admin surface renders the internal address.
Add a VAPP-44 leak guard (statusbar_guard.rs) that embeds statusbar.rs and fails the build if get_server_url reappears there, enforcing the fix mechanically.
#VAPP-44