Separate refused access and unreadable grants from drift in guidance checks
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start with #1176, then read server/tracker/domain/contract.py, server/tracker/app/contract.py, and server/tracker/app/onboarding.py to understand the existing type checks and grant reads. The issue proposes new declared-object and grant-scope handling, with behavior that must be validated against a live source fixture. Done means the listed outcomes, retained results, tenant isolation, and metadata-only access all pass the acceptance fixture.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Company
ClickHouse
Component
Knowledge (documents)
Use case
#1176 checks a maintained query recipe against the source it describes and requires that "revoked access, an unavailable source and a missing column remain distinct outcomes."
If a metadata read through the source's credential hides a table the credential can no longer see, a dropped table and a revoked grant look the same: the table is absent. That behaviour of system.columns is expected and not yet confirmed on a live source. A check that reads absence as drift then flags every recipe on that table when a grant is revoked. A check that cannot read the grants has no basis for either answer.
Describe the solution you'd like
Define the check's outcome contract inside #1176's first delivery: registered tracker sources, metadata only. This is a proposal; nothing is implemented or measured.
- Declared objects. The object list #1176 attaches to a guidance revision is the maintainer's declaration: database, table, column and an expected type family per column. No model writes or extends it.
- Reason on
unable. #1176 already defines the three outcomes and binds a result to the guidance revision and the check definition. This adds a reason tounable:source_unavailable,access_refused,grants_unreadable,timeoutorsource_removed. - Fail closed. A table absent from the metadata read is
access_refusedwhen the credential's grants no longer cover it anddriftwhen they do. If the grants cannot be read, the outcome isunablewithgrants_unreadable, neverdriftorpassed. - No cascade. Removing a source registration deletes no check definition and no result. Later checks return
unablewithsource_removed. Rows leave through namespace or user erasure. - A renamed column reports as missing. Suggesting the new name is outside this proposal.
What Loom has that this builds on:
family_okand_check_columnsinserver/tracker/domain/contract.pycompare a live column type with an expected family.server/tracker/app/contract.pyreadssystem.columnsthrough the source's credential.- The registration probe in
server/tracker/app/onboarding.pyreads the credential'sSHOW GRANTSoutput, andreview_grantschecks that every access type in it is read-only. It does not decide which tables a grant covers, so that comparison is new code. tracker.source.checkreports a source's state.diffin the same domain module is tied to the tracker's fixed contract, so describing declared objects is new code.
Acceptance fixture, added to #1176's renamed-column scenario:
- A revoked grant returns
unablewithaccess_refused, notdrift. - A failed grant read returns
unablewithgrants_unreadable. - A stopped source returns
unablewithsource_unavailable. - After the registration is removed, a check returns
unablewithsource_removedand the earlier results are still listed. - A second tenant cannot list the results.
- No model call is made, and only metadata and grant reads reach the source.
Evidence still needed before rollout:
- How
system.columnshides objects by grant, confirmed on a live source in the fixture, beforeaccess_refusedis trusted. - How a grant is matched to a declared table when access comes through a role, a database-wide scope or a view, with wrong
access_refusedand wrongdriftoutcomes counted in the fixture. - How often a view's computed column types read as drift under the type-family comparison.
Describe alternatives you've considered
- Read an absent table as drift. A revoked grant then reports every dependent recipe as broken.
- Probe each table with a
SELECT. That reads data, and #1176's first delivery reads metadata only. - Delete checks and results with their source registration. That deletes rows no writer asked to delete and loses the history #1176 keeps.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no source was queried and no drift was reproduced.
#1755 is separate: it reads a query-history definition draft's table and column lists from the query log. A later extension of this check could use those lists.
Related: Proposed as part of #1176. Roadmap: #1232.
- Lenguaje dominante
- Python
- Estrellas
- 263
- Forks
- 47
- Merge medio
- 14 h 21 min
- PR fusionados (30 d)
- 873
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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 ClickHouse/loom
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/loom#2014 ·
Los mantenedores suelen responder en 1 día
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textPosiblemente ocupada @VanshajPoonia la tomó hoy. Abiertobug good first issue help wanted up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/loom#1988 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
A compiler-tier checkout fetch from a shallow mirror never records its headPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
ClickHouse/loom#2016 ·
Los mantenedores suelen responder en 1 día
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limitPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
ClickHouse/loom#2012 ·
Los mantenedores suelen responder en 1 día
-
loom participant retire cannot retire an orphaned participant after container replacement or host rebootPosiblemente ocupada @l0K1ngg la tomó hoy. Abiertobug help wanted up-for-grabs
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ClickHouse/loom#2007 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ClickHouse/loom
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TigreGotico/orthography2ipa#2950 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Unstructured-IO/unstructured#4876 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openfoodfacts/openfoodfacts-python#579 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
fairagro/m4.2_sql_to_arc#388 ·
Los mantenedores suelen responder en 1 día