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

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

Open
zedtux opened this issue Apr 28, 2022 · 0 comments
Open
Labels
Status: Good First Issue An issue ready for a new contributor. Triage: Confirmed Indicates and issue has been confirmed as described.

Comments

@zedtux
Copy link

zedtux commented Apr 28, 2022

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 zedtux added the Status: Untriaged An issue that has yet to be triaged. label Apr 28, 2022
@PrajaktaPurohit PrajaktaPurohit transferred this issue from chef/chef May 24, 2022
@vkarve-chef vkarve-chef added Triage: Confirmed Indicates and issue has been confirmed as described. Status: Good First Issue An issue ready for a new contributor. and removed Status: Untriaged An issue that has yet to be triaged. labels May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Good First Issue An issue ready for a new contributor. Triage: Confirmed Indicates and issue has been confirmed as described.
Projects
None yet
Development

No branches or pull requests

2 participants