Skip to content

Commit

Permalink
Update the signing key for httpjwtauthenticator test cases and add ob…
Browse files Browse the repository at this point in the history
…o config to test config

Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Jul 26, 2023
1 parent 32f4fe6 commit e3111b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ config:
type: jwt
challenge: false
config:
signing_key: "base64 encoded HMAC key or public RSA/ECDSA pem key"
signing_key: "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z"
jwt_header: "Authorization"
jwt_url_parameter: null
jwt_clock_skew_tolerance_seconds: 30
Expand Down
2 changes: 1 addition & 1 deletion legacy/securityconfig_v6/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ opendistro_security:
type: jwt
challenge: false
config:
signing_key: "base64 encoded HMAC key or public RSA/ECDSA pem key"
signing_key: "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z"
jwt_header: "Authorization"
jwt_url_parameter: null
roles_key: null
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/legacy/securityconfig_v6/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ opendistro_security:
type: jwt
challenge: false
config:
signing_key: "base64 encoded HMAC key or public RSA/ECDSA pem key"
signing_key: "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z"
jwt_header: "Authorization"
jwt_url_parameter: null
roles_key: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ opendistro_security:
type: jwt
challenge: false
config:
signing_key: "base64 encoded HMAC key or public RSA/ECDSA pem key"
signing_key: "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z"
jwt_header: "Authorization"
jwt_url_parameter: null
roles_key: null
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/restapi/securityconfig_nondefault.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"challenge" : false,
"type" : "jwt",
"config" : {
"signing_key" : "base64 encoded HMAC key or public RSA/ECDSA pem key",
"signing_key" : "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z",
"jwt_header" : "Authorization"
}
},
Expand Down Expand Up @@ -172,6 +172,7 @@
"hosts_resolver_mode" : "ip-only",
"do_not_fail_on_forbidden_empty" : false,
"on_behalf_of": {
"enabled": true,
"signing_key": "VGhpcyBpcyB0aGUgand0IHNpZ25pbmcga2V5IGZvciBhbiBvbiBiZWhhbGYgb2YgdG9rZW4gYXV0aGVudGljYXRpb24gYmFja2VuZCBmb3IgdGVzdGluZyBvZiBleHRlbnNpb25z",
"encryption_key": "ZW5jcnlwdGlvbktleQ=="
}
Expand Down

0 comments on commit e3111b8

Please sign in to comment.