Add management of restriction of administrative access to CLI
I would like to be able to restrict admin access to certain IPs using CLI. Now it is possible only via plesk db utility which is not that useful.
-
Alexandre Féron commented
I agree too, this functionality should be available through CLI, definitely.
-
Tozz commented
I agree. Plesk configuration should be fully manageable using CLI tooling.
-
Anonymous commented
Because SQL has more difficult syntax than regular bash command. In bash command, you would just need to specify an IP address/range and on/off mode. (In MySQL you have it backwards, btw, which is confusing).
For example:
# plesk bin admin --restrict -ip 203.0.113.2/32 -allow true
Waaay easier to comprehend.In addition, running SQL queries opens opportunities for accidental removal of all records in a table.
Let's say you need to remove one of IP addresses that are allowed to log in as admin user.You run plesk db "delete from cp_access" and hit enter by accident. Boom. No IP addresses in the list anymore.
Annoying? YES.
Can be better? Yes.