chore(tests,ci): #110 SHOULD batch B — test hygiene, cross-tenant pin, authz constants, composite action, Dockerfile removal #128

Merged
amiryahaya merged 1 commit from chore/110-should-batch-b into main 2026-11-09 06:00:54 +01:00
Owner

#110 SHOULD batch B — the test/CI-infra half (batch A with the seven code fixes is PR #127):

  • #11 M2mAccessTests expiry backdate scoped to the minted key — the bulk ExecuteUpdate in the shared class-fixture DB silently backdated every other test's keys (order-dependent flake risk).
  • #12 cross-tenant M2M pin: tenant-B's key sees only its own folders, never tenant-A's — the endpoint WHERE clauses are the only tenant guard and now have a dedicated test.
  • #13 AuthzMatrixTests imports TenantScopedPrefixes + AllowedMfaPaths straight from SsdidAuthMiddleware (promoted to internal; InternalsVisibleTo already present) — one declaration, drift impossible. The SEC-04 justification check upgraded beyond length-only (≥25 chars AND a 4-word sentence) — it immediately caught a real stub in the registry ('Wallet sign-in: challenge/response'), now rewritten as a genuine justification.
  • #14 kaz-setup composite action: single source for the SDK clone + libkazsign download (self-hosted mirror first, GitHub fallback, retry budget) — api-ci and cd now provably test the SAME native crypto version. YAML validated.
  • #15 root Dockerfile deleted — unreferenced drift (wrong port, LD_LIBRARY_PATH at an empty dir, contradictory auto-migrate flag); cd builds from src/FailSulit.Api/Containerfile.

Suite 946/0/39 (Release+Debug), coverage 87.77%.

**#110 SHOULD batch B** — the test/CI-infra half (batch A with the seven code fixes is PR #127): - **#11** M2mAccessTests expiry backdate scoped to the minted key — the bulk ExecuteUpdate in the shared class-fixture DB silently backdated every other test's keys (order-dependent flake risk). - **#12** cross-tenant M2M pin: tenant-B's key sees only its own folders, never tenant-A's — the endpoint WHERE clauses are the only tenant guard and now have a dedicated test. - **#13** AuthzMatrixTests imports TenantScopedPrefixes + AllowedMfaPaths straight from SsdidAuthMiddleware (promoted to internal; InternalsVisibleTo already present) — one declaration, drift impossible. The SEC-04 justification check upgraded beyond length-only (≥25 chars AND a 4-word sentence) — it immediately caught a real stub in the registry ('Wallet sign-in: challenge/response'), now rewritten as a genuine justification. - **#14** kaz-setup composite action: single source for the SDK clone + libkazsign download (self-hosted mirror first, GitHub fallback, retry budget) — api-ci and cd now provably test the SAME native crypto version. YAML validated. - **#15** root Dockerfile deleted — unreferenced drift (wrong port, LD_LIBRARY_PATH at an empty dir, contradictory auto-migrate flag); cd builds from src/FailSulit.Api/Containerfile. Suite 946/0/39 (Release+Debug), coverage 87.77%.
chore(tests,ci): #110 SHOULD batch B — test hygiene, cross-tenant pin, authz constants, composite action, Dockerfile removal
All checks were successful
Security CI / security-scan (pull_request) Successful in 3m26s
API CI / build-and-test (pull_request) Successful in 10m5s
41d09a2902
#110-11: M2mAccessTests expiry backdate scoped to the MINTED key (a bulk
ExecuteUpdate in the shared class-fixture DB backdated every other test's
keys — order-dependent flake risk).

#110-12: cross-tenant M2M pin — tenant-B's key observes only its own
folders, never tenant-A's (the endpoint WHERE clauses are the only tenant
guard; now they have a test).

#110-13: AuthzMatrixTests imports TenantScopedPrefixes + AllowedMfaPaths
from SsdidAuthMiddleware (now internal; one declaration, no drift). The
SEC-04 justification check upgraded beyond length-only: minimum 25 chars
AND a 4-word sentence — it immediately caught a real stub ('Wallet
sign-in: challenge/response' → rewritten as a real justification).

#110-14: kaz-setup composite action (.github/actions/kaz-setup) — single
source for the SDK clone + libkazsign download (self-hosted mirror first,
GitHub fallback); api-ci and cd now test the SAME native crypto version.
Workflow YAML validated.

#110-15: root Dockerfile deleted — unreferenced drift (wrong port,
LD_LIBRARY_PATH at an empty dir); cd builds from
src/FailSulit.Api/Containerfile.

Suite 946/0/39 Release+Debug, coverage 87.77%.
Sign in to join this conversation.
No description provided.