Authorization

Authorization is handled separately for Direct Device Integration (DDI) API and Device Management Federation (DMF) API (where successful authentication includes full authorization) and Management API and UI which is based on permissions.

Management API and UI

The Bosch IoT Rollouts permissions grant access to different repository functionality and data.

By default in the Cloud User scenario a root user will be generated including username and password. This root user is granted with all permissions. Additional Bosch account registered users can be added by user management view in the Management UI.

Delivered permissions

  • READ_/UPDATE_/CREATE_/DELETE_TARGETS for:
    • Target entities including metadata (that includes also the installed and assigned distribution sets)
    • Target tags
    • Target actions
    • Target registration rules
    • Bulk operations
    • Target filters
  • READ_/UPDATE_/CREATE_/DELETE_REPOSITORY for:
    • Distribution sets
    • Software Modules
    • Artifacts
    • DS tags
  • READ_TARGET_SECURITY_TOKEN
    • Permission to read the target security token. The security token is security concerned and should be protected.
  • DOWNLOAD_REPOSITORY_ARTIFACT
    • Permission to download artifacts of a software module (Note: READ_REPOSITORY allows only to read the metadata).
  • TENANT_CONFIGURATION
    • Permission to administrate the tenant settings.
  • READ_/UPDATE_/CREATE_/DELETE_/HANDLE_ROLLOUT
    • Permission to provision targets through rollouts (not included in starter plan).
  • USER_MANAGEMENT
    • Access to User Management view
    • Manage the permissions of users via UI and API
  • ROLE_MANAGEMENT
    • Access to Role Management view
    • Manage the permissions of roles via UI and API
    • Replaces User Management if an own identity provider is configured

Permission matrix for example uses cases that need more than one permission

Use Case Needed permissions
Search targets by installed or assigned distribution set READ_TARGET, READ_REPOSITORY
Assign DS to a target READ_REPOSITORY, UPDATE_TARGET
Assign DS to target through a Rollout, i.e. Rollout creation and start READ_REPOSITORY, CREATE_ROLLOUT, HANDLE_ROLLOUT
Read Rollout status including its deployment groups READ_ROLLOUT
Checks targets inside Rollout deployment group READ_TARGET, READ_ROLLOUT

Direct Device Integration API

An authenticated target is permitted to:

  • retrieve commands from the server.
  • provide feedback to the server.
  • download artifacts that are assigned to it.

Anonymous download

A target might be permitted to download artifacts without authentication (if enabled; see Authentication > Anonymous download).

Device Management Federation API

The RabbitMQ vhost and user is provided with the necessary permissions to send messages to Rollouts through the exchange and receive messages from it through the specified queue. In addition, the permission exists for an application to create their own queues and exchanges and in combination with the reply to header tell Rollouts to send all messages into that setup.