Skip to content

Commit

Permalink
Fix Keystone session creation connection options
Browse files Browse the repository at this point in the history
Allows the connection info to set/unset the SSL verification by its
`allow_untrusted` option.
  • Loading branch information
Dany9966 committed Aug 13, 2024
1 parent c215168 commit 2718ca7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coriolis/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,9 @@ def create_keystone_session(ctxt, connection_info={}):
loader = loading.get_plugin_loader(plugin_name)
auth = loader.load_from_options(**plugin_args)

return ks_session.Session(auth=auth, verify=_get_verify_option())
verify = _get_verify_option()
if connection_info.get('allow_untrusted') is not None:
verify = not connection_info.get('allow_untrusted')
LOG.debug(f"SSL verify is set to: {verify}")

return ks_session.Session(auth=auth, verify=verify)

0 comments on commit 2718ca7

Please sign in to comment.