feat(storage,deploy): delad S3/mock-lagring, SSM .env-sync, Gemini readyz

- @app/storage med MockStorage + AwsStorage delas mellan API och worker

- Workerns readUrl() ger presignerad S3-URL i aws-läge (fixar mock-s3 404)

- sync-env-from-ssm.py hämtar /cibello/prod/* och skriver .env; first-deploy.sh kör det i prod

- /readyz returnerar 503 om app.aamos.healthCheck() misslyckas

- docs/SECRETS.md med rotations- och SSM-regler
This commit is contained in:
Sven (AAMOS AI)
2026-08-12 17:28:58 +07:00
parent 535e3e36e8
commit 6e2d794130
17 changed files with 516 additions and 241 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ describe("UPDATE_USER_MEMORY hardening", () => {
aamos,
budgetStore,
apiBaseUrl: "http://localhost:4000",
readUrl: (key: string) => `http://localhost:4000/mock-s3/${key}`,
storage: {} as any,
readUrl: async (key: string) => `http://localhost:4000/mock-s3/${key}`,
close: async () => {},
};
}