matrix-org / matrix-authentication-service

OAuth2.0 + OpenID Provider for Matrix Homeservers
https://matrix-org.github.io/matrix-authentication-service/
Apache License 2.0
111 stars 32 forks source link

Generate config file (not output) with `mas-cli config generate` #2046

Closed dklimpel closed 11 months ago

dklimpel commented 11 months ago

It is recommended to create secrets and default config with mas-cli config generate > config.yaml (docs).

This works with shell, bash or similar tools and docker run.

In a kubernates only deployment it is not possible to create the config file. Create the config file (> config.yaml) is part of the functional scope of a shell. The distroless container has no shell and cannot create the file.

IMO it would be good if mas-cli wrote the file itself.

sandhose commented 11 months ago

That makes sense! If one would implement such feature, they would:

If you need a shell in the container, please note that there is a -debug variant that has the busybox tools installed,