 131868bdca
			
		
	
	131868bdca
	
	
	
		
			
			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>
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by "stringer -type=Kind"; DO NOT EDIT.
 | |
| 
 | |
| package width
 | |
| 
 | |
| 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[Neutral-0]
 | |
| 	_ = x[EastAsianAmbiguous-1]
 | |
| 	_ = x[EastAsianWide-2]
 | |
| 	_ = x[EastAsianNarrow-3]
 | |
| 	_ = x[EastAsianFullwidth-4]
 | |
| 	_ = x[EastAsianHalfwidth-5]
 | |
| }
 | |
| 
 | |
| const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth"
 | |
| 
 | |
| var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89}
 | |
| 
 | |
| func (i Kind) String() string {
 | |
| 	if i < 0 || i >= Kind(len(_Kind_index)-1) {
 | |
| 		return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
 | |
| 	}
 | |
| 	return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
 | |
| }
 |