Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

oo7-server

CI

Service providing the Secret Service D-Bus API.

Unlocking the session keyring

The session keyring is generally encrypted with the user's password. In order to unlock it the daemon has to be started with the --login flag.

Alternatively, the daemon will try to load a credential named oo7.keyring-encryption-password and use it to unlock the session keyring.

At the moment, this requires systemd v258 or newer to load the credential from the user's credstore when starting the service. In such a case the credential can be stored as an encrypted blob in the user's credstore via

mkdir -p ${XDG_CONFIG_HOME:-~/.config}/credstore.encrypted
systemd-ask-password -n | systemd-creds encrypt --user --name=oo7.keyring-encryption-password - ${XDG_CONFIG_HOME:-~/.config}/credstore.encrypted/oo7.keyring-encryption-password

WARNING: Any user capable of reading this file and with access to the TPM (e.g the root user) can decrypt this blob. This can be mitigated if using an encrypted home with systemd-homed.

See the manual page systemd.exec(5) for more details.

Storage

Keyrings are stored in $XDG_DATA_HOME/keyrings/v1/, using libsecret's file format, see the oo7::file documentation. Keyrings left by gnome-keyring in $XDG_DATA_HOME/keyrings/ are migrated to it.

The format relies on PBKDF2-HMAC-SHA256, AES-128-CBC and HMAC-SHA256, which were chosen for being FIPS 140-3 approved.

Debugging and Logs

When running oo7-daemon as a systemd user service, logs can be viewed using journalctl:

journalctl -b -u oo7-daemon --user

The daemon supports verbose logging via the --verbose flag, which enables debug-level logs:

# Edit the service file to add --verbose
systemctl --user edit oo7-daemon.service

PAM module logs are also available in the system journal and can be filtered:

# View all logs from the current session (includes PAM module)
journalctl -b --user

# Search for PAM-related entries
journalctl -b --user | grep pam_oo7

License

The project is released under the MIT license.