-
Notifications
You must be signed in to change notification settings - Fork 15
fix(tesla): prevent RSA key generation from blocking asyncio #105
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
Merged
+483
−11
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4994128
fix(tesla): run RSA key generation off the event loop
610e0d8
no-mistakes(test): Isolate RSA generation from asyncio event loop
51e6f57
fix(tesla): keep RSA generation process-isolated, fix review findings
e73353c
no-mistakes(review): Prevent RSA pool cancellation from blocking even…
24d3e4e
no-mistakes(document): Document RSA key generation requirements
dd41516
fix(tesla): fall back to in-process RSA generation when isolation fails
2e6893b
no-mistakes(review): Document RSA generation fallback behavior
a2ec327
fix(tesla): make the RSA process-isolation fallback failure-mode-agno…
b433fc3
fix(tesla): replace multiprocessing RSA isolation with a plain subpro…
794a12e
no-mistakes(review): Fix subprocess cancellation race and documentation
0bd367c
fix(tesla): skip RSA subprocess isolation in frozen bundles, validate…
72dad09
no-mistakes(document): Document RSA key generation fallbacks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
sys.executable -cWhen this library runs from a PyInstaller/cx_Freeze-style bundle,
sys.executablepoints to the frozen application rather than a standalone Python interpreter, so this command restarts the application instead of executing_RSA_KEYGEN_SUBPROCESS_SCRIPT. If key creation occurs during application startup, the child can recursively spawn more copies; if it exits successfully without producing a PEM, deserialization later fails outside the fallback block. Fresh evidence relative to the earlier caller-module concern is the new direct reliance onsys.executablebeing an interpreter; detect frozen runtimes and use the fallback before spawning, or invoke an isolation mechanism that does not re-enter the bundled application.Useful? React with 👍 / 👎.