Skip to content

Configuring mTLS with the new Simple UI #2329

Closed

Description

@dereulenspiegel

The current documentation regarding Authentication with mTLS shows a screenshot where the option Allow targets to authenticate via a certificate authenticated by a reverse proxy can be selected and the Issuer Hash can be specified.
In the current simple ui I can only find an option called authentication.header.authority, but not mention of authentication via certificates. Is this a missing feature of the Simple UI? If so, how can I setup mTLS via reverse proxy for the DDI?
My current env vars for the update server monolith are:

- 'server.forward-headers-strategy=NATIVE'
      - 'hawkbit.server.ddi.security.authentication.header.enabled=true'
      - 'hawkbit.server.ddi.security.authentication.header.authority=X-Ssl-Issuer-Hash-1'
      - 'hawkbit.server.ddi.security.authentication.anonymous.enabled=true'
      - 'hawkbit.artifact.url.protocols.download-http.protocol=https'
      - 'hawkbit.artifact.url.protocols.download-http.rel=download-http'
      - 'hawkbit.artifact.url.protocols.download-http.hostname=hawkbit.dev.example'
      - 'hawkbit.artifact.url.protocols.download-http.supports=DMF,DDI'
      - 'hawkbit.artifact.url.protocols.download-http.ref={protocol}://{hostnameRequest}/{tenant}/controller/v1/{controllerId}/softwaremodules/{softwareModuleId}/artifacts/{artifactFileName}'

Is this sufficient to enable mTLS via a reverse proxy?
Thanks in advance :)

Activity

  1. avgustinmm commented on Mar 27, 2025

    @avgustinmm
    Contributor

    hi,
    in Simple UI you could configure authentication.header.enabled and authentication.header.authority which, if implemented correctly, shall set:

          - 'hawkbit.server.ddi.security.authentication.header.enabled=true'
          - 'hawkbit.server.ddi.security.authentication.header.authority=X-Ssl-Issuer-Hash-1'

    from your config.
    Note that, by default, hawkBit starts plain HTTP server and doesn't handle mTLS in any way. It's up to a reverse proxy in front of hawkBit to handle mTLS, terminate TLS and do the necessary steps to cleanup sensitive headers, to verify peer certificate and to add the related authentication headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions