Explicitly set jwtproxy audience
This commit is contained in:
parent
0c2ecec9a9
commit
d2aa4be29e
2 changed files with 2 additions and 4 deletions
5
boot.py
5
boot.py
|
@ -27,10 +27,7 @@ def create_quay_service_key():
|
||||||
|
|
||||||
|
|
||||||
def create_jwtproxy_conf(quay_key_id):
|
def create_jwtproxy_conf(quay_key_id):
|
||||||
audience = urlunparse((
|
audience = app.config.get('JWTPROXY_AUDIENCE')
|
||||||
app.config.get('PREFERRED_URL_SCHEME'),
|
|
||||||
app.config.get('SERVER_HOSTNAME'), '', '', '', ''))
|
|
||||||
|
|
||||||
registry = audience + '/keys'
|
registry = audience + '/keys'
|
||||||
|
|
||||||
with open("/conf/jwtproxy_conf.yaml.jnj") as f:
|
with open("/conf/jwtproxy_conf.yaml.jnj") as f:
|
||||||
|
|
|
@ -290,6 +290,7 @@ class DefaultConfig(object):
|
||||||
'API_TIMEOUT_POST_SECONDS': 480,
|
'API_TIMEOUT_POST_SECONDS': 480,
|
||||||
}
|
}
|
||||||
JWTPROXY_SIGNER = 'localhost:8080'
|
JWTPROXY_SIGNER = 'localhost:8080'
|
||||||
|
JWTPROXY_AUDIENCE = 'https://quay.io:443'
|
||||||
|
|
||||||
# Torrent management flags
|
# Torrent management flags
|
||||||
FEATURE_BITTORRENT = False
|
FEATURE_BITTORRENT = False
|
||||||
|
|
Reference in a new issue