fix(security): scope glob and minimatch overrides to affected parents
This commit is contained in:
1 parent
43eee54e7a
commit
66cfed5a8b
25 files changed
+331
-138
No files matched your search
@@ -10,6 +10,8 @@ Job responsibilities:
|
||||
|
||||
**P05-CI-02 additions:** Account Portal CI negative route/API smoke, npm/pnpm structured Moderate advisory detail, and disposable Postgres restart persistence plus stronger OIDC issuer/JWKS negative checks. Run #83 passed Account, Login V2 and Security jobs but backend proxy bind to shared host port 8080 failed after Postgres/ZITADEL/Login healthy. **Post-run source fix:** all backend Compose calls include `tests/ci/compose.portless.override.yaml` (`ports: !reset []`), config rejects any published proxy port; this is not CI-verified. Full authenticated user sign-in/MFA remains deferred.
|
||||
|
||||
**P05-SEC-02:** Existing `p05-security-acceptance.yml` has manual `login_only=true` option to skip the previously accepted Account jobs, run only Login V2 pinned frozen install, proto/client/standalone production build, upstream Vitest and independent **strict zero Moderate/High/Critical** live production audit. The new `tests/ci/transitive_override_contract.py` checks exactly seven known patched parent resolutions before frozen installation. Default `login_only=false` preserves earlier full workflow. Pending actual Gitea acceptance; no production. See `docs/P05-SEC-02.md`.
|
||||
|
||||
**P05-SEC-01:** `.gitea/workflows/p05-security-acceptance.yml` is **manual-only** with independent Account frozen build + negative access regressions, Login frozen Nx build + Vitest, Account production audit and Login production audit. **Run #87:** Account build, Login build/1219 unit tests, Account security audit **PASS**; Login audit **FAIL** on 2 Moderate transitive `glob`/`minimatch` findings (0 High/Critical) as required by strict `tests/ci/security_advisory_gate.py`. No source auth changes or production deployment. See `docs/P05-SEC-01.md`.
|
||||
|
||||
**P05-CI-03:** `p05-backend-acceptance.yml` runs **only** the isolated backend job with `tests/ci/backend_acceptance.sh` and always-run `backend_cleanup.sh`. **Gitea Run #86 SUCCESS** on `03fb589`: portless config, all four services, restart persistence, ready/discovery/JWKS, negative cases and complete cleanup passed. No Account/Login build rerun; no production. See `docs/P05-CI-03.md`.
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
name: ZitPlane P05-SEC-01 Dependency Security Acceptance
|
||||
name: ZitPlane P05 Dependency Security Acceptance (SEC-01/02)
|
||||
|
||||
# Manual only. No PR triggers, production access, real credentials or deployment.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
login_only:
|
||||
description: 'P05-SEC-02: run Login frozen build/unit + Login security only; Account already accepted in Run #87'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
account:
|
||||
if: ${{ github.event.inputs.login_only != 'true' }}
|
||||
name: Account Portal frozen install, typecheck and production build
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-bookworm
|
||||
@@ -63,6 +69,9 @@ jobs:
|
||||
working-directory: auth/ui/v2
|
||||
run: |
|
||||
set -eu
|
||||
if [ "${{ github.event.inputs.login_only }}" = 'true' ]; then
|
||||
python3 ../../../tests/ci/transitive_override_contract.py
|
||||
fi
|
||||
corepack enable
|
||||
corepack prepare pnpm@10.30.3 --activate
|
||||
pnpm install --frozen-lockfile
|
||||
@@ -84,6 +93,7 @@ jobs:
|
||||
echo ZITPLANE_SECURITY_LOGIN_UNIT_PASS
|
||||
|
||||
security_account:
|
||||
if: ${{ github.event.inputs.login_only != 'true' }}
|
||||
name: Account production High/Critical audit and Moderate acceptance
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-bookworm
|
||||
|
||||
Reference in new issue
Block a user