fix: security hardening from pentest findings #6
Reference in New Issue
Block a user
Delete Branch "fix/pentest-security-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/api/demo— rejects requests without validcf-turnstile-response; secret read fromTURNSTILE_SECRET_KEY(Secret Manager); fixes/v0/→/v1/siteverify URL/share/<id>no longer leaks bucket name in error responsesintegrity+crossoriginattributes to CDN script tagSitemap:reference to non-existentsitemap.xml/api/attestwrites toGCS_ATTEST_BUCKET(dedicated private bucket); falls back toGCS_SHARE_BUCKETfor legacy deploysInfrastructure (already live)
neuron-shares-prodpublic access revokedneuron-attestations-prodprivate bucket created; 13 existing attestation records migratedturnstile-secret-keyseeded in Secret Manager-all, DMARC →p=reject, HTTP redirect:443fixed