[MXS-2751] Documentation for maxkeys missing changing the .secrets file ownership Created: 2019-11-01  Updated: 2019-12-02  Resolved: 2019-12-02

Status: Closed
Project: MariaDB MaxScale
Component/s: maxkeys
Affects Version/s: 2.3.13
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Wagner Bianchi (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None


 Description   

Folks,

when setting up MaxScale or even moving clear text passwords to encrypted ones using maxkeys, we need to create the key with root user and then change the ownership of the .secrets files created for encrypting the passwords you pass as a parameter of maxpasswd.

https://mariadb.com/kb/en/mariadb-maxscale-23-encrypting-passwords/

One of our customers wasn't getting maxscale up and running after executing the process from the current feature documentation as it misses the chown command that needs to be entered to make that files as maxscale:maxscale to avoid the below:

Oct 18 11:21:44 x.net maxscale[7980]: (secrets_readKeys): Access for secrets file [/var/lib/maxscale/.secrets] failed. Error 13, Permission denied.
Oct 18 11:21:44 x.net maxscale[7980]: [MariaDBAuth] (check_server_permissions): [readconn-service-master] Failed to connect to server 'x' ([192.168.100.247]:3306) when checking authentication user credentials and permissions: 1045 Access denied for user 'maxusr'@'192.168.100.197' (using password: YES)

Can we have the below added to the documentation?

Once the key has been created, you need to change the key ownership as the maxscale user must read it and be able to authenticate to the backends with the real password after decrypting it:

chown maxscale:maxscale /var/lib/maxscale/.secrets

Finally, use the maxpasswd command to generate the encrypted version of the user's password.

maxpasswd plainpassword

96F99AA1315BDC3604B006F427DD9484

It's going to make it better.

Thanks!!



 Comments   
Comment by markus makela [ 2019-12-02 ]

Fixed by MXS-2728.

Generated at Thu Feb 08 04:16:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.