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

what is the privilege of OS account in DB server? #503

Open
frelist opened this issue Jul 29, 2023 · 3 comments
Open

what is the privilege of OS account in DB server? #503

frelist opened this issue Jul 29, 2023 · 3 comments

Comments

@frelist
Copy link

frelist commented Jul 29, 2023

We configured below replication-manager parameters to connect DB server OS via ssh. We can restart DB node from replication-manager as expected.

prov-orchestrator = "onpremise"
onpremise-ssh = true
onpremise-ssh-credential = "root"
config.toml.txt

scheduler-jobs-ssh = true

Since remote root is not allowed, we are planning to create new OS service account for this.
But we are not sure the setting "sudoer root user" in https://docs.signal18.io/configuration/provisioning/orchestrators/onpremise

Attached the config file. Kindly advise the privilege required.

Regards,
William

@svaroqui
Copy link
Collaborator

Hi William,

It's not clear for me as well do you plan to take backups using ssh dbjobs ( the script is call dbjob_new , but can be duplicate and customize for your need) , dbjob are runs on the database server host after ssh connect, but i think we pass the host and credential of the monitoring user of replication-manager to connect into db inside the script , i guess the grants needed are the one that can take and restore backup but we also do a couple of trick when restore like flush tables and import tablespaces to reload a backup without restarting the database server .

Hope it help

@frelist
Copy link
Author

frelist commented Jul 31, 2023

Hi @svaroqui , we are using MariaDB. Tested replication-manager can start / stop db node using another os account. We modified "/usr/share/polkit-1/actions/org.freedesktop.systemd1.policy" to allow the new account running "systemctl start mariadb". Not sure auditor allows this or not.

This is initial testing and we haven't configured backup yet. Seems the remote access does not relate to backup.

@svaroqui
Copy link
Collaborator

svaroqui commented Aug 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants