-
Notifications
You must be signed in to change notification settings - Fork 0
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 for application to fetch keys from AWS Secrets Manager #77
Conversation
JaCoCo code coverage report - scala:2.12.17
|
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 like the idea, maybe just polish up the code by breaking it into some reasonable structures.
Btw what happened to the idea of including the AWS Secrets support in another module?
service/src/main/scala/za/co/absa/loginsvc/rest/config/JwtConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/JwtConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/service/JWTService.scala
Outdated
Show resolved
Hide resolved
@dk1844 I've implemented the requested changes. Should be a lot neater now. |
Had a bit of trouble figuring out how to implement this for a REST Service. Makes sense to me for a library but couldn't figure out a way to include this to the service regarding imports? Unless we expect the user to make code changes in order to choose one or the other? I'll make a new issue for separating the modules but for now, I just want to do this implementation so that we have the functionality. |
…o each implementation
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 better, thanks for the updates. There are still some things to discuss:
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/InMemoryKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/service/JWTService.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/service/JWTService.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/service/JWTService.scala
Outdated
Show resolved
Hide resolved
service/src/test/scala/za/co/absa/loginsvc/rest/config/provider/ConfigProviderTest.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/KeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/AwsSecretsManagerKeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/KeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/config/jwt/KeyConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/loginsvc/rest/service/JWTService.scala
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.
LGTM, just a few comments
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.
LGTM codewise, but it fails for my local sbt test
run. Does it run ok on your end, @TheLydonKing ?
Let me run quick and check |
@dk1844 it runs and passes tests on my side when I run It keeps running after the tests though, so maybe I need to kill the thread after the tests or something? |
@dk1844 The Tests should shutdown more gracefully now |
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.
LGTM (pulled, built, stb test
-ran), can confirm behaves better in terms of gracefully closing
-Added Functionality to fetch keys from AWS Secrets
-Added Changes to Config