Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47C4E102B6 for ; Sun, 8 Mar 2015 17:38:51 +0000 (UTC) Received: (qmail 25075 invoked by uid 500); 8 Mar 2015 17:38:38 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 25038 invoked by uid 500); 8 Mar 2015 17:38:38 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 25029 invoked by uid 500); 8 Mar 2015 17:38:38 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 25026 invoked by uid 99); 8 Mar 2015 17:38:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 17:38:38 +0000 Date: Sun, 8 Mar 2015 17:38:38 +0000 (UTC) From: "Pierre-Luc Dion (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-400) Document procedure to update CloudStack MySQL account password MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre-Luc Dion closed CLOUDSTACK-400. -------------------------------------- Resolution: Fixed have been fixed. > Document procedure to update CloudStack MySQL account password > -------------------------------------------------------------- > > Key: CLOUDSTACK-400 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-400 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Components: Doc > Affects Versions: 4.0.0 > Reporter: Kirk Kosinski > Assignee: Joe Brockmeier > Priority: Minor > Labels: adminguide, database, mysql > > An administrator may occasionally want to change the password for the MySQL account used by CloudStack. When password encryption is used as recommended, this procedure is complicated and should be documented. I wrote the following procedure for the "file" encryption type and QA verified it. The procedure for "web" encryption is likely similar. It may also be useful to include a procedure for no encryption. > 1. Stop CloudStack and (if applicable) the usage engine. > service cloud-management stop > service cloud-usage stop > 2. Update the password for the CloudStack user on the MySQL server. Open a > MySQL prompt: > mysql -u root -p > Run the following: > update mysql.user set password=PASSWORD("newpassword123") where User='cloud'; > flush privileges; > And exit the prompt: > quit > 3. Encrypt the password and copy the resulting ciphertext: > java -classpath /usr/share/java/cloud-jasypt-1.8.jar > org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh > input="newpassword123" password="`cat /etc/cloud/management/key`" verbose=false > Note: If using db.cloud.encryption.type=web, use: > password="management_server_secret_key" > 4. Update /etc/cloud/management/db.properties with the new ciphertext: > db.cloud.password=ENC(encrypted_password_from_above) > db.usage.password=ENC(encrypted_password_from_above) > 5. Start CloudStack and (if applicable) the usage engine. > service cloud-management start > service cloud-usage start -- This message was sent by Atlassian JIRA (v6.3.4#6332)