feat(resources): add TCP and UDP resources #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/tcp-udp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
feat/resource-access); retarget tomainonce #2 and #3 are merged.Changes
protocolandlisten_port, makesdomainnullable, with a partial unique index on HTTP domains and a unique(organization, protocol, port)index. SQLite rebuilds the table (foreign keys off on a pinned connection,foreign_key_check); PostgreSQL usesALTER.downrefuses while TCP/UDP resources exist.Resourcegets an immutable protocol and per-protocol validation; access settings, rules and share links are HTTP-only ({:error, :not_http}).DynamicConfigrenderstcpandudpsections on entrypointstcp-<port>/udp-<port>. The lowest id wins a contested port; invalid ports/targets are dropped; a raw resource that carries access settings is not served (fail-closed).host:porttargets, Access page and button HTTP-only, and a node page snippet listing the entrypoints that node's Traefik must declare (live).String.trim/1on nil), with regression tests.Verification
mix format --check-formatted,mix compile --warnings-as-errors,mix credo --strictclean;mix dialyzer0 errors on both backends.downguard checked.Not included