Explicitly set jwtproxy audience

This commit is contained in:
Evan Cordell 2016-04-28 14:29:21 -05:00 committed by Jimmy Zelinskie
parent 0c2ecec9a9
commit d2aa4be29e
2 changed files with 2 additions and 4 deletions

View file

@ -27,10 +27,7 @@ def create_quay_service_key():
def create_jwtproxy_conf(quay_key_id):
audience = urlunparse((
app.config.get('PREFERRED_URL_SCHEME'),
app.config.get('SERVER_HOSTNAME'), '', '', '', ''))
audience = app.config.get('JWTPROXY_AUDIENCE')
registry = audience + '/keys'
with open("/conf/jwtproxy_conf.yaml.jnj") as f:

View file

@ -290,6 +290,7 @@ class DefaultConfig(object):
'API_TIMEOUT_POST_SECONDS': 480,
}
JWTPROXY_SIGNER = 'localhost:8080'
JWTPROXY_AUDIENCE = 'https://quay.io:443'
# Torrent management flags
FEATURE_BITTORRENT = False