Skip to content

Commit

Permalink
Merge pull request #4197 from lsst-sqre/tickets/DM-48957
Browse files Browse the repository at this point in the history
DM-48957: Change defaults for secrets migration
  • Loading branch information
rra authored Feb 14, 2025
2 parents b6b5711 + ba497dc commit c08d4e1
Show file tree
Hide file tree
Showing 57 changed files with 34 additions and 143 deletions.
1 change: 0 additions & 1 deletion applications/datalinker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ IVOA DataLink-based service and data discovery
| config.pathPrefix | string | `"/api/datalink"` | URL path prefix for DataLink and related APIs |
| config.pgUser | string | `"rubin"` | User to use from the PGPASSFILE if datalinker is using a direct Butler connection (`useButlerServer` is false) |
| config.s3EndpointUrl | string | `"https://storage.googleapis.com"` | S3 endpoint URL (must be set if using S3) |
| config.separateSecrets | bool | `false` | Whether to use the new secrets management scheme |
| config.slackAlerts | bool | `false` | Whether to send certain serious alerts to Slack. If `true`, the `slack-webhook` secret must also be set. |
| config.storageBackend | string | `"GCS"` | Storage backend to use (either `GCS` or `S3`) |
| config.tapMetadataUrl | string | `"https://github.com/lsst/sdm_schemas/releases/download/1.2.0/datalink-columns.zip"` | URL containing TAP schema metadata used to construct queries |
Expand Down
4 changes: 0 additions & 4 deletions applications/datalinker/templates/vault-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ metadata:
labels:
{{- include "datalinker.labels" . | nindent 4 }}
spec:
{{- if .Values.config.separateSecrets }}
path: "{{ .Values.global.vaultSecretsPath }}/datalinker"
{{- else }}
path: "{{ .Values.global.vaultSecretsPath }}/butler-secret"
{{- end }}
type: Opaque
1 change: 0 additions & 1 deletion applications/datalinker/values-ccin2p3.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
config:
separateSecrets: true
tapMetadataUrl: "https://github.com/gabrimaine/sdm_schemas/releases/download/2.4.1/datalink-columns.zip"
1 change: 0 additions & 1 deletion applications/datalinker/values-idfdemo.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
config:
separateSecrets: true
slackAlerts: true
1 change: 0 additions & 1 deletion applications/datalinker/values-idfdev.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
config:
separateSecrets: true
slackAlerts: true
1 change: 0 additions & 1 deletion applications/datalinker/values-idfint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
config:
separateSecrets: true
slackAlerts: true
1 change: 0 additions & 1 deletion applications/datalinker/values-idfprod.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
config:
separateSecrets: true
slackAlerts: true
2 changes: 0 additions & 2 deletions applications/datalinker/values-usdfdev.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
config:
separateSecrets: true
2 changes: 0 additions & 2 deletions applications/datalinker/values-usdfint.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
config:
separateSecrets: true
2 changes: 0 additions & 2 deletions applications/datalinker/values-usdfprod.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
config:
separateSecrets: true
3 changes: 0 additions & 3 deletions applications/datalinker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ config:
# -- S3 endpoint URL (must be set if using S3)
s3EndpointUrl: "https://storage.googleapis.com"

# -- Whether to use the new secrets management scheme
separateSecrets: false

# -- User to use from the PGPASSFILE if datalinker is using a direct Butler
# connection (`useButlerServer` is false)
pgUser: "rubin"
Expand Down
1 change: 0 additions & 1 deletion applications/nightreport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Night report log service
| fullnameOverride | string | `""` | Override the full name for resources (includes the release name) |
| global.baseUrl | string | Set by Argo CD | Base URL for the environment |
| global.host | string | Set by Argo CD | Host name for ingress |
| global.tsVaultSecretsPath | string | `""` | Relative path for tsVault secrets |
| global.vaultSecretsPath | string | Set by Argo CD | Base path for Vault secrets |
| image.pullPolicy | string | `"Always"` | Pull policy for the nightreport image |
| image.repository | string | `"lsstts/nightreport"` | nightreport image to use |
Expand Down
2 changes: 1 addition & 1 deletion applications/nightreport/templates/vault-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: nightreport
namespace: nightreport
spec:
path: "{{- .Values.global.vaultSecretsPath }}{{ .Values.global.tsVaultSecretsPath }}/nightreport"
path: "{{- .Values.global.vaultSecretsPath }}/nightreport"
type: Opaque
---
apiVersion: ricoberger.de/v1alpha1
Expand Down
2 changes: 0 additions & 2 deletions applications/nightreport/values-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ config:
site_id: base
db:
host: postgresdb01.ls.lsst.org
global:
tsVaultSecretsPath: ""
2 changes: 0 additions & 2 deletions applications/nightreport/values-summit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ config:
site_id: summit
db:
host: postgresdb01.cp.lsst.org
global:
tsVaultSecretsPath: ""
2 changes: 0 additions & 2 deletions applications/nightreport/values-tucson-teststand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ config:
site_id: tucson
db:
host: postgresdb01.tu.lsst.org
global:
tsVaultSecretsPath: ""
3 changes: 0 additions & 3 deletions applications/nightreport/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,3 @@ global:
# -- Base path for Vault secrets
# @default -- Set by Argo CD
vaultSecretsPath: ""

# -- Relative path for tsVault secrets
tsVaultSecretsPath: ""
4 changes: 2 additions & 2 deletions applications/nublado/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ JupyterHub and custom spawner for the Rubin Science Platform
| global.baseUrl | string | Set by Argo CD | Base URL for the environment |
| global.host | string | Set by Argo CD | Host name for ingress |
| global.vaultSecretsPath | string | Set by Argo CD | Base path for Vault secrets |
| hub.internalDatabase | bool | `true` | Whether to use the cluster-internal PostgreSQL server instead of an external server. This is not used directly by the Nublado chart, but controls how the database password is managed. |
| hub.internalDatabase | bool | `false` | Whether to use the cluster-internal PostgreSQL server instead of an external server. This is not used directly by the Nublado chart, but controls how the database password is managed. |
| hub.minimumTokenLifetime | string | `jupyterhub.cull.maxAge` if lab culling is enabled, else none | Minimum remaining token lifetime when spawning a lab. The token cannot be renewed, so it should ideally live as long as the lab does. If the token has less remaining lifetime, the user will be redirected to reauthenticate before spawning a lab. |
| hub.resources | object | See `values.yaml` | Resource limits and requests for the Hub |
| hub.timeout.startup | int | `90` | Timeout for JupyterLab to start in seconds. Currently this sometimes takes over 60 seconds for reasons we don't understand. |
Expand Down Expand Up @@ -128,4 +128,4 @@ JupyterHub and custom spawner for the Rubin Science Platform
| jupyterhub.scheduling.userPlaceholder.enabled | bool | `false` | Whether to spawn placeholder pods representing fake users to force autoscaling in advance of running out of resources |
| jupyterhub.scheduling.userScheduler.enabled | bool | `false` | Whether the user scheduler should be enabled |
| proxy.ingress.annotations | object | See `values.yaml` | Additional annotations to add to the proxy ingress (also used to talk to JupyterHub and all user labs) |
| secrets.templateSecrets | bool | `false` | Whether to use the new secrets management mechanism. If enabled, the Vault nublado secret will be split into a nublado secret for JupyterHub and a nublado-lab-secret secret used as a source for secret values for the user's lab. |
| secrets.templateSecrets | bool | `true` | Whether to use the new secrets management mechanism. If enabled, the Vault nublado secret will be split into a nublado secret for JupyterHub and a nublado-lab-secret secret used as a source for secret values for the user's lab. |
6 changes: 0 additions & 6 deletions applications/nublado/values-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ controller:
- containerPath: "/data/lsstdata/BTS/auxtel"
volumeName: "auxtel"

hub:
internalDatabase: false

jupyterhub:
hub:
db:
upgrade: true
url: "postgresql://[email protected]/nublado3"

secrets:
templateSecrets: true
4 changes: 0 additions & 4 deletions applications/nublado/values-ccin2p3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,3 @@ jupyterhub:
timeout: 432000
every: 300
maxAge: 604800
hub:
internalDatabase: false
secrets:
templateSecrets: true
4 changes: 0 additions & 4 deletions applications/nublado/values-idfdemo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ jupyterhub:
hub:
db:
url: "postgresql://[email protected]/nublado"
hub:
internalDatabase: false
cloudsql:
enabled: true
instanceConnectionName: "science-platform-demo-9e05:us-central1:science-platform-demo-a4dbbf96"
serviceAccount: "[email protected]"
secrets:
templateSecrets: true
4 changes: 0 additions & 4 deletions applications/nublado/values-idfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ jupyterhub:
db:
upgrade: true
url: "postgresql://[email protected]/nublado"
hub:
internalDatabase: false
cloudsql:
enabled: true
instanceConnectionName: "science-platform-dev-7696:us-central1:science-platform-dev-e9e11de2"
serviceAccount: "[email protected]"
secrets:
templateSecrets: true
4 changes: 0 additions & 4 deletions applications/nublado/values-idfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,7 @@ jupyterhub:
url: "postgresql://[email protected]/nublado"
upgrade: true

hub:
internalDatabase: false
cloudsql:
enabled: true
instanceConnectionName: "science-platform-int-dc5d:us-central1:science-platform-int-8f439af2"
serviceAccount: "[email protected]"
secrets:
templateSecrets: true
5 changes: 0 additions & 5 deletions applications/nublado/values-idfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ jupyterhub:
url: "postgresql://[email protected]/nublado"
upgrade: true

hub:
internalDatabase: false

cloudsql:
enabled: true
instanceConnectionName: "science-platform-stable-6994:us-central1:science-platform-stable-0c29612b"
serviceAccount: "[email protected]"
secrets:
templateSecrets: true
6 changes: 6 additions & 0 deletions applications/nublado/values-roe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ proxy:
nginx.ingress.kubernetes.io/proxy-read-timeout: "50s"
nginx.ingress.kubernetes.io/client-max-body-size: "50m"

hub:
internalDatabase: true

jupyterhub:
hub:
db:
upgrade: true

secrets:
templateSecrets: false
6 changes: 0 additions & 6 deletions applications/nublado/values-summit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,8 @@ controller:
- containerPath: "/data/lsstdata/base/maintel"
volumeName: "lsstdata-base-lsstcam"

hub:
internalDatabase: false

jupyterhub:
hub:
db:
upgrade: true
url: "postgresql://[email protected]/nublado3"

secrets:
templateSecrets: true
6 changes: 0 additions & 6 deletions applications/nublado/values-tucson-teststand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,8 @@ controller:
- containerPath: "/data/lsstdata/TTS/comcam"
volumeName: "comcam"

hub:
internalDatabase: false

jupyterhub:
hub:
db:
upgrade: true
url: "postgresql://[email protected]/nublado3"

secrets:
templateSecrets: true
3 changes: 0 additions & 3 deletions applications/nublado/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,3 @@ jupyterhub:

hub:
internalDatabase: true

secrets:
templateSecrets: true
3 changes: 0 additions & 3 deletions applications/nublado/values-usdfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,3 @@ jupyterhub:

hub:
internalDatabase: true

secrets:
templateSecrets: true
6 changes: 6 additions & 0 deletions applications/nublado/values-usdfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,9 @@ jupyterhub:
cull:
timeout: 432000 # 5 days
maxAge: 691200 # 8 days

hub:
internalDatabase: true

secrets:
templateSecrets: false
4 changes: 2 additions & 2 deletions applications/nublado/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ hub:
# -- Whether to use the cluster-internal PostgreSQL server instead of an
# external server. This is not used directly by the Nublado chart, but
# controls how the database password is managed.
internalDatabase: true
internalDatabase: false

# -- Minimum remaining token lifetime when spawning a lab. The token cannot
# be renewed, so it should ideally live as long as the lab does. If the
Expand Down Expand Up @@ -658,7 +658,7 @@ secrets:
# Vault nublado secret will be split into a nublado secret for JupyterHub
# and a nublado-lab-secret secret used as a source for secret values for the
# user's lab.
templateSecrets: false
templateSecrets: true

# The following will be set by parameters injected by Argo CD and should not
# be set in the individual environment values files.
Expand Down
2 changes: 1 addition & 1 deletion applications/obsloctap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Publish observing schedule
| config.obsplanLimit | int | `1000` | limit for obsplan query |
| config.obsplanTimeSpan | int | `24` | time span, if a time is provided in the query how man hours to look back |
| config.persistentVolumeClaims | list | `[]` | PersistentVolumeClaims to create. |
| config.separateSecrets | bool | `false` | Whether to use the new secrets management scheme |
| config.separateSecrets | bool | `true` | Whether to use the new secrets management scheme |
| config.volume_mounts | list | `[]` | Mount points for additional volumes |
| config.volumes | list | `[]` | Additional volumes to attach |
| environment | object | `{}` | Environment variables (e.g. butler configuration/auth parms) for panel |
Expand Down
2 changes: 1 addition & 1 deletion applications/obsloctap/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ environment:
obsloctapVaultPrefix: secret/rubin/usdf-butler/postgres

config:
separateSecrets: false
volumes:
- name: sdf-group-rubin
persistentVolumeClaim:
Expand All @@ -32,7 +33,6 @@ config:
image:
pullPolicy: Always


controller:
config:
safir:
Expand Down
2 changes: 1 addition & 1 deletion applications/obsloctap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ config:
persistentVolumeClaims: []

# -- Whether to use the new secrets management scheme
separateSecrets: false
separateSecrets: true

# -- limit for obsplan query
obsplanLimit: 1000
Expand Down
2 changes: 1 addition & 1 deletion applications/plot-navigator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Plot-navigator
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| config.persistentVolumeClaims | list | `[]` | PersistentVolumeClaims to create. |
| config.separateSecrets | bool | `false` | Whether to use the new secrets management scheme |
| config.separateSecrets | bool | `true` | Whether to use the new secrets management scheme |
| config.volume_mounts | list | `[]` | Mount points for additional volumes |
| config.volumes | list | `[]` | Additional volumes to attach |
| environment | object | `{}` | Environment variables (e.g. butler configuration/auth parms) for the nextjs server |
Expand Down
1 change: 1 addition & 0 deletions applications/plot-navigator/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ environment:
BUCKET_URL: "https://s3dfrgw.slac.stanford.edu/"

config:
separateSecrets: false
persistentVolumeClaims:
- name: sdf-group-rubin
storageClassName: sdf-group-rubin
Expand Down
1 change: 1 addition & 0 deletions applications/plot-navigator/values-usdfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ environment:
BUCKET_URL: "https://s3dfrgw.slac.stanford.edu/"

config:
separateSecrets: false
persistentVolumeClaims:
- name: sdf-group-rubin
storageClassName: sdf-group-rubin
Expand Down
1 change: 1 addition & 0 deletions applications/plot-navigator/values-usdfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ environment:
BUCKET_URL: "https://s3dfrgw.slac.stanford.edu/"

config:
separateSecrets: false
persistentVolumeClaims:
- name: sdf-group-rubin
storageClassName: sdf-group-rubin
Expand Down
2 changes: 1 addition & 1 deletion applications/plot-navigator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config:
persistentVolumeClaims: []

# -- Whether to use the new secrets management scheme
separateSecrets: false
separateSecrets: true

# The following will be set by parameters injected by Argo CD and should not
# be set in the individual environment values files.
Expand Down
1 change: 0 additions & 1 deletion applications/production-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ A collection of utility pages for monitoring data processing.
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Affinity rules for the production-tools deployment pod |
| config.separateSecrets | bool | `false` | Whether to use the new secrets management scheme |
| environment | object | `{}` | |
| fullnameOverride | string | `""` | Override the full name for resources (includes the release name) |
| global.baseUrl | string | Set by Argo CD | Base URL for the environment |
Expand Down
4 changes: 0 additions & 4 deletions applications/production-tools/templates/vault-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ metadata:
labels:
{{- include "production-tools.labels" . | nindent 4 }}
spec:
{{- if .Values.config.separateSecrets }}
path: "{{ .Values.global.vaultSecretsPath }}/production-tools"
{{- else }}
path: "{{ .Values.global.vaultSecretsPath }}/butler-secret"
{{- end }}
type: Opaque
---
apiVersion: ricoberger.de/v1alpha1
Expand Down
2 changes: 0 additions & 2 deletions applications/production-tools/values-idfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ environment:
LOG_BUCKET: "drp-us-central1-logging"
LOG_PREFIX: "Panda-RubinLog"
WEB_CONCURRENCY: "4"
config:
separateSecrets: true
4 changes: 0 additions & 4 deletions applications/production-tools/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ ingress:
# -- Additional annotations for the ingress rule
annotations: {}

config:
# -- Whether to use the new secrets management scheme
separateSecrets: false

# -- Resource limits and requests for the production-tools deployment pod
resources: {}

Expand Down
Loading

0 comments on commit c08d4e1

Please sign in to comment.