Skip to content

Authorization support required in ext_pillar http_json modules. #36138

@zhujinhe

Description

@zhujinhe

salt['http.query'] function support lots of parameters via utils/http.py.
However, only 'url' parameter supported in salt/salt/pillar/http_json.py now.
Could we add support for other parameters such as header_dict so that we can do some authorization stuff by:

  ext_pillar:
    - http_json:
        url: http://example.com/api/minion_id
        header_dict: {foo: bar}
        key_foo: value_bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corerelates to code central or existential to SaltFeaturenew functionality including changes to functionality and code refactors, etc.Pillarstale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions