4 Commits

Author SHA1 Message Date
jarian
6b51dbe2ff Merge branch 'main' into fastapi-port
Brings the Flask-era commits (incl. PR #43 video demo) into the port
branch so the PR can merge cleanly. Conflicts resolved in favor of the
FastAPI port: Dockerfile, README.md, requirements.txt, .gitignore
(superset). .dockerignore is a union of both apps' exclusions. The old
Flask app (app.py, templates/, static/, docker-compose.yml, demo.mp4,
pyproject.toml) is kept in the tree for reference.
2026-11-19 04:22:23 +00:00
Jarian
985e070757 port: FastAPI rewrite built by the arch-llm spec pipeline
Spec-first port of the Flask app (still on main):
- schema.arch: signed arch-llm spec (single source of truth)
- paste_bin/: generated FastAPI backend, verified 51/51 frozen owner
  tests, 92.5% coverage (build r3, 2026-11-18)
- ui/: SPA + emitted OpenAPI contract (openapi.json + generated
  client.js); the app calls only window.PasteBinAPI
- 7 old bugs fixed (file raw 500, silent expiry, AVI-as-webp,
  stripped content, limiter leak, trusted mimetype, stale tmp)
- 62/62 live probe green; /health + JSON index added; JSON API

Full report on the wiki: 'FastAPI port (arch-llm pipeline)'.
2026-11-18 23:00:23 +00:00
d37e14a2d9 security: block path traversal, SVG upload, duplicate defs; add tests, docs, license
Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / security (push) Has been cancelled
CI / build-result (push) Has been cancelled
- Validate paste IDs against ^[a-f0-9]{16}$ before filesystem access
  (blocks read/delete traversal via crafted URLs)
- Remove duplicate ALLOWED_IMAGE_EXTENSIONS that re-allowed SVG
  (XSS via stored SVG); keep magic-byte validation
- Remove duplicate cleanup thread (two background loops were started)
- Unknown expiry keys now default to 1 day instead of never
- request.secure -> request.is_secure (werkzeug 3.x)
- Add gunicorn to requirements (Dockerfile CMD referenced it)
- 11 unit tests, ruff clean, MIT LICENSE, full README (was empty)
2026-08-20 21:26:54 +00:00
016914c6ca Initial commit: PasteBin server (Flask, Docker, gunicorn) 2026-05-06 04:49:23 +00:00