Skip to content

CP-26533: add a local e2e script for Conjur-JWT-only installs - #840

Open
roeezis wants to merge 1 commit into
masterfrom
add-ark-jwt-e2e-script
Open

roeezis wants to merge 1 commit into
masterfrom
add-ark-jwt-e2e-script

Conversation

@roeezis

@roeezis roeezis commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #839. Adds hack/ark/test-e2e-jwt.sh (make ark-test-e2e-jwt), a local dev script mirroring test-e2e.sh but exercising the Conjur-JWT-only path added in #838: --set config.cyberark.serviceId/config.cyberark.subdomain, no agent-credentials Secret at all. It asserts the Secret genuinely doesn't exist when ARK_DISCOVERY_API is unset, so a regression that silently starts requiring one again would fail this check.

Not wired into CI

.github/workflows/tests.yaml is untouched. A live run needs the target cluster already onboarded in Conjur Cloud (an authn-jwt authenticator trusting that cluster's OIDC issuer/JWKS, a registered workload, upload grants) — no such onboarding automation exists in this repo, and CI has no secrets for it. A fresh kind create cluster per run also won't match any pre-onboarded authenticator, since JWT trust is bound to a specific issuer. The script requires USE_EXISTING_CLUSTER=true pointed at whichever cluster you've already onboarded by hand.

Test plan

  • bash -n hack/ark/test-e2e-jwt.sh — syntax check.
  • make -n ark-test-e2e-jwt — target resolves correctly.
  • Diffed against test-e2e.sh to confirm nothing outside the auth-method wiring changed.

…stalls

Adds hack/ark/test-e2e-jwt.sh (make ark-test-e2e-jwt), mirroring
test-e2e.sh but using --set config.cyberark.serviceId/subdomain instead
of a Secret. Asserts the agent-credentials Secret does not exist when
ARK_DISCOVERY_API is unset, proving the install is genuinely Secret-free.

Not wired into .github/workflows/tests.yaml: no CI-side Conjur JWT
onboarding automation exists yet (see #839), and a fresh kind cluster's
OIDC issuer won't match any pre-onboarded authenticator. Requires
targeting an already-onboarded cluster via USE_EXISTING_CLUSTER=true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a live e2e test for the Conjur-JWT-only, Secret-free install path

1 participant