Files
teleport/api/utils
Brian Joerger 7c975ce27c fix: release PIV connection during PIN prompts - avoid "the smart card has been reset" error (#54700)
* Refactor connection sharing logic to allow reconnection logic.

* Refactor signature method into organized parts; Move signPromptMu further down the callstack to allow better concurrent access; Add attestMu to prevent certificate corruption.

* Handle PIV reconnection within doWithSharedConn.

* Add test; Fix issues.

* Add debug log.

* Clean up locks.

* Only prompt PIN on retry; Clean up prompt logic.

* Add todo for upstream PR.

* Prevent PIV operations that don't support concurrency from being run concurrently; add test.

* - Revert connection sharing refactors.

- Add exclusiveOperationMu mutex and test.

* Address comments; Move touch prompt into abandonableSign for clearer synchronous logic.

* Restore cancel cause behavior.

* Address signature concurrency comments.

* Fix signature channel.
2025-05-23 18:42:41 +00:00
..
…
2025-05-07 22:14:51 +00:00
…
…
…
…
…
2025-05-07 22:14:51 +00:00
…
…
…