diff --git a/src/index.js b/src/index.js index 0dbfcb2..c348d01 100644 --- a/src/index.js +++ b/src/index.js @@ -209,7 +209,7 @@ export async function handle(request, env, ctx) { const fx = fixtureCount(env, url); if (fx != null) { const f = fixtureIdps(fx); return html(idpsPage({ ...v, idps: f.idps, health: f.health, added: f.added, sort: url.searchParams.get("sort"), fixture: fx }), { nonce: v.nonce }); } const reg = await getRegistry(env); - return html(idpsPage({ ...v, idps: [...reg.idps.values()], health: await healthMap(env), added: await addedMap(env), sort: url.searchParams.get("sort") }), { nonce: v.nonce }); + return html(idpsPage({ ...v, idps: [...reg.idps.values()].filter((i) => i.status !== "disabled"), health: await healthMap(env), added: await addedMap(env), sort: url.searchParams.get("sort") }), { nonce: v.nonce }); } if (p === "/fixture/picker" && fixtureCount(env, url) != null) { const n = fixtureCount(env, url), f = fixtureIdps(n); diff --git a/test/flow.test.mjs b/test/flow.test.mjs index 1e38f9a..ee61a69 100644 --- a/test/flow.test.mjs +++ b/test/flow.test.mjs @@ -156,6 +156,14 @@ test("pairwise sub: per sector, stable, different from the public sub", async () assert.notEqual(p1, pub); }); +test("the public /idps page lists active identity providers only", async () => { + const h = await setup({ idps: { good: "idp.example.test", off: "off.example.test" } }); + h.registry.idps[1].status = "disabled"; + const page = await (await h.request("/idps")).text(); + assert.match(page, /IdP good/); + assert.doesNotMatch(page, /IdP off/); +}); + test("a disabled IdP is not offered and cannot be chosen", async () => { const h = await setup({ idps: { good: "idp.example.test", off: "off.example.test" } }); h.registry.idps[1].status = "disabled"; diff --git a/transparency/2026/10.json b/transparency/2026/10.json deleted file mode 100644 index eb57c21..0000000 --- a/transparency/2026/10.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "id": 1, - "date": "2026-10-08T14:21:21.000Z", - "target_kind": "app", - "target_id": "app-zhisraeiru", - "domain": "qa-tp-7982cc.fadianro.am", - "category": "phishing", - "decision": "suspend", - "reason": "QA test: imitation of a login page (test entry)", - "withdrawn": "test entry from the QA verification on 2026-10-08; not a real decision" - } -] diff --git a/transparency/2026/10.md b/transparency/2026/10.md deleted file mode 100644 index 209d984..0000000 --- a/transparency/2026/10.md +++ /dev/null @@ -1,7 +0,0 @@ -# Operator decisions, 2026-10 - -Published from https://id.fadianro.am/transparency.json. No reporter data and no operator identifiers. Appeal: https://github.com/FadianRoam/roamid/issues/new?template=appeal.yml or from the developer console. - -| Record | Date (UTC) | Target | Domain | Category | Decision | Reason | -|---|---|---|---|---|---|---| -| 1 | 2026-10-08 | app `app-zhisraeiru` | qa-tp-7982cc.fadianro.am | phishing | Suspended | QA test: imitation of a login page (test entry) (withdrawn: test entry from the QA verification on 2026-10-08; not a real decision) |