runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Vanity domain support for DNS

Open cjellick opened this issue 3 years ago • 1 comments

Users should be able to configure vanity domains for DNS provided by Acorn DNS

cjellick avatar Jun 20 '22 14:06 cjellick

Pulled out as a separate issue from https://github.com/acorn-io/acorn/issues/59

cjellick avatar Jun 20 '22 15:06 cjellick

stretch goal for the v0.4.0 release

cjellick avatar Oct 05 '22 16:10 cjellick

@iwilltry42 I know we've discussed having someone else do this with you leading/mentoring on it, but I've changed my mind because I'd really like to see it get done in v0.4.0. So, assigning it to you.

cjellick avatar Oct 06 '22 16:10 cjellick

At a first glance, I'd go this route:

  1. Use https://github.com/acorn-io/acorn/blob/beb70497522f1370b111759a956d8d362e9e7bd7/pkg/publish/cert.go#L109 to get a list of non-TLS-covered hosts
  2. Create empty TLS secrets for those hosts and append them to the list in the same function
  3. Somehow have Acorn watch for those secrets (alternatively create some CR or something the like to create a watcher for) that takes care of populating those secrets with LE certs via HTTP01 challenge

Looks like the simplest way to get TLS for everything that is not covered by our wildcard cert or user-/cluster-provided certs.

(3.) Is where I'd need some input opinion on @vincent99 @ibuildthecloud

iwilltry42 avatar Oct 16 '22 08:10 iwilltry42

So, we have the --publish bit implemented, but if I do acorn install --cluster-domain jellick.world (to replace on-acorn.io), I don't get certs for those domains. We should be able to support that, right?

I'm going to keep this issue open and move it out of the milestone

cjellick avatar Nov 18 '22 03:11 cjellick

Yes, we should support that.

ibuildthecloud avatar Nov 18 '22 04:11 ibuildthecloud

@cjellick & @ibuildthecloud we're looking for appInstance.Spec.Ports... which don't seem to be set when using cluster-domain :thinking:

iwilltry42 avatar Nov 18 '22 08:11 iwilltry42

@iwilltry42 i'd like this to be one of your v0.5.0 enhancements

cjellick avatar Nov 21 '22 16:11 cjellick

Any news on this topic? We can not use acorn for our production apps, because we needs TLS for our own domains.

flobaader avatar Jan 26 '23 08:01 flobaader

@flobaader the PR was released in v0.5.0, please give it a try.

iwilltry42 avatar Jan 26 '23 11:01 iwilltry42

@iwilltry42 the TLS function works, thank you guys!

flobaader avatar Jan 28 '23 01:01 flobaader