Isn't the Help menu a bit dangerous then. The examples in the help section all list the actual user api key. There is even a link which opens the URL in a new tab of the browser. As we have multiple admins, this seems quite dangerous to let hem play with.Yes, however the URL may be found in log files unencrypted so you should POST the data like so
curl -XPOST --data "apikey=blablaapikey8t&pretty=1" "http://nagiosserver/nagiosxi/api/v1/system/applyconfig
Some thoughts (open for discussion):
- Disable creation of admin users with REST API
- Add an extra security setting for admin users => 'Can access REST API' => As we have about 12 admin users, but I'm probably the only one who would use the REST api this would reduce the risk a lot.
- Update the help section examples with 'fake' api keys or <your-api-key-here> and warn users of the dangers of using an admin api key in an url
- Admins should be able to reset others users api key.
- Update the help section with curl examples which separate the data as in your above example
Grtz