Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2025933

Summary: [RFE] SSH key rotation (16.2)
Product: Red Hat OpenStack Reporter: Luigi Tamagnone <ltamagno>
Component: tripleo-ansibleAssignee: Andre <afariasa>
Status: CLOSED CURRENTRELEASE QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: alee, dcaspin, dsedgmen, dwilde, fgadkano, gconsalv, ggrasza, jjoyce, jmitterm, jpadman, lhh, mburns, rbruzzon, rhos-maint, slong, spapa
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2028660 (view as bug list) Environment:
Last Closed: 2022-10-05 14:38:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2028660, 2060120    

Description Luigi Tamagnone 2021-11-23 12:23:48 UTC
Description of problem:
In our documentation, there is no information about the rotation of ssh key. 

As a best practice, the ssh key should rotate. In our official documentation[1] we mention fernet key and password rotation but nothing about ssh key rotation. 

On RHOSP16.2 we have:
 - heat-admin ssh key on undercloud that is present on all overcloud nodes as authorized_keys under /home/heat-admin/.ssh/authorized_keys
 - heat-admin ssh key on undercloud that is present on all overcloud nodes as authorized_keys under /root/.ssh/authorized_keys
 - Generated by TripleO ssh key that is present on all overcloud node as authorized_keys under /home/tripleo-admin/.ssh/authorized_keys
 - tripleo-admin ssh key that seems not present on overcloud nodes.


From upstream doc[2] it seems we should care only about the heat-admin key on heat-admin overcloud user. We should review it and write in our official documentation.

Additional info:

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html-single/security_and_hardening_guide/index
[2] https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/post_deployment/update_undercloud_ssh_keys.html