fix: paperclip authenticated mode and required config fields
Merged
SH
7mo ago+18+18+01234567890123456789-2-2-0123456789
Summary
- Use
authenticatedmode on kyber (local_trustedrejects0.0.0.0binding) - Add required
$meta(version, updatedAt, source) andloggingfields to template - Auth is still handled at Cloudflare tunnel / nginx ingress level
Problem
local_trustedmode rejects0.0.0.0host binding — but we need it for k8s to reach paperclip- Config validation requires
$meta.updatedAt,$meta.source(enum), andloggingsection
Summary by cubic
Switches Paperclip on Kyber to authenticated mode, adds required config metadata/logging, and restricts access to the expected hostname. Fixes 0.0.0.0 binding rejection and config validation errors.
- Bug Fixes
- Set
server.deploymentModetoauthenticatedon Kyber (keeplocal_trustedelsewhere); required for k8s0.0.0.0binding; external auth stays at Cloudflare tunnel/nginx ingress. - Add required
$meta(version, updatedAt, source) andloggingtoconfig.template.json. - Add
server.allowedHostnamesand setpaperclip.shunkakinoki.comon Kyber. - Wire
__DEPLOYMENT_MODE__and__ALLOWED_HOSTNAME__via Nix andhydrate.sh. RemoveEnvironmentFilefrom the Paperclip systemd service. - Format
config.template.jsonfor consistency.
- Set