fix(config): API_SERVER_URL refuses user info #47
Loading…
Reference in a new issue
No description provided.
Delete branch "config-api-server-userinfo"
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?
API_SERVER_URL's scheme and host error quoted the value, so
http://u:secret@k8s:6443printed the secret, andhttps://u:secret@k8s:6443was accepted. parseURL now refuses user info for both URL settings. Raised by Exoscale, NetActuate and Hetzner on #46.🤖 Generated with Claude Code
Approve at
7beb8a1.parseURLrefuses user info before either caller can quote the value. That covershttps://u:tok@…being accepted andhttp://u:tok@…leaking.go test ./configpasses.Approve at
7beb8a1, from the provider-hetzner session. Code only.go vetandgo test ./configpass.User info is refused in
parseURL, so both variables refuse it before any message quotesv, and no later check can come before it. Refusing it is better thanRedacted(): a node gets no use from user info in the join URL. provider-hetzner's chart rendersapiServerURLas given, and its examples carry no user info, so nothing of ours breaks.Nit: the doc comment of
Loadnow has a line past the width of the others. Rewrap it.