Skip to content

Commit

Permalink
Enabling Rekor to point to custom trillian
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Feb 27, 2024
1 parent 24cb410 commit 915a219
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 12 deletions.
6 changes: 4 additions & 2 deletions bundle/manifests/rhtas-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ metadata:
"trillian": {
"database": {
"create": true
}
},
"trillianAddress": "trillian-address",
"trillienPort": "8091"
},
"tuf": {
"externalAccess": {
Expand Down Expand Up @@ -176,7 +178,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-02-19T13:25:38Z"
createdAt: "2024-02-27T11:40:46Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: rhtas-operator.v0.0.1
Expand Down
5 changes: 5 additions & 0 deletions bundle/manifests/rhtas.redhat.com_rekors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
type: boolean
type: object
pvc:
default:
retain: true
size: 5Gi
description: PVC configuration
properties:
name:
Expand All @@ -94,6 +97,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
rekorSearchUI:
description: Rekor Search UI
Expand Down
12 changes: 7 additions & 5 deletions bundle/manifests/rhtas.redhat.com_securesigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ spec:
type: boolean
type: object
pvc:
default:
retain: true
size: 5Gi
description: PVC configuration
properties:
name:
Expand All @@ -346,6 +349,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
rekorSearchUI:
description: Rekor Search UI
Expand Down Expand Up @@ -402,11 +407,6 @@ spec:
description: TrillianSpec defines the desired state of Trillian
properties:
database:
default:
create: true
pvc:
retain: true
size: 5Gi
description: Define your database connection
properties:
create:
Expand Down Expand Up @@ -444,6 +444,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
required:
- create
Expand Down
9 changes: 4 additions & 5 deletions bundle/manifests/rhtas.redhat.com_trillians.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ spec:
description: TrillianSpec defines the desired state of Trillian
properties:
database:
default:
create: true
pvc:
retain: true
size: 5Gi
description: Define your database connection
properties:
create:
Expand Down Expand Up @@ -82,6 +77,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
required:
- create
Expand Down Expand Up @@ -198,6 +195,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
required:
- create
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/rhtas.redhat.com_trillians.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ spec:
storageClass:
description: Storage class for the PVC
type: string
required:
- retain
type: object
required:
- create
Expand Down
2 changes: 2 additions & 0 deletions config/samples/rhtas_v1alpha1_securesign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
trillian:
database:
create: true
trillianAddress: "trillian-address"
trillienPort: "8091"
fulcio:
externalAccess:
enabled: true
Expand Down
10 changes: 10 additions & 0 deletions notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TUF_URL=$(oc -n tas-test get tuf securesign-sample -o jsonpath='{.status.url}')
FULCIO_URL=$(oc -n tas-test get fulcio securesign-sample -o jsonpath='{.status.url}')
REKOR_URL=$(oc -n tas-test get rekor securesign-sample -o jsonpath='{.status.url}')
OPENSHIFT_APPS_SUBDOMAIN=apps.$(oc get dns cluster -o jsonpath='{ .spec.baseDomain }')
OIDC_ISSUER=https://keycloak-keycloak-system.$OPENSHIFT_APPS_SUBDOMAIN/auth/realms/sigstore

rm -r ~/.sigstore
cosign initialize --mirror=$TUF_URL --root=$TUF_URL/root.json
cosign sign -y --fulcio-url=$FULCIO_URL --rekor-url=$REKOR_URL --oidc-issuer=$OIDC_ISSUER quay.io/tdalton/rhtastest:test3
cosign verify --rekor-url=$REKOR_URL --certificate-identity-regexp jdoe --certificate-oidc-issuer-regexp keycloak quay.io/tdalton/rhtastest:test3

0 comments on commit 915a219

Please sign in to comment.