Skip to content

Commit

Permalink
Adding Restore Status to the Restore.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Mar 27, 2024
1 parent 0b1c99c commit a450020
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ resources:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- digest: sha256:e550dad4a7299118fe220cd4c145c6e2deee75d2e28e41525f9dc2fb6c9f7508
name: controller
newName: quay.io/redhat-user-workloads/rhtas-tenant/operator/rhtas-operator
- name: controller
newName: quay.io/tdalton/rhtastest
newTag: backup3
4 changes: 2 additions & 2 deletions config/samples/rhtas_v1alpha1_securesign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
enabled: true
config:
OIDCIssuers:
"https://your-oidc-issuer-url":
"https://keycloak-keycloak-system.apps.2dj9xst-b5564.shiftstack.devcluster.openshift.com/auth/realms/trusted-artifact-signer":
ClientID: "trusted-artifact-signer"
IssuerURL: "https://your-oidc-issuer-url"
IssuerURL: "https://keycloak-keycloak-system.apps.2dj9xst-b5564.shiftstack.devcluster.openshift.com/auth/realms/trusted-artifact-signer"
Type: "email"
certificate:
organizationName: Red Hat
Expand Down
8 changes: 8 additions & 0 deletions docs/Restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ spec:
- backups.velero.io
- restores.velero.io
- resticrepositories.velero.io
restoreStatus:
includedResources:
- securesign.rhtas.redhat.com
- trillian.rhtas.redhat.com
- ctlog.rhtas.redhat.com
- fulcio.rhtas.redhat.com
- rekor.rhtas.redhat.com
- tuf.rhtas.redhat.com
restorePVs: true
existingResourcePolicy: Update
EOF
Expand Down
84 changes: 84 additions & 0 deletions tst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
TUF_URL=$(oc -n trusted-artifact-signer get tuf securesign-sample -o jsonpath='{.status.url}')
FULCIO_URL=$(oc -n trusted-artifact-signer get fulcio securesign-sample -o jsonpath='{.status.url}')
REKOR_URL=$(oc -n trusted-artifact-signer 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/trusted-artifact-signer

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:test2 --oidc-client-id=trusted-artifact-signer
cosign verify --rekor-url=$REKOR_URL --certificate-identity-regexp [email protected] --certificate-oidc-issuer-regexp keycloak-keycloak-system quay.io/tdalton/rhtastest:test2




https://keycloak-keycloak-system.apps.rosa.om6zs-3zn55-j86.i6rg.p3.openshiftapps.com


apiVersion: rhtas.redhat.com/v1alpha1
kind: Securesign
metadata:
labels:
app.kubernetes.io/name: securesign-sample
app.kubernetes.io/instance: securesign-sample
app.kubernetes.io/part-of: trusted-artifact-signer
name: securesign-sample
spec:
rekor:
externalAccess:
enabled: true
monitoring:
enabled: false
treeID: 9073472342370173029
trillian:
database:
create: true
fulcio:
externalAccess:
enabled: true
config:
OIDCIssuers:
"https://keycloak-keycloak-system.apps.rosa.om6zs-3zn55-j86.i6rg.p3.openshiftapps.com/auth/realms/trusted-artifact-signer":
ClientID: "trusted-artifact-signer"
IssuerURL: "https://keycloak-keycloak-system.apps.rosa.om6zs-3zn55-j86.i6rg.p3.openshiftapps.com/auth/realms/trusted-artifact-signer"
Type: "email"
certificate:
organizationName: Red Hat
organizationEmail: [email protected]
commonName: fulcio.hostname
monitoring:
enabled: false
tuf:
externalAccess:
enabled: true
ctlog:
treeID: 893639057730069610


rekor.pub
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CA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----END PUBLIC KEY-----

0 comments on commit a450020

Please sign in to comment.