Skip to content

feature request: Support systemd-creds #92

@blissd

Description

@blissd

The example for running Vykar as a systemd unit requires the password to be stored in plaintext in an env file on the file system:

# Passphrase via environment file (optional)
# EnvironmentFile=/etc/vykar/env

Instead, I'd like to store the passphrase using systemd-creds. This allows a passphrase to be stored in an encrypted file, but be exposed through an unencrypted plaintext file to the running systemd unit.

This could be supported in Vykar through a new passfile encryption option:

encryption:
    passfile: "${CREDENTIALS_DIRECTORY}/vykcar-passphrase"

Which could have a sibling environment variable:

VYKAR_PASSFILE="${CREDENTIALS_DIRECTORY}/vykcar-passphrase"

Or perhaps a the existing passcommand in config.yaml could have a sibling environment variable:

VYKAR_PASSCOMMAND="cat ${CREDENTIALS_DIRECTORY}/vykcar-passphrase"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions