Can't enable google ouath2 - config gets overriden on service restart

Can’t enable google ouath2 - config gets overriden on service restart

Self-hosted instance, tried various versions, currently:

chuck@mattermost:~/ > mattermost version
Version: 10.7.1
Build Number: 10.7.1-nixpkgs
Build Date: 1970-01-01
Build Hash: v10.7.1
Build Enterprise Ready: false

I want to enable login with Google. But there it no Google or OpenID section in console => authentication.

At first I tried stopping the service and editing the config file. It gets overriden when the service restarts. Then I asked Grok and it told me about mmctl:

mmctl config set OpenIdSettings.Enable true
mmctl config set OpenIdSettings.Secret "your-client-secret"
mmctl config set OpenIdSettings.Id "your-client-id"

I was able to successfully change values via mmctl, changes are reflected in the config file, but the moment the service restarts it’s back to nothing - no google.

What am I missing?

Welcome to the community, Eugene! :tada: It sounds like your Mattermost instance may be configured to load settings from the database instead of the config file - check out this doc on Configuration Settings and try using mmctl config patch to make persistent changes directly to the database-backed config.