Skip to content

Commit 2c0b2dc

Browse files
committed
Disable skip_verify
1 parent 24fd041 commit 2c0b2dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/registry-facade/cmd/setup.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ var setupCmd = &cobra.Command{
4242
}
4343

4444
// https://github.com/containerd/containerd/blob/main/docs/cri/config.md#registry-configuration
45+
// https://github.com/containerd/containerd/blob/main/docs/hosts.md
4546
hostsToml := fmt.Sprintf(`
4647
server = "https://%v:%v"
4748
4849
[host."https://%v:%v"]
4950
capabilities = ["pull", "resolve"]
5051
ca = "%v"
51-
skip_verify = true
52+
# skip verifications of the registry's certificate chain and host name when set to true
53+
#skip_verify = true
5254
`, hostname, port, hostname, port, filepath.Join(regDirectory, "ca.crt"))
5355

5456
err = os.WriteFile(filepath.Join(fakeRegPath, "hosts.toml"), []byte(hostsToml), 0644)

0 commit comments

Comments
 (0)