Commit Graph
19 Commits
Author SHA1 Message Date
57_WolveandClaude Opus 5.5 6502d9551d Refactor to Go standards; add print queue and own ESC/POS library
CI / Lint, test and scan (push) Successful in 1m41s
Restructure the daemon to follow the project's Go coding standards and
expand its features.

Layout and tooling
- cmd/uberbringer/main.go is now thin; all logic lives under internal/.
- Module path is git.anomalous.dev/57_Wolve/uberbringer, go 1.26, every
  dependency upgraded, vendor/ removed.
- staticcheck, govulncheck and goimports pinned as go tools; add a
  Makefile, CI workflow, goreleaser v2 config and Alpine Dockerfile.

Features
- Background print queue with job status (GET /api/v1/jobs/:id), send
  retries with backoff, and graceful shutdown.
- New {"elements": [...]} job format on POST /api/v1/print. Breaking:
  replaces {"data": [...]}, and the response is now JSON 202.
- In-house ESC/POS library replacing justinmichaelvieira/escpos: sizes
  1-8, Font B, CODE39/CODE128, QR, banded raster images, DLE EOT status.
- UTF-8 text transcoded to CP437 (configurable) with word-aware wrapping.
- Images from URL or base64, scaled and dithered; URL fetches refuse
  internal addresses (SSRF guard).
- Fiber v3 HTTP server, TypeID (UUIDv7) job and request IDs, /healthz
  with live printer status, `secret` and `token` subcommands.

Fixes
- Jobs are validated before anything is sent; a failed printer dial no
  longer panics.
- Request logs never contain tokens; Sentry no longer receives the
  Authorization header or print contents.
- Rate limiting is per client behind nginx (X-Real-IP).
- install.sh writes the [printer] section, runs the service as a
  dedicated user and uses a current nginx TLS config.

config.toml is no longer tracked; start from configs/config.example.toml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:17:16 -06:00
57_Wolve bb73348433 Update README.md 2025-01-13 16:36:51 +00:00
57_Wolve abbe1eeb78 Add Image printing from URL. Type 7, text field URL.
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m48s
v0.1.2
2025-01-12 22:34:27 -06:00
57_Wolve eb1d69465f Enable JWT Auth
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m30s
v0.1.1
2025-01-12 20:42:31 -06:00
57_Wolve e02d88f266 Delete uberbringer.service 2025-01-13 02:25:25 +00:00
57_Wolve bd76bdf49e Add install.sh 2025-01-13 02:25:19 +00:00
57_Wolve 6c15bc5b98 Add uberbringer.service 2025-01-13 02:18:14 +00:00
57_Wolve a7d02af9e4 Update README.md 2025-01-13 02:15:19 +00:00
57_Wolve 2ac831f47a Update README.md 2025-01-13 02:13:09 +00:00
57_Wolve 98b63617bc Update README.md 2025-01-13 02:12:52 +00:00
57_Wolve 97d2a892f0 Update .goreleaser.yaml
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m31s
2025-01-13 01:58:44 +00:00
57_Wolve ad48f15a35 Fix Goreleaser
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m39s
2025-01-12 19:42:26 -06:00
57_Wolve c90914351e Fix Goreleaser
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 10s
2025-01-12 19:40:43 -06:00
57_Wolve 4a1dc609c7 Create new type and remove un-used code
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 9s
2025-01-12 19:37:53 -06:00
57_Wolve 03a47deade Create new type and remove un-used code
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 11s
2025-01-12 19:33:57 -06:00
57_Wolve 434d3fed1b Create new type and remove un-used code
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 9s
2025-01-12 19:20:02 -06:00
57_Wolve 04516e4e19 Remove un-used route 2025-01-12 00:42:30 -06:00
57_Wolve 3e6b5d87b8 WIP. Echo JWT broken? 2025-01-12 00:41:13 -06:00
57_Wolve e0be116c74 Initial commit 2025-01-12 00:33:57 +00:00