-
Notifications
You must be signed in to change notification settings - Fork 808
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
Update SigV4 interceptor to use latest aws sdk version #2884
Update SigV4 interceptor to use latest aws sdk version #2884
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2884 +/- ##
============================================
+ Coverage 76.16% 77.87% +1.70%
- Complexity 13170 13578 +408
============================================
Files 1085 1015 -70
Lines 65189 59308 -5881
Branches 7289 6835 -454
============================================
- Hits 49651 46184 -3467
+ Misses 12830 10817 -2013
+ Partials 2708 2307 -401 ☔ View full report in Codecov by Sentry. |
private static final String SERVICE_NAME = "service-name"; | ||
private static final byte[] REQUEST_BODY = "{\"gremlin\":\"2-1\"}".getBytes(StandardCharsets.UTF_8); | ||
private static final String HOST = "localhost"; | ||
private static final String URI_WITH_QUERY_PARAMS = "http://" + HOST + ":8182?a=1&b=2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is OK for testing, but technically the TinkerPop HTTP API doesn't allow for query params. The /gremlin endpoint only accepts the request as a POST body.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added query params here for testing because the original sigv4 code has logic to extract and set the query params - should that be removed?
VOTE +1 |
1 similar comment
VOTE +1 |
…n.awssdk and removed old dependency on aws-java-sdk-core. Since latest version of SignedRequest has headers that support multiple values for the same header via Map<String,List> I added validation checks that the expected signed headers only have 1 value. Removed jackson dependency from gremlin-console as it is no longer needed.
d863209
to
cfd6889
Compare
VOTE +1 |
Updated SigV4 interceptor to use the latest version of software.amazon.awssdk and removed old dependency on aws-java-sdk-core. Since latest version of SignedRequest has headers that support multiple values for the same header via Map<String,List> I added validation checks that the expected signed headers only have 1 value.