Skip to content

hashutil.github_signature does not recognize sha argument #58130

Closed as not planned

Description

@sootythebear

Description of Issue

Executing salt <minion> hashutil.github_signature '{"ref":....} ' 'shared secret' 'sha1=<key> returns the error:

ERROR executing 'hashutil.github_signature': The following keyword arguments are not valid: sha1=c12560e6fe48bf2a1e96119a81ffb9d3ee033717

Setup

GitHub Webhook configured for push event.

For the string, cut-n-paste either the payload from GitHub Webhook Recent Deliveries request section or via the event bus. challenge_hmac comes from either location.

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

salt --versions-report
Salt Version:
           Salt: 3001

Dependency Versions:
           cffi: Not Installed
       cherrypy: unknown
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
         Jinja2: 2.10
        libgit2: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: 1.3.10
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: 3.4.7
         pygit2: Not Installed
         Python: 3.6.9 (default, Apr 18 2020, 01:56:04)
   python-gnupg: 0.4.1
         PyYAML: 3.12
          PyZMQ: 17.1.2
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5

System Versions:
           dist: ubuntu 18.04 Bionic Beaver
         locale: UTF-8
        machine: x86_64
        release: 4.15.0-111-generic
         system: Linux
        version: Ubuntu 18.04 Bionic Beaver

Activity

  1. sootythebear commented on Aug 4, 2020

    @sootythebear
    Author

    Noticed that sha1=<value> was being parsed as a key=value pair, workaround was to specify as follows:

    challenge_hmac='sha1=c12560e6fe48bf2a1e96119a81ffb9d3ee033717'

  2. added
    bug
    docstring-update
    severity-low
    on Aug 7, 2020
  3. added this to the Approved milestone on Aug 7, 2020
  4. added
    documentation
    on Sep 23, 2020
  5. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  6. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69564.

  7. reopened this on Oct 17, 2026
  8. dwoz commented on Oct 23, 2026

    @dwoz
    Contributor

    Closing as part of a backlog cleanup — this issue was filed without a Salt versions-report, so there's no explicit version attached to compare against.

    If you (or anyone else) can still reproduce this on 3008.3 or later, please comment with:

    • A fresh reproduction
    • The output of salt --versions-report

    and the issue will be reopened. The original reporter can also reopen directly.

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

    bugdocstring-updatedocumentationmodule doc standardsseverity-lowtime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions