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 Spring security authorities.

However, keep in mind that hawkBit does not offer an off the shelf authentication provider to leverage these permissions and the underlying multi user/tenant capabilities of hawkBit but it supports authentication providers offering an OpenID Connect interface. Check out Spring security documentation for further information. In hawkBit SecurityAutoConfiguration is a good starting point for integration.

The default implementation is single user/tenant with basic auth and the logged in user is provided with all permissions. Additionally, the application properties may be configured for multiple static users; see Multiple Users for details.


An authenticated target is permitted to:

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

A target might be permitted to download artifacts without authentication (if enabled, see above). Only the download can be permitted to disable the authentication. This can be used in scenarios where the artifacts itself are e.g. signed and secured.

Management API and UI

Multiple Users

hawkBit optionally supports configuring multiple static users through the application properties. In this case, the user and password Spring security properties are ignored. An example configuration is given below.[0].username=admin[0].password={noop}admin[0].firstname=Test[0].lastname=Admin[0][0].permissions=ALL[1].username=test[1].password={noop}test[1].firstname=Test[1].lastname=Tester[1][1].permissions=READ_TARGET,UPDATE_TARGET,CREATE_TARGET,DELETE_TARGET

A permissions value of ALL will provide that user with all possible permissions. Passwords need to be specified with the used password encoder in brackets. In this example, noop is used as the plaintext encoder. For production use, it is recommended to use a hash function designed for passwords such as bcrypt. See this blog post for more information on password encoders in Spring Security.

OpenID Connect

hawkbit supports authentication providers which use the OpenID Connect standard, an authentication layer built on top of the OAuth 2.0 protocol. An example configuration is given below.

Delivered Permissions


    • Target entities including metadata (that includes also the installed and assigned distribution sets)
    • Target tags
    • Target actions
    • Target registration rules
    • Bulk operations
    • Target filters

    • Distribution sets
    • Software Modules
    • Artifacts
    • DS tags

    • Permission to read the target security token. The security token is security concerned and should be protected.

    • Permission to download artifacts of a software module (Note: READ_REPOSITORY allows only to read the metadata).

    • Permission to administrate the tenant settings.

    • Managing rollouts and provision targets through a rollout.

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_REPOSITORY, READ_TARGET
Assign DS to target through a Rollout, i.e. Rollout creation and start READ_REPOSITORY, READ_TARGET, READ_ROLLOUT, CREATE_ROLLOUT, HANDLE_ROLLOUT
Read Rollout status including its deployment groups READ_REPOSITORY, READ_ROLLOUT
Checks targets inside Rollout deployment group READ_REPOSITORY, READ_TARGET, READ_ROLLOUT

Device Management Federation API

The provided RabbitMQ vhost and user should be provided with the necessary permissions to send messages to hawkBit through the exchange and receive messages from it through the specified queue.