forked from mtusi2026/mtusi2026lab4
feat: restricted S3 credentials, orphan reconciler, upload limits (grade 4)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
2026-11-20T04:17:09+03:00
|
||||
separate restricted S3 credentials for the API and idempotent bucket bootstrap
|
||||
|
||||
$ podman-compose run --rm s3-init (first run)
|
||||
bucket ready: messenger-attachments
|
||||
policy ready: messenger-app
|
||||
application credentials ready
|
||||
policy attached to application credentials
|
||||
|
||||
$ podman-compose run --rm s3-init (second run: idempotent)
|
||||
bucket ready: messenger-attachments
|
||||
policy ready: messenger-app
|
||||
application credentials ready
|
||||
policy attached to application credentials
|
||||
|
||||
secret files mounted into api vs s3 (hashes differ)
|
||||
api_1 app secret sha256: 02b5014e8a0f03ac52a0a32d19abe13cd0e64ad9a9c61f178e3eede9989c82ce
|
||||
s3 root secret sha256: 970780881d80d85eb3f084c147c71e390fa563e0e022fa75cd8170d5a607cacc
|
||||
|
||||
secrets per role
|
||||
messenger-lab4_api_1: cache_url database_url s3_access_key_id s3_secret_access_key
|
||||
messenger-lab4_s3_1: s3_root_access_key s3_root_secret_key
|
||||
|
||||
$ scripts/s3tool.sh remove-bucket messenger-attachments (must be denied)
|
||||
s3tool failed: dependency unavailable: Access Denied
|
||||
Reference in New Issue
Block a user