-
Notifications
You must be signed in to change notification settings - Fork 47
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
JAVA based implementation for Asherah gRPC server #138
Conversation
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.
Minor changes/additions
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionImpl.java
Outdated
Show resolved
Hide resolved
responseObserver.onNext(SessionResponse.getDefaultInstance()); | ||
} | ||
|
||
if (sessionBytes == null) { |
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.
an accidental re-org of the if blocks might break this flow. think having the null check within the encrypt and decrypt blocks would mitigate that
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.
looks like this concern is still active as the code doesn't make it clear that GetSession
needs to precede Encrypt\Decrypt
operations.
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
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.
First pass complete. Will review again once the additional tests have been added.
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
Add support for environment variables Add more test cases Simplify logic Update README Add graceful termination of java server
Codecov Report
@@ Coverage Diff @@
## master #138 +/- ##
=========================================
Coverage 96.28% 96.28%
Complexity 399 399
=========================================
Files 123 123
Lines 3259 3259
Branches 60 60
=========================================
Hits 3138 3138
Misses 111 111
Partials 10 10
Continue to review full report at Codecov.
|
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.
Review is still in-progress but here's what I've got so far.
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionConfig.java
Outdated
Show resolved
Hide resolved
responseObserver.onNext(SessionResponse.getDefaultInstance()); | ||
} | ||
|
||
if (sessionBytes == null) { |
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.
looks like this concern is still active as the code doesn't make it clear that GetSession
needs to precede Encrypt\Decrypt
operations.
server/java/src/test/java/com/godaddy/asherah/grpc/AppEncryptionImplTest.java
Show resolved
Hide resolved
server/java/src/test/java/com/godaddy/asherah/grpc/AppEncryptionImplTest.java
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
server/java/src/main/java/com/godaddy/asherah/grpc/AppEncryptionServer.java
Outdated
Show resolved
Hide resolved
…le configurations
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.
just a few minor concerns (see comments) plus the two items we discussed offline: docs around test dependencies and suppressing the log spam caused by the known grpc-java issue
This includes