keystone fernet key issuance should be redesigned not to use swift tempurls

Bug #1870463 reported by Ade Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

keystone fernet keys are uploaded to controllers in the initial deploy through swift tempurls.
If those keys are not rotated often, the swift tempurl could expire, resulting in bugs being reprted like the following:

  https://bugzilla.redhat.com/show_bug.cgi?id=1758025

We should redesign this whole issuance process to avoid tempurls to begin with.

Revision history for this message
Rabi Mishra (rabi) wrote :

> keystone fernet keys are uploaded to controllers in the initial deploy through swift tempurls.

That's probably not correct.

Initial configuration of fernet_keys[1] is done with puppet and subsequently rotated using ansible playbooks[2] (earlier with a mistral workflow that used to call the ansible playbook[3])

In the bz you mentioned, customer was using DeployArtifactURLs[4] interface to replace fernet keys (that can pull content from any url accessible, not only with swift temp url[4]). I think that was one of the recommended ways to rotate fernet keys in earlier versions, before the playbooks were added, but not any more.

So, Someone can use the new playbook on master or mistral workflow in older releases to rotate keys. I don't think DeployArtifactsURLs interfaces should be used anymore and anything there to be fixed for this bug.

[1] https://github.com/openstack/puppet-keystone/blob/master/manifests/init.pp#L943-L966
[2] https://github.com/openstack/tripleo-ansible/blob/master/tripleo_ansible/playbooks/rotate-fernet-keys.yaml
[3] https://github.com/openstack/tripleo-common/blob/stable/queens/workbooks/fernet-key-rotate.yaml
[4] https://github.com/openstack/tripleo-heat-templates/blob/master/common/deploy-steps.j2#L146-L150
[5] https://github.com/openstack/tripleo-common/blob/master/scripts/upload-swift-artifacts

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.