Skip to content

fix: avoid permission error after successful Certbot setup #431

Description

@GaspardKirira

vix proxy nginx certbot successfully issues and deploys the TLS certificate, but then fails with:

filesystem error: status: Permission denied
[/etc/letsencrypt/live//fullchain.pem]

The CLI runs as a normal user and directly calls std::filesystem::status() on the Let's Encrypt certificate path. Access to directories under /etc/letsencrypt is intentionally restricted.

After Certbot succeeds, Vix should not require direct unprivileged filesystem access to the certificate. It should validate the result through sudo nginx -t, Certbot output, or a privileged internal check.

Do not suggest changing certificate permissions.

Expected result:

  • certificate issued;
  • Nginx configuration valid;
  • HTTPS enabled;
  • command exits successfully.

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