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.
See KtrlPlane in action: ktrlplane.konnektr.io
Create an account and start managing your Konnektr projects and resources instantly.
Full documentation is available at: docs.konnektr.io/docs/ktrlplane
- π Quick Start Guide
- π§± Core Concepts
- π API Reference
- π Access Control & RBAC
- π³ Billing & Subscriptions
- ποΈ Self-Hosting Guide
- π οΈ Development Setup
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
- β 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
- 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)
- Go 1.24+
- Node.js 18+
- PostgreSQL 14+
- pnpm
# 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 devThe application will be available at:
- Frontend: http://localhost:5173
- Backend API: http://localhost:8080
For detailed setup instructions, see the Development Guide.
Key configuration options in config.yaml or environment variables:
auth0:
domain: your-tenant.auth0.com
audience: https://api.ktrlplane.iostripe:
secret_key: sk_test_...
publishable_key: pk_test_...
webhook_secret: whsec_...kubernetes:
in_cluster: false # Set to true when running in K8s
kubeconfig: ~/.kube/configSee the Self-Hosting Guide for complete configuration details.
cd deployments/docker
docker-compose up -dKtrlPlane 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 stateSee Kubernetes Deployment Guide for details.
helm repo add ktrlplane https://charts.ktrlplane.io
helm install ktrlplane ktrlplane/ktrlplanektrlplane/
βββ 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)
# Run backend tests
go test ./...
# Run backend tests with coverage
go test -cover ./...
# Run frontend tests
cd web
pnpm testWe welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes following our coding standards
- Write tests for new functionality
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please read our Development Guide for coding standards and best practices.
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.
This project is licensed under the MIT License - see the LICENSE file for details.
- Live Platform: ktrlplane.konnektr.io
- Documentation: docs.konnektr.io/docs/ktrlplane
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Konnektr Platform: konnektr.io
Built with β€οΈ by the Konnektr team