fix: validate maintenance profiles and canonical local auth origins
This commit is contained in:
@@ -104,6 +104,9 @@ func (r *dockerFixture) Run(_ context.Context, args []string, input io.Reader) (
|
||||
if strings.Contains(line, " config ") {
|
||||
services := map[string]any{}
|
||||
for service, role := range map[string]string{"core": "core", "frontend": "frontend", "catalog-db": "catalog", "catalog-migrate": "core", "workspace-maintenance": "core", "qdrant": "qdrant", "embedding": "embedding", "embedding-model-init": "embedding"} {
|
||||
if (service == "catalog-migrate" && !strings.Contains(line, "--profile catalog-maintenance")) || (service == "workspace-maintenance" && !strings.Contains(line, "--profile workspace-maintenance")) {
|
||||
continue
|
||||
}
|
||||
services[service] = map[string]string{"image": "docker.io/example/" + role + "@sha256:" + strings.Repeat("a", 64)}
|
||||
}
|
||||
if r.wrongImage {
|
||||
|
||||
Reference in New Issue
Block a user