feat(admin): authz-pilot — server-renderad advance-resolution + ActionGate (ADR-0001) #128
@@ -59,6 +59,7 @@ function baseRequest(overrides: Partial<ExternalWriteRequest> = {}): ExternalWri
|
||||
/** Stubs global fetch to answer CL0UD policy evaluation (always "allow" unless `denyOrApproval`
|
||||
* is set) and swallow AUD0 event/lineage POSTs, recording them for assertions. */
|
||||
function stubCl0udAllowAndAud0(opts: { decision?: "allow" | "deny" | "approval_required" } = {}) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- AUD0-ingest-body är fri nyttolast
|
||||
const aud0Calls: { url: string; body: any }[] = [];
|
||||
const fetchMock = vi.fn(async (url: string, init?: RequestInit) => {
|
||||
// REAL CL0UD wire contract (cl0ud main): POST /api/policy/evaluate with a
|
||||
|
||||
Reference in New Issue
Block a user