- Executive Summary
- Architecture & Domain
- Technical Specifications
- Getting Started
- Contributing
- License & Security
CosmicSec Core is the central nervous system of the CosmicSec distributed ecosystem. Operating as the primary control plane, this repository guarantees absolute operational consistency, high availability, and secure communication across all decentralized microservices. It is the absolute source of truth for platform ingress, relational schemas, and global event streaming.
This repository is engineered using a Domain-Driven Design (DDD) approach, consolidating the following critical subsystems:
- API Gateway (
cosmicsec_platform): A high-performance ingress controller handling SSL termination, global rate limiting, dynamic payload inspection, and intelligent request routing to downstream microservices. - Relational Schema Control (
alembic): Strict, version-controlled database migrations ensuring zero-downtime upgrades, ACID compliance, and robust data integrity during schema evolutions. - Message Broker Configs (
broker): Declarative infrastructure configurations for event-driven asynchronous communications (e.g., Kafka, RabbitMQ). - Core SDK & Utilities (
services/common): Shared foundational libraries enforcing standardized JWT authentication, enterprise RBAC (Role-Based Access Control), structured logging, and unified error handling across the Python ecosystem.
- Frameworks: FastAPI / Django / Python 3.12+
- Persistence: PostgreSQL, Redis
- Messaging: Apache Kafka / RabbitMQ
This module is typically orchestrated via the master manifest (cosmicsec-deploy). To run the core in isolation for library development:
# 1. Initialize virtual environment
python -m venv venv
source venv/bin/activate
# 2. Install dependencies
pip install -r requirements.txt
# 3. Apply schema migrations
alembic upgrade headPlease read our Contributing Guidelines for details on our code of conduct, and the process for submitting pull requests.
All rights reserved by CosmicSec-Lab. For security vulnerability reporting, please see SECURITY.md.
