11 KiB
AWS-RDS-certificate-update--Helm-Simulation-env_686088156
| Tasks | Products | Duration | Steps |
|---|---|---|---|
Preparation | Download the new AWS RDS certificate bundle PEM file | 5 mins | Download the new AWS RDS certificate bundles for specific AWS region from the Certificate bundles for specific AWS Regions. for example, for region of us-west-2, download the below certificate: Upload the certificate bundle to the bastion. Note
|
| OMT | 5 mins | 1. Acquire database info before running the script: Note: Above are OOB values, if you are not using OOB values, you may get the values with below commands: kubectl get cm default-database-configmap -n -o yaml The result is like: DEFAULT_DB_CDFIDM_PASSWORD_KEY: defaultdb_cdfidm_user_password You may find the db user, db name and PASSWORD_KEY value from database configmap. 2. Get the cmfidm db password. For example: Take the note of your which you will be using in OMT certificate replacement. Reference: https://docs.microfocus.com/doc/OMT/24.2/ModifyExternalDatabaseConfiguration | |
| SMAX & HCMX | 10 mins |
NOTE: The yaml file with new pem content replaced will be used in RDS certificate replacement. Reference: https://staging.docs.microfocus.com/doc/SMAX/Main/ChangeCertForPostgreSQL | |
| CMS | 5 mins | 1.Get the CMS values.yaml from current running deployment by running below command helm get values -n >values.yaml 2.Replace the content of caCertificates.postgresql.crt in values.yaml with the content of AWS RDS certificate bundle got at above step. Note: every line of certificate content starts with 4 indentation in values.yaml | |
| OO | 5 mins | 1.Get the OO values.yaml helm get values -n > values.yaml 2.Replace the content of caCertificates.postgresql.crt in values.yaml with the content of AWS RDS certificate bundle got at above step. Note: every line of certificate content starts with 4 indentation in values.yaml | |
| Audit | 5 mins |
| |
Maintain Window Update the certificate in application side | OMT | 5 mins | Navigate to the $CDF_HOME/bin directory, run the updateExternalDbInfo.sh script with below parameters: NOTE: you may find the DB parameters in preparation steps. ./updateExternalDbInfo.sh -H -p -d -u --dbpassword --component itom-idm --cacert |
SMAX/HCMX | 30 mins |
| |
CMS | 20 mins | 1. Update the deployment by running helm upgrade command. The yaml file is the one with new pem content replaced in preparation steps. helm upgrade -n -f values.yaml 2. Restart CMS $CDF_HOME/bin/cdfctl runlevel set -l DOWN -n wait till all pods are shut down $CDF_HOME/bin/cdfctl runlevel set -l UP -n 3. Monitor pod status: kubectl get pod -n NAMESPACE > |grep -v 1/1|grep -v 2/2|grep -v 3/3|grep -v 4/4|grep -v Completed NOTE: You may do this in parallel with SMAX restart | |
| OO | 20 mins | 1.Update the deployment by running helm upgrade command. The yaml file is the one with new pem content replaced in preparation steps. helm upgrade -n -f values.yaml 2. Restart OO $CDF_HOME/bin/cdfctl runlevel set -l DOWN -n 3. Monitor pod status: kubectl get pod -n NAMESPACE > |grep -v 1/1|grep -v 2/2|grep -v 3/3|grep -v 4/4|grep -v Completed NOTE: You may do this in parallel with SMAX restart | |
| Audit | 5 mins |
$CDF_HOME/bin/cdfctl runlevel set -l DOWN -n 3. Monitor pod status: kubectl get pod -n NAMESPACE > |grep -v 1/1|grep -v 2/2|grep -v 3/3|grep -v 4/4|grep -v Completed NOTE: You may do this in parallel with SMAX restart | |
Update the certificates of AWS RDS DB instances. | Update the certificate on AWS RDS DB instances. | 10 mins | 1.Login AWS console, go to the RDS instances that you want to update the certificates. 2.Select the RDS instance, click modify button 3.Change the Certificate authority. If your primary certificate CA is rds-ca-2019, it's recommended to select the rds-ca-rsa2048-g1 CA as new value 4.Save the change, and select immediate effect. Repeat the steps for all your RDS instances |




