Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rgjoshi24 opened this issue Sep 24, 2019 · 1 comment
Labels
Type: Bug Does not work as expected.

Comments

@rgjoshi24
Copy link

rgjoshi24 commented Sep 24, 2019

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)

@rgjoshi24 rgjoshi24 added the Status: Untriaged An issue that has yet to be triaged. label Sep 24, 2019
@tduffield
Copy link
Contributor

Alright, so based on some initial analysis and with logs provided, I'm confident that the issue is that the Powershell module we currently use to download the artifact does not support basic auth. So unfortunately there is no quick fix to this. :/

This will have to be triaged as it will likely require some decent engineering effort.

@tas50 tas50 added Type: Bug Does not work as expected. and removed Status: Untriaged An issue that has yet to be triaged. labels Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

3 participants