Все /v1/firewall/* отвечают 410 Gone; UI и docs указывают на EvoFirewall. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
798 B
Go
17 lines
798 B
Go
package httpapi
|
|
|
|
import "net/http"
|
|
|
|
// handleFirewallGone responds 410 Gone for every legacy /v1/firewall/* endpoint
|
|
// (enroll, install.sh, sync-script, clients, rules, blocklist, apply-report,
|
|
// heartbeat, install-context). The firewall subsystem (client enrollment,
|
|
// block/accept rules, blocklist distribution) has moved to the standalone
|
|
// EvoFirewall service; see docs/firewall.md.
|
|
//
|
|
// Existing firewall_client / firewall_rule tables and store code (memory_firewall.go,
|
|
// postgres_firewall.go, firewall_types.go) are intentionally left in place — only the
|
|
// HTTP surface is decommissioned here.
|
|
func (s *Server) handleFirewallGone(w http.ResponseWriter, r *http.Request) {
|
|
writeProblem(w, http.StatusGone, "Gone", "firewall feature moved to EvoFirewall — see docs/firewall.md")
|
|
}
|