Azure / Azure/CosmosDBShell

Lightweight headless CI distribution (no MCP, LSP, interactive UI)

Ouverte
#175 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
automation P1
Langage dominant
C#
Étoiles
3
Forks
7
Merge moyen
1 j 12 h
PR mergées (30 j)
14

Description

## Feedback source
External user feedback (travel multi-agent workshop team).

## Problem
The current single-binary distribution bundles everything: interactive shell, MCP server, LSP, brokered auth, OpenTelemetry, ARM management. For CI/CD use cases (data seeding, CRUD, queries, integration test validation), most of this is unnecessary weight and attack surface.

## Proposed solution
Ship a **separate lightweight, headless CI distribution** with:
- Predictable exit codes (stable contract)
- JSON output mode (\--output json\)
- Workload-identity authentication (federated credentials, no interactive browser)
- Core commands: import, query, assert, CRUD
- **No** MCP, LSP, brokered authentication, or interactive UI

## Implementation options (in priority order)
1. **Same .NET codebase with trimming/Native AOT** — feature-flag the build to exclude MCP/LSP/interactive modules, use .NET publish trimming or NativeAOT for a smaller binary
2. **Go or Rust reimplementation** of the CI-only subset — smallest possible binary, no runtime dependency

Splitting the feature set is more important than changing languages.

## Relationship to other issues
- Complements #155 (A1 — non-interactive output contract)
- Addresses size concern in #174
- Pairs with CI/CD documentation (#TBD)

## Acceptance criteria
- [x] CI distribution is < 15 MB compressed
- [x] Supports workload-identity auth (OIDC federated credentials)
- [x] Stable exit-code contract documented
- [x] JSON output for all commands
- [ ] No dependency on interactive terminal or browser

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

No files or tests are named; start by inspecting the current single-binary distribution and its build configuration, then trace the entry points for import, query, assert, and CRUD. Check how JSON output, exit codes, and workload-identity authentication are currently handled. Done means a compressed CI distribution under 15 MB that requires neither an interactive terminal nor a browser.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp
Domaine
authentication, ci-cd, cli
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.