test(e2e): cover an anonymous read of a publicRead bucket
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 76/100
Direção de pesquisa
Start with hack/e2e-chainsaw/bucket/chainsaw-test.yaml and read the existing bucket setup and mc checks; hack/select-e2e.sh shows how the suite is selected. Add a Chainsaw case that enables publicRead, waits for the named BucketAccess, checks the unsigned GET, list, and PUT responses, then disables publicRead and checks GET again. Done when the suite verifies the requested status codes in both states.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
No E2E test reads a bucket without credentials, so a broken publicRead would pass CI. #5252 added publicRead to the bucket app and moved the COSI driver to v0.5.0, which grants Read:<bucket> to the shared anonymous identity. Its tests are helm-unittest suites, and the PR says the end-to-end path through the new driver has not run on a cluster.
The bucket suite (hack/e2e-chainsaw/bucket/chainsaw-test.yaml) does run for SeaweedFS and bucket changes: hack/select-e2e.sh maps seaweedfs-application to it. But it creates the bucket with publicRead off and only checks the admin and viewer users with mc. Nothing sends an unsigned request.
So these breaks stay green in CI: the driver stops granting or revoking the anonymous read, a SeaweedFS bump changes how the gateway treats the anonymous identity, or a hook rewrites that identity. Users would see 403 on a public link, or a bucket that stays readable after publicRead is turned off.
Fix shape: a chainsaw case in the bucket suite that sets publicRead: true, waits for the <bucket>-public-read BucketAccess, and checks that an unsigned GET of an object returns 200 while an unsigned list and PUT return 403. Then it sets publicRead: false and checks that the unsigned GET returns 403.
- Linguagem predominante
- Go
- Estrelas
- 2.2k
- Forks
- 209
- Merge médio
- 4d 14h
- PRs com merge (30d)
- 140
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de cozystack/cozystack
-
triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
cozystack/cozystack#5464 · 1 reação ·
Mantenedores costumam responder em até 3 dias
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about itAbertaarea/testing kind/cleanup triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
cozystack/cozystack#5456 · 1 reação ·
Mantenedores costumam responder em até 3 dias
-
area/testing kind/cleanup triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
cozystack/cozystack#5447 · 1 reação ·
Mantenedores costumam responder em até 3 dias
-
area/kubernetes kind/bug triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cozystack/cozystack#5445 · 1 reação ·
Mantenedores costumam responder em até 3 dias
-
kind/bug triage/needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
cozystack/cozystack#5438 · 1 reação ·
Mantenedores costumam responder em até 3 dias
Todas as issues de cozystack/cozystack
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Correct local module testing instructions for Go sample contributorsTalvez já em andamento @slievrly assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Talvez já em andamento @pacwestnobody assumiu hoje. Abertago good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Podiom/Podiom#427 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
factory:subtask
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
Mantenedores costumam responder em até 1 dia