Skip to content

Conversation

@middagj
Copy link
Contributor

@middagj middagj commented Jul 11, 2025

This solves the problem of the multiple Login calls. There does not seem a way to force a specific ConnectionCustomizer on the pool, but I guess users will find out soon enough if their login does not work.

Note that the TODO comment was slightly incorrect. When a Session is dropped, cryptoki does not do a Logout, but it simply does a CloseSession. When all sessions are closed, you need to login again.

I did some extensive testing with our Utimaco CryptoServer library. It seems to work, even when reconnecting in the library.

@middagj
Copy link
Contributor Author

middagj commented Sep 8, 2025

@sbihel any chance you could give this PR a review?

Copy link
Member

@sbihel sbihel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR, and apologies for the delay!

I haven't been able to test with other HSMs, but I believe it should work well with something like AWS CloudHSM.

I will merge this PR and publish a release candidate.

@sbihel sbihel merged commit d33d256 into spruceid:main Sep 8, 2025
1 check passed
@middagj middagj deleted the login branch September 8, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants