Skip to content

KeeperPAM Config Commands Added#126

Open
adeshmukh-ks wants to merge 42 commits intopam-commandsfrom
pam-config-int
Open

KeeperPAM Config Commands Added#126
adeshmukh-ks wants to merge 42 commits intopam-commandsfrom
pam-config-int

Conversation

@adeshmukh-ks
Copy link
Copy Markdown
Contributor

No description provided.

ukumar-ks and others added 23 commits November 12, 2025 21:32
* Fix asyncio event loop cleanup with SSO auth

Previously, when applications using SSO authentication exited, the
asyncio event loop was closed while background tasks were still
running, resulting in:
- ERROR: Task was destroyed but it is pending
- RuntimeError: Event loop is closed

This issue occurred specifically with SSO authentication flows that
use push notifications, but not with password-only authentication.

This fix ensures proper cleanup by:
1. Cancelling all pending tasks before stopping the event loop
2. Giving tasks time (0.3s) to handle CancelledError gracefully
3. Waiting for the event loop thread to finish before closing

This prevents "Task was destroyed but it is pending" errors when
shutting down applications that use SSO with push notifications.

* Revert "Fix asyncio event loop cleanup with SSO auth"

This reverts commit 8364e1c.

* Close login websocket after authentication

During SSO authentication flows, a push notification websocket
(LoginPushNotifications) is created to handle 2FA, device approval,
and SSO data key requests.

This websocket was never closed after successful login, causing
it to remain active until application shutdown. This resulted in
asyncio errors about pending tasks being destroyed.

Fix: Close login.push_notifications in _on_logged_in() immediately
after authentication completes and before any post-login setup.
verify-records and verify-shared-folder commands added
@socket-security
Copy link
Copy Markdown

socket-security bot commented Jan 7, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpydantic@​2.12.5100100100100100

View full report

@adeshmukh-ks adeshmukh-ks changed the base branch from pam-config to pam-commands March 26, 2026 06:23
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.

5 participants