差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_annexes:08_password_encryption [2024/06/24 03:03] – [パスワード暗号化] junichi | ja:documentation:pandorafms:technical_annexes:08_password_encryption [2024/06/24 05:01] (現在) – [暗号化パスワードの削除] junichi | ||
|---|---|---|---|
| 行 30: | 行 30: | ||
| <wrap #ks1 /> | <wrap #ks1 /> | ||
| - | ==== 技術詳細 ==== | + | ===== 技術詳細 |
| Passwords are encrypted using the Rijndael encryption with 128 bit blocks in ECB mode. A 256 bit key is generated at startup from the password MD5. | Passwords are encrypted using the Rijndael encryption with 128 bit blocks in ECB mode. A 256 bit key is generated at startup from the password MD5. | ||
| 行 38: | 行 38: | ||
| ===== 新規インストールの Pandora FMS での設定 ===== | ===== 新規インストールの Pandora FMS での設定 ===== | ||
| - | To enable | + | To enable |
| - | パスワード暗号化を有効化するには、**Pandora FMS サーバと | + | キー暗号化を有効にするには、**Pandora FMS サーバと |
| - | The steps for encryption are the following: | + | The steps to follow |
| 暗号化の手順は次の通りです。 | 暗号化の手順は次の通りです。 | ||
| - | * Stop both **Metaconsole** | + | * Stop the server, |
| - | * **メタコンソール**と**ノード**サーバの両方を停止します。 | + | * **コマンドセンター (メタコンソール)** と **ノード** の両方でサーバを停止します。 |
| + | * Update the **encryption_passphrase** fields in ''/ | ||
| - | * Update **encryption_passphrase** | + | * ''/ |
| - | * ''/ | ||
| < | < | ||
| + | $config[" | ||
| + | </ | ||
| + | < | ||
| $config[" | $config[" | ||
| - | |||
| </ | </ | ||
| - | * Launch the encryption script both in the **node** and **Metaconsole**. | + | * Launch the encryption script both in **Command Center (Metaconsole)** and in the **nodes**. |
| - | * **ノード** および **メタコンソール** 両方の暗号化スクリプトを起動します。 | + | * **ノード** および **コマンドセンター(メタコンソール)** 両方の暗号化スクリプトを起動します。 |
| - | < | + | < |
| / | / | ||
| - | |||
| </ | </ | ||
| - | <WRAP center round tip 60%>Do not forget to restart Pandora FMS Server after saving the changes and launching the script.</ | + | <WRAP center round tip 90%> |
| - | <WRAP center round tip 60%> | + | The Pandora FMS server should be restarted after making the changes and launching the script. |
| - | ===== すでにインストール済の 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, [[: | + | <WRAP center round tip 90%> |
| - | <WRAP center round important 60%> この章は、バージョン 743 からバージョン 744 に更新する場合にのみです。それ以外の場合は、[[: | + | 変更を加えてスクリプトを実行した後、Pandora FMS サーバを再起動する必要があります。 |
| - | Configure password encryption following the [[: | + | </ |
| - | [[: | + | < |
| - | * Stop both the **Metaconsole** | ||
| - | * **メタコンソール** と **ノード** 双方を停止します。 | + | ===== 暗号化パスワードの変更 ===== |
| - | * Launch | + | It is possible to change |
| - | * **メタコンソール** および **ノード** の復号化スクリプトを実行します。 | + | 暗号化パスワードが漏洩した場合には、それを変更することができます。まず、データベースに保存されているパスワードを復号化する必要があります。 |
| < | < | ||
| - | + | / | |
| - | / | + | |
| </ | </ | ||
| - | * Launch | + | Then, after having changed |
| - | * **ノード** および **メタコンソール** 双方の暗号化スクリプトを実行します。 | + | その後、暗号化パスワードを変更し([[# |
| - | < | + | < |
| / | / | ||
| - | |||
| </ | </ | ||
| - | * Restart the Metaconsole and node servers. | + | <WRAP center round important 90%> |
| - | | + | From 7.0 NG 739 onwards, the [[[: |
| - | The script cannot be executed twice, otherwise passwords would get corrupted. | + | </ |
| - | スクリプトは 2回実行できません。2回実行するとパスワードが破損します。 | + | <WRAP center round important 90%> |
| - | <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, | + | 7.0NG 739 以降には、[[: |
| - | <WRAP center round important 60%> 古いパスワードを復号化するときのみ、**-m** パラメータを追加する必要があることに注意してください。暗号化されたデータベースにこのパラメータが追加されない場合、**パスワードが失われます**。</ | + | </ |
| + | **Credential manager:** | ||
| - | ===== 暗号化パスワードの変更 ===== | + | **認証情報管理: |
| - | Changing the encryption password is possible in case it gets compromised. First, passwords stored within | + | If you have an encrypted database, in order to continue using the credential manager without losing data //decrypt everything// |
| - | 暗号化パスワードは、漏えいしてしまった場合などは変更することができます。最初に、データベース内のパスワードを復号化する必要があります。 | + | 暗号化されたデータベースがある場合、データを失うことなく資格情報管理を引き続き使用するには、**tcredential_store** テーブルを除くすべてのデータを復号化します。 |
| - | < | + | To do so, execute the following commands: |
| - | / | + | |
| + | そのためには、以下のコマンドを実行します。 | ||
| + | |||
| + | <code bash> | ||
| + | / | ||
| </ | </ | ||
| - | Then, after changing the encryption password (as described in the [[: | + | It will be deciphered. |
| - | そして、([[: | + | 暗号化が解除されます。 |
| - | < | + | Once decrypted, it will be re-encrypted again: |
| - | / | + | 暗号化を解除したら、再度暗号化を行います。 |
| + | <code bash> | ||
| + | / | ||
| </ | </ | ||
| - | <WRAP center round important | + | If you only want to encrypt from scratch, just execute the last command. |
| + | |||
| + | 初回の暗号化では、最後のコマンドを実行します。 | ||
| + | |||
| + | <wrap #ks4 /> | ||
| + | |||
| + | ===== 暗号化パスワードの削除 ===== | ||
| + | |||
| + | <WRAP center round important | ||
| + | |||
| + | It is recommended to keep **every** password stored in Pandora FMS encrypted. | ||
| - | <WRAP center round important 60%> | ||
| - | 7.0NG 739 以降には、[[: | ||
| </ | </ | ||
| - | **Credential manager:** | + | <WRAP center round important 90%> |
| - | **認証情報管理: | + | Pandora FMS に保存される |
| - | 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** | + | </ |
| - | 暗号化データベースがある場合、データを失うことなく認証情報管理を使い続けることができるようにするには、**tcredential_store** テーブルを除いてすべての暗号を解除します。 | + | |
| + | * Launch the decryption script both in **Command Center (Metaconsole)** and in the **nodes**. | ||
| - | For that purpose, execute the following commands: | + | * **コマンドセンター(メタコンソール)** と **ノード** 双方のサーバを停止します。 |
| + | * **コマンドセンター(メタコンソール)** と **ノード** の両方で復号化スクリプトを起動します。 | ||
| - | そのためには、以下のコマンドを実行します。 | + | <code bash> |
| + | / | ||
| + | </ | ||
| - | < | + | * Comment **encryption_passphrase** in ''/ |
| - | / | + | * **コマンドセンター (メタコンソール)** と **ノード** の両方で、'' |
| + | < | ||
| + | # $config[" | ||
| </ | </ | ||
| - | Leave everything decrypted. | + | <WRAP center round tip 90%> |
| - | 全ての暗号化が解除されます。 | + | The Pandora FMS server should be restarted after making the changes and launching the script. |
| - | Once decrypted, encrypt it again: | + | </ |
| - | 暗号化を解除したら、再度暗号化を行います。 | + | <WRAP center round tip 90%> |
| - | < | + | 変更を加えてスクリプトを実行した後は、Pandora FMS サーバを再起動することを忘れないでください。 |
| - | / | + | |
| - | </code> | + | </WRAP> |
| - | If you only wish to encrypt from scratch, just execute the last command. | + | [[ja: |
| - | 初回の暗号化では、最後のコマンドを実行します。 | ||
| - | ===== 暗号化パスワードの削除 | + | ===== (OBSOLETE) すでにインストール済の Pandora FMS での設定 |
| - | <WRAP center round important | + | <WRAP center round important |
| - | <WRAP center round important | + | <WRAP center round important |
| - | * Stop the server, both in **Metaconsole** | + | Configure password encryption following |
| - | * Comment** encryption_passphrase **in ''/ | + | |
| - | | + | [[: |
| - | * **メタコンソール** | + | |
| + | * Stop both the **Metaconsole** | ||
| + | |||
| + | | ||
| + | |||
| + | * Launch the decryption script both in the **Metaconsole** | ||
| + | |||
| + | * **メタコンソール** | ||
| < | < | ||
| - | # $config[" | + | |
| + | / | ||
| </ | </ | ||
| - | * Launch the decryption | + | * Launch the encryption |
| - | * **ノード** および **メタコンソール** | + | * **ノード** および **メタコンソール** |
| < | < | ||
| - | / | + | / |
| </ | </ | ||
| - | <WRAP center round tip 60%> | + | * Restart the Metaconsole and node servers. |
| + | |||
| + | * メタコンソールおよびノードサーバを再起動します。 | ||
| + | |||
| + | The script cannot be executed twice, otherwise passwords would get corrupted. | ||
| + | |||
| + | スクリプトは 2回実行できません。2回実行するとパスワードが破損します。 | ||
| + | |||
| + | <WRAP center round important | ||
| + | |||
| + | <WRAP center round important 60%> 古いパスワードを復号化するときのみ、**-m** パラメータを追加する必要があることに注意してください。暗号化されたデータベースにこのパラメータが追加されない場合、**パスワードが失われます**。</ | ||
| - | <WRAP center round tip 60%> \\ 変更を加えてスクリプトを実行した後は、Pandora FMS サーバを再起動することを忘れないでください。\\ </ | ||
| - | [[ja: | ||