OLM install: let the plugin create its mTLS certificates

未關閉
#1,268 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
47/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
go, kubernetes, postgresql

研究方向

Start by locating the plugin's /readyz handler and readiness probe, then trace how it loads the barman-cloud-server-tls and barman-cloud-client-tls secrets. The smaller proposal is done when readiness reports failure if certificate files are missing. The certificate-generation proposal also needs decisions about CA and certificate creation, renewal, and compatibility with existing cert-manager secrets.

由索引模型根據 Issue 內容生成。

描述

First, thanks for the great work on CloudNativePG and the plugin! We use CloudNativePG in many projects, and it hugely
simplifies our PostgreSQL setups!

We installed the plugin from OperatorHub (v0.16.0, AllNamespaces) next to CloudNativePG 1.30.2 installed the
same way.

After the Subscription everything looks healthy: the CSV is Succeeded and the barman-cloud pod is 1/1 Ready.
But the plugin is not usable. The CNPG operator registers it only after we create barman-cloud-server-tls and
barman-cloud-client-tls ourselves (we used the cert-manager example from the docs). Until then the only signal is a
ServerSecretNotFound warning event on the barman-cloud Service and an error in the CNPG operator log.

Proposal 1: create the certificates when they are missing

When the two secrets do not exist, the plugin creates a CA, a server certificate for the barman-cloud Service and a
client certificate, and renews them before they expire. If the secrets already exist, it leaves them alone, so
cert-manager setups keep working. With this, an OLM install is complete with just a Subscription.

Proposal 2 (smaller): do not report Ready without certificates

If self-generated certificates are not wanted, the pod should not look healthy.

Today the readiness probe is tcpSocket: 9090. That port is open even without certificates.

Possible change: add a check to the existing /readyz endpoint (port 8081, today only a ping) that loads the
certificate files, and use /readyz as the readiness probe.

Environment

  • Kubernetes 1.36, OLM
  • CloudNativePG 1.30.2 and plugin-barman-cloud 0.16.0, both from OperatorHub.io
主要語言
Go
星號
214
分支
91
平均合併
2 天 11 小時
30 天內合併 PR
38

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cloudnative-pg/plugin-barman-cloud 的其他 Issue

查看 cloudnative-pg/plugin-barman-cloud 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。