両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
ja:documentation:pandorafms:technical_annexes:08_password_encryption [2024/06/24 03:16] – [すでにインストール済の Pandora FMS での設定] junichi | ja:documentation:pandorafms:technical_annexes:08_password_encryption [2024/06/24 05:01] (現在) – [暗号化パスワードの削除] junichi |
---|
===== 暗号化パスワードの変更 ===== | ===== 暗号化パスワードの変更 ===== |
| |
Changing the encryption password is possible in case it gets compromised. First, passwords stored within the database must be decrypted: | It is possible to change the encryption password in case it has been compromised. You must first decrypt the passwords stored in the database: |
| |
暗号化パスワードは、漏えいしてしまった場合などは変更することができます。最初に、データベース内のパスワードを復号化する必要があります。 | 暗号化パスワードが漏洩した場合には、それを変更することができます。まず、データベースに保存されているパスワードを復号化する必要があります。 |
| |
<code> | <code> |
</code> | </code> |
| |
Then, after changing the encryption password (as described in the [[:en:documentation:07_technical_annexes:08_password_encryption#configuration_in_a_new_panfora_fms_installation|configuration in a newly installed Pandora FMS section]]), they can be encrypted again: | Then, after having changed the encryption password (as described in the section for [[#ks2|configuration in a new installation]]), you can encrypt it again: |
| |
そして、([[:ja:documentation:07_technical_annexes:08_password_encryption#新規インストールの_pandora_fms_での設定|新規 Pandora FMS インストール時の設定で説明した方法]]で)パスワードを変更後、再度暗号化します。 | その後、暗号化パスワードを変更し([[#ks2|新規インストールでの設定]]のセクションで説明したように)、再度暗号化することができます。 |
| |
<code> | |
| |
| <code bash> |
/usr/bin/pandora_encrypt_db /etc/pandora/pandora_server.conf | /usr/bin/pandora_encrypt_db /etc/pandora/pandora_server.conf |
| </code> |
| |
</code> | <WRAP center round important 90%> |
| |
<WRAP center round important 60%> From 7.0NG.739 onwards, [[:en:documentation:04_using:11_managing_and_administration#credential_store|safe credential management]] is included. </WRAP> | From 7.0 NG 739 onwards, the [[[:en:documentation:pandorafms:management_and_operation:11_managing_and_administration#credential_store|secure credential manager]] is included. **Please refer to the following section to finish this process correctly**. |
| |
| </WRAP> |
| |
| <WRAP center round important 90%> |
| |
| 7.0NG 739 以降には、[[:ja:documentation:pandorafms:management_and_operation:11_managing_and_administration#認証情報ストア|安全な認証管理]]が含まれています。**この処理を正しく完了するには、次の章を参照してください**。 |
| |
<WRAP center round important 60%> | |
7.0NG 739 以降には、[[:ja:documentation:04_using:11_managing_and_administration#認証情報ストア|安全な認証管理]]が含まれています。 | |
</WRAP> | </WRAP> |
| |
**認証情報管理:** | **認証情報管理:** |
| |
In case of having an encrypted database available, to be able to keep using the credential manager without losing data, decrypt everything except for the table **tcredential_store** | If you have an encrypted database, in order to continue using the credential manager without losing data //decrypt everything// except the **tcredential_store** table. |
| |
暗号化データベースがある場合、データを失うことなく認証情報管理を使い続けることができるようにするには、**tcredential_store** テーブルを除いてすべての暗号を解除します。 | 暗号化されたデータベースがある場合、データを失うことなく資格情報管理を引き続き使用するには、**tcredential_store** テーブルを除くすべてのデータを復号化します。 |
| |
For that purpose, execute the following commands: | To do so, execute the following commands: |
| |
そのためには、以下のコマンドを実行します。 | そのためには、以下のコマンドを実行します。 |
| |
<code> | <code bash> |
/usr/bin/pandora_encrypt_db -d -c /etc/pandora/pandora_server.conf | /usr/bin/pandora_encrypt_db -d -c /etc/pandora/pandora_server.conf |
| |
</code> | </code> |
| |
Leave everything decrypted. | It will be deciphered. |
| |
全ての暗号化が解除されます。 | 暗号化が解除されます。 |
| |
Once decrypted, encrypt it again: | Once decrypted, it will be re-encrypted again: |
| |
暗号化を解除したら、再度暗号化を行います。 | 暗号化を解除したら、再度暗号化を行います。 |
| |
<code> | <code bash> |
/usr/bin/pandora_encrypt_db /etc/pandora/pandora_server.conf | /usr/bin/pandora_encrypt_db /etc/pandora/pandora_server.conf |
| |
</code> | </code> |
| |
If you only wish to encrypt from scratch, just execute the last command. | If you only want to encrypt from scratch, just execute the last command. |
| |
初回の暗号化では、最後のコマンドを実行します。 | 初回の暗号化では、最後のコマンドを実行します。 |
| |
| <wrap #ks4 /> |
| |
===== 暗号化パスワードの削除 ===== | ===== 暗号化パスワードの削除 ===== |
| |
<WRAP center round important 80%> It is recommended to keep the whole password stored in Pandora FMS encrypted.</WRAP> | <WRAP center round important 90%> |
| |
<WRAP center round important 80%> Pandora FMS に保存されているパスワードは、全体を暗号化しておくことをお勧めします。</WRAP> | It is recommended to keep **every** password stored in Pandora FMS encrypted. |
| |
* Stop the server, both in **Metaconsole** and **node.** | </WRAP> |
* Comment** encryption_passphrase **in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'' tode in** node **and** Metaconsole.** | |
| |
* **メタコンソール** と **ノード** 双方のサーバを停止します。 | <WRAP center round important 90%> |
* **メタコンソール** と **ノード** 双方の ''/etc/pandora/pandora_server.conf'' および ''/var/www/html/pandora_console/include/config.php'' の **encryption_passphrase** をコメントアウトします。 | |
| Pandora FMS に保存される **すべての** パスワードを暗号化しておくことをお勧めします。 |
| |
| </WRAP> |
| |
| * Stop the server, both in **Command Center (Metaconsole)** and in the **nodes**. |
| * Launch the decryption script both in **Command Center (Metaconsole)** and in the **nodes**. |
| |
| * **コマンドセンター(メタコンソール)** と **ノード** 双方のサーバを停止します。 |
| * **コマンドセンター(メタコンソール)** と **ノード** の両方で復号化スクリプトを起動します。 |
| |
| <code bash> |
| /usr/bin/pandora_encrypt_db -d /etc/pandora/pandora_server.conf |
| </code> |
| |
| * Comment **encryption_passphrase** in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'' both in **Command Center (Metaconsole)** and in **nodes**. |
| |
| * **コマンドセンター (メタコンソール)** と **ノード** の両方で、''/etc/pandora/pandora_server.conf'' と ''/var/www/html/pandora_console/include/config.php'' の **encryption_passphrase** をコメントアウトします。 |
| |
<code> | <code> |
# $config["encryption_passphrase"]="your encryption passphrase"; | # $config["encryption_passphrase"]="your encryption passphrase"; |
| </code> |
| |
| <WRAP center round tip 90%> |
| |
| The Pandora FMS server should be restarted after making the changes and launching the script. |
| |
| </WRAP> |
| |
| <WRAP center round tip 90%> |
| |
| 変更を加えてスクリプトを実行した後は、Pandora FMS サーバを再起動することを忘れないでください。 |
| |
| </WRAP> |
| |
| [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] |
| |
| |
| ===== (OBSOLETE) すでにインストール済の Pandora FMS での設定 ===== |
| |
| <WRAP center round important 60%> This section is only relevant if you wish to update from version 743 to version 744. If that is not the case, [[:en:documentation:07_technical_annexes:08_password_encryption#configuration_in_a_new_pandora_fms_installation|encrypt it as if it were new]]. </WRAP> |
| |
| <WRAP center round important 60%> この章は、バージョン 743 からバージョン 744 に更新する場合にのみです。それ以外の場合は、[[:ja:documentation:07_technical_annexes:08_password_encryption#新規インストールの_pandora_fms_での設定|新規の暗号化]]です。</WRAP> |
| |
| Configure password encryption following the [[:en:documentation:07_technical_annexes:08_password_encryption#configuration_in_a_new_pandora_fms_installation|steps required for a newly installed Pandora FMS]]. At this point, any new passwords configured in the Pandora FMS Console will be stored in the database encrypted, but already existing passwords must be encrypted too. To that end, follow these steps: |
| |
| [[:ja:documentation:07_technical_annexes:08_password_encryption#新規インストールの_pandora_fms_での設定|新規インストールの Pandora FMS の手順]]に従って暗号化パスワード設定をします。ここで、Pandora FMS コンソールで任意の新たなパスワードが設定され、データベースに暗号化したものが保存されます。ただし、既存のパスワードも暗号化する必要があります。そのためには、次の手順を実行します。 |
| |
| * Stop both the **Metaconsole** and **node** servers. |
| |
| * **メタコンソール** と **ノード** 双方を停止します。 |
| |
| * Launch the decryption script both in the **Metaconsole** as well as the **node** |
| |
| * **メタコンソール** および **ノード** の復号化スクリプトを実行します。 |
| |
| <code> |
| |
| /usr/bin/pandora_encrypt_db -d -m /etc/pandora/pandora_server.conf |
| |
</code> | </code> |
| |
* Launch the decryption script both in **node** and **Metaconsole**. | * Launch the encryption script both in the **node** and the **Metaconsole:** |
| |
* **ノード** および **メタコンソール** で復号化スクリプトを実行します。 | * **ノード** および **メタコンソール** 双方の暗号化スクリプトを実行します。 |
| |
<code> | <code> |
/usr/bin/pandora_encrypt_db -d -e /etc/pandora/pandora_server.conf | /usr/bin/pandora_encrypt_db /etc/pandora/pandora_server.conf |
| |
</code> | </code> |
| |
<WRAP center round tip 60%> \\ Rmember to restart Pandora FMS server after making the changes and launching the script. \\ </WRAP> | * Restart the Metaconsole and node servers. |
| |
| * メタコンソールおよびノードサーバを再起動します。 |
| |
| The script cannot be executed twice, otherwise passwords would get corrupted. |
| |
| スクリプトは 2回実行できません。2回実行するとパスワードが破損します。 |
| |
| <WRAP center round important 60%> It is important to keep in mind that the **-m** parameter must be added to decrypt only old passwords. If that parameter is not added to previously encrypted databases, **passwords will be lost**. </WRAP> |
| |
| <WRAP center round important 60%> 古いパスワードを復号化するときのみ、**-m** パラメータを追加する必要があることに注意してください。暗号化されたデータベースにこのパラメータが追加されない場合、**パスワードが失われます**。</WRAP> |
| |
<WRAP center round tip 60%> \\ 変更を加えてスクリプトを実行した後は、Pandora FMS サーバを再起動することを忘れないでください。\\ </WRAP> | |
| |
[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] | |