fix: validate maintenance profiles and canonical local auth origins

This commit is contained in:
Codex
2026-10-06 16:09:39 +02:00
parent d79e261e09
commit 2aac228cdc
10 changed files with 106 additions and 11 deletions
@@ -186,6 +186,8 @@ func Validate(path string) (config.Installation, Report) {
auth, users, err := authconfig.Load(installation.AuthenticationDirectory())
if err != nil {
report.Add("auth/auth.yaml", "$", "authentication_invalid", "Prepare and validate local authentication documents before setup, including the initial administrator.")
} else if !authconfig.ValidPublicURL(auth.PublicURL) {
report.Add("auth/auth.yaml", "publicUrl", "authentication_origin_invalid", "Use HTTPS or a canonical literal loopback HTTP origin, for example http://127.0.0.1:8080; localhost names are not accepted by the runtime.")
} else if auth.Mode == "local" {
admin := false
for _, user := range users.Users {