Skip to content

"Error: failed to detect signature algorithm" during first sync with signaturealgorithm = auto in the profile聽#226

Description

@sureshanaparti

"Error: failed to detect signature algorithm" during first sync with signaturealgorithm = auto in the profile. Able to continue after setting signaturealgorithm to HmacSHA1.

(testenv172) 馃惐 > sync
馃檲 Error: failed to detect signature algorithm
(testenv172) 馃惐 > sync
馃檲 Error: failed to detect signature algorithm
(testenv172) 馃惐 >
(testenv172) 馃惐 > list virtualmachines
馃檲 Error: failed to detect signature algorithm
(testenv172) 馃惐 >

profile:

[testenv172]
url        = http://10.0.x.x:8080/client/api
domain       = /
username      = admin
password      = password
apikey       = ...
secretkey     = ...
signaturealgorithm = auto

noticed in cmk v6.6.0 rc1.

Activity

  1. weizhouapache commented on Sep 15, 2026

    @weizhouapache
    Member

    @sureshanaparti
    what if there is not a setting signaturealgorithm in the cmk config ?

  2. sureshanaparti commented on Sep 15, 2026

    @sureshanaparti
    ContributorAuthor

    @weizhouapache when signaturealgorithm is not there in the profile, cmk added this - "signaturealgorithm = HmacSHA1".

  3. weizhouapache commented on Sep 16, 2026

    @weizhouapache
    Member

    @sureshanaparti
    the issue is because apikey/secretkey is wrong in .cmk/config

    in the past or signaturealgorithm = HmacSHA1, if the apikey is wrong, it will fall back to use the username/password
    now with signaturealgorithm = auto, cmk will fail with failed to detect signature algorithm

    please retry after cleaning up the apikey and secretkey in .cmk/config

    cc @nvazquez @borisstoyanov

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