Skip to content

Commit

Permalink
Strip newline from jwt secrets (#3132)
Browse files Browse the repository at this point in the history
## Issue Addressed

Resolves #3128 

## Proposed Changes

Strip trailing newlines from jwt secret files.
  • Loading branch information
pawanjay176 committed Apr 1, 2022
1 parent 41e7a07 commit 9ec072f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_node/execution_layer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl ExecutionLayer {
})
.and_then(|ref s| {
let secret = JwtKey::from_slice(
&hex::decode(strip_prefix(s))
&hex::decode(strip_prefix(s.trim_end()))
.map_err(|e| format!("Invalid hex string: {:?}", e))?,
)?;
Ok((secret, p.to_path_buf()))
Expand Down

0 comments on commit 9ec072f

Please sign in to comment.