New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring salt via environment variable #16417
Comments
Hi @james-callahan this should be possible using https://plugins.matomo.org/EnvironmentVariables Let me know if that doesn't work. |
It didn't work: when using |
@james-callahan I suppose the server is restarted and everything? How did you check the value was not used? Cause the config file itself might still show the old value but the value is actually applied |
Yes I'm running inside of docker: I killed the container and recreated it (allowing matomo to generate a new config.php.ini) |
@tsteur how can I check what matomo is using as the current salt? |
That's a great question @james-callahan . Because the salt is anonymised in our diagnostics config screen in our Admin section for security reasons it's actually not that easy. Created for now matomo-org/plugin-EnvironmentVariables#8 The only thing I could think of right now would be to trigger an action that would force the update of the config file in which case the salt from the environment variable would be written to disc.
I haven't tested this but thinking this procedure should work. Let me know. |
Yep that seems to have worked; thanks! |
Yes definitely. there should be an easier way. That's why I created matomo-org/plugin-EnvironmentVariables#8 so it hopefully will help with this in the future. |
As far as I can tell, an installation of matomo should have the same salt forever (and across multiple running instances). Please correct me if wrong.
If so, it seems odd that the salt is not configurable via environment variable (#13676). Could this feature be added? e.g.
MATOMO_SALT
.The text was updated successfully, but these errors were encountered: