metabase: user attributes with \$Object: keys are indexed as system properties for SEARCH
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- databases, distributed-systems
Direzione di ricerca
Start with pkg/local_object_storage/metabase/metadata.go, especially the system-property writes around lines 76, 84 and 101 and the user-attribute loop around lines 134–157. Trace the SEARCH query path to confirm it reads from this index, then check getObjAttribute in counter.go for FilterPayloadSize. Done means forged $Object: user attributes cannot match reserved system properties; assess whether existing indexes need migration or reindexing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Metabase indexing skips only one reserved key, $Object:expirationTime, when it indexes user attributes. Any other user attribute with a $Object: key, such as $Object:payloadLength, $Object:objectType or $Object:version, is indexed under the same key as the real system property. A SEARCH filter on that property can then match an object through the forged attribute.
- The real properties are written at metadata.go#L76, #L84 and #L101.
- User attributes are written under their own key at #L134-L157. The only reserved key that loop skips is
FilterExpirationTime.
This is the SEARCH side of #4300. PR #4338 fixes only the eACL header builders in pkg/services/object/acl/eacl/v2. The fix here is different: the metabase has to skip $Object: attributes, and objects that are already indexed probably need a migration or reindex.
Not verified
I read the code but did not run a reproduction. An earlier worker test on #4300 reported that SEARCH matches forged payloadLength, objectType and version attributes. Two things still need checking: whether the SEARCH query path reads these keys from the same index, and whether getObjAttribute(..., FilterPayloadSize) in counter.go can return the forged value.
- Lingua principale
- Go
- Stelle
- 37
- Fork
- 56
- Merge medio
- 1g 21h
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 nspcc-dev/neofs-node
-
bug hal:proposed neofs-storage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nspcc-dev/neofs-node#4325 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Check alpha scope in IRApertahal:proposed I4 neofs-storage S3 security U4
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
nspcc-dev/neofs-node#4280 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement I3 neofs-storage performance S3 U3
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
nspcc-dev/neofs-node#4337 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug neofs-storage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
nspcc-dev/neofs-node#4336 ·
I maintainer di solito rispondono entro 1 giorno
-
bug neofs-storage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
nspcc-dev/neofs-node#4333 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nspcc-dev/neofs-node
Issue simili
-
Missing Readme InstructionsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
OpenSlides/openslides-go#342 ·
I maintainer di solito rispondono entro 4 giorni
-
docs: link to the CLA in InditexTech/foss instead of keeping a local CLA.mdForse già presa @amagan l’ha presa oggi. Apertadocumentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
InditexTech/redkey-operator#129 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
trufflesecurity/trufflehog#5573 ·
I maintainer di solito rispondono entro 1 giorno