Skip to content

Using dokku-acl with dokku-letsencrypt breaks auto-renewal #22

@Shark

Description

@Shark

We use dokku-acl together with the dokku-letsencrypt plugin. For auto-renewal of certificates, the plugin creates a cronjob for the dokku-User:

@daily /var/lib/dokku/plugins/available/letsencrypt/cron-job

which in turn executes

dokku letsencrypt:auto-renew &>> /var/log/dokku/letsencrypt.log

which fails on our hosts:

User default does not have permissions to run letsencrypt:auto-renew
Access denied

What would be the best way to fix this issue? I thought about some ways, but I didn't find one which works well...

  1. We've set export DOKKU_SUPER_USER=dokku. So if the cronjob would export NAME it should work, right?
  2. We could add letsencrypt:auto-renew to DOKKU_ACL_USER_COMMANDS. But since letsencrypt:auto-renew calls letsencrypt and certs:add, we would need to whitelist those functions for all apps as well, which is undesirable.

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