Version
% fastly version
Fastly CLI version v10.19.0 (33a28544)
Built with go version go1.22.12 linux/amd64 (2025-03-09)
Viceroy version: viceroy 0.12.2
What happened
In #843, a feature was added that checks if override_host is defined for each backend defined in local_server, and sets one equal to the hostname specified as the url.
Unfortunately, after this value is set in memory, it is not actually passed into Viceroy (Viceroy only receives the path to fastly.toml), so it does not see the updated value.
The expected behavior is for the override_host value that is set by this feature to reflect in the Viceroy session that is spawned.
I think this can be a source of confusion as it logs a message saying it is going to assign override_host, but the change actually never makes it to Viceroy.
INFO: [local_server.backends.http-me] (https://http-me.glitch.me) is configured without an `override_host`. We will use http-me.glitch.me as a
default to help avoid any unexpected errors. See
https://www.fastly.com/documentation/reference/compute/fastly-toml#local-server for more details.
Version
What happened
In #843, a feature was added that checks if
override_hostis defined for each backend defined inlocal_server, and sets one equal to the hostname specified as theurl.Unfortunately, after this value is set in memory, it is not actually passed into Viceroy (Viceroy only receives the path to
fastly.toml), so it does not see the updated value.The expected behavior is for the
override_hostvalue that is set by this feature to reflect in the Viceroy session that is spawned.I think this can be a source of confusion as it logs a message saying it is going to assign override_host, but the change actually never makes it to Viceroy.