Expose effective user in the foreman server
As an Foreman user, I want to be able to determine what effective user should be used for the
execution, based on host params. The effective user is enforced by using su/sudo on the managed host.
Fixes #12489 - Effective user support
Allow to specify effective user settings on template and job invocation level.
On job template, on chooses:
value - what effective user value should be used (defaults to
current_user - the current user login will be used as the effective user
overridable - the user can change the effective user value at invocation
time - when false, the current user value is enforced
There are two methods of effective user supported now - su and sudo. It's
determined by host param remote_execution_effective_user_method and the default
is configured in settings.
Also, the UI and API job invocation composers are refactored and unified
to reduce the duplicity of code, when adding the effective user on both sides.
It is also preparation for the developer API feature, where we will need also
to compose the job invocation.
#7 Updated by Ivan Necas over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|7c949a4da8cd5236b64dda7df3304de9b41b2aa9.