Skip to content
konnektr-ioPublic

About

A cloud platform control plane for managing projects, resources, and RBAC.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

Β 

History

312 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

KtrlPlane

The Control Plane for the Konnektr Platform

KtrlPlane is a centralized management system for users, organizations, projects, resources, billing, and role-based access control (RBAC). It serves as the administrative backbone for the entire Konnektr ecosystem.


🌐 Try It Live

See KtrlPlane in action: ktrlplane.konnektr.io

Create an account and start managing your Konnektr projects and resources instantly.


πŸ“š Documentation

Full documentation is available at: docs.konnektr.io/docs/ktrlplane

Quick Links


πŸš€ Quick Start


🎯 What is KtrlPlane?

KtrlPlane is the Control Plane of the Konnektr Platform, providing:

  • User & Organization Management: Multi-tenant architecture with organizations and projects
  • Resource Lifecycle Management: Create and manage Konnektr resources (Graph, Assembler, Flow, Compass)
  • Role-Based Access Control (RBAC): Fine-grained permissions at organization, project, and resource levels
  • Billing Integration: Stripe-powered subscription and usage-based billing
  • Observability: Integrated logging and metrics through Loki/Mimir proxies
  • Service Account Support: Machine-to-machine authentication for backend services
  • Kubernetes-Native: Declarative deployments using db-query-operator

Technology Stack:

  • Backend: Go 1.24+ with PostgreSQL
  • Frontend: React + TypeScript + Vite + shadcn/ui + Zustand
  • Authentication: Auth0 integration
  • Payments: Stripe
  • Deployment: Kubernetes with db-query-operator

πŸ“¦ Features

Core Capabilities

  • βœ… Multi-tenant organization and project management
  • βœ… Resource provisioning for Konnektr products
  • βœ… Hierarchical RBAC with built-in roles
  • βœ… Stripe billing with subscription management
  • βœ… Auth0 authentication and M2M service accounts
  • βœ… Kubernetes secrets management
  • βœ… Logging and metrics proxy endpoints
  • βœ… RESTful API with comprehensive documentation

Managed Resources

  • Konnektr.Graph - Graph database and API layer
  • Konnektr.Assembler - AI-powered digital twin builder
  • Konnektr.Flow - Real-time data & event processing
  • Konnektr.Compass - Navigation/discovery tool (coming soon)

πŸ’» Development Setup

Prerequisites

  • Go 1.24+
  • Node.js 18+
  • PostgreSQL 14+
  • pnpm

Local Setup

# 1. Clone the repository
git clone https://github.com/konnektr-io/ktrlplane.git
cd ktrlplane

# 2. Setup database
createdb ktrlplane_db

# 3. Configure application
cp config.yaml.example config.yaml
# Edit config.yaml with your database and Auth0 settings

# 4. Run migrations
go run cmd/migrate/main.go

# 5. Start backend
go run cmd/server/main.go

# 6. Start frontend (in another terminal)
cd web
pnpm install
pnpm run dev

The application will be available at:

For detailed setup instructions, see the Development Guide.


πŸ” Configuration

Environment Variables

Key configuration options in config.yaml or environment variables:

Authentication (Required)

auth0:
  domain: your-tenant.auth0.com
  audience: https://api.ktrlplane.io

Stripe Billing (Required for billing features)

stripe:
  secret_key: sk_test_...
  publishable_key: pk_test_...
  webhook_secret: whsec_...

Kubernetes (Required for resource deployment)

kubernetes:
  in_cluster: false  # Set to true when running in K8s
  kubeconfig: ~/.kube/config

See the Self-Hosting Guide for complete configuration details.


🚒 Deployment

Docker Compose (Development)

cd deployments/docker
docker-compose up -d

Kubernetes (Production)

KtrlPlane uses the db-query-operator for Kubernetes deployments, which queries the database for desired state.

# Apply manifests
kubectl apply -f deployments/kubernetes/manifests.yaml

# The operator will automatically:
# - Read resource configurations from PostgreSQL
# - Deploy resources to appropriate namespaces
# - Maintain desired state

See Kubernetes Deployment Guide for details.

Helm Chart (coming soon)

helm repo add ktrlplane https://charts.ktrlplane.io
helm install ktrlplane ktrlplane/ktrlplane

πŸ“‚ Project Structure

ktrlplane/
β”œβ”€β”€ cmd/                    # Application entry points
β”‚   β”œβ”€β”€ migrate/           # Database migration tool
β”‚   └── server/            # Main API server
β”œβ”€β”€ internal/              # Private application code
β”‚   β”œβ”€β”€ api/              # HTTP handlers and routes
β”‚   β”œβ”€β”€ auth/             # Auth0 integration
β”‚   β”œβ”€β”€ config/           # Configuration management
β”‚   β”œβ”€β”€ db/               # Database queries
β”‚   β”œβ”€β”€ models/           # Data models
β”‚   β”œβ”€β”€ service/          # Business logic
β”‚   └── utils/            # Helper functions
β”œβ”€β”€ migrations/            # SQL database migrations
β”œβ”€β”€ web/                   # React frontend
β”‚   └── src/
β”‚       β”œβ”€β”€ components/   # Reusable UI components
β”‚       β”œβ”€β”€ features/     # Feature-based modules
β”‚       β”œβ”€β”€ lib/          # Utilities and API client
β”‚       └── pages/        # Route pages
β”œβ”€β”€ deployments/           # Deployment configurations
β”‚   β”œβ”€β”€ docker/           # Docker Compose setup
β”‚   └── kubernetes/       # K8s manifests
└── docs/                  # Documentation source (MDX)

πŸ§ͺ Testing

# Run backend tests
go test ./...

# Run backend tests with coverage
go test -cover ./...

# Run frontend tests
cd web
pnpm test

🀝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes following our coding standards
  4. Write tests for new functionality
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Please read our Development Guide for coding standards and best practices.


πŸ“‹ Scope

KtrlPlane is the Control Plane only. It manages:

βœ… In Scope:

  • User management and authentication
  • RBAC and permissions
  • Billing and subscriptions
  • Resource lifecycle management
  • Project and organization management

❌ Out of Scope:

  • Internal business logic of products (Graph queries, Flow execution, Assembler AI processing)
  • Direct database access to product databases
  • Product-specific operations (these go through product APIs)

See PLATFORM_SCOPE.md for detailed boundaries.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ”— Links


Built with ❀️ by the Konnektr team

About

A cloud platform control plane for managing projects, resources, and RBAC.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages