Skip to content

Add NGTS credentials to periodic Venafi E2E job - #1208

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:masterfrom
wallrj-cyberark:fix-ngts-periodic-credentials
Jun 4, 2026
Merged

cert-manager-prow[bot] merged 1 commit into
cert-manager:masterfrom
wallrj-cyberark:fix-ngts-periodic-credentials

Conversation

@wallrj-cyberark

@wallrj-cyberark wallrj-cyberark commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

Summary

The NGTS E2E tests have never passed in CI. This PR fixes the periodic
job so that NGTS tests are no longer silently skipped.

  • Adds preset-venafi-ngts-credentials to the periodic Venafi E2E job
    (ci-cert-manager-master-e2e-v1-35-issuers-venafi), which previously
    only had TPP and Cloud credential presets.

Motivation

While investigating the Venafi TPP auth regression
(cert-manager/cert-manager#8843), I triggered the NGTS presubmit for
the first time and discovered two problems:

  1. Expired credentials: The venafi-ngts secret contains credentials
    for [email protected], which return
    invalid_client from the NGTS OAuth endpoint.

  2. Double-prefixed TSG ID: The secret's tsg-id field was set to
    tsg_id:1271410543, but
    venaficlient.go
    already prepends tsg_id: when building the OAuth scope, resulting in
    tsg_id:tsg_id:1271410543. The secret value must be the bare numeric
    TSG ID.

  3. Periodic job skips NGTS: Without preset-venafi-ngts-credentials,
    the periodic job never supplies the NGTS env vars, so all NGTS tests
    skip with "Venafi NGTS TSGID must be set".

The NGTS presubmit was added in #1177 and the credentials were created
by @maelvls, but the test was never actually triggered to verify the
credentials worked. The corresponding cert-manager PR
(cert-manager/cert-manager#8779) was also merged without running the
NGTS presubmit.

Cluster secret update

The venafi-ngts Kubernetes secret in the test-pods namespace of the
Prow untrusted cluster has been updated with new credentials on a new
TSG and a corrected TSG ID (bare numeric, no tsg_id: prefix).

The NGTS presubmit has been triggered on cert-manager/cert-manager#8843
to verify the new credentials work in CI.

Test evidence

I verified locally that the new credentials work and the NGTS E2E test
passes:

VENAFI_NGTS_TSG_ID="1904192319" \
VENAFI_NGTS_CLIENT_ID="[email protected]" \
VENAFI_NGTS_CLIENT_SECRET="<redacted>" \
GINKGO_FOCUS="Venafi NGTS Issuer.*should issue a certificate that defines a 2 distinct DNS Names" \
make e2e

Ran 1 of 980 Specs in 44.246 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 979 Skipped

Generated with Claude (Opus 4.6)

@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 3, 2026
The periodic Venafi E2E job only had TPP and Cloud credential presets,
so NGTS tests were silently skipped in every periodic run.

Additionally, the venafi-ngts Kubernetes secret in the Prow cluster
needs to be recreated with:
- New service account credentials (the original ones are expired)
- A bare numeric TSG ID (the code prepends "tsg_id:" itself, so the
  secret value "tsg_id:..." caused a double-prefix "tsg_id:tsg_id:...")

Signed-off-by: Richard Wall <[email protected]>
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@wallrj-cyberark
wallrj-cyberark force-pushed the fix-ngts-periodic-credentials branch from 3624cf1 to 79e8b2a Compare June 3, 2026 17:38
@cert-manager-prow cert-manager-prow Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 3, 2026
@inteon

inteon commented Jun 4, 2026

Copy link
Copy Markdown
Member

/approve
/lgtm

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2026
@cert-manager-prow
cert-manager-prow Bot merged commit 510ae63 into cert-manager:master Jun 4, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

@wallrj-cyberark: Updated the job-config configmap in namespace default at cluster default using the following files:

  • key cert-manager-master.yaml using file config/jobs/cert-manager/cert-manager/master/cert-manager-master.yaml
  • key cert-manager-release-1.19.yaml using file config/jobs/cert-manager/cert-manager/release-1.19/cert-manager-release-1.19.yaml
  • key cert-manager-release-1.20.yaml using file config/jobs/cert-manager/cert-manager/release-1.20/cert-manager-release-1.20.yaml
Details

In response to this:

Summary

The NGTS E2E tests have never passed in CI. This PR fixes the periodic
job so that NGTS tests are no longer silently skipped.

  • Adds preset-venafi-ngts-credentials to the periodic Venafi E2E job
    (ci-cert-manager-master-e2e-v1-35-issuers-venafi), which previously
    only had TPP and Cloud credential presets.

Motivation

While investigating the Venafi TPP auth regression
(cert-manager/cert-manager#8843), I triggered the NGTS presubmit for
the first time and discovered two problems:

  1. Expired credentials: The venafi-ngts secret contains credentials
    for [email protected], which return
    invalid_client from the NGTS OAuth endpoint.

  2. Double-prefixed TSG ID: The secret's tsg-id field was set to
    tsg_id:1271410543, but
    venaficlient.go
    already prepends tsg_id: when building the OAuth scope, resulting in
    tsg_id:tsg_id:1271410543. The secret value must be the bare numeric
    TSG ID.

  3. Periodic job skips NGTS: Without preset-venafi-ngts-credentials,
    the periodic job never supplies the NGTS env vars, so all NGTS tests
    skip with "Venafi NGTS TSGID must be set".

The NGTS presubmit was added in #1177 and the credentials were created
by @maelvls, but the test was never actually triggered to verify the
credentials worked. The corresponding cert-manager PR
(cert-manager/cert-manager#8779) was also merged without running the
NGTS presubmit.

Cluster secret update

The venafi-ngts Kubernetes secret in the test-pods namespace of the
Prow untrusted cluster has been updated with new credentials on a new
TSG and a corrected TSG ID (bare numeric, no tsg_id: prefix).

The NGTS presubmit has been triggered on cert-manager/cert-manager#8843
to verify the new credentials work in CI.

Test evidence

I verified locally that the new credentials work and the NGTS E2E test
passes:

VENAFI_NGTS_TSG_ID="1904192319" \
VENAFI_NGTS_CLIENT_ID="[email protected]" \
VENAFI_NGTS_CLIENT_SECRET="<redacted>" \
GINKGO_FOCUS="Venafi NGTS Issuer.*should issue a certificate that defines a 2 distinct DNS Names" \
make e2e

Ran 1 of 980 Specs in 44.246 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 979 Skipped

Generated with Claude (Opus 4.6)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@wallrj-cyberark
wallrj-cyberark deleted the fix-ngts-periodic-credentials branch June 4, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants