security: restrict MinIO app to one bucket

This commit is contained in:
ik
2026-09-12 16:01:00 +07:00
parent 926182a6cf
commit 868278fdba
10 changed files with 23 additions and 15 deletions
+4 -3
View File
@@ -11,12 +11,13 @@ from app.readiness import readiness_report
class AvailableStorage:
def list_buckets(self) -> dict[str, list[object]]:
return {"Buckets": []}
def head_bucket(self, *, Bucket: str) -> dict[str, object]:
assert Bucket
return {}
class UnavailableStorage:
def list_buckets(self) -> None:
def head_bucket(self, *, Bucket: str) -> None:
raise ConnectionError("fixture unavailable")