Skip to content

ci: use a mock OIDC issuer for the auth tests - #525

Merged
g-despot merged 1 commit into
mainfrom
ci/mock-oidc-tests
Dec 4, 2026
Merged

g-despot merged 1 commit into
mainfrom
ci/mock-oidc-tests

Conversation

@g-despot

@g-despot g-despot commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes tests-with-auth, which fails on main because the WCD identity provider now rejects the password grant.

Ports weaviate/weaviate-python-client#2279: the auth tests use a local mock OIDC issuer and no longer need WCS_DUMMY_CI_PW.

@g-despot
g-despot requested a review from a team as a code owner December 4, 2026 15:21

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 5   low 5   info 3 View in Orca
Passed Passed SAST high 0   medium 1   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca
🛡️ The following IaC misconfigurations have been detected
NAME FILE
medium Controller creating containers without dropped capabilities ...cker-compose-wcs.yml View in code
medium Controller creating containers without dropped capabilities ci/mock-oidc.yml View in code
medium Dockerfile Missing USER Instruction ...mock-oidc/Dockerfile View in code
medium ADD Used Instead of COPY ...mock-oidc/Dockerfile View in code
medium ADD Used Instead of COPY ...mock-oidc/Dockerfile View in code
low Container Memory Limits Not Defined ...cker-compose-wcs.yml View in code
low CPU Limits Not Set ...cker-compose-wcs.yml View in code
low HEALTHCHECK Instruction Missing ...mock-oidc/Dockerfile View in code
low ADD Used Instead of Curl or Wget ...mock-oidc/Dockerfile View in code
low ADD Used Instead of Curl or Wget ...mock-oidc/Dockerfile View in code
info Container Healthcheck Not Defined ...cker-compose-wcs.yml View in code
info Ensure that, if applicable, SELinux security options are set (Automated) ...cker-compose-wcs.yml View in code
info Ensure that, if applicable, SELinux security options are set (Automated) ci/mock-oidc.yml View in code
🛡️ The following SAST misconfigurations have been detected
NAME FILE
medium Usage of Wget with Unencrypted URLs Detected ci/mock-oidc.yml View in code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the switch to a local mock OIDC issuer for authentication tests.

No open issues 🎉

What changed in this PR

Replaces the cloud identity provider with a local mock OIDC issuer for affected authentication tests, avoiding the rejected password grant and removing the WCS_DUMMY_CI_PW dependency.

Changes:

  • Adds a shared mock issuer and token helper for local authentication.
  • Updates WCS/RBAC configuration and test expectations for mock-issued identities.
  • Switches access-token tests to mock tokens and removes the cloud-backed refresh journey.
File Description
packages/​test/​node/​connection/​journey.test.ts Uses mock tokens and adds issuer DNS handling for the expiry test.
packages/​core/​src/​v2/​misc/​journey.test.ts Updates expected OIDC client ID and scopes.
ci/​mock-oidc/​Dockerfile Builds the mock issuer and token helper.
ci/​mock-oidc.yml Defines the shared issuer service and health check.
ci/​docker-compose-wcs.yml Adds the token helper and switches authentication to the mock issuer.
ci/​docker-compose-rbac.yml Switches RBAC OIDC configuration to the mock issuer.
.github/​workflows/​main.yaml Removes the WCS password secret from the test environment.

Review effort: Balanced

@g-despot
g-despot merged commit 2eb6040 into main Dec 4, 2026
19 checks passed
@g-despot
g-despot deleted the ci/mock-oidc-tests branch December 4, 2026 19:00
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.

3 participants