- UI permissions grant users access to parts of the Fusion UI
- API permissions grant users access to specific API commands for specific REST API endpoints.
CautionUsers who can create or modify code obtain access to the broader Fusion environment. This access can be used to create intentional or unintentional damage to Fusion.
Where You Specify Roles
You can specify which roles to apply for a user in one or more of these places:- Security realm (directly) – Under the heading Roles, specify the roles to always apply to all users in the security realm.
- Security realm (from a group/role mapping) – Security realms of types
ldap
andtrusted-http
can provide a list of groups to which the user belongs. The security realm can map the group names to role names. - User definition – A user definition can specify roles for the user. These roles do not override the other roles. They are added to the other roles.
Default Roles
At initial startup, Fusion creates a set of default roles for common types of users.admin
The admin role is the equivalent to the Unixroot
or superuser.
It allows full access to all Fusion services:
developer
The developer role has all the read/write permissions required for building and running applications.The developer role is updated for Fusion 5.10 to exclude permissions for creating, editing, and deleting Spark jobs, JavaScript stages in querying and indexing pipelines, and custom index and query stages. The new roles including these permissions are created when upgrading to Fusion 5.10, but the existing developer role is not updated in order to prevent unexpected changes. To gain access to the developer role’s new permissions, delete the developer role before upgrading to Fusion 5.10 or restart the api-gateway Fusion microservice after upgrading.
The permission
PATCH:/users/{id}:id=#ID
uses the variable value #ID
as a placeholder for the currently logged-in user ID. It is included so the Fusion UI “change password” feature is available to native realm users.rules
The rules role provides query rewriting API access to all Fusion apps.search
The search role has read-only query and write-only signal API access to the Fusion “default” collection. These permissions are required for search applications, for example, for App Studio.The permission
PATCH:/users/{id}:id=#ID
uses the variable value #ID
as a placeholder for the currently logged-in user ID. It is included so the Fusion UI “change password” feature is available to native realm users.webapps-role
The webapps role can list and download Fusion apps.Role Information
Fusion stores role information in Apache ZooKeeper. Each role in a ZooKeeper entry contains the following:id
– ID string, created by Fusionname
– Role name stringdesc
– Text description; optionalpermissions
– A list of Fusion permission specificationsui-permisions
– A list of names of Fusion UI componentscreated-at
– Timestamp; created by Fusionupdated-at
– Timestamp for last edit; created by Fusion
Manage Roles
Only Fusion users with admin privileges can manage roles. Restricting access to a subset of Fusion’s functionality requires several narrowly defined permissions. Path variables can be used to designate specific collections. As an example, it is possible to define a role which allows read-only access to Fusion dashboards for a specific collection:GET:/solr/{id}/*:id=test
– Read-only access to the collection “test”GET:/solr/{id}/admin/luke:id=test
– Also read-only accessGET:/solr/system_banana/*
– Read-only access to dashboardsGET:/collections/system_banana
– Read-only access to the collection where dashboard definitions are stored
Manage Roles in the Fusion UI
Manage roles in the Fusion UI. Click System > Access Control > Roles. To create a new role from the Fusion UI, first choose a unique role name, then edit the set of permissions. Specify API permissions one per line in the Permissions input box. There is a separate list of checkboxes that allow access to the Fusion UI components. If users who are assigned this role require access to the Fusion UI, then you must specify UI permissions in addition to REST API permissions.Manage Roles via HTTP Requests to the Roles API
See page Roles API.Assign job permissions
ImportantThe colon character
:
is a special character used in the permissions engine, so you must use an asterisk *
in the command.<JOB_NAME>
field:
Assign job permissions in the UI
The command to assign permissions for a specific job in the UI is an exact call, so you must specify the<JOB_NAME>
.
For example, if the job name is testing-call
, two example commands are:
Assign permissions in the API
The command to assign permissions to a job using an API does not require you to specify the<APP_NAME>
.
Two example commands are: