#[SOLVED] A question about function domain certificates

27 messages · Page 1 of 1 (latest)

solemn sinew
#

Are certificates generated for the autogenerated domains for functions? In the appwrite console, the cert status is generated. However, monitoring the appwrite-worker-certificates there were no logs of the certs being generated. The Functions docs about certificates were also largely refering to the main domain.
My setup: I have a wildcard DNS record on cloudflare for functions (without certs 2nd level subdomain) which is not proxied through cloudflare because of SSL mismatch. I thought since SSL certs are generated by appwrite for the functions it would be 'okay' to access them directly for but the generated function domains are not.

coral idol
solemn sinew
#

With flexible SSL certs the console fails to load because of 'too many redirects' which seems to be as a result of appwrite's autogenerated cert for _APP_DOMAIN.

coral idol
solemn sinew
coral idol
solemn sinew
# coral idol Wait I'm confused about your setup...do you have certs on cloudflare?

Cloudflare's free tier provides free SSL certs for the root domain and any first level subdomains. That is;
mydomain.com ----> OK
appwrite.mydomain.com ------> OK
sample.appwrite.mydomain.com -----> N/A on free tier

and my functions DNS entry is *.appwrite.mydomain.com which makes all generated function domains e.g. func1.appwrite.mydomain.com not available for SSL certs when proxied through cloudflare and also results in ERR_SSL_VERSION_OR_CIPHER_MISMATCH error when accessing functions via the url. So my thinking was if appwrite's traefik service generates SSL certs for the functions then it'll still be 'secure' even when it's not proxied through cloudflare but the function domains are not "secured".

#

The reason I thought it'd work is because the SSL generated by appwrite's traefik service still works for the _APP_DOMAIN i.e. appwrite.mydomain.com even when the DNS record is not proxied through cloudflare. I thought it'd be the same for functions

coral idol
coral idol
#

You can either manually generate it or configure traefik to generate the certificate.

solemn sinew
#

I had already planned to have another separate Traefik service proxying to appwrite and my other services maybe it's time to revisit it

#

Thanks Steve

coral idol
coral idol
solemn sinew
solemn sinew
solemn sinew
#

[SOLVED] A question about function domain certificates

heavy parrot
solemn sinew
#

A question about function domain certificates

heavy parrot
solemn sinew
#

[SOLVED] A question about function domain certificates

heavy parrot
#

@solemn sinew Sorry I never got around to it! Did you figure it out?