Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

benkjcheong/bambuonline-be

https://github.com/benkjcheong/bambuonline-be · scanned 2026-06-17 01:38 UTC (1 month, 2 weeks ago)

30 raw signals (0 security + 30 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 2 weeks ago · v2 · last Δ +4.9 (diff) · 27 actionable findings from 1 signal source. 3 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 81.6/100 with 44.4% coverage. It contains 233 nodes across 22 cross-layer flows, written primarily in mixed languages. Engine surfaced 30 findings — concentrated in security (15), quality (11), software (4). Risk profile is high: 0 critical, 13 high, 5 medium. Recommended next step: open the security layer findings first — that's where the highest-impact wins live.

Showing 27 of 27 actionable findings. 30 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high System graph security auth conf 1.00 FastAPI DELETE `delete_sd_file` without auth dependency — app/api.py:511
`@router.delete` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:511 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `extrude` without auth dependency — app/api.py:438
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:438 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `light_control` without auth dependency — app/api.py:320
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:320 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `move_home` without auth dependency — app/api.py:408
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:408 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `move_jog` without auth dependency — app/api.py:419
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:419 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `print_control` without auth dependency — app/api.py:302
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:302 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `print_sd_file` without auth dependency — app/api.py:496
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:496 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `print_start` without auth dependency — app/api.py:229
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:229 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `set_fan` without auth dependency — app/api.py:372
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:372 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `set_speed` without auth dependency — app/api.py:387
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:387 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `set_temp` without auth dependency — app/api.py:357
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:357 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `slice_model` without auth dependency — app/api.py:533
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:533 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `slice_print` without auth dependency — app/api.py:594
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app/api.py:594 securityAuth fastapi unauth mutation
medium System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, ci, tests. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
Repo hardeningGenerated repo pattern
medium System graph security security conf 1.00 Insecure pattern 'cors_wildcard' in app/api.py:193
Found a known-risky pattern (cors_wildcard). Review and replace if possible.
app/api.py:193 Cors wildcard
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — app/camera_stream.py:280
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
0 test file(s) for 14 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths.
Coverage
low System graph quality Integrity conf 1.00 14 env vars used in code but missing from .env.example
Drift between code and config docs. The first few: `API_HOST`, `API_PORT`, `CAMERA_LIBRARY_PATH`, `SLICER_BIN`, `SLICER_FILAMENT`, `SLICER_MACHINE`, `SLICER_MODEL_CODE`, `SLICER_MODEL_NAME` + 6 more. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break.
config drift
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: app/ftps_upload.py:sock, app/ftps_upload.py:sock This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: app/api.py:move_home, app/api.py:move_jog, app/api.py:extrude This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
duplicatesduplication
low System graph quality License conf 1.00 No license file detected
No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake.
Repo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `snap_copy` in app/api.py:90
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_sd_file
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
app/printer_control.py:173
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_payload
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
app/__main__.py:40
low System graph software Dead code conf 1.00 Possibly dead Python function: list_sd_files
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
app/printer_control.py:170
low System graph software Dead code conf 1.00 Possibly dead Python function: slice_file
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
app/slicer.py:218
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/04f7c6c7-9080-4087-86e9-c965ca44f818/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/04f7c6c7-9080-4087-86e9-c965ca44f818/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.