Repository navigation
chore(openapi): deny the admin memory reads at the raw transport - #52
Conversation
Sync against tinyhumansai/backend#1414's spec: the five GET /admin/memory/* routes (overview, storage, top-tenants, tenants/{userId}, model-usage) join UNEXPOSED_ROUTES. No typed method. Ratchets: UNEXPOSED_ROUTES 59 -> 64, excludedAdminOperationCount 47 -> 52.
Tiny Sweeper reviewTiny Sweeper reviewed this change across 6 lane(s) and found 0 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Ready for maintainer review Review snapshot
Completeness: Complete What changedThe review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below. FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. FindingsNo active actionable findings. Before mergeNone. How this fits togetherflowchart LR
n0["..._api_key_request_uses_openapi_field_names"]:::impacted
n1["path_segments_are_encoded_on_typed_routes"]:::impacted
n2["create"]:::impacted
n3["try_from"]:::impacted
n4["get_feedback"]:::impacted
n5["...ejects_the_machine_only_connections_scope"]:::impacted
n0 -->|calls| n2
n0 -->|tests| n2
n1 -->|calls| n4
n1 -->|tests| n4
n5 -->|calls| n3
n5 -->|tests| n3
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Agent review detailscritique
security
tests
commits
description
e2e
Evidence and run details
|
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0009 · 73,748 in / 4,646 out · 9,982 cached (14%) · gpt-5.6-luna, glm-5.3-flash
critique: $0.0005 · 38,599 in / 2,650 out · 6,152 cached (16%) · gpt-5.6-luna
security: $0.0003 · 23,520 in / 753 out · 3,638 cached (15%) · gpt-5.6-luna
tests: $0.0000 · 4,455 in / 156 out · 64 cached (1%) · glm-5.3-flash
description: $0.0000 · 4,158 in / 137 out · 64 cached (2%) · glm-5.3-flash
What
Syncs the SDK against the backend spec from tinyhumansai/backend#1414 (
npm run swagger+scripts/sync-openapi.mjs --input), which adds fiveGET /admin/memory/*routes to the raw-transport denylist insrc/generated_public_routes.rs:mainbut never synced: overview, storage, top-tenants,tenants/{userId}GET /admin/memory/model-usageAll five are admin-only; no typed client method is added.
Ratchets
UNEXPOSED_ROUTES59 → 64excludedAdminOperationCount47 → 52Both bumped by exactly the five admin routes above.
Verification
cargo fmt --check,cargo clippy -D warningsandcargo testpass.Follow-up
After this merges, tinyhumansai/backend#1414 moves its
sdkgitlink to the merged commit.Summary by CodeRabbit