Super-admin role required to edit config files
Description
Acceptance / Success Criteria
The new role is assignable via the usual "Configure users" web flow
The new role's name conveys the notion that it grants privileges above and beyond
ROLE_ADMIN
. "Super admin" and "extra admin" have been tossed around as possible names.The default
admin
user is not a member of this new role in the shipping configsAny user with the
ROLE_ADMIN
role assigned can escalate any user to have the new role; this includes self-escalation by the defaultadmin
user
Attachments
related to
Lucidchart Diagrams
Activity

Scott Theleman May 17, 2022 at 3:31 PM
Will be renaming the role from 'ROLE_CONFIG_EDITOR' to 'ROLE_FILESYSTEM_EDITOR' to help clarify.

Scott Theleman May 17, 2022 at 2:01 PM
Note, the new role is for editing configuration files for OpenNMS itself, not editing DCB related files. At this time we do not have a feature to edit device configuration backup files. There is a separate 'ROLE_DEVICE_CONFIG' to allow access for viewing and performing actions on Device Config items.

Dennis Pan May 16, 2022 at 9:10 PM
for this new role, we probably need to add a new action in the action panel to allow users to edit the config files that would have the same UI as the view history modal, and also allows the navigation between the modals. See screenshots

Scott Theleman May 10, 2022 at 9:04 PMEdited
A new role, ROLE_CONFIG_EDITOR
, is added to allow access to view/edit configuration files via REST and the UI.
Admin users are disallowed access to view or edit, unless they also have the ROLE_CONFIG_EDITOR
role.
Note that someone with the config editor role will also need a role such as ROLE_USER
in order to view the UI. However someone could have ROLE_CONFIG_EDITOR
only to view/edit via REST API only (e.g. via curl
, etc.).
Also, "File Editor" won't display in the UI without this role and user's won't even know it exists, except via documentation.
Details
Assignee
Scott ThelemanScott ThelemanReporter
Jeff GehlbachJeff GehlbachLabels
Docs Needed
YesStory Points
5Components
Sprint
NoneFix versions
Priority
Minor
Details
Details
Assignee

Reporter

Labels
Docs Needed
Story Points
Components
Sprint
Fix versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

Being an admin user is not sufficient to enable this very privileged level of access. A new role must be assigned to each user who is allowed to edit the configs from the web.