Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

aeskey and jwt Secrets are missing helm.sh/resource-policy: keep

未关闭 适合新手
#945 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
helm, typescript
领域
devops

调研方向

将 .helm/ctrl/templates/secrets/aeskey.yaml 和 jwt.yaml 与已包含 keep 注解的 postgres.yaml 进行比较。为这两个 Secrets 添加相同的元数据注解;然后检查渲染后的 Helm 模板,确认该注解存在。完成的标准是卸载 release 后,AES 密钥和 JWT Secrets 仍会保留。

由索引模型根据 Issue 内容生成。

描述

bug

The ctrl-postgres Secret in .helm/ctrl/templates/secrets/postgres.yaml carries "helm.sh/resource-policy": keep. The aeskey and jwt Secrets don't, and never have, both were created in f453dec without it.

Helm removes the resources it created on helm uninstall unless they carry that annotation. The Postgres data volume isn't one of those, it comes from the postgresql subchart's StatefulSet volumeClaimTemplate, so Kubernetes keeps it.

So an uninstall takes the AES encryption key away and leaves the database behind. A reinstall generates a fresh key, and everything written under the old one becomes unreadable. Names, email, DOB, mobile, address, next of kin, plus Organisation.elsaToken and Study.redcapToken. The app would start normally, so this surfaces as ciphertext appearing in the UI rather than as an error.

Ordinary deploys aren't affected. The lookup in _helpers.tpl reuses the existing Secret on helm upgrade, so the key survives a normal release. This is specifically about uninstall and reinstall, which is what happens when a deployment gets cleared down or moved between clusters.

Same shape as #701 (Redeploy loses database password), which PR #709 addressed for the postgres password by adding the annotation. The other two secrets were never brought in line.

Fix: add "helm.sh/resource-policy": keep to the metadata annotations in aeskey.yaml and jwt.yaml, matching postgres.yaml.

主要语言
TypeScript
星标
4
派生
0
平均合并
14 小时 50 分钟
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Garvan-Data-Science-Platform/ctrl 的其他 Issue

查看 Garvan-Data-Science-Platform/ctrl 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。