Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,35 @@ tests:
cpu: 100m
timeout: 3h0m0s
workflow: ipi-aws
- always_run: false
as: e2e-aws-ovn-pki-default-techpreview
optional: true
steps:
cluster_profile: openshift-org-aws
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
- ref: openshift-e2e-test
workflow: openshift-e2e-aws
- always_run: false
as: e2e-aws-ovn-pki-rsa-techpreview
optional: true
steps:
cluster_profile: openshift-org-aws
env:
EXPECTED_ALGORITHM: RSA
EXPECTED_KEY_PARAM: "4096"
FEATURE_SET: TechPreviewNoUpgrade
PKI_ALGORITHM: RSA
PKI_RSA_KEY_SIZE: "4096"
test:
- ref: openshift-installer-pki-verify
- ref: openshift-e2e-test
workflow: openshift-e2e-aws
- as: e2e-gcp-operator-disruptive
steps:
cluster_profile: openshift-org-gcp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ tests:
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ tests:
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ tests:
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ tests:
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ tests:
env:
EXPECTED_ALGORITHM: ECDSA
EXPECTED_KEY_PARAM: secp384r1
EXPECTED_PKI_MODE: Default
FEATURE_SET: TechPreviewNoUpgrade
test:
- ref: openshift-installer-pki-verify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,168 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-aws-ovn-etcd-scaling,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^main$
- ^main-
cluster: build07
context: ci/prow/e2e-aws-ovn-pki-default-techpreview
decorate: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-cluster-etcd-operator-main-e2e-aws-ovn-pki-default-techpreview
optional: true
rerun_command: /test e2e-aws-ovn-pki-default-techpreview
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=e2e-aws-ovn-pki-default-techpreview
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-aws-ovn-pki-default-techpreview,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^main$
- ^main-
cluster: build07
context: ci/prow/e2e-aws-ovn-pki-rsa-techpreview
decorate: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-cluster-etcd-operator-main-e2e-aws-ovn-pki-rsa-techpreview
optional: true
rerun_command: /test e2e-aws-ovn-pki-rsa-techpreview
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=e2e-aws-ovn-pki-rsa-techpreview
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-aws-ovn-pki-rsa-techpreview,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ declare -a SIGNERS=(
"kube-apiserver-lb-signer|loadbalancer-serving-signer|openshift-kube-apiserver-operator|tls.crt"
"kube-control-plane-signer|kube-control-plane-signer|openshift-kube-apiserver-operator|tls.crt"
"aggregator-signer|aggregator-client-signer|openshift-kube-apiserver-operator|tls.crt"
"etcd-signer|etcd-signer|openshift-etcd|tls.crt"
"etcd-metrics-signer|etcd-metrics-signer|openshift-etcd|tls.crt"
)

# Map expected algorithm to openssl output strings
Expand Down Expand Up @@ -126,10 +128,10 @@ else

# Check mode
mode=$(echo "${pki_cr}" | grep "mode:" | head -1 | awk '{print $2}' || true)
if [[ "${mode}" == "Custom" ]]; then
echo " Mode: Custom - OK"
if [[ "${mode}" == "${EXPECTED_PKI_MODE}" ]]; then
echo " Mode: ${EXPECTED_PKI_MODE} - OK"
else
echo " FAIL: Expected mode 'Custom', got '${mode:-not set}'" | tee -a "${ARTIFACT_LOG}"
echo " FAIL: Expected mode '${EXPECTED_PKI_MODE}', got '${mode:-not set}'" | tee -a "${ARTIFACT_LOG}"
pki_status="FAIL"
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ ref:
Expected key parameter for signer certificates.
For RSA: key size in bits (e.g., "4096").
For ECDSA: curve OID name (e.g., "secp384r1" for P-384, "prime256v1" for P-256).
- name: EXPECTED_PKI_MODE
default: "Custom"
documentation: |-
Expected mode field on the PKI custom resource.
"Custom" when pki.signerCertificates is explicitly set in install-config.
"Default" when ConfigurablePKI is enabled but pki section is omitted.
documentation: |-
Verifies that installer-generated signer CA certificates use the expected
public key algorithm and key parameters. Also verifies the PKI custom
resource exists with the correct mode and profile. Checks 7 signer secrets
Verifies that signer CA certificates use the expected public key algorithm
and key parameters. Also verifies the PKI custom resource exists with the
correct mode. Checks 9 signer secrets (7 installer-generated + 2 etcd)
accessible as cluster secrets post-install and produces a pass/fail summary
table with full certificate details written to the artifact directory.