Repository navigation
ci: use a mock OIDC issuer for the auth tests - #525
Merged
Merged
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
🛡️ The following IaC misconfigurations have been detected
| NAME | FILE | ||
|---|---|---|---|
| Controller creating containers without dropped capabilities | ...cker-compose-wcs.yml | View in code | |
| Controller creating containers without dropped capabilities | ci/mock-oidc.yml | View in code | |
| Dockerfile Missing USER Instruction | ...mock-oidc/Dockerfile | View in code | |
| ADD Used Instead of COPY | ...mock-oidc/Dockerfile | View in code | |
| ADD Used Instead of COPY | ...mock-oidc/Dockerfile | View in code | |
| Container Memory Limits Not Defined | ...cker-compose-wcs.yml | View in code | |
| CPU Limits Not Set | ...cker-compose-wcs.yml | View in code | |
| HEALTHCHECK Instruction Missing | ...mock-oidc/Dockerfile | View in code | |
| ADD Used Instead of Curl or Wget | ...mock-oidc/Dockerfile | View in code | |
| ADD Used Instead of Curl or Wget | ...mock-oidc/Dockerfile | View in code | |
| Container Healthcheck Not Defined | ...cker-compose-wcs.yml | View in code | |
| Ensure that, if applicable, SELinux security options are set (Automated) | ...cker-compose-wcs.yml | View in code | |
| 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 | ||
|---|---|---|---|
| Usage of Wget with Unencrypted URLs Detected | ci/mock-oidc.yml | View in code |
There was a problem hiding this comment.
🟢 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
tsmith023
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
tests-with-auth, which fails onmainbecause 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.