Skip to content

CosmicSec-Lab/cosmicsec-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
CosmicSec Logo

🌌 CosmicSec Core

The foundational architectural backbone of the CosmicSec Enterprise Platform.

Build Status Issues Pull Requests License


📖 Table of Contents


🎯 Executive Summary

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.

🏗️ Architecture & Domain

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.

🛠 Technical Specifications

  • Frameworks: FastAPI / Django / Python 3.12+
  • Persistence: PostgreSQL, Redis
  • Messaging: Apache Kafka / RabbitMQ

🚀 Getting Started

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 head

🤝 Contributing

Please read our Contributing Guidelines for details on our code of conduct, and the process for submitting pull requests.

🛡️ License & Security

All rights reserved by CosmicSec-Lab. For security vulnerability reporting, please see SECURITY.md.

About

CosmicSec Core is the foundational architectural backbone of our open-source, non-profit threat intelligence platform. It serves as the primary control plane, centralizing API gateway routing, robust database migrations, and message broker configurations to ensure absolute reliability across the ecosystem.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages