forked from mtusi2026/mtusi2026lab7
feat: require TLS to PostgreSQL, Valkey and S3
Storage servers accept only TLS 1.3 (pg_hba hostssl / hostnossl reject, Valkey port 0, S3 gateway HTTPS only) with stand identities postgres, valkey and s3. Clients trust only the stand CA from [client_tls] ca_file and check the host name; no switch to disable verification. Processes exit with code 2 without a CA or with an IP storage address. Temporary stands, CI and bench/ run on TLS storages; make storage_tls_check adds negative checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -92,12 +92,14 @@ jobs:
|
||||
|
||||
- name: Bucket is closed to anonymous requests
|
||||
# без подписи: список bucket и объектов — 403. Полная проверка
|
||||
# приватности — make s3_check (evidence/s3/privacy.md)
|
||||
# приватности — make s3_check (evidence/s3/privacy.md). С change
|
||||
# storage-tls шлюз — только HTTPS: CA прогона, имя s3 (SAN identity s3)
|
||||
run: |
|
||||
s3="http://s3:$(sed -n 's/^S3_PORT=//p' .env)"
|
||||
s3="https://s3:$(sed -n 's/^S3_PORT=//p' .env)"
|
||||
bucket=$(sed -n 's/^S3__BUCKET=//p' .env)
|
||||
ca=${PKI_STAND_DIR:-.pki/stand}/ca.crt
|
||||
for url in "$s3/" "$s3/$bucket" "$s3/$bucket?list-type=2"; do
|
||||
code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
|
||||
code=$(curl -s --cacert "$ca" -o /dev/null -w '%{http_code}' "$url")
|
||||
echo "anonymous GET $url -> $code"
|
||||
test "$code" = 403
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user