Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use a external JWT public key in authenticated APIs #183

Merged
merged 42 commits into from
Nov 17, 2019
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d333278
allow verification of externally signed jwt
jframe Nov 8, 2019
943f0d1
move jwt configuration out of the auth service so it can be tested
jframe Nov 8, 2019
4543681
jwt auth options ut
jframe Nov 11, 2019
778a6c5
add file headers
jframe Nov 11, 2019
22066b6
increase generated key size to 2048 as recommended in the jwt rfc whe…
jframe Nov 11, 2019
a55d2ea
disable login if external jwt public key is used
jframe Nov 11, 2019
c0e7c20
Merge branch 'master' into external_jwt
jframe Nov 11, 2019
5708c08
handle JWT auth without credentials file
jframe Nov 12, 2019
a55558c
Only allow Auth service to be enabled if auth is enabled. Fixes the ATs
jframe Nov 12, 2019
9d24f8d
http rpc JWT external public key ATs
jframe Nov 12, 2019
44874a0
ws rpc JWT external public key ATs
jframe Nov 12, 2019
1d770b7
refactor login ATs
jframe Nov 12, 2019
4c3b89a
spotless
jframe Nov 12, 2019
c769ac3
Fix compile error
jframe Nov 12, 2019
0800233
final
jframe Nov 12, 2019
77f749f
change besu CLI so that ws can handle JWT auth without credentials file
jframe Nov 12, 2019
6b9b80f
revert unneeded change
jframe Nov 12, 2019
d27c814
update command line help
jframe Nov 12, 2019
b27f140
additional besu command uts
jframe Nov 13, 2019
4e221aa
PR changes: rename AT var
jframe Nov 13, 2019
c47b0a7
Fail JWT if expiry claim doesn't exist
jframe Nov 14, 2019
a18ccb8
use pem file format
jframe Nov 14, 2019
4b287d9
handle invalid pem file format
jframe Nov 14, 2019
7584013
update cli description to mention file is in pem format
jframe Nov 14, 2019
014d2fe
spotless
jframe Nov 14, 2019
88631ad
additional unit tests
jframe Nov 14, 2019
bf29286
default charset warning
jframe Nov 14, 2019
e1dc25a
Merge branch 'master' into external_jwt
jframe Nov 14, 2019
3e4dd66
PR changes: simplify AT authenticated node creation
jframe Nov 14, 2019
7e4351a
PR changes: split failure AT tests out into separate tests
jframe Nov 14, 2019
5e1d9ed
Merge branch 'external_jwt' of github.com:jframe/besu into external_jwt
jframe Nov 14, 2019
e13b9db
fix closing of pem reading file stream
jframe Nov 14, 2019
c4caf32
fix closing of pem reading file stream
jframe Nov 15, 2019
e3154f1
finals
jframe Nov 15, 2019
0b98878
PR changes for http login AT
jframe Nov 15, 2019
eef9610
PR changes for ws login AT
jframe Nov 15, 2019
6eab286
compile error
jframe Nov 15, 2019
80deef5
add jwt into the cli options
jframe Nov 15, 2019
f3aaf7d
remove unnecessary capitalisation in cli description
jframe Nov 15, 2019
19fedcf
spotless
jframe Nov 15, 2019
08fb77b
update the cli options when using process runner in ATs
jframe Nov 15, 2019
a51d52f
Merge branch 'master' into external_jwt
jframe Nov 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update the cli options when using process runner in ATs
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
  • Loading branch information
jframe committed Nov 15, 2019
commit 08fb77b6b4403ad607312b1c017061e412919da4
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void startNode(final BesuNode node) {
params.add(node.jsonRpcConfiguration().getAuthenticationCredentialsFile());
}
if (node.jsonRpcConfiguration().getAuthenticationPublicKeyFile() != null) {
jframe marked this conversation as resolved.
Show resolved Hide resolved
params.add("--rpc-http-authentication-public-key-file");
params.add("--rpc-http-authentication-jwt-public-key-file");
params.add(node.jsonRpcConfiguration().getAuthenticationPublicKeyFile().getAbsolutePath());
}
}
Expand All @@ -154,7 +154,7 @@ public void startNode(final BesuNode node) {
params.add(node.webSocketConfiguration().getAuthenticationCredentialsFile());
}
if (node.webSocketConfiguration().getAuthenticationPublicKeyFile() != null) {
params.add("--rpc-ws-authentication-public-key-file");
params.add("--rpc-ws-authentication-jwt-public-key-file");
params.add(
node.webSocketConfiguration().getAuthenticationPublicKeyFile().getAbsolutePath());
}
Expand Down