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

git source insecure warning #4654

Closed
daya opened this issue Oct 22, 2016 · 3 comments
Closed

git source insecure warning #4654

daya opened this issue Oct 22, 2016 · 3 comments

Comments

@daya
Copy link

daya commented Oct 22, 2016

Given

gem 'activeadmin', github: 'activeadmin'

bundler throws this warning

The git sourcegit://github.com/activeadmin/activeadmin.gituses thegitprotocol, which transmits data without encryption. Disable this warning withbundle config git.allow_insecure true, or switch to thehttpsprotocol to keep your data secure.

any alternatives?

@timoschilling
Copy link
Member

This is a bundler issue, see: http://bundler.io/v1.13/man/gemfile.5.html#GITHUB
This can fix your problem: http://bundler.io/v1.13/man/gemfile.5.html#GIT (via https)

@seanlinsley
Copy link
Contributor

seanlinsley commented Oct 23, 2016

This is what I do:

# Force the `github:` syntax to use HTTPS instead of the Git protocol.
# The Git protocol isn't encrypted, and so is subject to MITM attacks.
# This can be removed once Bundler 2.0 is released.
# https://github.com/bundler/bundler/pull/2569
git_source :github do |repo|
  repo = "#{repo}/#{repo}" unless repo.include? '/'
  "https://github.com/#{repo}.git"
end

@dmitry
Copy link
Contributor

dmitry commented Jul 11, 2017

Any easier solution in novadays?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants