Skip to content

Replace all http URLs with https URLs #79

Description

@izzyleung

Plain old http are subject to man in the middle attack, to make sure the built package can be trusted, we should remove all http URLs used when downloading source code or obtaining info about the latest HAProxy version.

To be changed:

  • VERSION=$(shell curl -s http://git.haproxy.org/git/haproxy-${MAINVERSION}.git/refs/tags/ | sed -n 's:.*>\(.*\)</a>.*:\1:p' | sed 's/^.//' | sort -rV | head -1)
  • curl -o ./SOURCES/haproxy-${VERSION}.tar.gz http://www.haproxy.org/download/${MAINVERSION}/src/haproxy-${VERSION}.tar.gz
  • URL: http://www.haproxy.org/
    Source0: http://www.haproxy.org/download/%{mainversion}/src/%{name}-%{version}.tar.gz

(Probably) No longer needed:

  • sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions