File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ function etcd_safe_mkdir {
5050}
5151
5252etcd_set_default protocol " ${DEIS_PROTOCOL:- http} "
53- etcd_set_default secretKey " ${DEIS_SECRET_KEY:- $(openssl rand -base64 64 | tr -d ' \n' )} "
54- etcd_set_default builderKey " ${DEIS_BUILDER_KEY:- $(openssl rand -base64 64 | tr -d ' \n' )} "
5553etcd_set_default registrationMode " enabled"
5654etcd_set_default webEnabled 0
5755
Original file line number Diff line number Diff line change 11import os
22
33# security keys and auth tokens
4- SECRET_KEY = '{{ getv "/deis/controller/secretKey" }}'
5- BUILDER_KEY = '{{ getv "/deis/controller/builderKey" }}'
4+ with open ('/var/run/secrets/api/builder/auth/builder-key' ) as f :
5+ BUILDER_KEY = f .read ()
6+
7+ with open ('/var/run/secrets/api/django/secret-key' ) as f :
8+ SECRET_KEY = f .read ()
69
710# scheduler settings
811SCHEDULER_MODULE = 'scheduler'
You can’t perform that action at this time.
0 commit comments