Replace embedded config builder with external wafsrv-builder - #5
Merged
Conversation
- Remove the embedded /builder/ UI (internal/dashboard/web/builder/); the dashboard footer now opens https://vmkteam.github.io/wafsrv-builder/ passing the running config via a base64url URL hash - Add GET /config.toml on the management port: exports the running config with secrets blanked via new Config.Redacted() (captcha Secret/SecretKey, signing secrets, webhook URLs) - Restore per-country captcha/log actions in the IP middleware: IP.Countries.Captcha adds +5 WAFScore and defers to the decision engine, IP.Countries.Log records only; priority block > captcha > log - Re-raise http.ErrAbortHandler in accessLog panic recovery so client disconnects mid-proxy abort quietly instead of being logged as panics; metrics and access log still run during unwinding - Link the external Config Builder in README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/builder/UI (internal/dashboard/web/builder/, −2700 LOC); the dashboard footer now opens https://vmkteam.github.io/wafsrv-builder/ passing the running config via a base64url URL hashGET /config.tomlon the management port: exports the running config with secrets blanked via newConfig.Redacted()(captchaSecret/SecretKey, signing secrets, webhook URLs)IP.Countries.Captchaadds +5 WAFScore and defers to the decision engine,IP.Countries.Logrecords only; priority block > captcha > loghttp.ErrAbortHandlerin accessLog panic recovery so client disconnects mid-proxy abort quietly instead of being logged as panics; metrics and access log still run during unwindingTest plan
go build ./...go test -short ./internal/app/... ./internal/waf/ip/... ./internal/waf/proxy/...— passconfig_test.go), country captcha/log actions (service_test.go), ErrAbortHandler re-panic (middleware_test.go)