[Cu-8688z7q8x] Adds device fingerprint computation (#1334)

* Adds device fingerprint computation

* Removes old code

* ditto

* Smol fix

* Sets fingerprint header on each request

* Constraints env vars for fingerprint secret

* Better fingerprint handling in server

* Uses class to decrypt the fingerprint

* Only send fingerprint when it matches userId

* Skip fingerprint decryption when sending to clickhouse
This commit is contained in:
Manuel Emilio Urena
2024-08-22 17:13:48 -04:00
committed by GitHub
parent dd9b10754f
commit 1584b83531
25 changed files with 239 additions and 46 deletions
+5 -1
View File
@@ -158,4 +158,8 @@ NCMEC_PASSWORD=pswd123
# MeiliSearch
METRICS_SEARCH_HOST=https://localhost:7700
METRICS_SEARCH_API_KEY=aSampleMasterKey
METRICS_SEARCH_API_KEY=aSampleMasterKey
# Fingerprint
FINGERPRINT_SECRET=61952c5f9c9f1938abcf288bff56021a927a0a829f2e839a7a9fe219c83dca0c # 32 bytes
FINGERPRINT_IV=b5f09724c7567e53d47d0a26bfa263e4 # 16 bytes