Activeadmin: aviso de fonte insegura do git

Criado em 22 out. 2016  ·  3Comentários  ·  Fonte: activeadmin/activeadmin

Dado

gem 'activeadmin', github: 'activeadmin'

bundler lança este aviso

The git source git: //github.com/activeadmin/activeadmin.git uses the git protocol, which transmits data without encryption. Disable this warning with bundle config git.allow_insecure true , or switch to the https protocol to keep your data secure.

alguma alternativa?

Comentários muito úteis

Isto é o que eu faço:

# 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

Todos 3 comentários

Este é um problema do bundler, consulte: http://bundler.io/v1.13/man/gemfile.5.html#GITHUB
Isso pode resolver o seu problema: http://bundler.io/v1.13/man/gemfile.5.html#GIT (via https)

Isto é o que eu faço:

# 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

Alguma solução mais fácil nos dias de hoje?

Esta página foi útil?
0 / 5 - 0 avaliações