Skip to content
Snippets Groups Projects
Commit 15250435 authored by James Page's avatar James Page
Browse files

Ensure federated identity backend are TLS aware

When the certificates endpoint has completed TLS configuration
via Vault, ensure that any federated identity backends are
updated for the switch to TLS, other the generated SP data
incorrectly used http:// instead of https://

Closes-Bug: 1834442

Change-Id: Ie160095789f5c34bc3509ffce4a7c5c0ec430632
parent da6f616b
No related branches found
No related tags found
No related merge requests found
......@@ -824,6 +824,7 @@ def certs_changed(relation_id=None, unit=None):
ensure_initial_admin(config)
update_all_identity_relation_units()
update_all_domain_backends()
update_all_fid_backends()
def notify_middleware_with_release_version():
......
......@@ -1003,6 +1003,7 @@ class KeystoneRelationTests(CharmTestCase):
relation_id='rid:23',
relation_settings={'cn': 'this-unit'})
@patch.object(hooks, 'update_all_fid_backends')
@patch.object(hooks, 'config')
@patch.object(hooks, 'update_all_domain_backends')
@patch.object(hooks, 'update_all_identity_relation_units')
......@@ -1017,7 +1018,8 @@ class KeystoneRelationTests(CharmTestCase):
is_elected_leader, is_unit_paused_set,
ensure_initial_admin,
update_all_identity_relation_units,
update_all_domain_backends, config):
update_all_domain_backends, config,
update_all_fid_backends):
is_db_initialised.return_value = True
is_elected_leader.return_value = True
is_unit_paused_set.return_value = False
......@@ -1036,6 +1038,7 @@ class KeystoneRelationTests(CharmTestCase):
ensure_initial_admin.assert_called_once_with(config)
update_all_identity_relation_units.assert_called_once_with()
update_all_domain_backends.assert_called_once_with()
update_all_fid_backends.assert_called_once_with()
ensure_initial_admin.reset_mock()
is_db_initialised.return_value = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment