chef / chef/mixlib-install

TK for Windows with download_url doesn't work with Artifactory Basic Auth

Open
#293 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
Ruby
Stars
13
Forks
55
Avg merge
2d 15h
Merged PRs (30d)
8

Description

The customer is hosting chef-client “msi” and “rpms” on Artifactory generic repo which needs authentication(anonymous read not allowed).

The line in kitchen.yml

download_url: "https://:<API_KEY>@<ARTIFACTORY_URL>/artifactory/ent-generic-local/chef_packages/chef-client.rpm"

works on Linux TK instance, but the same line

download_url: "https://:<API_KEY>@<ARTIFACTORY_URL>/artifactory/ent-generic-local/chef_packages/chef-client.msi"

fails saying authentication required 401 error while downloading on windows-2016. So why basic auth works on Linux and not on Windows? (edited)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Investigate how download_url authentication is handled for Windows MSI downloads compared with Linux RPM downloads, using the reported Artifactory Basic Auth URL and the Windows 401 response as the starting point. Done means an authenticated Windows download succeeds with the same credentials.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.