Skip to content

[server, webui, daemons]: Support setting tls secrets by name #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/rucio-daemons/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rucio-daemons
version: 36.0.4
version: 36.0.5
apiVersion: v1
description: A Helm chart to deploy daemons for Rucio
keywords:
Expand Down
20 changes: 20 additions & 0 deletions charts/rucio-daemons/templates/renew-fts-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
{{- end }}
{{- end}}
{{- end}}
{{- if .Values.ftsRenewal.tlsSecretName }}
- name: tls-secret-volume
secret:
secretName: {{ .Values.ftsRenewal.tlsSecretName }}
items:
- key: tls.crt
path: usercert.pem
- key: tls.key
path: userkey.pem
{{- end }}
{{- if .Values.useDeprecatedImplicitSecrets }}
{{- if or (eq .Values.ftsRenewal.vo "atlas") (eq .Values.ftsRenewal.vo "dteam") }}
- name: longproxy
Expand Down Expand Up @@ -54,6 +64,16 @@
- name: config-common
mountPath: /opt/rucio/etc/conf.d/10_common.json
subPath: common.json
{{- if .Values.ftsRenewal.tlsSecretName }}
- name: tls-secret-volume
mountPath: /opt/rucio/certs/usercert.pem
subPath: usercert.pem
readOnly: true
- name: tls-secret-volume
mountPath: /opt/rucio/keys/userkey.pem
subPath: userkey.pem
readOnly: true
{{- end }}
{{- if .Values.useDeprecatedImplicitSecrets }}
{{- if or (eq .Values.ftsRenewal.vo "atlas") (eq .Values.ftsRenewal.vo "dteam") }}
- name: longproxy
Expand Down
1 change: 1 addition & 0 deletions charts/rucio-daemons/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ ftsRenewal:
pullPolicy: Always
servers: "https://fts3-devel.cern.ch:8446,https://cmsfts3.fnal.gov:8446,https://fts3.cern.ch:8446,https://lcgfts3.gridpp.rl.ac.uk:8446,https://fts3-pilot.cern.ch:8446"
script: 'default' # one of: 'default', 'atlas', 'dteam', 'multi_vo', 'tutorial', 'escape'. The associated scripts can be found here: https://github.com/rucio/containers/tree/master/fts-cron
tlsSecretName: null
vos:
- vo: "none"
voms: "none"
Expand Down
2 changes: 1 addition & 1 deletion charts/rucio-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rucio-server
version: 36.0.6
version: 36.0.7
apiVersion: v1
description: A Helm chart to deploy servers for Rucio
keywords:
Expand Down
20 changes: 20 additions & 0 deletions charts/rucio-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ spec:
{{- end }}
- name: httpdlog
emptyDir: {}
{{- if .Values.tlsSecretName }}
- name: tls-secret-volume
secret:
secretName: {{ .Values.tlsSecretName }}
items:
- key: tls.crt
path: hostcert.pem
- key: tls.key
path: hostkey.pem
{{- end }}
{{- if .Values.policyPackages.enabled }}
- name: policy-package-volume
persistentVolumeClaim:
Expand Down Expand Up @@ -161,6 +171,16 @@ spec:
mountPath: /opt/certs
{{- end }}
{{- end }}
{{- if .Values.tlsSecretName }}
- name: tls-secret-volume
mountPath: /etc/grid-security/hostcert.pem
subPath: hostcert.pem
readOnly: true
- name: tls-secret-volume
mountPath: /etc/grid-security/hostkey.pem
subPath: hostkey.pem
readOnly: true
{{- end }}
{{- if .Values.policyPackages.enabled }}
- name: policy-package-volume
mountPath: {{ .Values.policyPackages.mountPath }}
Expand Down
2 changes: 2 additions & 0 deletions charts/rucio-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ useSSL: false

hostname: null

tlsSecretName: null

image:
repository: rucio/rucio-server
tag: release-36.2.0
Expand Down
2 changes: 1 addition & 1 deletion charts/rucio-webui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rucio-webui
version: 36.0.2
version: 36.0.3
apiVersion: v1
description: A Helm chart to deploy the new Rucio Webui
keywords:
Expand Down
20 changes: 20 additions & 0 deletions charts/rucio-webui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ spec:
secretName: {{ template "rucio.fullname" . }}.config.yaml
- name: httpdlog
emptyDir: {}
{{- if .Values.tlsSecretName }}
- name: tls-secret-volume
secret:
secretName: {{ .Values.tlsSecretName }}
items:
- key: tls.crt
path: hostcert.pem
- key: tls.key
path: hostkey.pem
{{- end }}
- name: webui-log
emptyDir: {}
{{- if .Values.useDeprecatedImplicitSecrets }}
Expand Down Expand Up @@ -139,6 +149,16 @@ spec:
subPath: ca.pem
{{- end}}
{{- end}}
{{- if .Values.tlsSecretName }}
- name: tls-secret-volume
mountPath: /etc/grid-security/hostcert.pem
subPath: hostcert.pem
readOnly: true
- name: tls-secret-volume
mountPath: /etc/grid-security/hostkey.pem
subPath: hostkey.pem
readOnly: true
{{- end }}
{{- range $key, $val := .Values.secretMounts }}
- name: {{ coalesce $val.volumeName $val.secretName $val.secretFullName }}
mountPath: {{ $val.mountPath }}
Expand Down
2 changes: 2 additions & 0 deletions charts/rucio-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ useSSL: true

hostname: null

tlsSecretName: null

service:
type: ClusterIP
port: 80
Expand Down
Loading