test(ci): add disposable real ZITADEL browser OIDC acceptance
This commit is contained in:
1 parent
f423c69654
commit
cbcd60e76e
32 files changed
+875
-22
No files matched your search
@@ -7,3 +7,4 @@
|
||||
| [p05-ci.yml](p05-ci.yml) | Isolated account/login/backend CI verification on Gitea | P05-CI-01/P05-CI-02 |
|
||||
| [p05-backend-acceptance.yml](p05-backend-acceptance.yml) | Manual backend-only disposable Compose, persistence and OIDC acceptance; no Account/Login build rerun | P05-CI-03 |
|
||||
| [p05-security-acceptance.yml](p05-security-acceptance.yml) | Manual isolated Account/Login frozen builds, security advisory triage and strict Moderate+ gate | P05-SEC-01 |
|
||||
| [p05-oidc-acceptance.yml](p05-oidc-acceptance.yml) | Manual-only disposable ZITADEL real user/client/Chromium OIDC and mandatory owned-only cleanup | P05-OIDC-01 |
|
||||
@@ -24,3 +24,6 @@ See `notes/P05-CI-01.md` and `tests/ci/`.
|
||||
|
||||
|
||||
**P05-SEC-02-A01 ACCEPTED:** Manual Login-only [Run #89](https://dev.ivib.cc/vibtools/ZitPlane/actions/runs/89), tested `ff4c58ed861474061c8f045be3a9f0752caf6ca0`, overall **SUCCESS**. Login frozen install/build/upstream 1219/1219 unit regressions job #194 PASS, Login production zero-Moderate/High/Critical audit job #196 PASS, Account jobs #193/#195 intentionally SKIPPED. Corrected `transitive_override_contract.py` verified exact seven parent overrides without false-positive `>=` parsing; no dependency lock/manifest/source change. Human OIDC/MFA remains unverified.
|
||||
|
||||
|
||||
**P05-OIDC-01:** New `p05-oidc-acceptance.yml` is **manual-only** with one disposable Docker job and `always()` owned cleanup. New `tests/ci/oidc_e2e/**` uses a short-lived ZITADEL IAM_OWNER PAT for official project/real client/test human provisioning, private portless browser network, original Login V2 Chromium username/password and real Auth.js callback/positive protected identity/negative access, with strict run-labeled browser/secret/Compose teardown. No Account/Login source, package, P02 developer Compose, real user or production change. **Actual Gitea runtime result pending**, no false PASS. See `docs/P05-OIDC-01.md` and `project/OIDC-E2E-ARCHITECTURE.md`.
|
||||
@@ -0,0 +1,37 @@
|
||||
name: ZitPlane P05-OIDC-01 Disposable Real Browser Acceptance
|
||||
|
||||
# Dispatch by authorized operator only. No PR, push or schedule.
|
||||
# Uses CI-owned Docker resources; never access production/real user data.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
oidc:
|
||||
name: Disposable ZITADEL Client User Browser OIDC and Cleanup
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-alpine
|
||||
timeout-minutes: 55
|
||||
steps:
|
||||
- name: Install Git before isolated Gitea checkout
|
||||
run: apk add --no-cache git
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
github-server-url: https://dev.ivib.cc
|
||||
- name: Disposable backend, real OIDC client/user, browser and negative tests
|
||||
run: |
|
||||
set -eu
|
||||
apk add --no-cache python3 docker-cli docker-cli-compose
|
||||
sh tests/ci/oidc_e2e/run.sh
|
||||
- name: Always remove ONLY run-owned Docker containers, credentials and volumes
|
||||
if: always()
|
||||
run: |
|
||||
set -eu
|
||||
if [ ! -f tests/ci/oidc_e2e/cleanup.sh ]; then
|
||||
echo '::error::CI-owned cleanup script missing; cannot claim teardown'
|
||||
exit 1
|
||||
fi
|
||||
apk add --no-cache docker-cli docker-cli-compose
|
||||
sh tests/ci/oidc_e2e/cleanup.sh
|
||||
Reference in new issue
Block a user