[ZBXNEXT-4999] Specify a different user for remote remedy Created: 2019 Feb 01  Updated: 2021 Jan 05

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 4.0.3
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Aigars Kadikis Assignee: Andris Zeila
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File remote-commands-behind-specific-user-shell.png     PNG File remote-remedy.png    
Issue Links:
Causes
Duplicate
Sub-task

 Description   

Please add a functinality to execute remote commands in behalf of a different user for example "zabbixremote" or "zbxrmt".

Inside UI, it can be implemented under UserĀ group configuration page like this:

This will increase security for zabbix server while using User type: "Zabbix Admin".



 Comments   
Comment by richlv [ 2019 Feb 11 ]

Could you please expand on this feature request a bit, what exactly is sought here? Is this about the global commands, perhaps?

Comment by Aigars Kadikis [ 2019 Feb 12 ]

This ZBXNEXT is dedicated to limit the range of execution options for user type "Zabbix Admin".

The topic relates to the actions section when setting up a custom remedy on triggers. Specifically, this gets sensitive when invoking a command on Zabbix server:

But this can be useful for the "Administration" -> "Scripts" section as well.

Comment by richlv [ 2019 Feb 12 ]

Thank you for the explanation, much more clear now.

For this to be effective, one would also have to take into account external checks, userparameters and probably more. That is, while external checks and userparameters would be more limited, ignoring them would make such a feature much less useful.

Comment by richlv [ 2019 Feb 12 ]

More on this topic - such a change would likely have very limited benefit if other problems like these are left unsolved:

  • ZBX-6345 - Zabbix "user" can gain write privilege through the API
  • ZBXNEXT-4943 - any Zabbix "admin" can retrieve Zabbix database credentials (and anything else server knows)
Comment by Jurijs Klopovskis [ 2021 Jan 05 ]

One possibility is to create a dedicated daemon for executing remote commands that runs as another user that can't read zabbix config files. Use IPC to communicate.

Most likely that's just kicking the can further down the road.

Generated at Wed May 08 05:58:30 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.