Record missing audit events for 13 authorization lifecycle transitions
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design, databases, security
Línea de trabajo
Start with server/src/plugins/route-groups/connections.ts, the plugin store writes, and the historical ledger server/tests/pending-authorization-audit-ledger.test.ts at the linked commit; then inspect current behavior tests for each transition. Add persisted audit assertions for the 13 listed gaps, checking actor, attempt correlation, and safe payload while avoiding secret identifiers and duplicate ending events. Done means every transition has a behavior test that verifies its persisted audit event.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
PR #872 removes a source-scanning audit ledger that recorded known gaps but did not prove events fired. This issue preserves its 13 debt entries, as requested in review. These are existing gaps, not new regressions from the test cleanup.
Source ledger: pending-authorization-audit-ledger.test.ts at c19d0653. Most transitions are in server/src/plugins/route-groups/connections.ts; store writes are in server/src/plugins/plugin-store.
Dusty confirmed all 13 gaps are still current. The three items marked Priority below should be addressed first: consent can remain live at the vendor with only a console line as the record.
Missing lifecycle audit coverage
- Claim (
claimAuthorizationAttempt, B5e): record who started which consent attempt. - Expiry overwrite/re-claim (same call, B5e): record the previous attempt's ending before ON CONFLICT replaces it.
- Discard after vendor mint refusal (
arcade-refused-attempt-not-cleared, B5e): record the refusal/ending, not only cleanup-failure logging. - Priority — Discard after successful mint cannot be recorded (
arcade-mint-not-recorded, B5e): record that a consent flow may remain live at the vendor. - Mint recorded (
recordAuthorizationMint,authId: minted.authorizationId, B5e): audit the attempt being bound to a vendor authorization without exposing its secret identifiers. - Vendor reports failed consent (
failAuthorizationAttempt,settled.status === "failed", B5e): record the terminal verdict. - Completed consent has the wrong identity (
failAuthorizationAttempt,settled.userId !== attempt.vendorUserId, B5e): record the attribution refusal. - Context changed and vendor withdrew retired grant (
markAuthorizationWithdrawn, B5e): audit the attempt's verdict; account-disconnection rows alone do not describe it. - Priority — Person no longer permitted to act; grant not withdrawn (
markAuthorizationUnreconciled,arcade-completion-not-permitted, B5e): record the closed attempt and potentially live vendor consent. - Priority — Context changed and withdrawal unconfirmed (
markAuthorizationUnreconciled, B5e): record the unresolved grant rather than only a console line. - App/server removal cascade (
pending_authorizations_server_id_mcp_servers_id_fk, B5e): identify affected in-flight attempts; configuration-change rows currently describe released grants only. - Actor removal cascade (
pending_authorizations_actor_id_users_id_fk, B5e): identify attempts that die with the actor, including potentially live vendor consent. - Cancel loses race to completion (
That authorization finished before it could be cancelled, B2c): audit the refused cancellation (409) even though no pending row is deleted.
Acceptance
Exercise each transition through behavior tests and assert the persisted audit event, actor, attempt correlation, and safe payload. Do not log bearer consent URLs or live authorization IDs. Keep the existing successful completion and cancellation events; avoid duplicate attempt-ending events when a cancelled attempt is encountered by a late mint/completion. The original ledger waived those two late-return branches because cancellation had already been audited.
Re-check each gap against current code when implementing; the list preserves the historical findings rather than claiming a new runtime reproduction of all 13.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.1k
- Forks
- 962
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 138
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CopilotKit/OpenBot
-
Composio plugin sends x-api-key, but connect.composio.dev/mcp requires x-consumer-api-keyPosiblemente ocupada @azmi2409 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CopilotKit/OpenBot#817 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Wrong key location at startupPosiblemente ocupada @charan-rathore la tomó hace 12 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
CopilotKit/OpenBot#800 ·
Los mantenedores suelen responder en 1 día
-
setup-learning.ts fails on Windows with "spawn npx.cmd EINVAL"Posiblemente ocupada @Caldas la tomó hace 14 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
CopilotKit/OpenBot#792 ·
Los mantenedores suelen responder en 1 día
-
Android share target opens OpenBot but cannot pick a conversation or send the shared contentPosiblemente ocupada @Laptopmini la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
CopilotKit/OpenBot#867 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
CopilotKit/OpenBot#866 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CopilotKit/OpenBot
Issues similares
-
Shell: serve the home app's Cookie Policy on a hard reloadPosiblemente ocupada @2001anshkaushik la tomó hoy. Abiertofeature module:ai
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
rocketride-org/rocketride-server#2899 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
gofish-graphics/gofish-graphics#1252 ·
Los mantenedores suelen responder en 1 día
-
optimization P3 size:XS
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
josephfung/curia#2366 ·
Los mantenedores suelen responder en 1 día
-
stranded-follow-up sweep trusts any issue whose body carries the marker as the tracking issueAbiertotype:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
nightgauge/nightgauge#2688 ·
Los mantenedores suelen responder en 1 día