Skip to content

send_download_authentication option not respected in streaming mode #199

@b4u-mw

Description

@b4u-mw

The send_download_authentication configuration option is not respected when using stream_bundle=true. The authentication header is always passed to RAUC regardless of the send_download_authentication setting.

In start_streaming_installation() (hawkbit-client.c, line ~1090), the auth_header is unconditionally assigned:

.auth_header = auth_header,

Compare this to get_binary() (line ~405) where the option is correctly checked:

if (hawkbit_config->send_download_authentication &&
    !set_auth_curl(curl, &headers, error))
        return FALSE;

Suggested fix:

.auth_header = hawkbit_config->send_download_authentication ? auth_header : NULL,

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