aws-samples / aws-samples/aws-cloudhsm-jce-examples
CloudHSM sign in and sign out problem
- Dominant language
- Java
- Stars
- 46
- Forks
- 70
- Avg merge
- 52m
- Merged PRs (30d)
- 4
Description
We are using the latest CloudHSM sdk 5 for java. We are creating the connection to it using AWS lambdas and the sign in and out is being done with the same code as the code examples that are in this repo.
We are getting a problem when using a warm environment, as when trying to do the sign in it gives us the following error:
"message": "The underlying Provider connection was lost: Underlying connection to provider was lost",
"name": "com.amazonaws.cloudhsm.jce.jni.exception.ProviderException",
When its a cold environment when dont have this problem as it does sign in and out, but when reusing it we get this exception. We are using loginWithExplicitCredentials
Contributor guide
Research direction
Start with the CloudHSM SDK 5 for Java examples and the loginWithExplicitCredentials entry point, comparing behavior between AWS Lambda cold and warm environments. Reproduce the ProviderException during sign-in and determine what lifecycle or connection condition distinguishes the two cases; done means the warm-environment sign-in and sign-out path works reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, java
- Domain
- cloud, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100