Add global-tier long-tail resources: policy CRUD, blrules, conntrack
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

- Wire policy CRUD (the policies table existed from 0001 but had no endpoint;
  policies already render in the compiler, so this closes that loop).
- Add blrules (blacklist/whitelist) and conntrack resources: migration 0005,
  model types, id-keyed store CRUD (generation-bumping), and REST handlers.
Compiler rendering of blrules/conntrack into device configs is a tracked
follow-up (policy already renders).
This commit is contained in:
benvin
2026-07-26 00:06:17 +10:00
parent 2d1b317e0a
commit af7117faae
6 changed files with 405 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ func (s *Server) mountResources(r chi.Router) {
r.Delete("/{id}", s.deleteRule)
})
s.mountNAT(r)
s.mountLongtail(r)
}
// respondOne writes a single resource, mapping ErrNotFound to 404.