8000 Kube-Shield · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
@Kube-Shield

Kube-Shield

Welcome to Kube-Shield 🔒

Kube-Shield Banner

An open-source organization dedicated to enhancing Kubernetes security and observability using CNCF tools like Falco, OPA Gatekeeper, Prometheus, and ArgoCD.


🔍 Problem & Solution

Challenges Addressed

  1. Security Vulnerabilities:
    • No runtime intrusion detection.
    • No policy enforcement for cluster compliance.
  2. Lack of Observability:
    • Limited visibility into cluster state and threats.

Sollution

We implemented a strong security and monitoring strategy in the following ways:

  • Deploying intrusion prevention mechanisms.
  • Deploying intrusion detection mechanisms.
  • Embracing observability and monitoring.

📌 About

Kube-Shield implements a scalable security framework for Kubernetes, featuring:

  • Falco: Runtime intrusion detection via system call analysis.
  • OPA Gatekeeper: Policy enforcement for compliance.
  • Prometheus & Grafana: Real-time metrics and dashboards.
  • ArgoCD: GitOps-driven cluster management.
  • crAPI: OWASP-inspired vulnerable app for security testing.

Deployed on Azure Kubernetes Service (AKS) with a web interface for rule management.


🏗 Architecture Overview

1. Overall Architecture

Overall Architecture

  • Azure Load Balancer → Nginx Ingress.
  • crAPI Namespace:
    • Microservices: Identity (Java), Community (Go), Workshop (Python), Web (JS).
    • Databases: MongoDB/PostgreSQL (StatefulSet + Azure PV).
  • Monitoring Namespace: Prometheus + Grafana.
  • OPA Namespace: Gatekeeper for policy enforcement.
  • Falco Namespace: DaemonSet for runtime security.

2. Monitoring Stack

Monitoring Stack

  • Prometheus Operator: Manages ServiceMonitors and alerts.
  • Node Exporter + Kube State Metrics: Cluster/node metrics.
  • Grafana: Dashboards for observability.

3. crAPI Services

crAPI Architecture

  • Web Services (JS): Orchestrates Identity/Community/Workshop.
  • Databases: PostgreSQL/MongoDB with persistent storage.
  • Mailhog: Email handling for Community Service.

4. Falco Event Flow

Falco Workflow

  1. Falco detects anomalies (e.g., reverse shell).
  2. Falcosidekick forwards events to:
    • Web App (for alerts).
    • Fluent Bit → Cloud Logging/Elasticsearch.

5. OPA Gatekeeper Workflow

OPA Workflow

  • API Server → Validates requests via Gatekeeper webhook.
  • Constraints: Rego policies allow/deny (e.g., resource limits).

🚀 Getting Started

git clone https://github.com/Kube-Shield/manifests.git
cd manifests
./build-all.sh && ./deploy.sh  # Deploys the crAPI application for testing

Deploy Kube-Shield Security Stack:

  1. Falco (Runtime Detection):

git clone https://github.com/Kube-Shield/intrusion-detection.git
cd intrusion-detection ./deploy.sh

2. **OPA Gatekeeper (Policy Enforcement)**:
```bash
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/v3.19.1/deploy/gatekeeper.yaml
  1. Monitoring (Prometheus + Grafana):
    git clone https://github.com/Kube-Shield/monitoring.git
    cd monitoring
    
    install-monitoring.sh

👥 Team

  • Ghaith GTARI
  • Ghaith ROUAHI
  • Hamza TALBI
  • Ahmed IDANI
  • Oussama GHAZOUANI

Star our GitHub repo to support the project!


Popular repositories Loading

  1. microservice-application microservice-application Public

    Java

  2. manifests manifests Public

    Shell

  3. intrusion-detection intrusion-detection Public

    Shell

  4. argocd argocd Public

  5. web-interafce web-interafce Public

    JavaScript

  6. intrusion-prevention intrusion-prevention Public

Repositories

Showing 8 of 8 repositories
  • web-interafce Public
    Kube-Shield/web-interafce’s past year of commit activity
    JavaScript 0 0 0 0 Updated Jun 5, 2025
  • Kube-Shield/intrusion-prevention’s past year of commit activity
    0 0 0 0 Updated Jun 2, 2025
  • argocd Public
    Kube-Shield/argocd’s past year of commit activity
    0 0 0 0 Updated Jun 1, 2025
  • Kube-Shield/intrusion-detection’s past year of commit activity
    Shell 0 0 0 0 Updated May 31, 2025
  • Kube-Shield/microservice-application’s past year of commit activity
    Java 0 Apache-2.0 0 0 0 Updated May 30, 2025
  • Top languages

    Loading…

    Most used topics

    Loading…

    0