fix(auth): address Task 13 deployment review findings
This commit is contained in:
@@ -24,8 +24,19 @@ if (services.join(",") !== "core,embedding,embedding-model-init,frontend,qdrant"
|
||||
if (/omics_portal|chirone|localllm_default|\/home\/chirone/i.test(JSON.stringify(config))) {
|
||||
throw new Error("default Compose contains application-specific coupling");
|
||||
}
|
||||
for (const volume of ["settings", "pi-state", "workspace-registry", "sessions", "auth-state", "qdrant-data", "embedding-models"]) {
|
||||
if (!config.volumes || !config.volumes[volume]) throw new Error(`missing required volume: ${volume}`);
|
||||
const expectedVolumes = [
|
||||
"auth-state",
|
||||
"embedding-models",
|
||||
"pi-state",
|
||||
"qdrant-data",
|
||||
"sessions",
|
||||
"settings",
|
||||
"workspace-registry",
|
||||
"workspace-secrets",
|
||||
];
|
||||
const actualVolumes = Object.keys(config.volumes || {});
|
||||
if (actualVolumes.join(",") !== expectedVolumes.join(",")) {
|
||||
throw new Error(`unexpected ordered volume set: ${actualVolumes.join(",")}`);
|
||||
}
|
||||
const core = config.services.core;
|
||||
const frontend = config.services.frontend;
|
||||
|
||||
Reference in New Issue
Block a user