[task] Preview and sync GitHub team membership

Aperta
#408 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, github, python
Ambito
api, backend, devops

Direzione di ricerca

This is multi-zone design and implementation work: reconciliation for managed GitHub teams with a separate administrative credential, periodic runs, and offline tests with fake providers. It is blocked by #407 and has no assignee yet. Start by reading the linked GITHUB-RETRIEVAL.md plan and AGENTS.md, then the team-tracking and connectors services. Done means the offline tests for repeat runs, removal, partial failures and stale plans pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/bot area/deployment area/docs-system area/integration area/observability area/service type/feature
Blocked by

#445

What

Show a read-only preview of GitHub membership changes, then let an admin explicitly enable scheduled writes per managed team.

Why

Admins need to see who gains or loses access before applying changes, and recover from drift and failed writes.

Area

bot, deployment, docs-system, integration, observability, service

Done looks like
  • The preview derives desired membership from active Misty members with verified GitHub IDs. Show adds, removals, protected members, roles, pending invites and unresolved accounts. A partial page or stale plan cannot authorize removals.
  • Operators can inspect and pause a team, rotate its separate write credential and recover drift or failed syncs. Include the disposable-team staging exercise with preview, repeat reconciliation, removal and recovery.
  • Require an explicit per-team transition from reviewed read-only adoption to managed writes; verify current desired/provider state before applying changes and refuse stale or incomplete plans.
  • Use a separate narrowly permissioned administrative credential through connectors. Document required organization Members write permission, installation and credential rotation; do not expand the retrieval credential.
  • Apply additions/removals with bounded, idempotent reconciliation; handle pending invitations, member roles, account unlinking and team retirement according to the adoption policy.
  • Run periodic reconciliation using existing runner/deployment patterns; optional events accelerate it but are not the sole recovery mechanism. Bound concurrency, pagination, retries and rate-limit waits.
  • Track last success, drift and per-member failures without secret/provider-body logging. A partial failure must be visible and retryable; do not report pending invites as active membership.
  • Invalidate affected Misty-derived authorization on local removal/retirement immediately; failed GitHub removal must not leave a stale Misty team grant valid. Do not remove organization membership or other teams.
  • Offline tests cover repeat runs, removal, manual drift, partial failures, rate limits, crash/restart and stale plans. Update API/configuration/deployment/runbook documentation; live activation is accepted in the rollout child.
Design notes

Part of #404. Team-tracking owns intended membership. Connectors owns GitHub operations. #409 owns repository grants and private channel authorization. Detailed preview and rollout cases are in #407 and #410. Design: #333 / PR #397.

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
3g 3h
PR unite (30g)
31

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UTMIST/Misty

Tutte le issue di UTMIST/Misty

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.