How ansible/galaxy_ng works
Main Components
a. Frontend Layer:
• UI Component (under /galaxy_ng/ui)
• API Endpoints:
• V1 API (/galaxy_ng/app/api/v1)
• V3 API (/galaxy_ng/app/api/v3)
• UI API (/galaxy_ng/app/api/ui)
b. Core Services:
• Authentication Services (/galaxy_ng/app/auth)
• LDAP Integration
• Keycloak Integration
• Token Management
• Access Control Layer (/galaxy_ng/app/access_control)
• Task Management System (/galaxy_ng/app/tasks)
• Metrics Collection (/galaxy_ng/app/metrics_collection)
c. Content Management:
• Collection Management
• Execution Environment Management
• Namespace Management
• Repository Management
• Sync Management
d. External Integrations:
• Container Registry Integration
• GitHub Integration
• LDAP/Keycloak Services
• Pulp Core Integration
Relationship Flows
• User requests flow through UI/API layers to core services
• Authentication flow between external auth providers and the auth service
• Content synchronization flow between external sources and internal repositories
• Task execution flow from API requests to background workers
• Metrics collection flow from various components to analytics services
Architectural Patterns to Highlight
• Plugin architecture (Pulp integration)
• REST API layering (v1, v3, UI)
• Task queue system
• Event-driven components
• Caching mechanisms
• Authentication middleware
Infrastructure Components
• Nginx web server
• Database (PostgreSQL)
• Cache layers
• Task workers
• Storage systems