Major security, observability, and configuration improvements:
## Security Hardening
- Implemented configurable CORS (no more wildcards)
- Added comprehensive auth middleware for admin endpoints
- Enhanced webhook HMAC validation
- Added input validation and rate limiting
- Security headers and CSP policies
## Configuration Management
- Made N8N webhook URL configurable (WHOOSH_N8N_BASE_URL)
- Replaced all hardcoded endpoints with environment variables
- Added feature flags for LLM vs heuristic composition
- Gitea fetch hardening with EAGER_FILTER and FULL_RESCAN options
## API Completeness
- Implemented GetCouncilComposition function
- Added GET /api/v1/councils/{id} endpoint
- Council artifacts API (POST/GET /api/v1/councils/{id}/artifacts)
- /admin/health/details endpoint with component status
- Database lookup for repository URLs (no hardcoded fallbacks)
## Observability & Performance
- Added OpenTelemetry distributed tracing with goal/pulse correlation
- Performance optimization database indexes
- Comprehensive health monitoring
- Enhanced logging and error handling
## Infrastructure
- Production-ready P2P discovery (replaces mock implementation)
- Removed unused Redis configuration
- Enhanced Docker Swarm integration
- Added migration files for performance indexes
## Code Quality
- Comprehensive input validation
- Graceful error handling and failsafe fallbacks
- Backwards compatibility maintained
- Following security best practices
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
2.3 KiB
Modula-2
62 lines
2.3 KiB
Modula-2
module github.com/chorus-services/whoosh
|
|
|
|
go 1.22
|
|
|
|
toolchain go1.24.5
|
|
|
|
require (
|
|
github.com/chorus-services/backbeat v0.0.0-00010101000000-000000000000
|
|
github.com/docker/docker v24.0.7+incompatible
|
|
github.com/go-chi/chi/v5 v5.0.12
|
|
github.com/go-chi/cors v1.2.1
|
|
github.com/go-chi/render v1.0.3
|
|
github.com/golang-jwt/jwt/v5 v5.3.0
|
|
github.com/golang-migrate/migrate/v4 v4.17.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgx/v5 v5.5.2
|
|
github.com/kelseyhightower/envconfig v1.4.0
|
|
github.com/rs/zerolog v1.32.0
|
|
go.opentelemetry.io/otel v1.24.0
|
|
go.opentelemetry.io/otel/exporters/jaeger v1.17.0
|
|
go.opentelemetry.io/otel/sdk v1.24.0
|
|
go.opentelemetry.io/otel/trace v1.24.0
|
|
)
|
|
|
|
require (
|
|
github.com/Microsoft/go-winio v0.6.1 // indirect
|
|
github.com/ajg/form v1.5.1 // indirect
|
|
github.com/docker/distribution v2.8.2+incompatible // indirect
|
|
github.com/docker/go-connections v0.4.0 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/go-logr/logr v1.4.1 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
|
github.com/klauspost/compress v1.17.2 // indirect
|
|
github.com/lib/pq v1.10.9 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/nats-io/nats.go v1.36.0 // indirect
|
|
github.com/nats-io/nkeys v0.4.7 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.0.2 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
go.opentelemetry.io/otel/metric v1.24.0 // indirect
|
|
go.uber.org/atomic v1.7.0 // indirect
|
|
golang.org/x/crypto v0.19.0 // indirect
|
|
golang.org/x/mod v0.12.0 // indirect
|
|
golang.org/x/net v0.21.0 // indirect
|
|
golang.org/x/sync v0.6.0 // indirect
|
|
golang.org/x/sys v0.17.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
golang.org/x/tools v0.13.0 // indirect
|
|
gotest.tools/v3 v3.5.2 // indirect
|
|
)
|
|
|
|
replace github.com/chorus-services/backbeat => ./BACKBEAT-prototype
|