Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

orchestrator-client does not handle basic auth appropriately #796

@cswingler

Description

@cswingler

The way orchestrator-client is handling auth in curl is dropping the --basic --user flags, which appears to be a simple omission.

++ get_curl_auth_params
++ local requires_auth=
++ [[ chrisswingler:<redacted> != \: ]]
++ requires_auth='--basic --user chrisswingler:Lech3rY8nymphO'
++ curl --help
++ fgrep -q disallow-username-in-url
++ curl chrisswingler:<redacted> -s --head https://orchestrator.int.sproutsocial.com/api
++ fgrep -q '401 Unauthorized'
++ echo '401 Unauthorized'
++ return
+ local 'curl_auth_params=401 Unauthorized'
+ '[' '401 Unauthorized' == '401 Unauthorized' ']'
+ fail 'Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
+ message='orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
+ echo 'orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running'
orchestrator-client[22728]: Cannot access orchestrator at https://orchestrator.int.sproutsocial.com/api.  Check ORCHESTRATOR_API is configured correctly and orchestrator is running
+ exit 1

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