Skip to content

Commit 7ab51a4

Browse files
authored
Merge pull request #231 from jfilipcz/disable-ssl-verification-on-3-revenge-of-the-automated-testing
Disable SSL verification on 3-revenge-of-the-automated-testing
2 parents 3fba3ca + c524b3e commit 7ab51a4

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/3-revenge-of-the-automated-testing/8-image-signing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
```bash
1414
cd /tmp
15-
cosign generate-key-pair k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign
15+
cosign generate-key-pair k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign --allow-insecure-registry
1616
```
1717

1818
You should get an output like this:
1919
<div class="highlight" style="background: #f7f7f7">
2020
<pre><code class="language-bash">
21-
$ cosign generate-key-pair k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign
21+
$ cosign generate-key-pair k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign --allow-insecure-registry
2222
Enter password for private key:
2323
Enter again:
2424
Successfully created secret cosign in namespace <TEAM_NAME>-ci-cd

docs/3-revenge-of-the-automated-testing/8a-jenkins.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
script {
3131
sh '''
3232
oc registry login
33-
cosign sign -key k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign `oc registry info`/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION}
33+
cosign sign -key k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign `oc registry info`/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION} --allow-insecure-registry
3434
'''
3535
}
3636
}
@@ -59,7 +59,7 @@
5959
```bash
6060
cd /projects/pet-battle
6161
oc registry login $(oc registry info) --insecure=true
62-
cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle:1.2.0
62+
cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle:1.2.0 --allow-insecure-registry
6363
```
6464

6565
The output should be like:

docs/3-revenge-of-the-automated-testing/8b-tekton.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
chmod -R 775 /tmp/cosign
4040
4141
oc registry login
42-
/tmp/cosign sign -key k8s://$(params.TEAM_NAME)-ci-cd/$(params.TEAM_NAME)-cosign `oc registry info`/$(params.TEAM_NAME)-test/$(params.APPLICATION_NAME):$(params.VERSION)
42+
/tmp/cosign sign -key k8s://$(params.TEAM_NAME)-ci-cd/$(params.TEAM_NAME)-cosign `oc registry info`/$(params.TEAM_NAME)-test/$(params.APPLICATION_NAME):$(params.VERSION) --allow-insecure-registry
4343
EOF
4444
```
4545
@@ -97,7 +97,7 @@
9797
```bash
9898
cd /projects/pet-battle-api
9999
oc registry login $(oc registry info) --insecure=true
100-
cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle-api:1.3.1
100+
cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle-api:1.3.1 --allow-insecure-registry
101101
```
102102
103103
The output should be like:

docs/3-revenge-of-the-automated-testing/9a-jenkins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
class getCat(HttpUser):
5050
@task
5151
def cat(self):
52-
self.client.get("/home")
52+
self.client.get("/home", verify=False)
5353
5454
@events.quitting.add_listener
5555
def _(environment, **kw):

docs/3-revenge-of-the-automated-testing/9b-tekton.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class getCat(HttpUser):
2121
@task
2222
def cat(self):
23-
self.client.get("/cats")
23+
self.client.get("/cats", verify=False)
2424
2525
@events.quitting.add_listener
2626
def _(environment, **kw):

0 commit comments

Comments
 (0)