Skip to content

Commit

Permalink
chore: disable getProofs endpoint for external requests
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Apr 30, 2024
1 parent b9d4d2c commit c09aab6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/dashmate/templates/platform/gateway/envoy.yaml.dot
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,22 @@
cluster: dapi_api
# Upstream response timeout
timeout: 10s
# getProofs endpoint only for internal use (DAPI -> Drive)
- match:
path: "/org.dash.platform.dapi.v0.Platform/getProofs"
route:
response_headers_to_add:
- header:
key: "Content-Type"
value: "application/grpc-web+proto"
- header:
key: "grpc-status"
value: "12"
- header:
key: "grpc-message"
value: "getProofs endpoint is only for internal use"
direct_response:
status: 204
# Drive gRPC endpoints
- match:
prefix: "/org.dash.platform.dapi.v0.Platform"
Expand Down

0 comments on commit c09aab6

Please sign in to comment.