Skip to content

Commit

Permalink
allow router operators to authorize routing location requests (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgrunewald authored Apr 19, 2023
1 parent 6af342a commit 328fe75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iot_config/src/gateway_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ impl iot_config::Gateway for GatewayService {
telemetry::count_request("gateway", "location");

let signer = verify_public_key(&request.signer)?;
self.verify_request_signature(&signer, &request)?;
request
.verify(&signer)
.map_err(|_| Status::permission_denied("invalid request signature"))?;

let address: &PublicKeyBinary = &request.gateway.into();

Expand Down

0 comments on commit 328fe75

Please sign in to comment.