john-okeefe
|
0438ec4625
|
refactor(middleware): fix type signatures for Echo v5 compatibility
Update all middleware functions to use *echo.Context (pointer) instead of echo.Context (value) as required by Echo v5.
Changes in device_auth.go:
- Update DeviceAuthMiddleware() signature (line 38)
- Update validateDeviceAuth() signature (line 170)
- Update RequireDeviceAuth() signature (line 212)
Changes in error_handler.go:
- Update RespondWithError() signature (line 44)
- Update RespondWithHTTPError() signature (line 69)
- Update WrapHandler() to accept *echo.Context (line 82)
- Fix context passing in WrapHandler() (c is already pointer)
Changes in rate_limiter.go:
- Update RateLimiterMiddleware() signature (line 102)
Changes in request_tracing.go:
- Update RequestTracingMiddleware() signature (line 48)
- Fix Response() dereference for v5 API (line 264)
- Use *c.Response() to get http.ResponseWriter
Changes in security.go:
- Update SecurityHeadersMiddleware() signature (line 14)
Changes in device_auth_test.go:
- Update test helper signatures
Changes in middleware_test.go:
- Remove unused import
All middleware now properly implements Echo v5's pointer-based context pattern.
|
2026-03-06 14:00:05 -05:00 |
|
john-okeefe
|
655ed9225f
|
Update code references and tests: Bookmann → Bookhoard
Code changes:
- main.go: Update cache directory path
- sidecar.go: Update file extension (.bookmann.json → .bookhoard.json)
- security.go: Update CORS example URLs
- queue_test.go: Update test database name
- feed_test.go: Update test assertions
- phase1_integration_test.go: Update test email addresses
- TEST_COVERAGE.md: Update project references
Part of project rename to Bookhoard.
|
2026-02-01 16:21:10 -05:00 |
|
john-okeefe
|
50c632babf
|
Update SSL/TLS handling for Docker reverse proxy deployments
- Disable HTTPSRedirectMiddleware (SSL handled by proxy)
- Keep SSLProxyMiddleware for X-Forwarded-* headers
- Add note about Docker deployment architecture
- Database connections use sslmode=disable
- No redirect needed for reverse proxy setup
|
2026-01-31 13:06:50 -05:00 |
|