fix: validate maintenance profiles and canonical local auth origins
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user