Skip to content

Commit b644436

Browse files
committed
Verify through public key only.
1 parent a786bde commit b644436

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
- /bin/bash
2828
- -ce
2929
- |
30-
cosign verify ghcr.io/metal-stack/metal-deployment-base:${DEPLOYMENT_BASE_IMAGE_TAG} --certificate-oidc-issuer https://accounts.google.com --certificate-identity [email protected]
30+
cosign verify --key files/cosign.pub ghcr.io/metal-stack/metal-deployment-base:${DEPLOYMENT_BASE_IMAGE_TAG}
3131
ansible -m metalstack.base.metal_stack_release_vector localhost --extra-vars "@.extra_vars.yaml"
3232
ansible-playbook deploy_control_plane.yaml --extra-vars "@.extra_vars.yaml"
3333
@@ -54,7 +54,7 @@ services:
5454
- /bin/bash
5555
- -ce
5656
- |
57-
cosign verify ghcr.io/metal-stack/metal-deployment-base:${DEPLOYMENT_BASE_IMAGE_TAG} --certificate-oidc-issuer https://accounts.google.com --certificate-identity [email protected]
57+
cosign verify --key files/cosign.pub ghcr.io/metal-stack/metal-deployment-base:${DEPLOYMENT_BASE_IMAGE_TAG}
5858
ansible -m metalstack.base.metal_stack_release_vector localhost --extra-vars "@.extra_vars.yaml"
5959
ansible-playbook deploy_partition.yaml --extra-vars "@.extra_vars.yaml"
6060

files/cosign.pub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdeAXd2namgVNDT0APmogKGwaV+Q4
3+
rfe4uVgmsyBbb6TrhX5Py6x1PsonDahTvdVpbSGC7QGEjxIHdi8HnJ4Okg==
4+
-----END PUBLIC KEY-----

inventories/group_vars/all/release_vector.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ metal_stack_release_vectors:
55
- url: oci://ghcr.io/metal-stack/releases:{{ metal_stack_release_version }}
66
variable_mapping_path: metal_stack_release.mapping
77
include_role_defaults: metal-roles/common/roles/defaults
8-
oci_cosign_verify_key: |
9-
-----BEGIN PUBLIC KEY-----
10-
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdeAXd2namgVNDT0APmogKGwaV+Q4
11-
rfe4uVgmsyBbb6TrhX5Py6x1PsonDahTvdVpbSGC7QGEjxIHdi8HnJ4Okg==
12-
-----END PUBLIC KEY-----
8+
oci_cosign_verify_key: "{{ lookup('file', 'cosign.pub') }}"
139

1410
##
1511
## for development purposes, you can override releases from our image vector here
@@ -40,7 +36,7 @@ metal_stack_release_vectors:
4036
## for ansible roles
4137
##
4238

43-
ansible_common_version: metal-stack-release-vector-module
39+
# ansible_common_version:
4440
# metal_roles_version:
4541
# metal_ansible_modules_version:
4642

0 commit comments

Comments
 (0)