Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve FFMUC's freifunk.net subdomains with Bind and request LE certificates #127

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

DasSkelett
Copy link
Member

@DasSkelett DasSkelett commented Jul 19, 2023

This is already live on our systems and the commit already part of the main branch of the local salt repo on docker05.

This PR is for completeness sake and to ask for improvement suggestions, which we can apply in future commits.

Thanks a lot to @GoliathLabs who did this together with me.


  • Add the following zones to our authoriative servers:
    • muenchen.freifunk.net
    • münchen.freifunk.net
    • augsburg.freifunk.net (not delegated by freifunk.net yet)
    • wertingen.freifunk.net
    • donau-ries.freifunk.net
  • Forward DNS requests for these domains to the auth servers in dnsdist
  • Set up certbot for a second certificate which includes above mentioned domains (except augsburg.freifunk.net for now).
    We use the DNS-01 ACME challenge, interfacing with our own auth servers using DDNS.
    This is implemented using a cmd.run state as Salt's acme module interface doesn't support custom actions.
  • Restructure nginx config for ffmuc.net to handle these additional domains with a separate certificate.

TODOs:

  • Get the list of authoritative nameservers for the ddns update script from netbox (hardcoded right now)
  • At least find a way that the certbot run only reports changes when it actually received a new cert from LE
  • Ideally get the acme module extended to support the "manual unsupervised" mode
  • Extend the ddns module to support two records of the same type, so that we can specify the AAAA & A records the same way as all the other records (right now they can't easily be changed, changes to the zone files do not get read by Bind, even after restarts).

DasSkelett and others added 2 commits July 19, 2023 23:04
…icates

* Add the following zones to our authoriative servers:
  - muenchen.freifunk.net
  - münchen.freifunk.net
  - augsburg.freifunk.net (not delegated by freifunk.net yet)
  - wertingen.freifunk.net
  - donau-ries.freifunk.net
* Forward DNS requests for these domains to the auth servers in dnsdist
* Set up certbot for a second certificate which includes above mentioned domains (except augsburg.freifunk.net for now).
  We use the DNS-01 ACME challenge, interfacing with our own auth servers using DDNS.
  This is implemented using a cmd.run state as Salt's `acme` module interface doesn't support custom actions.
* Restructure nginx config for ffmuc.net to handle these additional domains with a separate certificate.

Co-authored-by: GoliathLabs <[email protected]>
@DasSkelett DasSkelett requested a review from a team as a code owner July 19, 2023 21:20
Copy link
Member

@awlx awlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Thank you!

@DasSkelett DasSkelett merged commit 5a53158 into main Jul 19, 2023
6 checks passed
@DasSkelett DasSkelett deleted the freifunk-net-domains branch July 19, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants