{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Embulk Encoder Encryption PGP","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"embulk-encoder-encryption-pgp","__idx":0},"children":["Embulk Encoder Encryption PGP"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この統合は現在ベータ版であり、TDは機能と安定性を向上させるためにフィードバックを積極的に収集しています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"概要","__idx":1},"children":["概要"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["PGP暗号化は、PII(個人を特定できる情報)やその他の機密データを含むファイルを暗号化することで、安全なデータ転送を保証します。お客様は、機密情報を安全に処理するためにLiveRampなどの外部システムを使用しています。当社のソリューションは、暗号化要件をサポートすることで、このようなサービスとのシームレスな統合を可能にします。Liveramp向けに暗号化オプションを導入する予定ですが、他のサービスについては、汎用的なSFTP v2およびその他のコネクタに暗号化オプションを実装する予定です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アドテック企業は、ネイティブAPIに加えて、オーディエンスデータやコンバージョンデータをインポートするためのSFTP、FTPサーバーを提供することがよくあります。暗号化機能を備えたSFTP、FTPなどをサポートすることで、新しい専用コネクタを開発することなく、サードパーティのアドテック企業との統合を実現できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://community.sap.com/legacyfs/online/storage/blog_attachments/2022/04/GoAnywhereMFT_OpenPGP-Diagram-1.png","alt":"How to encrypt and decrypt files using GPG - SAP C... - SAP Community"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["主な機能:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Encryption PGP Encoder"]},"プラグインは、Pretty Good Privacy(PGP)を使用して出力データを安全にエンコードする機能を提供します。このエンコーダーは、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["暗号化前にgzip、bzip2などの圧縮をデータに適用"]},"でき、データのセキュリティとデータサイズの削減の両方を実現します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このプラグインにより、ユーザーは指定されたPGP公開鍵を使用してデータを暗号化できます。データはまずgzip、bzip2で圧縮され、その後暗号化されるため、機密性と効率性の両方が提供されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["TD Toolbeltを含むTreasure Dataの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["暗号化と復号化の基本的な知識"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エクスポート用のクエリ結果の設定","__idx":3},"children":["エクスポート用のクエリ結果の設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールは、データをエクスポートする複数の方法をサポートしています。Data Workbenchからデータをエクスポートするには、次の手順に従ってください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]},"を選択し、クエリを定義します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]},"を選択してデータエクスポートを設定します。SFTP_V2など、暗号化をサポートするコネクタを使用することを忘れないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["既存のAuthenticationを選択するか、前述のように新しいものを作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"コネクタ設定パラメータ","__idx":4},"children":["コネクタ設定パラメータ"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フィールド"},"children":["フィールド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンコーダーのタイプは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["encrypt_pgp"]},"である必要があります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["public_key"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["暗号化に使用されるPGP公開鍵(文字列、必須)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["key_identifier"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PGP鍵の識別子(文字列、必須)を16進数形式で指定します。ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["armor"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["暗号化された出力にASCII armorを使用します(ブール値、オプション)。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["encryption_algorithm"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用する暗号化アルゴリズム(文字列、必須、デフォルトは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AES_256"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["compression_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["暗号化前にgzipを使用してデータを圧縮するかどうか(ブール値、オプション)。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプションcliを使用したエクスポート統合sftp-v2での例","__idx":5},"children":["(オプション)CLIを使用したエクスポート統合、SFTP V2での例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIを使用してencoder暗号化を利用することもできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]},{"$$mdtype":"Tag","name":"em","attributes":{},"children":["コマンドの"]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result"]},"オプション"]},"を使用して、LinkedInサーバーへのエクスポート情報を指定する必要があります。*",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]},"*コマンドの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt-job-and-query-command-reference"},"children":["こちらの記事"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションの形式はJSONで、一般的な構造は次のとおりです。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"out:  type: file  path_prefix: data_bzip2  file_ext: .csv.bz2.gpg  sequence_format: \"\"  formatter:    type: csv    delimiter: ','    quote: '\"'    quote_policy: MINIMAL    header_line: true  encoders:    - type: encrypt_pgp      public_key: |        -----BEGIN PGP PUBLIC KEY BLOCK-----        your public key content        -----END PGP PUBLIC KEY BLOCK-----      key_identifier: 6B057AFA80C04166      armor: true      encryption_algorithm: AES_256    - type: bzip2      level: 6\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sftp-v2での使用例","__idx":6},"children":["SFTP V2での使用例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d luan_db -w \"select * from luan_db.sfcc_500k\" -T presto --result '{  \"type\": \"sftp_v2\",  \"host\": \"ap-southeast-1.sftpcloud.io\",  \"auth_method\": \"password\",  \"username\": \"username\",  \"password\": \"password\",  \"path_prefix\": \"cli/test_27_3_500K.csv.gz.gpg\",  \"file_ext\": \".gpg\",  \"rename_file_after_upload\": false,  \"formatter\": {    \"type\": \"csv\",    \"quote_policy\": \"MINIMAL\",    \"delimiter\": \",\",    \"null_string\": \"null\",    \"newline\": \"\"  },  \"compression\": \"encrypt_pgp\",  \"public_key\": \"-----BEGIN PGP PUBLIC KEY BLOCK-----  your public key content-----END PGP PUBLIC KEY BLOCK-----\",  \"key_identifier\": \"6B057AFA80C04166\",  \"armor\": true,  \"compression_type\": \"gzip\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連記事","__idx":7},"children":["関連記事"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["SFTP V2: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/sftp_v2-server-export-integration"},"children":["SFTP V2 Server Export Integration"]}]}]}]},"headings":[{"value":"Embulk Encoder Encryption PGP","id":"embulk-encoder-encryption-pgp","depth":1},{"value":"概要","id":"概要","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"エクスポート用のクエリ結果の設定","id":"エクスポート用のクエリ結果の設定","depth":2},{"value":"コネクタ設定パラメータ","id":"コネクタ設定パラメータ","depth":3},{"value":"(オプション)CLIを使用したエクスポート統合、SFTP V2での例","id":"オプションcliを使用したエクスポート統合sftp-v2での例","depth":2},{"value":"SFTP V2での使用例","id":"sftp-v2での使用例","depth":3},{"value":"関連記事","id":"関連記事","depth":2}],"frontmatter":{"seo":{"title":"Embulk Encoder Encryption PGP"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/embulk-encoder-encryption-pgp","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}