Skip to content

Conversation

@kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Jan 25, 2026

Summary

When a VM is configured with custom gateway_urls, the dashboard URL (app_url) now correctly uses the custom gateway's host and port instead of the global gateway config.

Problem

Previously, VMs with custom kms/gw endpoints would show incorrect dashboard URLs pointing to the default gateway, even though they were configured to use a different gateway.

Solution

The fix parses the first gateway URL from the VM's custom gateway_urls and extracts the host and port to construct the correct dashboard URL:

  • If VM has custom gateway_urls: use the host/port from the first custom URL
  • Otherwise: fall back to the global gateway config

Test plan

  • Deploy a VM with custom --gateway-url https://custom-gateway.example.com:9202
  • Verify the dashboard URL in the VMM console points to the custom gateway
  • Verify VMs without custom gateway_urls still use the default gateway URL

@kvinwang kvinwang force-pushed the fix/vmm-dashboard-url-custom-gateway branch from c3b66e1 to 223f366 Compare January 25, 2026 09:43
…/gw endpoints

When a VM is configured with custom gateway_urls, the dashboard URL (app_url)
should use the custom gateway's host and port instead of the global gateway config.

This fixes the issue where VMs with custom kms/gw endpoints would show incorrect
dashboard URLs pointing to the default gateway.

The fix uses the url crate to parse the first gateway URL from the VM's custom
gateway_urls and extracts the host and port to construct the correct dashboard URL.
@kvinwang kvinwang force-pushed the fix/vmm-dashboard-url-custom-gateway branch from 223f366 to 52a8ec2 Compare January 25, 2026 10:03
@kvinwang kvinwang enabled auto-merge (squash) January 25, 2026 10:07
@kvinwang kvinwang merged commit 874656c into master Jan 25, 2026
11 checks passed
@kvinwang kvinwang deleted the fix/vmm-dashboard-url-custom-gateway branch January 26, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants