debops / debops/debops

debops pki cannot remove domain from acme_domains

Open
#1,908 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority: medium tag: PKI
Dominant language
Jinja
Stars
1.4k
Forks
379
Avg merge
4d 18h
Merged PRs (30d)
8

Description

when deploying the role pki to a server with the following variables defined

---
# Special PKI realm for host
pki_acme_contacts: 
  - 'mailto:letsencrypt@mail.tld'
    # Can also include different domains like 'mail.example.org'
    # in the same realm.
pki_realms:
  - name: '{{ ansible_fqdn }}'
    acme: True
    acme_default_subdomains: []
    acme_ca: 'le-live-v2' #for production
    # acme_ca: 'le-staging-v2'
    acme_domains: [ 'cloud.server.tld', 'nextcloud.server.tld', 'git.server.tld' ]

and removing one of the acme_domains debops cannot remove the acme_domain from the pki realm on the server. This will cause the acme request to change, if for example a service got migrated to another server.

A workaround is to delete the realm entirely on the remote server and provision the pki role again.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DebOps pki role and the pki_realms.acme_domains handling. Reproduce a deployment where one listed domain is removed, then inspect the resulting remote PKI realm and ACME request. Done means the removed domain is no longer present without deleting and reprovisioning the entire realm.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.