Sign inSign up

maximiliysiss/konfigo-backend

By maximiliysiss

Updated about 1 month ago

Konfigo backend API, gRPC stream, and SignalR service

Image
0

478

maximiliysiss/konfigo-backend repository overview

Konfigo Backend

.NET ASP.NET Core PostgreSQL Redis Docker CI/CD

ASP.NET Core backend for Konfigo, a centralized real-time configuration management service. It exposes REST APIs for the web UI, gRPC streaming for SDK clients, and SignalR notifications for browser sessions.

What This Image Contains

  • Konfigo REST API for services, versions, config entries, audit logs, and authentication metadata
  • gRPC realtime configuration stream for .NET, Go, and Python clients
  • SignalR hub for frontend updates
  • Automatic FluentMigrator database migrations on startup
  • PostgreSQL persistence and Redis-backed distributed coordination
  • Configurable authentication with OpenID Connect, JWT bearer, or SAML 2.0

Run

docker run -p 8080:8080 -p 8081:8081 \
  -e ASPNETCORE_ENVIRONMENT=Production \
  -e ConnectionStrings__Postgres="Host=postgres;Port=5432;Database=konfigo;Username=postgres;Password=change-me;Persist Security Info=True;" \
  -e ConnectionStrings__Redis="redis:6379" \
  -e Authentication__Provider="Jwt" \
  -e Authentication__Jwt__Authority="https://your-idp.example.com" \
  -e Authentication__Jwt__Audience="konfigo" \
  your-dockerhub-user/konfigo-backend:latest

The HTTP REST API listens on port 8080. The gRPC endpoint listens on port 8081 with HTTP/2.

Required Services

ServicePurpose
PostgreSQL 14+Application data, audit data, and event delivery state
Redis 7+Distributed locks across backend replicas
Identity providerOpenID Connect, JWT bearer, or SAML 2.0 authentication

Important Environment Variables

VariableDescription
ConnectionStrings__PostgresPostgreSQL connection string
ConnectionStrings__RedisRedis connection string
ASPNETCORE_ENVIRONMENTASP.NET Core environment name
Authentication__ProviderOpenId, Jwt, or Saml
Authentication__RoleClaimTypeClaim type used for role mapping
Authorization__Policies__canAll__0First role allowed to administer services, versions, and entries
Authorization__Policies__canChange__0First role allowed to read services and change config values

Local Development

cd apps/backend
docker compose up -d
dotnet run --project src/Konfigo

The local compose file starts PostgreSQL, Redis, Dex, and nginx. Open the full app through http://localhost:3000 after also starting the frontend dev server.

More Information

Tag summary

Content type

Image

Digest

sha256:914ecd19a

Size

101.8 MB

Last updated

about 1 month ago

docker pull maximiliysiss/konfigo-backend