Skip to content
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

Add plugin hook to set/modify database connection info #2870

Closed
anonymous-matomo-user opened this issue Jan 17, 2012 · 5 comments
Closed

Add plugin hook to set/modify database connection info #2870

anonymous-matomo-user opened this issue Jan 17, 2012 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

You can find the datebase password in the config.ini.php.

Can you pls let piwik encrypt this password?

Thanks =)

@robocoder
Copy link
Contributor

we don't encrypt because MySQL requires a plaintext password for the connection. The file is protected by .htaccess and .php extension, so it can't be displayed by direct access or local file inclusion.

To decrypt on every php request would add some performance overhead. Also, the question then becomes where to securely store the decryption key?

We could also try allowing the connection info to be set via environment variables (eg in your virtualhost.config), but the password is still physically stored somewhere.

@robocoder
Copy link
Contributor

Attachment: patch to use environment variables
2870.patch

@robocoder
Copy link
Contributor

(In [5681]) refs #2870 - add a hook for plugins (or third party integration) to set database config before connection is made

@robocoder
Copy link
Contributor

see #2874

@robocoder
Copy link
Contributor

(In [5686]) refs #2870

@anonymous-matomo-user anonymous-matomo-user added this to the 1.7 Piwik 1.7 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants