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>
28 lines
747 B
Go
28 lines
747 B
Go
// Code generated by "stringer -type=Variant -trimprefix=Variant -linecomment"; DO NOT EDIT.
|
|
|
|
package guid
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[VariantUnknown-0]
|
|
_ = x[VariantNCS-1]
|
|
_ = x[VariantRFC4122-2]
|
|
_ = x[VariantMicrosoft-3]
|
|
_ = x[VariantFuture-4]
|
|
}
|
|
|
|
const _Variant_name = "UnknownNCSRFC 4122MicrosoftFuture"
|
|
|
|
var _Variant_index = [...]uint8{0, 7, 10, 18, 27, 33}
|
|
|
|
func (i Variant) String() string {
|
|
if i >= Variant(len(_Variant_index)-1) {
|
|
return "Variant(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Variant_name[_Variant_index[i]:_Variant_index[i+1]]
|
|
}
|