Skip to content

Commit 202aad8

Browse files
committed
Remove api token requirement for sse logs
1 parent 5411d5a commit 202aad8

File tree

1 file changed

+3
-4
lines changed
  • validator_client/src/http_api

1 file changed

+3
-4
lines changed

validator_client/src/http_api/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
10911091
.or(get_fee_recipient)
10921092
.or(get_gas_limit)
10931093
.or(get_std_keystores)
1094-
.or(get_log_events.boxed())
10951094
.or(get_std_remotekeys),
10961095
)
10971096
.or(warp::post().and(
@@ -1113,8 +1112,8 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
11131112
.or(delete_std_remotekeys),
11141113
)),
11151114
)
1116-
// The auth route is the only route that is allowed to be accessed without the API token.
1117-
.or(warp::get().and(get_auth))
1115+
// The auth route and logs are the only routes that are allowed to be accessed without the API token.
1116+
.or(warp::get().and(get_auth.or(get_log_events.boxed())))
11181117
// Maps errors into HTTP responses.
11191118
.recover(warp_utils::reject::handle_rejection)
11201119
// Add a `Server` header.
@@ -1175,4 +1174,4 @@ where
11751174

11761175
response
11771176
})
1178-
}
1177+
}

0 commit comments

Comments
 (0)