PeerDB-io / peerdb

Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage
https://peerdb.io
Other
2.25k stars 92 forks source link

Add request signing accepting different methods for request signature #2045

Closed iamKunalGupta closed 1 month ago

iamKunalGupta commented 2 months ago

Assuming the following metadata-keys/headers are available on request:

The following env vars are used:

Request will only be accepted if:

Current plan is to only have this on certain GRPC methods and implement for AWS Asymmetric keys. This will NOT work on HTTP requests, a separate interceptor can be added for HTTP request body with common methods.

iamKunalGupta commented 1 month ago

Closing since GRPC raw body intercept is a pain and if we plan to Marshal back to json, the result may not be reproducible as to what the client sent