Commit Graph

14 Commits

Author SHA1 Message Date
Brian Cunnie
7c099f5843 Docs: procuring a wildcard certificate (beta)
The docs are correct, but the code isn't yet ready.
2021-01-16 11:48:02 -08:00
Brian Cunnie
0d0acfe318 Docs: update sample procedure to procure wildcard
**This process still does not work**. We need to fix our sslip.io DNS
server code. That being said, once our DNS server code is fixed, this
process _should_ work.

As much as we'd have liked to use `joohoi/acme-dns`, it didn't work with
our setup, possibly due to our DNS server code brokenness, mentioned
above. At any rate, we have our own `acme-dns` replacement, which we
intend to use going forward.
2021-01-11 07:37:50 -08:00
Brian Cunnie
0614f2b059 Custom DNS Server returns only TXT records
This small DNS server only returns one type of record, a TXT record,
meant to be a token assigned by a certificate authority (e.g. Let's
Encrypt) to verify domain ownership.

The TXT record will be updateable by an API endpoint on the webserver
(same executable as the DNS server), but I haven't yet written that
portion.

Drive-by: in our _other_ (main) sslip.io DNS server, I changed `break` →
`continue` in the main loop. Had we gotten a malformed UDP packet, we
would have exited, but now we continue to the next packet. Exiting is
not that big a deal—`monit` would have restarted the server—but moving
on to the next packet is a more robust approach.

[#6]
2021-01-09 10:41:21 -08:00
Brian Cunnie
404e9b2365 Instructions for procuring a wildcard certificate
Warning: these instructions do not work & are incomplete.

I had high hopes for [acme-dns](https://github.com/joohoi/acme-dns), but
it seems much too baroque for my purposes—authentication, subdomains,
CNAMEs. It seems quite clever for a use case that is much more
complicated than mine.

I've resolved to write an _acme-dns_-compatible HTTP server & DNS server
to meet my much simpler needs.
2021-01-03 19:15:48 -08:00
Brian Cunnie
a4bb454118 Dockerfile: cunnie/sslip.io-dns-server → 1.3.1 2020-12-24 12:32:22 -08:00
Brian Cunnie
bea9cde6f0 BOSH release: 1.3.1: Special NS records for _acme-challenge.
`DEVELOPER.md` had the wrong tests (mostly missing newlines); that's
been fixed. Also, I added a new test for DNS records which contain
`_acme-challenge.`, which may enable users to generate wildcard certs
for their sslip.io domains.
2020-12-24 12:11:58 -08:00
Brian Cunnie
91048d058b BOSH release: 1.3.0: CNAME records 2020-12-19 17:51:22 -08:00
Brian Cunnie
28aee851d2 🐞 Dockerfile: cunnie/sslip.io-dns-server → 1.2.2
Rather than using Docker Hub's automated build feature (which doesn't
seem to work when setting up new repositories), I've opted to manually
build & push the images.

There are workarounds which might allow me to use GitHub's automated
build feature, like creating an organization, moving the repos to the
new organization, and creating a 'bot' user to publish the images, but
that seems like a lot of work for little gain.

fixes:

> Fetch source repositories failed.

> Connect a GitHub account to cunnie to enable automated builds. If it is already connected, please re-link the source provider.
2020-12-18 08:26:03 -08:00
Brian Cunnie
1fe1ea1519 Dockerfile for our new Golang-based DNS server
We use the Alpine image; it's a lean 5.6 MB, and our 3 MB server keeps
it lean at below 9 MB.

Though we include instructions to build the Dockerfile, we plan to use
Docker Hub's automated builds feature.
2020-12-18 07:37:36 -08:00
Brian Cunnie
ef868f7fdb BOSH release: 1.2.2: TXT records, this time without bugs 2020-12-16 09:28:00 -08:00
Brian Cunnie
8da410c029 BOSH release: 1.2.1 TXT records
The compelling reason was to to enable Protonmail for sslip.io email;
they require specific TXT records.
2020-12-16 08:06:53 -08:00
Brian Cunnie
59b016414c Docs: How to update a BOSH release, part II
Include deploying the servers, which is the most important part. And
updating the webserver's HTML, too.
2020-12-13 16:56:41 -08:00
Brian Cunnie
5cdbf36dd2 Docs: How to update a BOSH release
This would probably be better automated, but I don't plan on producing
many more BOSH releases of sslip.io.
2020-12-13 16:40:07 -08:00
Brian Cunnie
8dcb3447b0 BOSH release: 1.2.0: bugfixes
- 🐞 fix IPv6 resolution:
    2601-41d0-2-e01e--56dB-3598.sSLIP.io. → 2601:41d0:2:e01e::56db      (wrong)
                                          → 2601:41d0:2:e01e::56db:3598 (right)
- 🐞 fix IPv4 resolution:
    minio-01.192-168-1-100.sslip.io → 1.192.168.1   (wrong)
                                    → 192.168.1.100 (right)
- MX records are customized
  - sslip.io's records point to protonmail
  - everyone else's point to themselves (whatever FQDN they queried)
- License switched to Apache because GNU is too burdensome
  (trust me, I've been on the receiving end)
- include notes for myself to create BOSH releases
  (DEVELOPER.md)
2020-12-13 07:44:00 -08:00