Harden API with rate limits, DeviceId isolation, and tighter CORS.
build-and-deploy / deploy (push) Successful in 3m27s

Limit auth/read/write JSON traffic per IP while leaving audio streams unrestricted; close JWT+deviceId IDOR and add path/input guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
masoodafar-web
2026-10-10 04:54:46 +03:30
parent 073e451891
commit 194663e2fd
9 changed files with 445 additions and 143 deletions
+3
View File
@@ -3,6 +3,8 @@ kind: Namespace
metadata:
name: tafsirquran
---
# SECURITY: Rotate MSSQL_SA_PASSWORD and Jwt__Key out-of-band; prefer sealed-secrets /
# external secret store. Do not commit newly rotated production credentials to git.
apiVersion: v1
kind: Secret
metadata:
@@ -25,6 +27,7 @@ data:
Jwt__Issuer: "TafsirQuran"
Jwt__Audience: "TafsirQuran"
Jwt__ExpireMinutes: "43200"
Cors__Origins__0: "https://quran.afrino.co"
---
apiVersion: v1
kind: ConfigMap