Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/containerboot: load containerboot serve config that does not contain HTTPS endpoint in tailnets with HTTPS disabled #14538

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

irbekrm
Copy link
Contributor

@irbekrm irbekrm commented Jan 5, 2025

Fixes an issue where, if a tailnet has HTTPS disabled, no serve config set via TS_SERVE_CONFIG gets loaded, even if the config does not contain an HTTPS endpoint.
Now serve config provided to containerboot is considered invalid (and not loaded) for tailnets with no HTTPS only if there is an HTTPS endpoint defined in the config.

I've tested by hand that the existing behaviour is retained and also serve config without HTTPS endpoint can now gets loaded for tailnets with HTTPS disabled.

Fixes #14495

…ain HTTPS endpoint in tailnets with HTTPS disabled

Fixes an issue where, if a tailnet has HTTPS disabled, no serve config
set via TS_SERVE_CONFIG was loaded, even if it does not contain an HTTPS endpoint.
Now for tailnets with HTTPS disabled serve config provided to containerboot is considered invalid
(and therefore not loaded) only if there is an HTTPS endpoint defined in the config.

Fixes #14495

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
@irbekrm irbekrm force-pushed the irbekrm/serve_http branch from f23be29 to d9b2aca Compare January 5, 2025 20:11
@irbekrm irbekrm requested a review from tomhjp January 6, 2025 06:56
@@ -68,7 +68,6 @@ func watchServeConfigChanges(ctx context.Context, path string, cdChanged <-chan
if prevServeConfig != nil && reflect.DeepEqual(sc, prevServeConfig) {
continue
}
validateHTTPSServe(certDomain, sc)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this function call as it's called from within updateServeConfig on the next line anyway

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.

TS_SERVE_CONFIG is ignored when HTTPS is not enabled
1 participant