chef-workstation icon indicating copy to clipboard operation
chef-workstation copied to clipboard

Policyfile 'cookbook' setting using the 'github' attribute uses HTTP URL

Open zedtux opened this issue 2 years ago • 0 comments

Description

As requested by Dan Webb on Slack, I'm opening this issue in order to report a git clone issue when using the Policyfile setting cookbook with the github attribute.

When doing so, I go the following error:

fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

And I'm using it like so :

cookbook 'cookbook_name`, 'version', github: 'group/repository'

A workaround is to use the git attribute instead in order to force the HTTPS version of the repository URL :

cookbook 'cookbook_name`, 'version', git: 'https://github.com/group/repository.git'

So it does look like the cookbook setting with the github attribute generate an HTTP URL which is no more supported by Github.

Chef Version

17

Platform Version

Linux

Replication Case

Simply use the cookbook setting, in a Policyfile, with the github attribute and try to do a chef update of that policyfile.

zedtux avatar Apr 28 '22 18:04 zedtux