From 84694170402ff699065382ba2d2fb172c3b6c88f Mon Sep 17 00:00:00 2001
From: Daniel J Walsh <dwalsh@redhat.com>
Date: Thu, 26 Aug 2021 13:15:23 -0400
Subject: [PATCH] Globally replace http:// with https://

[NO TESTS NEEDED] Hopefully existing tests will find issues.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
---
 .ubuntu_prepare.sh              | 6 +++---
 CONTRIBUTING.md                 | 2 +-
 LICENSE                         | 4 ++--
 README.md                       | 2 +-
 build_osx.md                    | 2 +-
 cmd/podman/images/import.go     | 4 ++--
 libpod/network/cni/cni_exec.go  | 2 +-
 pkg/cgroups/systemd.go          | 2 +-
 pkg/hooks/docs/oci-hooks.5.md   | 2 +-
 pkg/kubeutils/LICENSE           | 4 ++--
 pkg/kubeutils/resize.go         | 2 +-
 pkg/netns/netns_linux.go        | 2 +-
 pkg/util/camelcase/README.md    | 4 ++--
 pkg/util/camelcase/camelcase.go | 2 +-
 troubleshooting.md              | 2 +-
 15 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/.ubuntu_prepare.sh b/.ubuntu_prepare.sh
index 7b7dd1bb1b..1a5d1140fd 100644
--- a/.ubuntu_prepare.sh
+++ b/.ubuntu_prepare.sh
@@ -33,7 +33,7 @@ done
 if [ $conmon -eq 1 ]; then
     # Build and install conmon from source
     echo "Building conmon ..."
-    git clone http://github.com/containers/conmon $conmon_source
+    git clone https://github.com/containers/conmon $conmon_source
     cd $conmon_source && make install PREFIX=/usr
 fi
 
@@ -41,7 +41,7 @@ fi
 if [ $cni -eq 1 ]; then
     # Build and install containernetworking plugins from source
     echo "Building containernetworking-plugins..."
-    git clone http://github.com/containernetworking/plugins $cni_source
+    git clone https://github.com/containernetworking/plugins $cni_source
     cd $cni_source
     ./build.sh
     mkdir -p /usr/libexec/cni
@@ -52,7 +52,7 @@ fi
 if [ $runc -eq 1 ]; then
     # Build and install runc
     echo "Building runc..."
-    git clone http://github.com/opencontainers/runc $runc_source
+    git clone https://github.com/opencontainers/runc $runc_source
     cd $runc_source
     make install PREFIX=/usr
 fi
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 30bbe30458..e9f40dffe4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -243,7 +243,7 @@ outputting the above style in the git log or git show commands:
 The sign-off is a line at the end of the explanation for the patch. Your
 signature certifies that you wrote the patch or otherwise have the right to pass
 it on as an open-source patch. The rules are simple: if you can certify
-the below (from [developercertificate.org](http://developercertificate.org/)):
+the below (from [developercertificate.org](https://developercertificate.org/)):
 
 ```
 Developer Certificate of Origin
diff --git a/LICENSE b/LICENSE
index 8dada3edaf..9b259bdfcf 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
                                  Apache License
                            Version 2.0, January 2004
-                        http://www.apache.org/licenses/
+                        https://www.apache.org/licenses/
 
    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 
@@ -192,7 +192,7 @@
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
 
-       http://www.apache.org/licenses/LICENSE-2.0
+       https://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/README.md b/README.md
index 6a62793610..10bf216a7c 100644
--- a/README.md
+++ b/README.md
@@ -93,7 +93,7 @@ Information on how to install Podman in your environment.
 **[OCI Hooks Support](pkg/hooks/README.md)**
 Information on how Podman configures [OCI Hooks][spec-hooks] to run when launching a container.
 
-**[Podman API](http://docs.podman.io/en/latest/_static/api.html)**
+**[Podman API](https://docs.podman.io/en/latest/_static/api.html)**
 Documentation on the Podman REST API.
 
 **[Podman Commands](https://podman.readthedocs.io/en/latest/Commands.html)**
diff --git a/build_osx.md b/build_osx.md
index 59e1797a66..d5a2925429 100644
--- a/build_osx.md
+++ b/build_osx.md
@@ -18,7 +18,7 @@ $ brew install go go-md2man
 You can obtain the latest source code for Podman from its github repository.
 
 ```
-$ git clone http://github.com/containers/podman go/src/github.com/containers/podman
+$ git clone https://github.com/containers/podman go/src/github.com/containers/podman
 ```
 
 ## Build client
diff --git a/cmd/podman/images/import.go b/cmd/podman/images/import.go
index bc80417cca..d4bc0f610e 100644
--- a/cmd/podman/images/import.go
+++ b/cmd/podman/images/import.go
@@ -30,7 +30,7 @@ var (
 		RunE:              importCon,
 		Args:              cobra.RangeArgs(1, 2),
 		ValidArgsFunction: common.AutocompleteDefaultOneArg,
-		Example: `podman import http://example.com/ctr.tar url-image
+		Example: `podman import https://example.com/ctr.tar url-image
   cat ctr.tar | podman -q import --message "importing the ctr.tar tarball" - image-imported
   cat ctr.tar | podman import -`,
 	}
@@ -42,7 +42,7 @@ var (
 		RunE:              importCommand.RunE,
 		Args:              importCommand.Args,
 		ValidArgsFunction: importCommand.ValidArgsFunction,
-		Example: `podman image import http://example.com/ctr.tar url-image
+		Example: `podman image import https://example.com/ctr.tar url-image
   cat ctr.tar | podman -q image import --message "importing the ctr.tar tarball" - image-imported
   cat ctr.tar | podman image import -`,
 	}
diff --git a/libpod/network/cni/cni_exec.go b/libpod/network/cni/cni_exec.go
index 0aec3d4f15..c4d7f49f7c 100644
--- a/libpod/network/cni/cni_exec.go
+++ b/libpod/network/cni/cni_exec.go
@@ -8,7 +8,7 @@
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
-//     http://www.apache.org/licenses/LICENSE-2.0
+//     https://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/pkg/cgroups/systemd.go b/pkg/cgroups/systemd.go
index 9bbdca415c..f26988c5a2 100644
--- a/pkg/cgroups/systemd.go
+++ b/pkg/cgroups/systemd.go
@@ -58,7 +58,7 @@ func systemdCreate(path string, c *systemdDbus.Conn) error {
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
 
-       http://www.apache.org/licenses/LICENSE-2.0
+       https://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/pkg/hooks/docs/oci-hooks.5.md b/pkg/hooks/docs/oci-hooks.5.md
index 7d13ffa820..d6b8662314 100644
--- a/pkg/hooks/docs/oci-hooks.5.md
+++ b/pkg/hooks/docs/oci-hooks.5.md
@@ -179,4 +179,4 @@ $ cat /etc/containers/oci/hooks.d/osystemd-hook.json
 
 * [OCI Runtime Specification, 1.0.1, POSIX-platform hooks](https://github.com/opencontainers/runtime-spec/blob/v1.0.1/config.md#posix-platform-hooks)
 * [OCI Runtime Specification, 1.0.1, process](https://github.com/opencontainers/runtime-spec/blob/v1.0.1/config.md#process)
-* [POSIX extended regular expressions (EREs)](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04)
+* [POSIX extended regular expressions (EREs)](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04)
diff --git a/pkg/kubeutils/LICENSE b/pkg/kubeutils/LICENSE
index 8dada3edaf..9b259bdfcf 100644
--- a/pkg/kubeutils/LICENSE
+++ b/pkg/kubeutils/LICENSE
@@ -1,6 +1,6 @@
                                  Apache License
                            Version 2.0, January 2004
-                        http://www.apache.org/licenses/
+                        https://www.apache.org/licenses/
 
    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 
@@ -192,7 +192,7 @@
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
 
-       http://www.apache.org/licenses/LICENSE-2.0
+       https://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/pkg/kubeutils/resize.go b/pkg/kubeutils/resize.go
index 957e10f455..5d004bc544 100644
--- a/pkg/kubeutils/resize.go
+++ b/pkg/kubeutils/resize.go
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
-    http://www.apache.org/licenses/LICENSE-2.0
+    https://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/pkg/netns/netns_linux.go b/pkg/netns/netns_linux.go
index ecefb65ffd..c13ae2f4d4 100644
--- a/pkg/netns/netns_linux.go
+++ b/pkg/netns/netns_linux.go
@@ -4,7 +4,7 @@
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
-//     http://www.apache.org/licenses/LICENSE-2.0
+//     https://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/pkg/util/camelcase/README.md b/pkg/util/camelcase/README.md
index 105a6ae33d..ab0da573a7 100644
--- a/pkg/util/camelcase/README.md
+++ b/pkg/util/camelcase/README.md
@@ -1,4 +1,4 @@
-# CamelCase [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/fatih/camelcase) [![Build Status](http://img.shields.io/travis/fatih/camelcase.svg?style=flat-square)](https://travis-ci.org/fatih/camelcase)
+# CamelCase [![GoDoc](https://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/fatih/camelcase) [![Build Status](https://img.shields.io/travis/fatih/camelcase.svg?style=flat-square)](https://travis-ci.org/fatih/camelcase)
 
 CamelCase is a Golang (Go) package to split the words of a camelcase type
 string into a slice of words. It can be used to convert a camelcase word (lower
@@ -33,7 +33,7 @@ fmt.Println(splitted[0], splitted[1]) // prints: "Golang", "Package"
 ```
 
 Both lower camel case and upper camel case are supported. For more info please
-check: [http://en.wikipedia.org/wiki/CamelCase](http://en.wikipedia.org/wiki/CamelCase)
+check: [https://en.wikipedia.org/wiki/CamelCase](https://en.wikipedia.org/wiki/CamelCase)
 
 Below are some example cases:
 
diff --git a/pkg/util/camelcase/camelcase.go b/pkg/util/camelcase/camelcase.go
index 0a82d10055..d27ac00d6a 100644
--- a/pkg/util/camelcase/camelcase.go
+++ b/pkg/util/camelcase/camelcase.go
@@ -9,7 +9,7 @@ import (
 
 // Split splits the camelcase word and returns a list of words. It also
 // supports digits. Both lower camel case and upper camel case are supported.
-// For more info please check: http://en.wikipedia.org/wiki/CamelCase
+// For more info please check: https://en.wikipedia.org/wiki/CamelCase
 //
 // Examples
 //
diff --git a/troubleshooting.md b/troubleshooting.md
index dcf1d87155..686166da08 100644
--- a/troubleshooting.md
+++ b/troubleshooting.md
@@ -493,7 +493,7 @@ $ podman unshare cat /proc/self/uid_map
 	 1     100000      65536
 ```
 
-Reference [subuid](http://man7.org/linux/man-pages/man5/subuid.5.html) and [subgid](http://man7.org/linux/man-pages/man5/subgid.5.html) man pages for more detail.
+Reference [subuid](https://man7.org/linux/man-pages/man5/subuid.5.html) and [subgid](https://man7.org/linux/man-pages/man5/subgid.5.html) man pages for more detail.
 
 ### 20) Passed-in devices or files can't be accessed in rootless container