Skip to content

Commit 9830c35

Browse files
committed
fix(secrets): strip whitespaces / newlines from k8s secrets when reading the files
Relates to deis/builder#116
1 parent 98b16b0 commit 9830c35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/templates/confd_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# security keys and auth tokens
44
with open('/var/run/secrets/api/builder/auth/builder-key') as f:
5-
BUILDER_KEY = f.read()
5+
BUILDER_KEY = f.read().strip()
66

77
with open('/var/run/secrets/api/django/secret-key') as f:
8-
SECRET_KEY = f.read()
8+
SECRET_KEY = f.read().strip()
99

1010
# scheduler settings
1111
SCHEDULER_MODULE = 'scheduler'

0 commit comments

Comments
 (0)