Skip to content

Commit

Permalink
Remove api token requirement for sse logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed May 3, 2023
1 parent 5411d5a commit 202aad8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions validator_client/src/http_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,6 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
.or(get_fee_recipient)
.or(get_gas_limit)
.or(get_std_keystores)
.or(get_log_events.boxed())
.or(get_std_remotekeys),
)
.or(warp::post().and(
Expand All @@ -1113,8 +1112,8 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
.or(delete_std_remotekeys),
)),
)
// The auth route is the only route that is allowed to be accessed without the API token.
.or(warp::get().and(get_auth))
// The auth route and logs are the only routes that are allowed to be accessed without the API token.
.or(warp::get().and(get_auth.or(get_log_events.boxed())))
// Maps errors into HTTP responses.
.recover(warp_utils::reject::handle_rejection)
// Add a `Server` header.
Expand Down Expand Up @@ -1175,4 +1174,4 @@ where

response
})
}
}

0 comments on commit 202aad8

Please sign in to comment.