Skip to content

Commit

Permalink
ZO-4519: Retrieve credentials from vault instead of hardcoding them
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc committed Jan 24, 2024
1 parent 81f416d commit b287973
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion smoketest/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from io import BytesIO
from urllib.parse import urlparse
import os
import xmlrpc.client

import pytest
import webdav3.client


XMLRPC_AUTH = 'nightwatch:FecOdyuecl4OdAgosLong$'
XMLRPC_AUTH = 'nightwatch:' + os.environ['VIVI_XMLRPC_PASSWORD']
CONFIG_STAGING = {
'browser': {'baseurl': 'https://www.staging.zeit.de'},
'vivi': {
Expand Down
14 changes: 14 additions & 0 deletions smoketest/k8s/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ components:
- github.com/ZeitOnline/kustomize/components/nightwatch?ref=1.3
- versions

patches:
- target:
kind: Deployment
name: nightwatch
patch: |
- op: add
path: /spec/template/spec/containers/0/env
value:
- name: VIVI_XMLRPC_PASSWORD
valueFrom:
secretKeyRef:
name: principals
key: vivi_zeit.cms.principals_system.nightwatch
# See https://github.com/ZeitOnline/gh-action-workflows/blob/main/.github/workflows/nightwatch-build.yaml
images:
- name: nightwatch
Expand Down
6 changes: 3 additions & 3 deletions smoketest/k8s/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ patches:
name: nightwatch
patch: |-
- op: add
path: /spec/template/spec/containers/0/env
path: /spec/template/spec/containers/0/env/-
value:
- name: HTTPS_PROXY
value: http://static-ip-proxy.ops.zeit.de:3128
name: HTTPS_PROXY
value: http://static-ip-proxy.ops.zeit.de:3128

0 comments on commit b287973

Please sign in to comment.