Four [limits] keys are accepted and not read or enforced
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start by tracing LimitsConfig and the named paths: crates/auth/src/policy/document.rs, crates/engine/src/create_table.rs, crates/core/src/validation/mod.rs, and crates/engine/src/describe_limits.rs. Follow the existing policy read/write paths and table creation and update validation to decide how each configured limit is handled. Done means each key either affects enforcement as described or is removed from LimitsConfig; the expected errors are specified in the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Four [limits] keys are accepted by the configuration loader and documented, and the server does not act on them.
max_policy_document_bytes(crates/core/src/limits/mod.rs) has no reader. The policy document size check isPolicyDocument::from_json, which callsfrom_json_with_size_limit(json, 6_144)with a literal (crates/auth/src/policy/document.rs:157); both callers usefrom_json. Changing the key changes nothing.max_tables_per_accountis read only by the console settings page.CreateTable(crates/engine/src/create_table.rs) does not count the account's tables, so the limit is never enforced.per_table_max_rcuandper_table_max_wcuare read only byDescribeLimits(crates/engine/src/describe_limits.rs), which reports them. Provisioned throughput validation (crates/core/src/validation/mod.rs) checks that each value is at least 1 and has no upper bound, soCreateTableandUpdateTableaccept any value.
The configuration reference (#537) now describes each key as it behaves. This issue is the other half: either wire the keys (pass max_policy_document_bytes into from_json_with_size_limit on the write and read paths; count tables in CreateTable; bound provisioned throughput in validation) or remove them from LimitsConfig so an operator cannot set a limit that does nothing. The service rejects a table count above the account quota with LimitExceededException and a provisioned value above the per-table maximum with ValidationException; the messages are measured before any enforcement is written.
Found while checking every configuration key against the code that reads it, for #494.
- Lingua principale
- Rust
- Stelle
- 517
- Fork
- 60
- Merge medio
- 4g 22h
- PR unite (30g)
- 40
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ExtendDB/extenddb
-
extenddb version prints the first build's commit after a rebuild in the same target directoryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 4 giorni
-
Launch-prep: scope statement + backend tiers + version policyForse già presa @navareamol l’ha presa oggi. Aperta
Difficoltà 2/5 3-5 giorni Idoneità per principianti 65/100
ExtendDB/extenddb#662 · 1 assegnatario ·
I maintainer di solito rispondono entro 4 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ExtendDB/extenddb#658 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
backend:postgresql bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di ExtendDB/extenddb
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
yunfie-twitter/Palleria#474 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
servo/rust-smallvec#827 ·
I maintainer di solito rispondono entro 1 giorno