Using Dendrite to create Matrix users
• Mark Eschbach
Alrighty, time to try to plug a client in.
Registering and Logging in.
First up I will try Element since they seem to be the ‘main’ client with most of the features. Seems to not like the fact I am using just straight HTTP, which is fair I guess. Easy enough to a Let’s Encrypt certificate:
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: xp-dendrite namespace: xp-dendrite annotations: cert-manager.io/cluster-issuer: letsencrypt-prod ingress.kubernetes.io/whitelist-source-range: 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 spec: ingressClassName: public tls: - hosts: - xp-dendrite.workshop.meschbach.org secretName: inventory-le rules: - host: xp-dendrite.workshop.meschbach.org http: paths: - path: / pathType: Prefix backend: service: name: dendrite port: number: 80
Now I get an error message registration has been disabled. So
client_api.registration_shared_secret needs to be set
so you can use
/usr/bin/createaccount -config /etc/dendrite/config.yaml -username some-user -admin. Interestingly
it took a bit to accept the username I gave it.
Well, that works. Now I just need a few brave souls to check it out with me. Let me know if you are interested.