Skip to content

Add PAM support#338

Merged
bilelmoussaoui merged 10 commits into
mainfrom
bilelmoussaoui/pam
Oct 26, 2025
Merged

Add PAM support#338
bilelmoussaoui merged 10 commits into
mainfrom
bilelmoussaoui/pam

Conversation

@bilelmoussaoui
Copy link
Copy Markdown
Collaborator

Closes #247

This is done by adding a PAM cdylib project that receives the secret once the user is authenticated and send it over to the running daemon if any over a socket. The server listens on that socket when started and tries to unlock the collections with the received secret if possible.

This is has not been tested on an actual system yet.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 24, 2025

📊 Code Coverage Report

Metric Value
Current PR Coverage 74.08%
Main Branch Coverage 78.00%
Coverage Change 📉 -3.92%

⚠️ Warning: Coverage decreased by more than 1%

Coverage report generated by cargo-tarpaulin

Comment thread pam/README.md
Comment thread pam/meson.build
Comment thread pam/src/lib.rs
Comment thread pam/src/protocol.rs Outdated
Comment thread server/src/pam_listener.rs
Comment thread server/src/pam_listener.rs
@bilelmoussaoui bilelmoussaoui force-pushed the bilelmoussaoui/pam branch 27 times, most recently from 798e653 to 8c2a02a Compare October 26, 2025 13:15
@bilelmoussaoui bilelmoussaoui force-pushed the bilelmoussaoui/pam branch 5 times, most recently from 13c95f3 to 45febcb Compare October 26, 2025 14:15
This allows making use of Locked/Unlocked items throughout the server code
Allow checking if an item matches the passed attributes whether it is locked or not.
Useful for matching locked items without unlocking them
As that can't be retrieved for encrypted items causing caching issues when an item goes from unlocked to locked
That allows dispatching items before unlocking the collection
@bilelmoussaoui bilelmoussaoui merged commit 6d9ce61 into main Oct 26, 2025
7 of 8 checks passed
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/pam branch October 26, 2025 14:25
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.

PAM integration

2 participants