feat(config-service): implement RFC-0001 config-service (Phase 1 + Phase 2)#57
Open
LostPointer wants to merge 1 commit intoDafeCpp:developfrom
Open
feat(config-service): implement RFC-0001 config-service (Phase 1 + Phase 2)#57LostPointer wants to merge 1 commit intoDafeCpp:developfrom
LostPointer wants to merge 1 commit intoDafeCpp:developfrom
Conversation
…ase 2) Runtime configuration service for feature flags, QoS parameters, and kill-switches. Supports optimistic locking (If-Match), idempotency keys, dry-run, rollback, bulk endpoint with ETag, RBAC, sensitive-value redaction, paranoid-read, and schema compat checks. Infra: postgres DB init, docker-compose services, Makefile targets. Tests: 97 tests total (61 integration + 36 unit), mypy clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
If-Match), idempotency keys, dry-run, rollback, bulk-эндпоинт с ETag, RBAC, редакция sensitive-значений, paranoid-read, compat-проверки JSON Schemaconfig_db, docker-compose сервисыconfig-migrate+config-service, Makefile-целиЧто входит
Новый сервис (
projects/backend/services/config-service/):api/— aiohttp routes:/api/v1/configCRUD,/rollback,/history,/activate,/deactivate,/api/v1/configs/bulk,/api/v1/schemasservices/—ConfigService,SchemaService,ValidationService,BulkService,IdempotencyService,AuditServicerepositories/— raw asyncpg:ConfigRepo,HistoryRepo,SchemaRepo,IdempotencyRepodomain/— Pydantic v2 DTO, dataclass-модели, enumsmigrations/— 001 schema + 002 seed (feature_flag / qos JSON Schema)workers/— background cleanup idempotency keysТесты (97 всего, mypy чист):
Инфра-изменения:
docker-compose.yml— сервисыconfig-migrate,config-servicedocker-entrypoint-initdb.d/init-multiple-databases.sh— созданиеconfig_db/config_userMakefile— целиconfig-create-db,config-migrate,config-init; сервис добавлен вDEV_ALL_SERVICESenv.docker.example— переменные config-serviceTest plan
cd projects/backend/services/config-service && poetry run pytest tests/ -q→ 97 passedpoetry run mypy src/→ Success: no issues found in 32 source filesmake config-init→ миграции применяются без ошибокmake dev-up→curl http://localhost:8005/health→ 200🤖 Generated with Claude Code