Skip to content

Adding '--environ' to the service file run command leaks credentials #129

@dpantel

Description

@dpantel

The distributed .service files use ExecStart=/usr/bin/caddy run --environ... command to start caddyserver.

This means that all environment variables get logged to journald (or equivalent).

Many of us, following various guides and recommendations, use environment variables to store secrets, such as tls-dns API credentials, as one example, and would prefer to keep them out of the journal.

Is there a reason --environ option is used by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions