15 Commits

Author SHA1 Message Date
jarianc
a043b43a56 Merge pull request 'port: FastAPI rewrite built by the arch-llm spec pipeline' (#44) from fastapi-port into main
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
2026-11-18 22:37:04 -06:00
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
jarianc
2caf94aeb4 docs: add video demo (HyperFrames render) (#43)
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / docker-build (push) Waiting to run
CI / security (push) Waiting to run
CI / build-result (push) Blocked by required conditions
2026-11-18 20:48:45 -06:00
jarian
e49f75eaba demo: 58s silent demo video of the arch-llm build pipeline
HyperFrames render (1920x1080 @ 30fps, no audio) of the fastapi-port
pipeline: signed schema.arch -> archllm build -> auto-emitted openapi.json
+ generated client.js -> the generated UI, then four real pastes proved
against the live r3 backend (verbatim CRLF text, 64x64 image, 4,096-byte
file byte-exact, 404 card). All on-screen data is real.

Includes REVIEW.md (check green, 18 frames + seam strips verified).
2026-11-19 01:56:50 +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
9ff745f3dd Merge pull request 'Fix security headers, ARIA, cleanup, health check, docker-compose' (#39) from fix/security-and-ope into main 2026-07-04 23:32:23 -05:00
3bc5c16c5d fix: HSTS (#29), CSP (#30), server version (#34), favicon (#35), aria (#36,#37), cleanup loop (#1), startup dirs (#16), health check (#27), docker-compose (#19,#20)
- Add HSTS, CSP headers, remove Server header, fix GIF magic tuple
- Add ARIA landmarks, button labels, inline SVG favicon
- Scheduled cleanup loop (every 5min), /health endpoint
- Remove docker-compose version field, unused named volumes
- Move ensure_dirs to startup, remove duplicate definitions
2026-07-05 04:32:07 +00:00
a494cab34f Merge pull request 'CI: remove --no-cache for docker layer caching' (#38) from ci-fix-nocache into main
Reviewed-on: https://git.example.com/jarianc/paste-bin/pulls/38
2026-07-04 22:23:38 -05:00
59fc75fd1b CI: remove --no-cache for docker layer caching 2026-07-05 03:13:43 +00:00
48507f4067 CI: add generalized workflow 2026-07-05 02:46:36 +00:00
3ea2ab4258 fix: security hardening — SECRET_KEY, CSRF, rate-limit, headers, Docker, SVG (#7,#8,#9,#10,#11,#12,#13,#14,#15,#18,#21,#25)
Use secrets.token_hex for SECRET_KEY (no hardcoded default).
Add CSRF tokens to forms and cookie.
Rate limit uploads: 10 per 60s per IP.
Add security headers: CSP, X-Frame-Options, X-Content-Type-Options, HSTS, Referrer-Policy.
Block SVG uploads (executable JS risk).
Validate image content via magic bytes.
Atomic file creation with O_EXCL (fixes TOCTOU race).
Increase paste ID from 8→16 hex chars.
Run cleanup_expired every 5min in background thread.
Delete .txt files on paste deletion.
Fix file upload tab (missing name attribute).
Docker: add non-root user, pin dependency versions.
2026-07-04 04:57:15 +00:00
2774a748bc update local changes 2026-07-03 01:14:04 +00:00
016914c6ca Initial commit: PasteBin server (Flask, Docker, gunicorn) 2026-05-06 04:49:23 +00:00
63ee936f3d first commit 2026-05-06 04:43:05 +00:00