Expand description
Defaults for system users.
use signstar_common::system_user::{get_home_base_dir_path, get_relative_user_secrets_dir};
// Get the base directory below which Signstar system user homes are located.
println!("{:?}", get_home_base_dir_path());
// Get the relative directory below which Signstar secrets are located per system user.
println!("{:?}", get_relative_user_secrets_dir());
Constantsยง
- HOME_
BASE_ ๐DIR - The relative base directory below which system user homes are located.
- PLAINTEXT_
SECRETS_ ๐EXTENSION - The file extension of plaintext credential files.
- SYSTEMD_
CREDS_ ๐SECRETS_ EXTENSION - The file extension of systemd-creds encrypted credential files.
- USER_
SECRETS_ ๐DIR - The directory name below which credentials files are stored.
Functionsยง
- get_
home_ base_ dir_ path - Returns the base directory below which Signstar system user homes are located.
- get_
plaintext_ secret_ file - Returns the path to a plaintext secrets file for a system user and backend user.
- get_
relative_ user_ secrets_ dir - Returns the relative directory below which Signstar secrets are located per system user.
- get_
systemd_ creds_ secret_ file - Returns the path to a systemd-creds encrypted secrets file for a system user and backend user.
- get_
user_ secrets_ dir - Returns the path to the secrets directory for a specific system user.