Skip to content

Commit

Permalink
Pass CA file when verifying keystone session upon trust creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dany9966 committed Jul 29, 2024
1 parent 812a0a7 commit ef3233c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion coriolis/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ def create_trust(ctxt):
if ctxt.trust_id:
return

cafile = CONF.keystone.cafile
if cafile and cafile != "":
verify = cafile
else:
verify = not CONF.keystone.allow_untrusted

LOG.debug("Creating Keystone trust")

trusts_auth_plugin = _get_trusts_auth_plugin()
Expand All @@ -57,7 +63,7 @@ def create_trust(ctxt):
project_name=ctxt.project_name,
project_domain_name=ctxt.project_domain_name)
session = ks_session.Session(
auth=auth, verify=not CONF.keystone.allow_untrusted)
auth=auth, verify=verify)

try:
trustee_user_id = trusts_auth_plugin.get_user_id(session)
Expand Down

0 comments on commit ef3233c

Please sign in to comment.