forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
Running as unit: run-p722594-i25887534.scope; invocation ID: 6f4ce06d5ad241fba3805a1783fb50df
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-account-workflow.test.ts:
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
^
|
||||
error: expect(received).toEqual(expected)
|
||||
|
||||
[
|
||||
- "positive:ingest",
|
||||
- "deny:ingest",
|
||||
- "positive:query",
|
||||
- "deny:query",
|
||||
"publish",
|
||||
]
|
||||
|
||||
- Expected - 4
|
||||
+ Received + 0
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:4:167)
|
||||
(fail) saved native200 and403 accounts publish only after both account controls [15.30ms]
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:5:191)
|
||||
(fail) positive HTTP401 cannot publish derived credentials [0.26ms]
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:5:191)
|
||||
(fail) positive HTTP503 cannot publish derived credentials [0.06ms]
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:5:191)
|
||||
(fail) positive HTTP201 cannot publish derived credentials [0.06ms]
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:6:198)
|
||||
(fail) unexpected deny HTTP200 cannot publish derived credentials [0.14ms]
|
||||
1 | import{expect,test}from"bun:test";import{createAccountWorkflow,type Account,type Principal}from"../scripts/openobserve-accounts";
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:6:198)
|
||||
(fail) unexpected deny HTTP503 cannot publish derived credentials [0.05ms]
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
7 | for(const patch of [{user:"vp7-owner@example.invalid"},{user:"foreign@example.invalid"},{token:""},{token:"bad\nvalue"}])test(`invalid saved query shape ${Object.keys(patch)[0]} cannot publish or probe`,async()=>{const p=ports(),saved=accounts();saved.query={...saved.query,...patch};await expect(createAccountWorkflow(p)(saved)).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(p.events).toEqual([])});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:7:339)
|
||||
(fail) invalid saved query shape user cannot publish or probe [0.13ms]
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
7 | for(const patch of [{user:"vp7-owner@example.invalid"},{user:"foreign@example.invalid"},{token:""},{token:"bad\nvalue"}])test(`invalid saved query shape ${Object.keys(patch)[0]} cannot publish or probe`,async()=>{const p=ports(),saved=accounts();saved.query={...saved.query,...patch};await expect(createAccountWorkflow(p)(saved)).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(p.events).toEqual([])});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:7:339)
|
||||
(fail) invalid saved query shape user cannot publish or probe [0.04ms]
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
7 | for(const patch of [{user:"vp7-owner@example.invalid"},{user:"foreign@example.invalid"},{token:""},{token:"bad\nvalue"}])test(`invalid saved query shape ${Object.keys(patch)[0]} cannot publish or probe`,async()=>{const p=ports(),saved=accounts();saved.query={...saved.query,...patch};await expect(createAccountWorkflow(p)(saved)).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(p.events).toEqual([])});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:7:339)
|
||||
(fail) invalid saved query shape token cannot publish or probe [0.04ms]
|
||||
2 | const accounts=()=>({ingest:{user:"vp7-ingest@example.invalid",token:"SyntheticIngestToken-123"},query:{user:"vp7-query@example.invalid",token:"SyntheticQueryToken-123"}});
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
7 | for(const patch of [{user:"vp7-owner@example.invalid"},{user:"foreign@example.invalid"},{token:""},{token:"bad\nvalue"}])test(`invalid saved query shape ${Object.keys(patch)[0]} cannot publish or probe`,async()=>{const p=ports(),saved=accounts();saved.query={...saved.query,...patch};await expect(createAccountWorkflow(p)(saved)).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(p.events).toEqual([])});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:7:339)
|
||||
(fail) invalid saved query shape token cannot publish or probe [0.03ms]
|
||||
3 | function ports(positive=200,deny=403){const events:string[]=[];return{events,positive:async(name:Principal)=>{events.push("positive:"+name);return positive},deny:async(name:Principal)=>{events.push("deny:"+name);return deny},publish:async(_accounts:Record<Principal,Account>)=>{events.push("publish")}}}
|
||||
4 | test("saved native200 and403 accounts publish only after both account controls",async()=>{const p=ports();await createAccountWorkflow(p)(accounts());expect(p.events).toEqual(["positive:ingest","deny:ingest","positive:query","deny:query","publish"])});
|
||||
5 | for(const status of [401,503,201])test(`positive HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_POSITIVE_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
6 | for(const status of [200,503])test(`unexpected deny HTTP${status} cannot publish derived credentials`,async()=>{const p=ports(200,status);await expect(createAccountWorkflow(p)(accounts())).rejects.toThrow(`OPENOBSERVE_CREDENTIAL_INGEST_DENY_HTTP_${status}`);expect(p.events).not.toContain("publish")});
|
||||
7 | for(const patch of [{user:"vp7-owner@example.invalid"},{user:"foreign@example.invalid"},{token:""},{token:"bad\nvalue"}])test(`invalid saved query shape ${Object.keys(patch)[0]} cannot publish or probe`,async()=>{const p=ports(),saved=accounts();saved.query={...saved.query,...patch};await expect(createAccountWorkflow(p)(saved)).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(p.events).toEqual([])});
|
||||
8 | test("extra owner slot never reaches credential publication",async()=>{const p=ports();await expect(createAccountWorkflow(p)({...accounts(),owner:{user:"vp7-owner@example.invalid",token:"owner-slot"}} as any)).rejects.toThrow("OPENOBSERVE_ACCOUNT_SLOTS_INVALID");expect(p.events).toEqual([])});
|
||||
^
|
||||
error: expect(received).rejects.toThrow(expected)
|
||||
|
||||
Expected promise that rejects
|
||||
Received promise that resolved: Promise { <resolved> }
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-account-workflow.test.ts:8:219)
|
||||
(fail) extra owner slot never reaches credential publication [0.13ms]
|
||||
(pass) workflow requires explicit native and publishing ports [0.05ms]
|
||||
|
||||
1 pass
|
||||
11 fail
|
||||
12 expect() calls
|
||||
Ran 12 tests across 1 file. [21.00ms]
|
||||
@@ -0,0 +1,19 @@
|
||||
Running as unit: run-p4142593-i25129562.scope; invocation ID: 1cbd46d05a104ff49023688f546d1c2c
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-accounts.test.ts:
|
||||
(pass) native service-account success saves exact credential before returning without a human-user API [0.41ms]
|
||||
(pass) native HTTP401 never publishes an account [0.20ms]
|
||||
(pass) native HTTP403 never publishes an account [0.01ms]
|
||||
(pass) native HTTP500 never publishes an account
|
||||
(pass) invalid native result fails closed code 3 [0.09ms]
|
||||
(pass) invalid native result fails closed token 0 [0.02ms]
|
||||
(pass) invalid native result fails closed token 4097
|
||||
(pass) invalid native result fails closed user 23
|
||||
(pass) invalid native result fails closed token 4
|
||||
(pass) account persistence failure stays primary and prevents a success result [0.15ms]
|
||||
|
||||
10 pass
|
||||
0 fail
|
||||
21 expect() calls
|
||||
Ran 10 tests across 1 file. [5.00ms]
|
||||
@@ -0,0 +1,165 @@
|
||||
Running as unit: run-p4137786-i25079307.scope; invocation ID: 33f1824ec2a04055b1b2555590a2845b
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-accounts.test.ts:
|
||||
4 | create: (path: string, body: {email: string; first_name: string; last_name: string}) => Promise<{status: number; data: unknown}>;
|
||||
5 | save: (principal: Principal, account: Account) => Promise<void>;
|
||||
6 | }
|
||||
7 | export function createAccountProvisioner(ports: AccountPorts) {
|
||||
8 | if(typeof ports.create!=="function" || typeof ports.save!=="function")throw new Error("OPENOBSERVE_ACCOUNT_PORTS_REQUIRED");
|
||||
9 | return async (principal: Principal): Promise<Account> => { throw new Error("OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"); };
|
||||
^
|
||||
error: OPENOBSERVE_ACCOUNT_UNIMPLEMENTED
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/scripts/openobserve-accounts.ts:9:72)
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:7:15)
|
||||
(fail) native service-account success saves exact credential before returning without a human-user API [0.31ms]
|
||||
7 | expect(await provision("query")).toEqual({user:native.user,token:native.token});
|
||||
8 | expect(events).toEqual(["/api/default/service_accounts","saved:query"]);
|
||||
9 | });
|
||||
10 | for(const status of [401,403,500])test(`native HTTP${status} never publishes an account`,async()=>{
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_CREATE_REJECTED"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:12:43)
|
||||
(fail) native HTTP401 never publishes an account [0.18ms]
|
||||
7 | expect(await provision("query")).toEqual({user:native.user,token:native.token});
|
||||
8 | expect(events).toEqual(["/api/default/service_accounts","saved:query"]);
|
||||
9 | });
|
||||
10 | for(const status of [401,403,500])test(`native HTTP${status} never publishes an account`,async()=>{
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_CREATE_REJECTED"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:12:43)
|
||||
(fail) native HTTP403 never publishes an account [0.04ms]
|
||||
7 | expect(await provision("query")).toEqual({user:native.user,token:native.token});
|
||||
8 | expect(events).toEqual(["/api/default/service_accounts","saved:query"]);
|
||||
9 | });
|
||||
10 | for(const status of [401,403,500])test(`native HTTP${status} never publishes an account`,async()=>{
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_CREATE_REJECTED"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:12:43)
|
||||
(fail) native HTTP500 never publishes an account [0.03ms]
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
13 | });
|
||||
14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_INVALID_RESPONSE"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:16:43)
|
||||
(fail) invalid native result fails closed code 3 [0.12ms]
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
13 | });
|
||||
14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_INVALID_RESPONSE"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:16:43)
|
||||
(fail) invalid native result fails closed token 0 [0.04ms]
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
13 | });
|
||||
14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_INVALID_RESPONSE"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:16:43)
|
||||
(fail) invalid native result fails closed token 4097 [0.03ms]
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
13 | });
|
||||
14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_INVALID_RESPONSE"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:16:43)
|
||||
(fail) invalid native result fails closed user 23 [0.03ms]
|
||||
11 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status,data:native}),save:async()=>{saves++}});
|
||||
12 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_CREATE_REJECTED");expect(saves).toBe(0);
|
||||
13 | });
|
||||
14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
^
|
||||
error: expect(received).toThrow(expected)
|
||||
|
||||
Expected substring: "OPENOBSERVE_ACCOUNT_INVALID_RESPONSE"
|
||||
Received message: "OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:16:43)
|
||||
(fail) invalid native result fails closed token 4 [0.03ms]
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
17 | });
|
||||
18 | test("account persistence failure stays primary and prevents a success result",async()=>{
|
||||
19 | const failure=new Error("FIXTURE_STORAGE_FAILED");const provision=createAccountProvisioner({create:async()=>({status:200,data:native}),save:async()=>{throw failure}});
|
||||
20 | try{await provision("query");throw new Error("UNEXPECTED_SUCCESS")}catch(error){expect(error).toBe(failure)}
|
||||
^
|
||||
error: expect(received).toBe(expected)
|
||||
|
||||
Expected: 14 | for(const patch of [{code:403},{token:""},{token:"x".repeat(4097)},{user:"foreign@example.invalid"},{token:null}])test(`invalid native result fails closed ${Object.keys(patch)[0]} ${String(Object.values(patch)[0]).length}`,async()=>{
|
||||
15 | let saves=0;const provision=createAccountProvisioner({create:async()=>({status:200,data:{...native,...patch}}),save:async()=>{saves++}});
|
||||
16 | await expect(provision("query")).rejects.toThrow("OPENOBSERVE_ACCOUNT_INVALID_RESPONSE");expect(saves).toBe(0);
|
||||
17 | });
|
||||
18 | test("account persistence failure stays primary and prevents a success result",async()=>{
|
||||
19 | const failure=new Error("FIXTURE_STORAGE_FAILED");const provision=createAccountProvisioner({create:async()=>({status:200,data:native}),save:async()=>{throw failure}});
|
||||
^
|
||||
error: FIXTURE_STORAGE_FAILED
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:19:20)
|
||||
|
||||
Received: 4 | create: (path: string, body: {email: string; first_name: string; last_name: string}) => Promise<{status: number; data: unknown}>;
|
||||
5 | save: (principal: Principal, account: Account) => Promise<void>;
|
||||
6 | }
|
||||
7 | export function createAccountProvisioner(ports: AccountPorts) {
|
||||
8 | if(typeof ports.create!=="function" || typeof ports.save!=="function")throw new Error("OPENOBSERVE_ACCOUNT_PORTS_REQUIRED");
|
||||
9 | return async (principal: Principal): Promise<Account> => { throw new Error("OPENOBSERVE_ACCOUNT_UNIMPLEMENTED"); };
|
||||
^
|
||||
error: OPENOBSERVE_ACCOUNT_UNIMPLEMENTED
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/scripts/openobserve-accounts.ts:9:72)
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:20:12)
|
||||
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-accounts.test.ts:20:96)
|
||||
(fail) account persistence failure stays primary and prevents a success result [0.16ms]
|
||||
|
||||
0 pass
|
||||
10 fail
|
||||
9 expect() calls
|
||||
Ran 10 tests across 1 file. [5.00ms]
|
||||
@@ -0,0 +1,18 @@
|
||||
Running as unit: run-p4095406-i25072976.scope; invocation ID: 6f530d983b3848a89819be75be5bc503
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-config.test.ts:
|
||||
(pass) Collector uses native file auth and distinct stream-name handling for logs/traces versus metrics [0.49ms]
|
||||
(pass) Grafana queries measured native metric names without legacy namespace or invented suffixes [0.41ms]
|
||||
(pass) Grafana native plugin provisioning uses measured fields and native Basic auth consumers [0.18ms]
|
||||
|
||||
student-tests/openobserve-topology.test.ts:
|
||||
(pass) telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways [0.60ms]
|
||||
(pass) OpenObserve has its own persistent data and a closed private gateway namespace [0.12ms]
|
||||
(pass) storage migration retains required neighbors and existing app OTLP contract without OpenObserve secrets [0.21ms]
|
||||
(pass) Collector and Grafana storage transport targets OpenObserve through the verified gateway [8.81ms]
|
||||
|
||||
7 pass
|
||||
0 fail
|
||||
65 expect() calls
|
||||
Ran 7 tests across 2 files. [43.00ms]
|
||||
@@ -0,0 +1,53 @@
|
||||
Running as unit: run-p4086343-i25052100.scope; invocation ID: 2e572632b49c480ca26b9feea1f53cfb
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-config.test.ts:
|
||||
6 | test("Collector uses native file auth and distinct stream-name handling for logs/traces versus metrics", async () => {
|
||||
7 | const config = Bun.YAML.parse(await readFile(resolve(root,"infra/otel/collector.yaml"),"utf8")) as any;
|
||||
8 | const logs = config.exporters[config.service.pipelines.logs.exporters[0]];
|
||||
9 | const traces = config.exporters[config.service.pipelines.traces.exporters[0]];
|
||||
10 | const metrics = config.exporters[config.service.pipelines.metrics.exporters[0]];
|
||||
11 | expect(logs.headers).toBeDefined();
|
||||
^
|
||||
error: expect(received).toBeDefined()
|
||||
|
||||
Received: undefined
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-config.test.ts:11:24)
|
||||
(fail) Collector uses native file auth and distinct stream-name handling for logs/traces versus metrics [0.55ms]
|
||||
22 | });
|
||||
23 |
|
||||
24 | test("Grafana queries measured native metric names without legacy namespace or invented suffixes", async () => {
|
||||
25 | const dashboard=JSON.parse(await readFile(resolve(root,"infra/grafana/dashboards/messenger.json"),"utf8"));
|
||||
26 | const expressions=dashboard.panels.flatMap((p:any)=>p.targets.map((t:any)=>t.expr));
|
||||
27 | expect(expressions).toContain("sum(rate(http_requests[1m]))");
|
||||
^
|
||||
error: expect(received).toContain(expected)
|
||||
|
||||
Expected to contain: "sum(rate(http_requests[1m]))"
|
||||
Received: [ "sum(rate(messenger_http_requests_total[1m]))", "histogram_quantile(0.95,sum by (le)(rate(messenger_http_duration_seconds_bucket[1m])))",
|
||||
"sum by (outcome)(rate(messenger_jobs_processed_total[1m]))", "histogram_quantile(0.95,sum by(le)(rate(messenger_job_duration_seconds_bucket[1m])))",
|
||||
"histogram_quantile(0.95,sum by(le)(rate(messenger_time_to_ready_seconds_bucket[1m])))",
|
||||
"max(messenger_queue_oldest_age_seconds)"
|
||||
]
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-config.test.ts:27:23)
|
||||
(fail) Grafana queries measured native metric names without legacy namespace or invented suffixes [0.44ms]
|
||||
30 | });
|
||||
31 |
|
||||
32 | test("Grafana native plugin provisioning uses measured fields and native Basic auth consumers", async () => {
|
||||
33 | const config=Bun.YAML.parse(await readFile(resolve(root,"infra/grafana/provisioning/datasources/default.yaml"),"utf8")) as any;
|
||||
34 | const plugin=config.datasources.find((d:any)=>d.type==="openobserve");
|
||||
35 | expect(plugin).toBeDefined();
|
||||
^
|
||||
error: expect(received).toBeDefined()
|
||||
|
||||
Received: undefined
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-config.test.ts:35:18)
|
||||
(fail) Grafana native plugin provisioning uses measured fields and native Basic auth consumers [0.23ms]
|
||||
|
||||
0 pass
|
||||
3 fail
|
||||
3 expect() calls
|
||||
Ran 3 tests across 1 file. [9.00ms]
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"state": "PASS_NATIVE_ERROR_RATIO_MATH",
|
||||
"stage": "MATH_POSTGUARD",
|
||||
"source_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"dashboard_sha256": "b6e8c53beb0950be5e94d8e77984c23ecf6636f5d8bafbbe7ff904dc49624a1f",
|
||||
"rule_sha256": "eb45f4fecaddd99e3adb05a2a485174d5dbfc8133e891a0df93763cb49d96c06",
|
||||
"query_time_milliseconds": 1794785756292.7983,
|
||||
"successful_2xx": [
|
||||
24
|
||||
],
|
||||
"missing_5xx": [],
|
||||
"expression": "(sum(rate(http_requests{status_class=\"5xx\"}[1m])) or vector(0)) / clamp_min(sum(rate(http_requests[1m])),0.001)",
|
||||
"results": [
|
||||
{
|
||||
"case": "present2xx_absent5xx",
|
||||
"values": [
|
||||
0
|
||||
],
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"case": "present_errors2_total10",
|
||||
"values": [
|
||||
0.2
|
||||
],
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"case": "all_series_absent",
|
||||
"values": [],
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"producer_started": false,
|
||||
"accounts_created": false,
|
||||
"encrypted_accounts_unchanged": true,
|
||||
"saved_credential_controls": [
|
||||
{
|
||||
"principal": "ingest",
|
||||
"positive_http": 200,
|
||||
"deny_http": 403
|
||||
},
|
||||
{
|
||||
"principal": "query",
|
||||
"positive_http": 200,
|
||||
"deny_http": 403
|
||||
}
|
||||
],
|
||||
"native_grafana": false,
|
||||
"native_bao": false,
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"state": "FAILED_NATIVE_ERROR_RATIO_MATH",
|
||||
"stage": "MATH_POSTGUARD",
|
||||
"source_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"dashboard_sha256": "ca764e035d05625be43bf2c90de8b0cb46c5294ee9e6f5414c2ba67c1c1a7100",
|
||||
"rule_sha256": "a5cd174eecddc6df6fca7b8db448de9083dff3dbdaca4a3c7edde6c4751775ab",
|
||||
"query_time_milliseconds": 1794785756292.7983,
|
||||
"successful_2xx": [
|
||||
24
|
||||
],
|
||||
"missing_5xx": [],
|
||||
"expression": "sum(rate(http_requests{status_class=\"5xx\"}[1m])) / clamp_min(sum(rate(http_requests[1m])),0.001)",
|
||||
"results": [
|
||||
{
|
||||
"case": "present2xx_absent5xx",
|
||||
"values": [],
|
||||
"pass": false
|
||||
},
|
||||
{
|
||||
"case": "present_errors2_total10",
|
||||
"values": [
|
||||
0.2
|
||||
],
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"case": "all_series_absent",
|
||||
"values": [],
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"producer_started": false,
|
||||
"accounts_created": false,
|
||||
"native_grafana": false,
|
||||
"native_bao": false,
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"checkedAt": "2026-11-15T23:22:37.421Z",
|
||||
"source_receipts": [
|
||||
{
|
||||
"path": "/mnt/data/home/bench-saves/mtuci-vp-remaining-20261115/lab6/.local/oci-copy-21c9f273-7c3d-4235-9522-b2ade24db55c/COPY.json",
|
||||
"sha256": "30810c9b8995926399117a1773dae30e582ff6ddbbddb95d119f341a40edd022"
|
||||
},
|
||||
{
|
||||
"path": "/mnt/data/home/bench-saves/mtuci-vp-remaining-20261115/lab6/.local/oci-copy-21c9f273-7c3d-4235-9522-b2ade24db55c/OPENOBSERVE-COMPLETE.json",
|
||||
"sha256": "14790454c3d21b8f8029facb46f88df86646201325a27f85a72b9d5e8733d504"
|
||||
},
|
||||
{
|
||||
"path": "/mnt/data/home/bench-saves/mtuci-vp-remaining-20261115/lab6/.local/oci-copy-21c9f273-7c3d-4235-9522-b2ade24db55c/openobserve-import-8b8023dc-a86f-4d88-9eeb-e3d94ad755cf/IMPORT-READY.json",
|
||||
"sha256": "4454f60807292c390208dc8d4465c0cd8f528261274f1ec108a55ffaaf037e75"
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"name": "openobserve",
|
||||
"source": "mtuci-vp6-openobserve-cache:v1.1.2",
|
||||
"target": "mtuci-vp7-openobserve-cache:v1.1.2-26618f379c86",
|
||||
"digest": "sha256:26618f379c86b253c0d91624c487dd14b71293699845ecbc8457c94dca14819f",
|
||||
"layers": 26,
|
||||
"image_id": "sha256:26618f379c86b253c0d91624c487dd14b71293699845ecbc8457c94dca14819f",
|
||||
"platform": "linux/amd64",
|
||||
"normalized_docker_identity": true,
|
||||
"upstream_config_digest_not_assumed": true
|
||||
},
|
||||
{
|
||||
"name": "collector",
|
||||
"source": "mtuci-vp6-collector-cache:0.163.2",
|
||||
"target": "mtuci-vp7-collector-cache:0.163.2-a65df9129a5b",
|
||||
"digest": "sha256:a65df9129a5b3f99ee4434c5e53aee1965ff0129eda6a2da75ea917165b7fa6b",
|
||||
"layers": 2,
|
||||
"image_id": "sha256:a65df9129a5b3f99ee4434c5e53aee1965ff0129eda6a2da75ea917165b7fa6b",
|
||||
"platform": "linux/amd64",
|
||||
"normalized_docker_identity": true,
|
||||
"upstream_config_digest_not_assumed": true
|
||||
}
|
||||
],
|
||||
"no_network_pulls": true,
|
||||
"source_cache_mutated": false,
|
||||
"backend_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Running as unit: run-p811388-i25979240.scope; invocation ID: b24ad04394464c889eabbf801c8d22cf
|
||||
PASS_OWN_OPENOBSERVE_ACCOUNTS_CAPTURED_NATIVE_RIGHTS_REQUIRE_GATEWAY
|
||||
{"native_math_results":[{"case":"present2xx_absent5xx","values":[0],"pass":true},{"case":"present_errors2_total10","values":[0.2],"pass":true},{"case":"all_series_absent","values":[],"pass":true}]}
|
||||
OWN_MATH_STORAGE_STOPPED
|
||||
@@ -0,0 +1,4 @@
|
||||
Running as unit: run-p713735-i25887178.scope; invocation ID: 659b6211762d4881a24486a13be5effa
|
||||
{"native_math_results":[{"case":"present2xx_absent5xx","values":[],"pass":false},{"case":"present_errors2_total10","values":[0.2],"pass":true},{"case":"all_series_absent","values":[],"pass":true}]}
|
||||
OWN_MATH_STORAGE_STOPPED
|
||||
OPENOBSERVE_NATIVE_ERROR_RATIO_MATH_FAILED
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"state": "PASS_NATIVE_STORAGE_BOOTSTRAP_ONLY",
|
||||
"stage": "INITIAL_SOURCE_POSTGUARD",
|
||||
"backend_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"nativeOpenObserve": true,
|
||||
"nativeCollectorConfig": true,
|
||||
"nativeApplicationSignals": false,
|
||||
"nativeGrafana": false,
|
||||
"nativeBao": false
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"state": "PASS_PERSISTED_ACTUAL112_ALL3_READBACK",
|
||||
"stage": "SOURCE_POSTGUARD",
|
||||
"parent_failure": {
|
||||
"path": "/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/evidence/openobserve/pipeline-fc1a31a6-7c89-4e10-98d4-fb127a6e352a.json",
|
||||
"sha256": "062ea6e1a505e8aedfcb2c477a1ba0043b626f4c62b9d58dd7e40144de55a6b4",
|
||||
"state": "FAILED",
|
||||
"stage": "CURRENT112_NATIVE_ALL3_READBACK",
|
||||
"code": "OPENOBSERVE_ALL3_NOT_READY_INVALID_OPENOBSERVE_REQUEST_PATH"
|
||||
},
|
||||
"source_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"signals": {
|
||||
"trace_id": "13aa5cd043d490330a867149fc7f4dbf",
|
||||
"span_count": 42,
|
||||
"parent_relations": 41,
|
||||
"correlated_logs": 3,
|
||||
"metrics": [
|
||||
{
|
||||
"query": "sum(http_requests)",
|
||||
"values": [
|
||||
39
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "sum(jobs_processed)",
|
||||
"values": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "histogram_quantile(0.95,sum by(le)(http_duration_bucket))",
|
||||
"values": [
|
||||
0.19149999999999992
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "max(queue_depth)",
|
||||
"values": [
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "max(database_observer_up)",
|
||||
"values": [
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
"time_units": {
|
||||
"start_time": "nanoseconds",
|
||||
"end_time": "nanoseconds",
|
||||
"duration": "microseconds",
|
||||
"_timestamp": "microseconds"
|
||||
},
|
||||
"parent_field": "reference_parent_span_id",
|
||||
"native_grafana": false,
|
||||
"native_bao": false
|
||||
},
|
||||
"restart_retained_same_trace": true,
|
||||
"query_time_milliseconds": 1794785756292.7983,
|
||||
"producer_repeated": false,
|
||||
"smoke_repeated": false,
|
||||
"native_bao": false,
|
||||
"native_grafana": false,
|
||||
"grade5": false,
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"state": "FAILED",
|
||||
"stage": "PERSISTED_ACTUAL112_SIGNALS",
|
||||
"code": "OPENOBSERVE_RESPONSE_INVALID_JSON",
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"state": "FAILED",
|
||||
"stage": "CURRENT112_NATIVE_ALL3_READBACK",
|
||||
"code": "OPENOBSERVE_ALL3_NOT_READY_INVALID_OPENOBSERVE_REQUEST_PATH",
|
||||
"stop_exit": 0
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "https://localhost:18443" --ca-file "/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/.local/pki/lb/ca.crt"
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,4 @@
|
||||
Running as unit: run-p75618-i25176148.scope; invocation ID: 5b8d07e5a0b646b6b4d103601859a6b9
|
||||
PASS_ALL_REQUIRED_REPLICAS_AND_VERIFIED_HTTPS_READY
|
||||
OWN_ALL3_STAND_STOPPED
|
||||
OPENOBSERVE_ALL3_NOT_READY_INVALID_OPENOBSERVE_REQUEST_PATH
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"state": "PASS_NATIVE_QUERY_GUARD_CASES",
|
||||
"stage": "SOURCE_POSTGUARD",
|
||||
"source_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"gateway_config_sha256": "d1d4270e54c8fb3e4964f41950cc2c255dbbb244a5ef63da28c8a5909cf684ab",
|
||||
"native": "HAProxy3.2.26 + OpenObserve1.1.2 + own query SA and mTLS",
|
||||
"results": [
|
||||
{
|
||||
"name": "native bounded search",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "native PromQL GET",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "plugin organizations",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "plugin streams",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "plugin schema",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "plugin bounded values",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "values over1000",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "values over1hour",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "range60seconds",
|
||||
"expected": 200,
|
||||
"actual": 200
|
||||
},
|
||||
{
|
||||
"name": "range3600point5seconds",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "range2hours",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "duplicate size",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "encoded duplicate size",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "duplicate start_time",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "encoded duplicate end_time",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "zero search size",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "over1000 search size",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "inverted search window",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "over1hour search window",
|
||||
"expected": 400,
|
||||
"actual": 400
|
||||
},
|
||||
{
|
||||
"name": "oversized search body",
|
||||
"expected": 413,
|
||||
"actual": 413
|
||||
},
|
||||
{
|
||||
"name": "query ingest forbidden",
|
||||
"expected": 403,
|
||||
"actual": 403
|
||||
},
|
||||
{
|
||||
"name": "query admin forbidden",
|
||||
"expected": 403,
|
||||
"actual": 403
|
||||
},
|
||||
{
|
||||
"name": "stream settings forbidden",
|
||||
"expected": 403,
|
||||
"actual": 403
|
||||
}
|
||||
],
|
||||
"query_size_is_only_request_guard": true,
|
||||
"hard_sql_result_cap_claimed": false,
|
||||
"native_grafana": false,
|
||||
"native_bao": false,
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Running as unit: run-p693978-i25827269.scope; invocation ID: b655417ac32042cd9ad84ced78dbf8ab
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-reader.test.ts:
|
||||
(pass) reader produces fixed historical SQL end and the same PromQL time after three hours [1.50ms]
|
||||
(pass) fresh reader default uses the explicit clock for both native request forms [0.27ms]
|
||||
(pass) reader requires explicit native request and clock ports [0.07ms]
|
||||
|
||||
3 pass
|
||||
0 fail
|
||||
13 expect() calls
|
||||
Ran 3 tests across 1 file. [16.00ms]
|
||||
@@ -0,0 +1,24 @@
|
||||
Running as unit: run-p678964-i25811541.scope; invocation ID: 1d5617b7773c42d4ac1bbd69db1c6a91
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-reader.test.ts:
|
||||
11 | !Number.isSafeInteger(end_time) ||
|
||||
12 | start_time <= 0 ||
|
||||
13 | end_time <= start_time ||
|
||||
14 | end_time - start_time > 3600000000
|
||||
15 | )
|
||||
16 | throw new Error("INVALID_OPENOBSERVE_SEARCH_WINDOW");
|
||||
^
|
||||
error: INVALID_OPENOBSERVE_SEARCH_WINDOW
|
||||
at nativeSearchWindow (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/scripts/openobserve-search-window.ts:16:15)
|
||||
at search (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-signals.ts:31:12)
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-signals.ts:36:24)
|
||||
at async <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-reader.test.ts:19:8)
|
||||
(fail) reader produces fixed historical SQL end and the same PromQL time after three hours [1.26ms]
|
||||
(pass) fresh reader default uses the explicit clock for both native request forms [0.79ms]
|
||||
(pass) reader requires explicit native request and clock ports [0.09ms]
|
||||
|
||||
2 pass
|
||||
1 fail
|
||||
3 expect() calls
|
||||
Ran 3 tests across 1 file. [18.00ms]
|
||||
@@ -0,0 +1,27 @@
|
||||
Running as unit: run-p766601-i25901766.scope; invocation ID: e3719d75a01a45758bdebe5f34f67193
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-account-workflow.test.ts:
|
||||
(pass) saved native200 and403 accounts publish only after both account controls [0.57ms]
|
||||
(pass) positive HTTP401 cannot publish derived credentials [0.15ms]
|
||||
(pass) positive HTTP503 cannot publish derived credentials [0.02ms]
|
||||
(pass) positive HTTP201 cannot publish derived credentials [0.01ms]
|
||||
(pass) unexpected deny HTTP200 cannot publish derived credentials [0.09ms]
|
||||
(pass) unexpected deny HTTP503 cannot publish derived credentials [0.01ms]
|
||||
(pass) invalid saved query shape user cannot publish or probe [0.07ms]
|
||||
(pass) invalid saved query shape user cannot publish or probe [0.01ms]
|
||||
(pass) invalid saved query shape token cannot publish or probe
|
||||
(pass) invalid saved query shape token cannot publish or probe [0.01ms]
|
||||
(pass) extra owner slot never reaches credential publication [0.06ms]
|
||||
(pass) workflow requires explicit native and publishing ports [0.05ms]
|
||||
(pass) invalid query token after a healthy ingest control still cannot publish any derived file [0.15ms]
|
||||
|
||||
student-tests/openobserve-reader.test.ts:
|
||||
(pass) reader produces fixed historical SQL end and the same PromQL time after three hours [1.51ms]
|
||||
(pass) fresh reader default uses the explicit clock for both native request forms [0.28ms]
|
||||
(pass) reader requires explicit native request and clock ports [0.06ms]
|
||||
|
||||
16 pass
|
||||
0 fail
|
||||
37 expect() calls
|
||||
Ran 16 tests across 2 files. [17.00ms]
|
||||
@@ -0,0 +1,5 @@
|
||||
71bbcb9485b3506b19c1cb508c8f483f22a3138e91dfccad0ed9ce412aefd7f6 scripts/runtime.ts
|
||||
6bcc6b9d28ecce952638009760d15a27fabc92386e3a4c84ebc68ca0c9fae2f8 scripts/operator-crypto.ts
|
||||
80852499eb895f524aa8d8a9abab6f4030571e8b88f5445a5298402d18035b35 scripts/runtime-inspect.ts
|
||||
99853f45896e8a8de19af6af741c79e4e51b164870ed80a2a40724b0c1b3ec17 scripts/bootstrap.ts
|
||||
7e45c2be75e4d723303371024e6a38d5846a722c0bc8902256bb9c4364226313 scripts/openobserve-session.ts
|
||||
@@ -0,0 +1,358 @@
|
||||
{
|
||||
"scope": "final OpenObserve source delta; source review is not Grafana/OpenBao acceptance",
|
||||
"backend_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"historical_zip_sha256": "8e15b975a8882a18ad4b74e6e509e58f422cda760c7024bdf880e44e87be8418",
|
||||
"files": [
|
||||
{
|
||||
"path": "API-BOUNDARY.md",
|
||||
"bytes": 8960,
|
||||
"sha256": "1a83553271cb5f4af2b78162d9fe58740dfce9a3f2b2c303018a7b936b50001a"
|
||||
},
|
||||
{
|
||||
"path": "CLAUDE.md",
|
||||
"bytes": 5763,
|
||||
"sha256": "f0d909f8185389f11223099ed8f7ccd9f222e23b31093775239b1c5540fefb1a"
|
||||
},
|
||||
{
|
||||
"path": "HELPERS.md",
|
||||
"bytes": 13260,
|
||||
"sha256": "237e995ecd3a8d4c0e0dda061b5d2bb8c2f3268fadf0f0171644c6bf7ad32d99"
|
||||
},
|
||||
{
|
||||
"path": "READINESS.json",
|
||||
"bytes": 1569,
|
||||
"sha256": "2580fd42447d230938b101d26848cf098e2ebfa27bb5149a89c8bed07fb1ce06"
|
||||
},
|
||||
{
|
||||
"path": "REPORT.md",
|
||||
"bytes": 19648,
|
||||
"sha256": "825a24cfd1fdb6f5fb7d3ba0486190235e9db4d39c44197d63a52ce74fccc6fc"
|
||||
},
|
||||
{
|
||||
"path": "RUN.md",
|
||||
"bytes": 23906,
|
||||
"sha256": "b5c18b4a54a9b6b84a4a6c984aaa169e701bc344df4c485aee4e0567d7e0fd55"
|
||||
},
|
||||
{
|
||||
"path": "STATUS.md",
|
||||
"bytes": 10574,
|
||||
"sha256": "23f03f429dc706c0fb5ea67de0ffcb5de738fe00eee036235bf76373fbe7f121"
|
||||
},
|
||||
{
|
||||
"path": "compose.yaml",
|
||||
"bytes": 40841,
|
||||
"sha256": "cc75df66ee0554e71ce57f80a9889ed6fe04d060c8cc6c03f824734ca4d5f2a7"
|
||||
},
|
||||
{
|
||||
"path": "config/api1-gateway.cfg",
|
||||
"bytes": 1541,
|
||||
"sha256": "23e97b700db9371e382b4cfb35f636571ee93c661aafaff315ee4d9eef5f9a1c"
|
||||
},
|
||||
{
|
||||
"path": "config/api2-gateway.cfg",
|
||||
"bytes": 1541,
|
||||
"sha256": "23e97b700db9371e382b4cfb35f636571ee93c661aafaff315ee4d9eef5f9a1c"
|
||||
},
|
||||
{
|
||||
"path": "config/broker-gateway.cfg",
|
||||
"bytes": 595,
|
||||
"sha256": "d5bb3bfc4a2be7ab0fc6d4b1c4b92dd9a4d863b569b9aded93ac1a36d8fbafb8"
|
||||
},
|
||||
{
|
||||
"path": "config/collector-gateway.cfg",
|
||||
"bytes": 857,
|
||||
"sha256": "43256d3db1f1c9c97708586c594e567ae652bec22af73e23c2ca6124fc7f1ebf"
|
||||
},
|
||||
{
|
||||
"path": "config/grafana.cfg",
|
||||
"bytes": 713,
|
||||
"sha256": "95f38876f4a9e1c1d28721aec103e0f61ea560eeae85d2da2cdaf2bb1276a40b"
|
||||
},
|
||||
{
|
||||
"path": "config/lb.cfg",
|
||||
"bytes": 1137,
|
||||
"sha256": "f41774bd38f42c6e02ded5d81233d6f7053dd72fc5192aab4eeae4d0940fc267"
|
||||
},
|
||||
{
|
||||
"path": "config/openobserve-gateway.cfg",
|
||||
"bytes": 4396,
|
||||
"sha256": "d1d4270e54c8fb3e4964f41950cc2c255dbbb244a5ef63da28c8a5909cf684ab"
|
||||
},
|
||||
{
|
||||
"path": "config/s3-gateway.cfg",
|
||||
"bytes": 591,
|
||||
"sha256": "3d166d8f3cb05dd91dba9a302af20f0e75c18d9b770b2c32c4c2f7cd337df4dd"
|
||||
},
|
||||
{
|
||||
"path": "config/worker.cfg",
|
||||
"bytes": 1312,
|
||||
"sha256": "aa3fe43ef7f392f89aabe2a4773f4e270e0806f22c07b2ca0fe0f346ab6b0433"
|
||||
},
|
||||
{
|
||||
"path": "contracts/trust-matrix.md",
|
||||
"bytes": 8444,
|
||||
"sha256": "9742abb419bd5f5e135a8f57bcdc02629f67f66cc7fd0e23927fcd8a8c30b37a"
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-MIGRATION.md",
|
||||
"bytes": 11698,
|
||||
"sha256": "c55df80bf2cbd0690f736be616b67a74e991ff02eb99d5cae4ea69c6fa4c1251"
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-NATIVE-IDENTITIES.json",
|
||||
"bytes": 2915,
|
||||
"sha256": "a96ee905c87ca284a8c71f662e1d1034354c525e08e8215078bd63ea7da23a8d"
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-NATIVE-SCHEMA.json",
|
||||
"bytes": 2193,
|
||||
"sha256": "63b462abcb79076587917270a22eb88d7b0d355f4a1ee31f31dddbbfa1aeb1d4"
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-SHARED-BOUNDARY.md",
|
||||
"bytes": 9326,
|
||||
"sha256": "67c407ece7d7465c94004cfba13688d7296282f34b00e5e689bbf7489bdf1d95"
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/dashboards/messenger.json",
|
||||
"bytes": 11999,
|
||||
"sha256": "ca764e035d05625be43bf2c90de8b0cb46c5294ee9e6f5414c2ba67c1c1a7100"
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/provisioning/alerting/messenger.yaml",
|
||||
"bytes": 3266,
|
||||
"sha256": "a5cd174eecddc6df6fca7b8db448de9083dff3dbdaca4a3c7edde6c4751775ab"
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/provisioning/dashboards/default.yaml",
|
||||
"bytes": 159,
|
||||
"sha256": "8e261b2e380e674e92ad23c9c309e73ba72e6893326ebaa4eafcaac939ea4645"
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/provisioning/datasources/default.yaml",
|
||||
"bytes": 992,
|
||||
"sha256": "68ad7981cc813d8e334904c97ea8c7e07dc5c15e99512fde98cbb1464e964f5a"
|
||||
},
|
||||
{
|
||||
"path": "infra/openbao/api-agent.hcl",
|
||||
"bytes": 1199,
|
||||
"sha256": "6784b3f17bdcf7e631fc1979626810cd31b2a3f31aa6dc4090a79e0e21085efb"
|
||||
},
|
||||
{
|
||||
"path": "infra/openbao/worker-agent.hcl",
|
||||
"bytes": 1424,
|
||||
"sha256": "1383b8ebc3fe28316f8489f10c85c7d0e186e9327fa3e2f9b26ea4372ea6c442"
|
||||
},
|
||||
{
|
||||
"path": "infra/otel/collector.yaml",
|
||||
"bytes": 1524,
|
||||
"sha256": "1f1bd45394b54887d5e9f0a0845b29cf57006f8e660ca2cad6edf90fb2c617e8"
|
||||
},
|
||||
{
|
||||
"path": "package.json",
|
||||
"bytes": 930,
|
||||
"sha256": "c3dd292bacb9d7f169eeb3838eef48cc064e329b03e26d1a2b8b0dbf2adcfe83"
|
||||
},
|
||||
{
|
||||
"path": "scripts/bootstrap.ts",
|
||||
"bytes": 4085,
|
||||
"sha256": "617f461d53c2fb49b55dbd80472c02c0b4e3514b9fceae22c6bae9a0858470b4"
|
||||
},
|
||||
{
|
||||
"path": "scripts/check-source.ts",
|
||||
"bytes": 1926,
|
||||
"sha256": "7880251e1c9d35208687233c7e3cd9099f235c0299f4b2e9585ebb284a6c9d3c"
|
||||
},
|
||||
{
|
||||
"path": "scripts/hooks.ts",
|
||||
"bytes": 3197,
|
||||
"sha256": "83bd42a68e5152947bf0eb14b813e80b1f8b9ad6f1d3463a78153c3426fa23ed"
|
||||
},
|
||||
{
|
||||
"path": "scripts/lab.ts",
|
||||
"bytes": 5192,
|
||||
"sha256": "7accd3365d539b89a21f626feec4fb7eda176bb9dbbe97adb704bf4ff3336f7d"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-accounts.ts",
|
||||
"bytes": 1523,
|
||||
"sha256": "1703e28f2f5b229706ad613a01aa1590251defc182503e09d993e4e684d390f5"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-cache.ts",
|
||||
"bytes": 4748,
|
||||
"sha256": "01e71c3565d9c841b04843c28c5823d4bebe53ce4b52c6cb39e167a7e65288a2"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-config-check.ts",
|
||||
"bytes": 351,
|
||||
"sha256": "ce9f046b835108b3aabe4e7f89511aa343b823cbd68aa67143dfd55009f619c9"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-pipeline.ts",
|
||||
"bytes": 9181,
|
||||
"sha256": "421d8351b7d411f2d1a32710d4a6375071e2362c2bbf1dbca9a3c242ee47d680"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-query-policy.ts",
|
||||
"bytes": 3639,
|
||||
"sha256": "51f3d8178ddaa903d5f85e05404be65a19a8e7f085d65ce25627db39be7d9638"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-readback.ts",
|
||||
"bytes": 6133,
|
||||
"sha256": "3f25dd12c0517e89276dbad6e25c1701451eeaeb9fae9b28014e619c8c90e1e5"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-request-path.ts",
|
||||
"bytes": 284,
|
||||
"sha256": "11ec86c0cf9304ce77385e6a6b88ffca99ec42a6ba5f33a528f0ec1d7f7fa02c"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-response.ts",
|
||||
"bytes": 315,
|
||||
"sha256": "68484c6546da9f81179bfb81972403d1a974eeb229f4eae23c5c26f8de412344"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-search-window.ts",
|
||||
"bytes": 568,
|
||||
"sha256": "9ce4c98d564f72e92447322dc3b3f0ffb9b7934bc5d8ab85851914080d218cf3"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-session.ts",
|
||||
"bytes": 7062,
|
||||
"sha256": "4b2b8c00a99dd28fdf0fc44f5fd0a50a5e8a4fe5117c6ddabff72f1981447b9f"
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve.ts",
|
||||
"bytes": 8252,
|
||||
"sha256": "e21a5f855a356edad0bb73bfc969961665a0040182f86ca04a71bcd45307a5be"
|
||||
},
|
||||
{
|
||||
"path": "scripts/operator-crypto.ts",
|
||||
"bytes": 1976,
|
||||
"sha256": "6bcc6b9d28ecce952638009760d15a27fabc92386e3a4c84ebc68ca0c9fae2f8"
|
||||
},
|
||||
{
|
||||
"path": "scripts/reload-gateway.ts",
|
||||
"bytes": 950,
|
||||
"sha256": "30608bf669a9a0575754821555cf9e038880e2f17a42ec3e34cb2b3fc5148eb0"
|
||||
},
|
||||
{
|
||||
"path": "scripts/runtime-inspect.ts",
|
||||
"bytes": 687,
|
||||
"sha256": "80852499eb895f524aa8d8a9abab6f4030571e8b88f5445a5298402d18035b35"
|
||||
},
|
||||
{
|
||||
"path": "scripts/runtime.ts",
|
||||
"bytes": 2811,
|
||||
"sha256": "71bbcb9485b3506b19c1cb508c8f483f22a3138e91dfccad0ed9ce412aefd7f6"
|
||||
},
|
||||
{
|
||||
"path": "scripts/telemetry-dashboard.ts",
|
||||
"bytes": 2470,
|
||||
"sha256": "5f980e12e790b9fce2e52fedbb8c72c7d417cd751ada746c35a7f7b65b123267"
|
||||
},
|
||||
{
|
||||
"path": "scripts/test-session.ts",
|
||||
"bytes": 3111,
|
||||
"sha256": "68db319b5a0c284b8cfd2176abd9da48914001a9f943b3d98529f703e7b977fc"
|
||||
},
|
||||
{
|
||||
"path": "scripts/topology.ts",
|
||||
"bytes": 16943,
|
||||
"sha256": "5c0f41a0ffb911a329912a90b510525be9c8fac83aa21e738b300d67dce6fd17"
|
||||
},
|
||||
{
|
||||
"path": "scripts/validate-gateways.ts",
|
||||
"bytes": 1034,
|
||||
"sha256": "731883160a910344b2caca533d711781be5223e91bcba114c39365940904d49a"
|
||||
},
|
||||
{
|
||||
"path": "scripts/validate-source.ts",
|
||||
"bytes": 1227,
|
||||
"sha256": "26441f7f1643a9545c22d3068476c2d6394c5539244f80cc29a3559c093210bd"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/extended.ts",
|
||||
"bytes": 9382,
|
||||
"sha256": "11ff082e65cd5a150b35b5cd717a9234471cdaed30d7c942af4496458b38d3a8"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/matrix.ts",
|
||||
"bytes": 5170,
|
||||
"sha256": "d4b1e7a2264a134e2542c1983f3a40a7308cd5d1504462cc401640e9105bc572"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-accounts.test.ts",
|
||||
"bytes": 2425,
|
||||
"sha256": "830347ddb1477b4158021e37ea2a6d0ab35943d68488e74461d8e10ecc345dab"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-config.test.ts",
|
||||
"bytes": 3802,
|
||||
"sha256": "5afc5d4419f93df92311e0b4904061178fc3d879f9570def5be51d7523f2f927"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-gateway.ts",
|
||||
"bytes": 10136,
|
||||
"sha256": "e4a199e942ed10f1e4aadb321b54ca971a3c23c1816664ed3565575199a918f7"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-request-path.test.ts",
|
||||
"bytes": 1024,
|
||||
"sha256": "08b875e35c7b0e45e50a3ad5be849c75f90b250a41ed18ac559405749fdf031f"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-response.test.ts",
|
||||
"bytes": 704,
|
||||
"sha256": "75a1a1e0bf3cf70c319e71546dac55cd68f58eb52eb14d0fe29628bed3a3ae73"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-search-window.test.ts",
|
||||
"bytes": 812,
|
||||
"sha256": "7297c4f28102702850d9cac563bb83ee21014c1bbb6f8d4cb3bb56346619ed5c"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-signals.ts",
|
||||
"bytes": 5226,
|
||||
"sha256": "cc5bd4dbb69e639b274c4091214d913d7c3bdcc14ab0a4d7e91cad1c73c84d44"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-topology.test.ts",
|
||||
"bytes": 2633,
|
||||
"sha256": "1e32aa6b2e28cc4c89350a7c04d05c467870d25d42f727b6f19b31c2fc5552d8"
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-transport.ts",
|
||||
"bytes": 7321,
|
||||
"sha256": "83b7c8a3e6bc52c6fc88a3eaefaac4ee48d1bedae1dfe3d2249d40b4d20cd9e6"
|
||||
}
|
||||
],
|
||||
"reused_unchanged_checkpoint_guards": [
|
||||
{
|
||||
"path": "scripts/command-runner.ts",
|
||||
"sha256": "9c7dfbb100714a1512f31201e68318b25aa98c6328d923c5645a53d2b2ab7335"
|
||||
},
|
||||
{
|
||||
"path": "scripts/checkpoint-guards.ts",
|
||||
"sha256": "3cc6268f23f8b6d4c36f5bf131a3a3c434fc65cce2a38dad7fd343bcc810230a"
|
||||
},
|
||||
{
|
||||
"path": "scripts/package-checkpoint.ts",
|
||||
"sha256": "4f47f14b6e48fe12909c7a4e02b6a25281932667418f98bec7527a93dfbdf1b0"
|
||||
},
|
||||
{
|
||||
"path": "scripts/preflight-build.ts",
|
||||
"sha256": "f47cda3e94ae1529e6a70b8fee30bf3b94d7e0d2566c0963a4d29044b7315de9"
|
||||
}
|
||||
],
|
||||
"source_checks": "evidence/openobserve/source/source-checks.json",
|
||||
"terminal_outcomes": "evidence/openobserve/terminal-outcomes.json",
|
||||
"all3": "evidence/openobserve/persisted-readback-8fa17baa-a9f5-419c-bf24-e9ac820fdfbf.json",
|
||||
"transport": "evidence/openobserve/transport-e500b6fc-a04d-47f1-9058-d52a9bf3c27a.json",
|
||||
"query_guard": "evidence/openobserve/query-guard-d359332e-24a1-4fb4-a357-2a193a39706e.json",
|
||||
"native_grafana": false,
|
||||
"native_bao": false,
|
||||
"grade5": false
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
{
|
||||
"scope": "exact three confirmed review corrections and honest metadata; no backend/guard/product expansion",
|
||||
"parent_manifest": {
|
||||
"path": "evidence/openobserve/review-final-source.json",
|
||||
"sha256": "bde207c37c70d540a602ecf23410f6363cce7198c0cdc9ce4e62453b2f0fb227",
|
||||
"files": 65
|
||||
},
|
||||
"changed": [
|
||||
{
|
||||
"path": "CLAUDE.md",
|
||||
"previous_sha256": "f0d909f8185389f11223099ed8f7ccd9f222e23b31093775239b1c5540fefb1a",
|
||||
"sha256": "1c9428cb6943e2194f884b2079a948c83cca3ed5373b1f2a6373edf14940c805",
|
||||
"bytes": 6658
|
||||
},
|
||||
{
|
||||
"path": "HELPERS.md",
|
||||
"previous_sha256": "237e995ecd3a8d4c0e0dda061b5d2bb8c2f3268fadf0f0171644c6bf7ad32d99",
|
||||
"sha256": "be83252f768ea894990d69216fd440e8d6c4ce0ec17980497dd48d3d1febd517",
|
||||
"bytes": 14041
|
||||
},
|
||||
{
|
||||
"path": "READINESS.json",
|
||||
"previous_sha256": "2580fd42447d230938b101d26848cf098e2ebfa27bb5149a89c8bed07fb1ce06",
|
||||
"sha256": "bd006ad3088e95c9a7622061deb88c362e4a960ba129197e406c70b349fd478c",
|
||||
"bytes": 1818
|
||||
},
|
||||
{
|
||||
"path": "REPORT.md",
|
||||
"previous_sha256": "825a24cfd1fdb6f5fb7d3ba0486190235e9db4d39c44197d63a52ce74fccc6fc",
|
||||
"sha256": "e13c0dbe2597bd1c60176e98f22200d324008b2cf367ddaa29bc23a6cca7d5d9",
|
||||
"bytes": 21219
|
||||
},
|
||||
{
|
||||
"path": "RUN.md",
|
||||
"previous_sha256": "b5c18b4a54a9b6b84a4a6c984aaa169e701bc344df4c485aee4e0567d7e0fd55",
|
||||
"sha256": "310feaedca0b9f408c69594483f043f77a046c88075dafdae4d8ca411dc13216",
|
||||
"bytes": 25477
|
||||
},
|
||||
{
|
||||
"path": "STATUS.md",
|
||||
"previous_sha256": "23f03f429dc706c0fb5ea67de0ffcb5de738fe00eee036235bf76373fbe7f121",
|
||||
"sha256": "f5604e51791e218da3c6d255970c3f94e4ccc34311ce14f224911a95d2cba53f",
|
||||
"bytes": 12103
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-MIGRATION.md",
|
||||
"previous_sha256": "c55df80bf2cbd0690f736be616b67a74e991ff02eb99d5cae4ea69c6fa4c1251",
|
||||
"sha256": "2c90b09e8342de6051e8b48ce7ce36942dccb8a0324198621e9ca55d31d89bb2",
|
||||
"bytes": 12385
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/dashboards/messenger.json",
|
||||
"previous_sha256": "ca764e035d05625be43bf2c90de8b0cb46c5294ee9e6f5414c2ba67c1c1a7100",
|
||||
"sha256": "b6e8c53beb0950be5e94d8e77984c23ecf6636f5d8bafbbe7ff904dc49624a1f",
|
||||
"bytes": 12014
|
||||
},
|
||||
{
|
||||
"path": "infra/grafana/provisioning/alerting/messenger.yaml",
|
||||
"previous_sha256": "a5cd174eecddc6df6fca7b8db448de9083dff3dbdaca4a3c7edde6c4751775ab",
|
||||
"sha256": "eb45f4fecaddd99e3adb05a2a485174d5dbfc8133e891a0df93763cb49d96c06",
|
||||
"bytes": 3281
|
||||
},
|
||||
{
|
||||
"path": "package.json",
|
||||
"previous_sha256": "c3dd292bacb9d7f169eeb3838eef48cc064e329b03e26d1a2b8b0dbf2adcfe83",
|
||||
"sha256": "6ebd4cf9fa18e34f02242352a56330849074eb28b9f04073c3f2778c05f3d379",
|
||||
"bytes": 1022
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve-accounts.ts",
|
||||
"previous_sha256": "1703e28f2f5b229706ad613a01aa1590251defc182503e09d993e4e684d390f5",
|
||||
"sha256": "d78f380a68de729361537a9572c42366631b48a03b7143c9799433bbecdab3ae",
|
||||
"bytes": 3918
|
||||
},
|
||||
{
|
||||
"path": "scripts/openobserve.ts",
|
||||
"previous_sha256": "e21a5f855a356edad0bb73bfc969961665a0040182f86ca04a71bcd45307a5be",
|
||||
"sha256": "06ed7dd00eb72116ae00584c31b15b042264bc00b758d8a4606a5146042431f4",
|
||||
"bytes": 9835
|
||||
},
|
||||
{
|
||||
"path": "scripts/telemetry-dashboard.ts",
|
||||
"previous_sha256": "5f980e12e790b9fce2e52fedbb8c72c7d417cd751ada746c35a7f7b65b123267",
|
||||
"sha256": "952448998db4ae5817a36f45afab70a64de96c0fa2cc6b145eb497b3373c213d",
|
||||
"bytes": 2485
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-signals.ts",
|
||||
"previous_sha256": "cc5bd4dbb69e639b274c4091214d913d7c3bdcc14ab0a4d7e91cad1c73c84d44",
|
||||
"sha256": "1cdffd9274eb9dadfec0e6e30bfa24eae51c63ccc6fa4294503f1089f5f6d0cd",
|
||||
"bytes": 6253
|
||||
}
|
||||
],
|
||||
"added": [
|
||||
{
|
||||
"path": "student-tests/openobserve-reader.test.ts",
|
||||
"sha256": "0abb3e62bd4923ba5a21dd369e3ff75dc2724f89cab92ce99b836328157c1a15",
|
||||
"bytes": 3273
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-account-workflow.test.ts",
|
||||
"sha256": "9eb8c00c84b89ed3a9866b07cdd498b031d4603d1ca192364fd5a4dd4c220625",
|
||||
"bytes": 3283
|
||||
},
|
||||
{
|
||||
"path": "student-tests/openobserve-error-ratio.ts",
|
||||
"sha256": "474ae4e7eac551c54e9377b2f4ed04b61dd58cbef993d1711d603a0f8b4e1c94",
|
||||
"bytes": 9204
|
||||
},
|
||||
{
|
||||
"path": "docs/OPENOBSERVE-REVIEW-FIX-CASES.md",
|
||||
"sha256": "b285ad98fc06b2685a2d7ac6b22960819907ba1ee4585adb7b8af0c0969ef5c1",
|
||||
"bytes": 1940
|
||||
}
|
||||
],
|
||||
"unchanged_parent_paths": [
|
||||
"API-BOUNDARY.md",
|
||||
"compose.yaml",
|
||||
"config/api1-gateway.cfg",
|
||||
"config/api2-gateway.cfg",
|
||||
"config/broker-gateway.cfg",
|
||||
"config/collector-gateway.cfg",
|
||||
"config/grafana.cfg",
|
||||
"config/lb.cfg",
|
||||
"config/openobserve-gateway.cfg",
|
||||
"config/s3-gateway.cfg",
|
||||
"config/worker.cfg",
|
||||
"contracts/trust-matrix.md",
|
||||
"docs/OPENOBSERVE-NATIVE-IDENTITIES.json",
|
||||
"docs/OPENOBSERVE-NATIVE-SCHEMA.json",
|
||||
"docs/OPENOBSERVE-SHARED-BOUNDARY.md",
|
||||
"infra/grafana/provisioning/dashboards/default.yaml",
|
||||
"infra/grafana/provisioning/datasources/default.yaml",
|
||||
"infra/openbao/api-agent.hcl",
|
||||
"infra/openbao/worker-agent.hcl",
|
||||
"infra/otel/collector.yaml",
|
||||
"scripts/bootstrap.ts",
|
||||
"scripts/check-source.ts",
|
||||
"scripts/hooks.ts",
|
||||
"scripts/lab.ts",
|
||||
"scripts/openobserve-cache.ts",
|
||||
"scripts/openobserve-config-check.ts",
|
||||
"scripts/openobserve-pipeline.ts",
|
||||
"scripts/openobserve-query-policy.ts",
|
||||
"scripts/openobserve-readback.ts",
|
||||
"scripts/openobserve-request-path.ts",
|
||||
"scripts/openobserve-response.ts",
|
||||
"scripts/openobserve-search-window.ts",
|
||||
"scripts/openobserve-session.ts",
|
||||
"scripts/operator-crypto.ts",
|
||||
"scripts/reload-gateway.ts",
|
||||
"scripts/runtime-inspect.ts",
|
||||
"scripts/runtime.ts",
|
||||
"scripts/test-session.ts",
|
||||
"scripts/topology.ts",
|
||||
"scripts/validate-gateways.ts",
|
||||
"scripts/validate-source.ts",
|
||||
"student-tests/extended.ts",
|
||||
"student-tests/matrix.ts",
|
||||
"student-tests/openobserve-accounts.test.ts",
|
||||
"student-tests/openobserve-config.test.ts",
|
||||
"student-tests/openobserve-gateway.ts",
|
||||
"student-tests/openobserve-request-path.test.ts",
|
||||
"student-tests/openobserve-response.test.ts",
|
||||
"student-tests/openobserve-search-window.test.ts",
|
||||
"student-tests/openobserve-topology.test.ts",
|
||||
"student-tests/openobserve-transport.ts"
|
||||
],
|
||||
"backend_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"historical_zip_sha256": "8e15b975a8882a18ad4b74e6e509e58f422cda760c7024bdf880e44e87be8418",
|
||||
"source_checks": "evidence/openobserve/source/source-checks.json",
|
||||
"math_red": "evidence/openobserve/error-ratio-cdf77d79-e4ab-4d2e-ae4b-9c3fcb5ab645.json",
|
||||
"math_and_saved_account_green": "evidence/openobserve/error-ratio-4b928b8b-c1eb-4b24-a9a9-b9579f1fda93.json",
|
||||
"native_invalid_token_tested": false,
|
||||
"native_grafana": false,
|
||||
"native_bao": false,
|
||||
"grade5": false
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
795632185591be4d30b9cb40e11cc94a91f9b6a7df41323bf200abc84977cd53 scripts/openobserve.ts
|
||||
c09e7870f82878da2cb9f714efece6328011608f09dafa095dfbf3266f710675 scripts/openobserve-accounts.ts
|
||||
199a022dcf6b88ecc8c5121af33776660dad1d467eebb8a62de74a3b177ba954 scripts/openobserve-cache.ts
|
||||
26f8688f48a2214fcc427bc6fd3312687c5719d34ce871d0246552c7ded41ec4 scripts/topology.ts
|
||||
3a7d9fb24e6cd11850a45ceed0504954d6551eeeec0d866828d17b56b6864ff4 scripts/telemetry-dashboard.ts
|
||||
30608bf669a9a0575754821555cf9e038880e2f17a42ec3e34cb2b3fc5148eb0 scripts/reload-gateway.ts
|
||||
1f1bd45394b54887d5e9f0a0845b29cf57006f8e660ca2cad6edf90fb2c617e8 infra/otel/collector.yaml
|
||||
01dd79129caf0ad8750acec539efd5efd3c856febd2c854599f571313ecd0e0a infra/grafana/provisioning/datasources/default.yaml
|
||||
5eeeec756a5c0f57a71a9a71e238bf4867a94bc5bf8bb02f25aed8c698fa0cb8 student-tests/openobserve-accounts.test.ts
|
||||
c733e807b9994cf12805c9e854be7def2fbfb08b8c84240d5e9fbd8683e12858 student-tests/openobserve-config.test.ts
|
||||
4087a686c5032b20eefb706c7f0699437c310cc43828fe361cfd09b797a6b8ef student-tests/openobserve-topology.test.ts
|
||||
64dc36cf9f0edfa9199cf7d34fb910820c9537947fdcecf3d4b609859d3ffd15 student-tests/matrix.ts
|
||||
ea0fbd213711a3e1b13f73c38ff42c5b2043de969615fedfff4ad2f82cd0a148 student-tests/extended.ts
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"check": "typecheck",
|
||||
"exit": 0
|
||||
},
|
||||
{
|
||||
"check": "unit",
|
||||
"exit": 0
|
||||
},
|
||||
{
|
||||
"check": "format",
|
||||
"exit": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS_NATIVE_FORMAT_NONWRITING_CHECK
|
||||
$ bun scripts/format-check.ts
|
||||
@@ -0,0 +1,2 @@
|
||||
$ bun check --no-script --threads=2
|
||||
✓ No type errors in 88 files [84.17ms]
|
||||
@@ -0,0 +1,120 @@
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
$ bun test student-tests/security-guards.test.ts student-tests/kv-secrets.test.ts student-tests/public-endpoint.test.ts student-tests/operator-crypto.test.ts student-tests/pki.test.ts student-tests/grpc-probe.test.ts student-tests/transport-negative.test.ts student-tests/command-runner.test.ts student-tests/checkpoint-guards.test.ts student-tests/openobserve-topology.test.ts student-tests/openobserve-config.test.ts student-tests/openobserve-accounts.test.ts student-tests/openobserve-request-path.test.ts student-tests/openobserve-response.test.ts student-tests/openobserve-search-window.test.ts student-tests/openobserve-reader.test.ts student-tests/openobserve-account-workflow.test.ts
|
||||
|
||||
student-tests/openobserve-response.test.ts:
|
||||
(pass) HTTP401 text error preserves native HTTP outcome [0.14ms]
|
||||
(pass) HTTP422 text error preserves native HTTP outcome
|
||||
(pass) HTTP500 text error preserves native HTTP outcome
|
||||
(pass) HTTP200 JSON remains parsed [0.04ms]
|
||||
(pass) HTTP200 malformed success retains the status in its error [0.07ms]
|
||||
|
||||
student-tests/openobserve-account-workflow.test.ts:
|
||||
(pass) saved native200 and403 accounts publish only after both account controls [0.77ms]
|
||||
(pass) positive HTTP401 cannot publish derived credentials [0.11ms]
|
||||
(pass) positive HTTP503 cannot publish derived credentials [0.03ms]
|
||||
(pass) positive HTTP201 cannot publish derived credentials [0.01ms]
|
||||
(pass) unexpected deny HTTP200 cannot publish derived credentials [0.09ms]
|
||||
(pass) unexpected deny HTTP503 cannot publish derived credentials [0.02ms]
|
||||
(pass) invalid saved query shape user cannot publish or probe [0.11ms]
|
||||
(pass) invalid saved query shape user cannot publish or probe [0.03ms]
|
||||
(pass) invalid saved query shape token cannot publish or probe [0.01ms]
|
||||
(pass) invalid saved query shape token cannot publish or probe
|
||||
(pass) extra owner slot never reaches credential publication [0.08ms]
|
||||
(pass) workflow requires explicit native and publishing ports [0.03ms]
|
||||
(pass) invalid query token after a healthy ingest control still cannot publish any derived file [0.12ms]
|
||||
|
||||
student-tests/openobserve-config.test.ts:
|
||||
(pass) Collector uses native file auth and distinct stream-name handling for logs/traces versus metrics [0.55ms]
|
||||
(pass) Grafana queries measured native metric names without legacy namespace or invented suffixes [0.61ms]
|
||||
(pass) Grafana native plugin provisioning uses measured fields and native Basic auth consumers [0.27ms]
|
||||
(pass) Grafana mounts native alert rules using the measured datasource and metric names [0.38ms]
|
||||
|
||||
student-tests/pki.test.ts:
|
||||
(pass) issued leaf verifies exact SAN, issuer, validity and matching key [413.38ms]
|
||||
|
||||
student-tests/openobserve-accounts.test.ts:
|
||||
(pass) native service-account success saves exact credential before returning without a human-user API [0.31ms]
|
||||
(pass) native HTTP401 never publishes an account [0.08ms]
|
||||
(pass) native HTTP403 never publishes an account [0.01ms]
|
||||
(pass) native HTTP500 never publishes an account
|
||||
(pass) invalid native result fails closed code 3 [0.07ms]
|
||||
(pass) invalid native result fails closed token 0
|
||||
(pass) invalid native result fails closed token 4097
|
||||
(pass) invalid native result fails closed user 23
|
||||
(pass) invalid native result fails closed token 4
|
||||
(pass) account persistence failure stays primary and prevents a success result [0.11ms]
|
||||
|
||||
student-tests/checkpoint-guards.test.ts:
|
||||
(pass) checkpoint second snapshot rejects changed bytes, additions and removals [0.23ms]
|
||||
(pass) historical evidence never replaces existing different bytes and permits exact identical bytes [0.40ms]
|
||||
(pass) handover lease rejects a different valid source generation after initial verification [0.71ms]
|
||||
(pass) handover lease rejects source mutation even when receipt is unchanged [0.21ms]
|
||||
(pass) historical finalization requires its accepted source and build generation binding [0.20ms]
|
||||
|
||||
student-tests/kv-secrets.test.ts:
|
||||
(pass) reads the native KVv2 envelope for api [2.09ms]
|
||||
(pass) reads the native KVv2 envelope for worker [0.03ms]
|
||||
(pass) rejects missing KVv2 nesting and required fields [0.06ms]
|
||||
(pass) rejects credentials for another role [0.03ms]
|
||||
(pass) rejects invalid metadata and denied responses [0.08ms]
|
||||
|
||||
student-tests/openobserve-request-path.test.ts:
|
||||
(pass) native URLSearchParams PromQL spaces stay valid before any credential or process port [0.15ms]
|
||||
(pass) rejects invalid request URI "https://foreign/api/default/streams" [0.03ms]
|
||||
(pass) rejects invalid request URI "/api/foreign/streams"
|
||||
(pass) rejects invalid request URI "/api/default/streams\r\nX: bad"
|
||||
(pass) rejects invalid request URI "/api/default/_search#fragment"
|
||||
(pass) rejects invalid request URI "/api/default/space in path"
|
||||
(pass) pinned plugin organization editor endpoint remains available [0.01ms]
|
||||
|
||||
student-tests/openobserve-search-window.test.ts:
|
||||
(pass) actual fractional filesystem mtime serializes native integer microseconds [0.10ms]
|
||||
(pass) invalid search window NaN 1 fails before a native call [0.03ms]
|
||||
(pass) invalid search window 1 Infinity fails before a native call
|
||||
(pass) invalid search window -1 100 fails before a native call
|
||||
(pass) invalid search window 1 1.7976931348623157e+308 fails before a native call
|
||||
(pass) invalid search window 10 1 fails before a native call
|
||||
(pass) invalid search window 1 1 fails before a native call
|
||||
(pass) invalid search window 1 3600002 fails before a native call [0.01ms]
|
||||
|
||||
student-tests/openobserve-topology.test.ts:
|
||||
(pass) telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways [0.45ms]
|
||||
(pass) OpenObserve has its own persistent data and a closed private gateway namespace [0.08ms]
|
||||
(pass) storage migration retains required neighbors and existing app OTLP contract without OpenObserve secrets [0.16ms]
|
||||
(pass) Collector and Grafana storage transport targets OpenObserve through the verified gateway [0.16ms]
|
||||
(pass) Grafana query gateway permits actual editor metadata and guards native request fields [0.05ms]
|
||||
|
||||
student-tests/command-runner.test.ts:
|
||||
(pass) secondary diagnostic failures cannot replace command exit and both receipt writers are attempted [0.24ms]
|
||||
(pass) successful and explicitly allowed command outcomes are returned without diagnostic writes [0.18ms]
|
||||
(pass) runner requires explicit fake ports and preserves primary execution error [0.11ms]
|
||||
|
||||
student-tests/operator-crypto.test.ts:
|
||||
(pass) operator envelope authenticates ciphertext and hides plaintext [140.43ms]
|
||||
(pass) operator envelope requires a sufficiently long passphrase [0.13ms]
|
||||
|
||||
student-tests/public-endpoint.test.ts:
|
||||
(pass) selects the actual published loopback listener despite two LB networks [0.18ms]
|
||||
(pass) rejects invalid published ports [0.09ms]
|
||||
(pass) rejects unpublished, public, stopped and foreign-resource endpoints [0.10ms]
|
||||
|
||||
student-tests/transport-negative.test.ts:
|
||||
(pass) Bun native certificate-required alert counts as client denial while timeout never does [0.58ms]
|
||||
|
||||
student-tests/security-guards.test.ts:
|
||||
(pass) age rejects future, invalid and stale receipts [0.07ms]
|
||||
(pass) client role requires exact allowlist membership [0.05ms]
|
||||
(pass) network endpoints require TLS and an exact intended hostname [0.06ms]
|
||||
|
||||
student-tests/grpc-probe.test.ts:
|
||||
(pass) native HTTP2 gRPC probe requires a valid Export response and checks request framing [145.54ms]
|
||||
|
||||
student-tests/openobserve-reader.test.ts:
|
||||
(pass) reader produces fixed historical SQL end and the same PromQL time after three hours [1.02ms]
|
||||
(pass) fresh reader default uses the explicit clock for both native request forms [0.19ms]
|
||||
(pass) reader requires explicit native request and clock ports [0.03ms]
|
||||
|
||||
79 pass
|
||||
0 fail
|
||||
243 expect() calls
|
||||
Ran 79 tests across 17 files. [753.00ms]
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"scope": "native OpenObserve storage migration, current112; not full Grafana/OpenBao/grade5 acceptance",
|
||||
"outcomes": [
|
||||
{
|
||||
"name": "vp7-oo-native-bootstrap",
|
||||
"terminal_id": "t81",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794785158900,
|
||||
"finished_ms": 1794785173041
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-all3-native",
|
||||
"terminal_id": "t83",
|
||||
"state": "finished",
|
||||
"exit_code": 1,
|
||||
"signal": null,
|
||||
"created_ms": 1794785629536,
|
||||
"finished_ms": 1794785761323
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-persisted-readback",
|
||||
"terminal_id": "t89",
|
||||
"state": "finished",
|
||||
"exit_code": 1,
|
||||
"signal": null,
|
||||
"created_ms": 1794786021546,
|
||||
"finished_ms": 1794786028475
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-persisted-readback2",
|
||||
"terminal_id": "t8j",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794786639419,
|
||||
"finished_ms": 1794786655499
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-transport-native",
|
||||
"terminal_id": "t8n",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794786972098,
|
||||
"finished_ms": 1794786980775
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-query-guard-native",
|
||||
"terminal_id": "t8w",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794787508418,
|
||||
"finished_ms": 1794787525939
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-url-red",
|
||||
"terminal_id": "t86",
|
||||
"state": "finished",
|
||||
"exit_code": 1,
|
||||
"signal": null,
|
||||
"created_ms": 1794785868508,
|
||||
"finished_ms": 1794785868549
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-url-green",
|
||||
"terminal_id": "t87",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794785898689,
|
||||
"finished_ms": 1794785898728
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-response-red",
|
||||
"terminal_id": "t8b",
|
||||
"state": "finished",
|
||||
"exit_code": 1,
|
||||
"signal": null,
|
||||
"created_ms": 1794786189519,
|
||||
"finished_ms": 1794786189564
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-response-green",
|
||||
"terminal_id": "t8c",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794786231366,
|
||||
"finished_ms": 1794786231408
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-micros-red",
|
||||
"terminal_id": "t8f",
|
||||
"state": "finished",
|
||||
"exit_code": 1,
|
||||
"signal": null,
|
||||
"created_ms": 1794786499375,
|
||||
"finished_ms": 1794786499473
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-micros-green",
|
||||
"terminal_id": "t8g",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794786529972,
|
||||
"finished_ms": 1794786530016
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-final-source-checks",
|
||||
"terminal_id": "t8z",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794787961052,
|
||||
"finished_ms": 1794787962002
|
||||
},
|
||||
{
|
||||
"name": "vp7-oo-public-source-check",
|
||||
"terminal_id": "t91",
|
||||
"state": "finished",
|
||||
"exit_code": 0,
|
||||
"signal": null,
|
||||
"created_ms": 1794788290574,
|
||||
"finished_ms": 1794788291160
|
||||
}
|
||||
],
|
||||
"expected_failures_retained": true
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"scope": "openobserve",
|
||||
"results": [
|
||||
{
|
||||
"service": "openobserve-gateway",
|
||||
"port": 5082,
|
||||
"permitted_role": "grafana",
|
||||
"missing_client": "ERR_SSL_TLSV1_ALERT_CERTIFICATE_REQUIRED",
|
||||
"foreign_client": "ERR_SSL_TLSV1_ALERT_UNKNOWN_CA",
|
||||
"wrong_role": "ROLE_CLOSED_BEFORE_APPLICATION_RESPONSE",
|
||||
"wrong_hostname": "ERR_TLS_CERT_ALTNAME_INVALID",
|
||||
"foreign_trust": "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
|
||||
},
|
||||
{
|
||||
"service": "openobserve-gateway",
|
||||
"port": 5080,
|
||||
"permitted_role": "collector",
|
||||
"missing_client": "ERR_SSL_TLSV1_ALERT_CERTIFICATE_REQUIRED",
|
||||
"foreign_client": "ERR_SSL_TLSV1_ALERT_UNKNOWN_CA",
|
||||
"wrong_role": "ROLE_CLOSED_BEFORE_APPLICATION_RESPONSE",
|
||||
"wrong_hostname": "ERR_TLS_CERT_ALTNAME_INVALID",
|
||||
"foreign_trust": "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
|
||||
}
|
||||
],
|
||||
"positive_controls": "before and after every negative set",
|
||||
"timeouts_counted_as_denial": false
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
Running as unit: run-p4046683-i25007844.scope; invocation ID: 5a3dd1d102954c65a683e5967266659d
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-topology.test.ts:
|
||||
(pass) telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways [5.68ms]
|
||||
(pass) OpenObserve has its own persistent data and a closed private gateway namespace [0.18ms]
|
||||
(pass) storage migration retains required neighbors and existing app OTLP contract without OpenObserve secrets [0.19ms]
|
||||
(pass) Collector and Grafana storage transport targets OpenObserve through the verified gateway [0.20ms]
|
||||
|
||||
4 pass
|
||||
0 fail
|
||||
34 expect() calls
|
||||
Ran 4 tests across 1 file. [42.00ms]
|
||||
@@ -0,0 +1,49 @@
|
||||
Running as unit: run-p3914867-i24896078.scope; invocation ID: 723162ed72ed42179305aa2c9bfb2b20
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-topology.test.ts:
|
||||
1 | import {test,expect} from 'bun:test';
|
||||
2 | import {manifest,gatewayConfigs} from '../scripts/topology';
|
||||
3 | test('telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways',()=>{
|
||||
4 | const services=manifest().services;
|
||||
5 | expect(services.openobserve).toBeDefined();
|
||||
^
|
||||
error: expect(received).toBeDefined()
|
||||
|
||||
Received: undefined
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-topology.test.ts:5:31)
|
||||
(fail) telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways [48.62ms]
|
||||
5 | expect(services.openobserve).toBeDefined();
|
||||
6 | for(const name of ['prometheus','loki','tempo','prometheus-gateway','loki-gateway','tempo-gateway'])expect(services[name]).toBeUndefined();
|
||||
7 | });
|
||||
8 | test('OpenObserve has its own persistent data and a closed private gateway namespace',()=>{
|
||||
9 | const service=manifest().services.openobserve;
|
||||
10 | expect(service).toBeDefined();
|
||||
^
|
||||
error: expect(received).toBeDefined()
|
||||
|
||||
Received: undefined
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-topology.test.ts:10:18)
|
||||
(fail) OpenObserve has its own persistent data and a closed private gateway namespace [0.26ms]
|
||||
(pass) storage migration retains required neighbors and existing app OTLP contract without OpenObserve secrets [8.01ms]
|
||||
17 | for(const name of ['api1','api2','worker','postgres','broker','s3','collector','grafana','openbao'])expect(services[name]).toBeDefined();
|
||||
18 | for(const name of ['api1','api2','worker']){expect(services[name].environment.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://127.0.0.1:14318');expect(JSON.stringify({environment:services[name].environment,volumes:services[name].volumes}).toLowerCase().includes('openobserve')).toBe(false);}
|
||||
19 | });
|
||||
20 | test('Collector and Grafana storage transport targets OpenObserve through the verified gateway',()=>{
|
||||
21 | const configs=gatewayConfigs();
|
||||
22 | for(const name of ['collector-gateway','grafana']){expect(configs[name]).toContain('openobserve-gateway:');for(const old of ['prometheus-gateway:','loki-gateway:','tempo-gateway:'])expect(configs[name]).not.toContain(old);}
|
||||
^
|
||||
error: expect(received).toContain(expected)
|
||||
|
||||
Expected to contain: "openobserve-gateway:"
|
||||
Received: "global\n maxconn 256\n nbthread 1\n hard-stop-after 2s\n ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets\n ssl-default-server-options ssl-min-ver TLSv1.2\ndefaults\n mode tcp\n timeout connect 2s\n timeout client 30s\n timeout server 30s\nresolvers docker\n nameserver dns 127.0.0.11:53\n resolve_retries 3\n timeout resolve 1s\n timeout retry 1s\n hold valid 1s\n\nlisten otlp\n bind :4318 ssl crt /pki/server.pem ca-file /pki/ca.crt crl-file /pki/ca.crl verify required\n tcp-request content reject unless { ssl_c_s_dn(CN) -m str api worker operator }\n server local 127.0.0.1:14318\n\nlisten prometheus\n bind 127.0.0.1:19090\n server remote prometheus-gateway:9090 ssl verify required ca-file /pki/ca.crt crt /pki/server.pem crl-file /pki/ca.crl verifyhost prometheus-gateway sni str(prometheus-gateway) resolvers docker init-addr none\n\nlisten loki\n bind 127.0.0.1:13100\n server remote loki-gateway:3100 ssl verify required ca-file /pki/ca.crt crt /pki/server.pem crl-file /pki/ca.crl verifyhost loki-gateway sni str(loki-gateway) resolvers docker init-addr none\n\nlisten tempo\n bind 127.0.0.1:14317\n server remote tempo-gateway:4317 ssl verify required ca-file /pki/ca.crt crt /pki/server.pem crl-file /pki/ca.crl verifyhost tempo-gateway sni str(tempo-gateway) resolvers docker init-addr none\n"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-topology.test.ts:22:75)
|
||||
(fail) Collector and Grafana storage transport targets OpenObserve through the verified gateway [0.38ms]
|
||||
|
||||
1 pass
|
||||
3 fail
|
||||
18 expect() calls
|
||||
Ran 4 tests across 1 file. [598.00ms]
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"state": "PASS_SCOPED_OPENOBSERVE_TRANSPORT",
|
||||
"stage": "SOURCE_POSTGUARD",
|
||||
"source_handover_sha256": "09fe19253582282e489406600f3ee20c1e52d786778d6ce90f9d9da4146e5609",
|
||||
"listeners": [
|
||||
5080,
|
||||
5082
|
||||
],
|
||||
"tls_matrix": "separate tls-matrix UUID receipt; positive before/after each negative set",
|
||||
"grafana_ingest_admin_foreign_org_denied": true,
|
||||
"native_query_account_admin_rotate_http": 403,
|
||||
"native_role_read_only": false,
|
||||
"raw_ports_refused": [
|
||||
15080,
|
||||
5081
|
||||
],
|
||||
"timeouts_counted_as_denial": false,
|
||||
"native_bao": false,
|
||||
"native_grafana": false,
|
||||
"stop_exit": 0
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
Running as unit: run-p132312-i25297578.scope; invocation ID: 9bb8559b3b88495496040a24d4d5306a
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-request-path.test.ts:
|
||||
(pass) native URLSearchParams PromQL spaces stay valid before any credential or process port [0.25ms]
|
||||
(pass) rejects invalid request URI "https://foreign/api/default/streams" [0.09ms]
|
||||
(pass) rejects invalid request URI "/api/foreign/streams"
|
||||
(pass) rejects invalid request URI "/api/default/streams\r\nX: bad"
|
||||
(pass) rejects invalid request URI "/api/default/_search#fragment"
|
||||
(pass) rejects invalid request URI "/api/default/space in path"
|
||||
|
||||
6 pass
|
||||
0 fail
|
||||
6 expect() calls
|
||||
Ran 6 tests across 1 file. [4.00ms]
|
||||
@@ -0,0 +1,27 @@
|
||||
Running as unit: run-p128095-i25301382.scope; invocation ID: f5d474bcfba84478bffd41631d645c0c
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/openobserve-request-path.test.ts:
|
||||
1 | import {test,expect} from "bun:test";
|
||||
2 | import {validateOpenObservePath} from "../scripts/openobserve-request-path";
|
||||
3 | test("native URLSearchParams PromQL spaces stay valid before any credential or process port",()=>{
|
||||
4 | const path="/api/default/prometheus/api/v1/query?"+new URLSearchParams({query:"histogram_quantile(0.95,sum by(le)(http_duration_bucket))"});
|
||||
5 | expect(()=>validateOpenObservePath(path)).not.toThrow();
|
||||
^
|
||||
error: expect(received).not.toThrow()
|
||||
|
||||
Error name: "Error"
|
||||
Error message: "INVALID_OPENOBSERVE_REQUEST_PATH"
|
||||
|
||||
at <anonymous> (/mnt/data/home/bench-saves/mtuci-vp7-security-20261115/student-tests/openobserve-request-path.test.ts:5:48)
|
||||
(fail) native URLSearchParams PromQL spaces stay valid before any credential or process port [0.84ms]
|
||||
(pass) rejects invalid request URI "https://foreign/api/default/streams" [0.05ms]
|
||||
(pass) rejects invalid request URI "/api/foreign/streams" [0.01ms]
|
||||
(pass) rejects invalid request URI "/api/default/streams\r\nX: bad"
|
||||
(pass) rejects invalid request URI "/api/default/_search#fragment"
|
||||
(pass) rejects invalid request URI "/api/default/space in path"
|
||||
|
||||
5 pass
|
||||
1 fail
|
||||
6 expect() calls
|
||||
Ran 6 tests across 1 file. [5.00ms]
|
||||
Reference in New Issue
Block a user