Skip to content

Commit 915a219

Browse files
committed
Enabling Rekor to point to custom trillian
1 parent 24cb410 commit 915a219

7 files changed

+34
-12
lines changed

bundle/manifests/rhtas-operator.clusterserviceversion.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ metadata:
111111
"trillian": {
112112
"database": {
113113
"create": true
114-
}
114+
},
115+
"trillianAddress": "trillian-address",
116+
"trillienPort": "8091"
115117
},
116118
"tuf": {
117119
"externalAccess": {
@@ -176,7 +178,7 @@ metadata:
176178
}
177179
]
178180
capabilities: Basic Install
179-
createdAt: "2024-02-19T13:25:38Z"
181+
createdAt: "2024-02-27T11:40:46Z"
180182
operators.operatorframework.io/builder: operator-sdk-v1.32.0
181183
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
182184
name: rhtas-operator.v0.0.1

bundle/manifests/rhtas.redhat.com_rekors.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ spec:
7878
type: boolean
7979
type: object
8080
pvc:
81+
default:
82+
retain: true
83+
size: 5Gi
8184
description: PVC configuration
8285
properties:
8386
name:
@@ -94,6 +97,8 @@ spec:
9497
storageClass:
9598
description: Storage class for the PVC
9699
type: string
100+
required:
101+
- retain
97102
type: object
98103
rekorSearchUI:
99104
description: Rekor Search UI

bundle/manifests/rhtas.redhat.com_securesigns.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ spec:
330330
type: boolean
331331
type: object
332332
pvc:
333+
default:
334+
retain: true
335+
size: 5Gi
333336
description: PVC configuration
334337
properties:
335338
name:
@@ -346,6 +349,8 @@ spec:
346349
storageClass:
347350
description: Storage class for the PVC
348351
type: string
352+
required:
353+
- retain
349354
type: object
350355
rekorSearchUI:
351356
description: Rekor Search UI
@@ -402,11 +407,6 @@ spec:
402407
description: TrillianSpec defines the desired state of Trillian
403408
properties:
404409
database:
405-
default:
406-
create: true
407-
pvc:
408-
retain: true
409-
size: 5Gi
410410
description: Define your database connection
411411
properties:
412412
create:
@@ -444,6 +444,8 @@ spec:
444444
storageClass:
445445
description: Storage class for the PVC
446446
type: string
447+
required:
448+
- retain
447449
type: object
448450
required:
449451
- create

bundle/manifests/rhtas.redhat.com_trillians.yaml

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ spec:
4040
description: TrillianSpec defines the desired state of Trillian
4141
properties:
4242
database:
43-
default:
44-
create: true
45-
pvc:
46-
retain: true
47-
size: 5Gi
4843
description: Define your database connection
4944
properties:
5045
create:
@@ -82,6 +77,8 @@ spec:
8277
storageClass:
8378
description: Storage class for the PVC
8479
type: string
80+
required:
81+
- retain
8582
type: object
8683
required:
8784
- create
@@ -198,6 +195,8 @@ spec:
198195
storageClass:
199196
description: Storage class for the PVC
200197
type: string
198+
required:
199+
- retain
201200
type: object
202201
required:
203202
- create

config/crd/bases/rhtas.redhat.com_trillians.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ spec:
196196
storageClass:
197197
description: Storage class for the PVC
198198
type: string
199+
required:
200+
- retain
199201
type: object
200202
required:
201203
- create

config/samples/rhtas_v1alpha1_securesign.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ spec:
1515
trillian:
1616
database:
1717
create: true
18+
trillianAddress: "trillian-address"
19+
trillienPort: "8091"
1820
fulcio:
1921
externalAccess:
2022
enabled: true

notes.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
TUF_URL=$(oc -n tas-test get tuf securesign-sample -o jsonpath='{.status.url}')
2+
FULCIO_URL=$(oc -n tas-test get fulcio securesign-sample -o jsonpath='{.status.url}')
3+
REKOR_URL=$(oc -n tas-test get rekor securesign-sample -o jsonpath='{.status.url}')
4+
OPENSHIFT_APPS_SUBDOMAIN=apps.$(oc get dns cluster -o jsonpath='{ .spec.baseDomain }')
5+
OIDC_ISSUER=https://keycloak-keycloak-system.$OPENSHIFT_APPS_SUBDOMAIN/auth/realms/sigstore
6+
7+
rm -r ~/.sigstore
8+
cosign initialize --mirror=$TUF_URL --root=$TUF_URL/root.json
9+
cosign sign -y --fulcio-url=$FULCIO_URL --rekor-url=$REKOR_URL --oidc-issuer=$OIDC_ISSUER quay.io/tdalton/rhtastest:test3
10+
cosign verify --rekor-url=$REKOR_URL --certificate-identity-regexp jdoe --certificate-oidc-issuer-regexp keycloak quay.io/tdalton/rhtastest:test3

0 commit comments

Comments
 (0)