chore(postgres): retire the system-database release pass once the supported lines have shipped it
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- bash, postgresql
- Domínio
- databases
Direção de pesquisa
Read packages/apps/postgres/templates/init-script.yaml around the system-database release pass and hack/postgres-release-system-databases.bats. First check the supported release lines and the status of #5157 to confirm the removal condition is met. Once the extra minor has shipped, remove the pass and its test, keep the database refusal, and add the SQL recovery recipe to the release notes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem / motivation
Since #5155 the chart refuses postgres, template0 and template1 in databases (packages/apps/postgres/templates/init-script.yaml:56-58) and never drops them. The same change added a pass that runs on every init Job (init-script.yaml, from == release system databases, around lines 326-410) and hands back system databases that earlier versions had taken over: it drops the auto-grant trigger, reassigns what the managed roles own, and returns public to its default owner. hack/postgres-release-system-databases.bats tests it by cutting the pass out of the template and running it against a fake psql that answers by the exact SQL text, so it catches a rewording rather than a behaviour change.
The pass protects something real. On an installation where an old version took over template1, every database created afterwards inherits a trigger that names template1_admin; once that role is dropped, every CREATE SCHEMA there fails. Removing the pass now would leave those installations to fix by hand, and I do not know how many exist. But it is a one-time repair that stays in every run of every release forever.
Proposed solution
Pick a removal point: once every supported release line has shipped the pass (it is in v1.7.1; the release-1.6 backport, #5157, is still open) and one more minor has gone out, remove the pass and its bats test, keep the refusal, and leave a SQL recipe in the release notes for anyone who skipped those versions.
Scope check
- This affects a single component / package (if it spans many, consider a design proposal)
- I can describe the expected behavior concretely (if not, consider a Discussion first)
Alternatives considered
Remove it now and document the manual recovery: smaller, but it moves the repair onto operators who may not know they are affected. Keep it forever: no risk, but each change to the init script has to keep this pass and its text-matching test working.
Additional context
The e2e suite under hack/e2e-chainsaw/postgres would be the place for a behaviour test while the pass still exists.
- 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