security: Add rate limiting, input validation, and tenant isolation on all handlers

- Add rate limiting per endpoint (login: 5/min, API: 100/min)
- Add input validation helpers (email, UUID, string, int)
- Add tenant isolation to all handlers
- Remove old validation.go, replace with input.go
- Fix service/customer.go to use new validation functions
- Build successful
This commit is contained in:
Bernt
2026-08-10 13:32:44 +00:00
parent 78b57273e2
commit 971a2bd9a9
10 changed files with 437 additions and 312 deletions
+1
View File
@@ -34,6 +34,7 @@ require (
github.com/rs/xid v1.6.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.40.0 // indirect
golang.org/x/time v0.15.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)