From e954253a1a3d02f70279190f5e2479f9208f58d4 Mon Sep 17 00:00:00 2001 From: "Ritchie, Frank (fr801x)" Date: Fri, 26 Feb 2021 10:12:15 -0500 Subject: [PATCH] Enable TLS for Ceph RGW This PS is to optionally enable tls for ceph-rgw. Change-Id: I4797ef41612143f8065ac8fec20ddeae2c0218a3 --- ceph-rgw/Chart.yaml | 2 +- ceph-rgw/templates/bin/_helm-tests.sh.tpl | 4 +++ ceph-rgw/templates/bin/rgw/_init.sh.tpl | 12 +++++++-- ceph-rgw/templates/certificates.yaml | 20 ++++++++++++++ ceph-rgw/templates/deployment-rgw.yaml | 29 ++++++++++++++------- ceph-rgw/templates/ingress-rgw.yaml | 12 +++++++-- ceph-rgw/templates/service-ingress-rgw.yaml | 7 ++++- ceph-rgw/templates/service-rgw.yaml | 8 ++++-- ceph-rgw/values.yaml | 7 ++++- ceph-rgw/values_overrides/tls.yaml | 22 ++++++++++++++++ release.asc | 29 +++++++++++++++++++++ releasenotes/notes/ceph-rgw.yaml | 1 + 12 files changed, 135 insertions(+), 18 deletions(-) create mode 100644 ceph-rgw/templates/certificates.yaml create mode 100644 ceph-rgw/values_overrides/tls.yaml create mode 100644 release.asc diff --git a/ceph-rgw/Chart.yaml b/ceph-rgw/Chart.yaml index 8e6b9ac74..b91b3d27d 100644 --- a/ceph-rgw/Chart.yaml +++ b/ceph-rgw/Chart.yaml @@ -15,6 +15,6 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Ceph RadosGW name: ceph-rgw -version: 0.1.4 +version: 0.1.5 home: https://github.com/ceph/ceph ... diff --git a/ceph-rgw/templates/bin/_helm-tests.sh.tpl b/ceph-rgw/templates/bin/_helm-tests.sh.tpl index 505668f42..e1fff2971 100644 --- a/ceph-rgw/templates/bin/_helm-tests.sh.tpl +++ b/ceph-rgw/templates/bin/_helm-tests.sh.tpl @@ -83,7 +83,11 @@ function rgw_s3_bucket_validation () echo "function: rgw_s3_bucket_validation" bucket=s3://rgw-test-bucket +{{- if .Values.manifests.certificates }} + params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --no-check-certificate" +{{- else }} params="--host=$RGW_HOST --host-bucket=$RGW_HOST --access_key=$S3_ADMIN_ACCESS_KEY --secret_key=$S3_ADMIN_SECRET_KEY --no-ssl" +{{- end }} bucket_stat="$(s3cmd ls $params | grep ${bucket} || true)" if [[ -n "${bucket_stat}" ]]; then diff --git a/ceph-rgw/templates/bin/rgw/_init.sh.tpl b/ceph-rgw/templates/bin/rgw/_init.sh.tpl index b689d1516..66dc03e06 100644 --- a/ceph-rgw/templates/bin/rgw/_init.sh.tpl +++ b/ceph-rgw/templates/bin/rgw/_init.sh.tpl @@ -28,8 +28,12 @@ cat >> /etc/ceph/ceph.conf <