I am building an application which will provide users with custom pages served under the subdomain within my application domain.
What I want to do as next step is to allow users to create CNAME which can point their subdomain. The issue which I see is to serve them with the valid SSL certificate for their domain. The websites are going to be served by the NextJS, but I believe it would make more sense to take this responsibility to separate service which will do the SSL termination as the further part of request will happen inside my k8s cluster.
The challenge which makes it not possible to use e.g. traefik is that I have to make it automatically managed based on clients configuration (handle new domain, get the LetsEncrypt certificate etc) without any manual work.
Is it really good solution or there are easier/ready solutions available?