payload: {"action":"created","comment":{"url":"https://api.github.com/repos/portworx/pxdocs/pulls/comments/312272982","pull_request_review_id":272871979,"id":312272982,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMjI3Mjk4Mg==","diff_hunk":"@@ -0,0 +1,55 @@\n+---\n+title: Dump and Upload cluster-wide secrets\n+linkTitle: Dump and Upload cluster-wide secrets\n+keywords: portworx, pxctl, command-line tool, cli, reference, alerts, monitoring, encrypted-volumes, encryption, secrets\n+description: Migrate cluster-wide secrets used for encrypting volumes between clusters. \n+weight: 18\n+---\n+\n+_Portworx_ provides the capability to encrypt volumes using cluster-wide secrets. Cluster-wide secret is a unique secret\n+for a cluster that can be used as a default key for encrypting your volumes. However this poses a problem while migrating \n+such volumes across clusters. The destination cluster needs to have the same cluster-wide secret in order to use the\n+migrated encrypted volume.\n+\n+The following set of commands will help you dump the cluster-wide secret from one cluster and upload the same secret to\n+a different cluster. Once the cluster-wide secret is uploaded to the destination cluster, encrypted volumes using the cluster-wide\n+secret can be migrated to the destination cluster.\n+\n+\n+### Dumping cluster-wide secret\n+\n+To dump the cluster-wide secret run the following command\n+\n+```text\n+pxctl secrets  dump-cluster-wide-secret\n+```\n+\n+```output\n+Following are the details about the cluster-wide secret for this cluster:\n+\n+Secret ID (--secret_id): shailvitest\n+Secret value (--secret_value): AQIDAHiFBNOMzjedxcurzMsjimuzjkzzx99/lUtayeBPH38SNAF5duc4foWsMAGBmsjOvLPtAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMZ9WsX37ZmWVPIjsEAgEQgDs+UIl5k3AK4JxpX4uiw1qQbGwBuGALKIL7rYN8k5daq0q3xnz+EXs8PFltmkNbZGcGfkKelIS2Z5dYhA==\n+\n+On the destination cluster run the following command:\n+\n+ /opt/pwx/bin/pxctl secrets upload-cluster-wide-secret --secret_id shailvitest --secret_value AQIDAHiFBNOMzjedxcurzMsjimuzjkzzx99/lUtayeBPH38SNAF5duc4foWsMAGBmsjOvLPtAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMZ9WsX37ZmWVPIjsEAgEQgDs+UIl5k3AK4JxpX4uiw1qQbGwBuGALKIL7rYN8k5daq0q3xnz+EXs8PFltmkNbZGcGfkKelIS2Z5dYhA==\n+\n+```\n+\n+The _dump_ command also spits out the corresponding upload command that needs to be executed on the destination cluster.\n+\n+### Upload cluster-wide secret\n+\n+Use the command from the output of the `dump-cluster-wide-secret` command on the destination cluster to upload the cluster-wide secret","path":"content/reference/CLI/dump-upload-cluster-wide-secret.md","position":43,"original_position":43,"commit_id":"bcdec7d7172a85e66e2a3971ff676097249c7439","original_commit_id":"bcdec7d7172a85e66e2a3971ff676097249c7439","user":{"login":"nathan-px","id":53194370,"node_id":"MDQ6VXNlcjUzMTk0Mzcw","avatar_url":"https://avatars3.githubusercontent.com/u/53194370?v=4","gravatar_id":"","url":"https://api.github.com/users/nathan-px","html_url":"https://github.com/nathan-px","followers_url":"https://api.github.com/users/nathan-px/followers","following_url":"https://api.github.com/users/nathan-px/following{/other_user}","gists_url":"https://api.github.com/users/nathan-px/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan-px/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan-px/subscriptions","organizations_url":"https://api.github.com/users/nathan-px/orgs","repos_url":"https://api.github.com/users/nathan-px/repos","events_url":"https://api.github.com/users/nathan-px/events{/privacy}","received_events_url":"https://api.github.com/users/nathan-px/received_events","type":"User","site_admin":false},"body":"Is this correct? I'm trying to add clarity to the command that results from the dump command.\r\n\r\n```suggestion\r\nThe `dump-cluster-wide-secret` command outputs an `upload-cluster-wide-secret` command. Use this command on the destination cluster to upload the cluster-wide secret:\r\n```","created_at":"2019-08-08T22:45:45Z","updated_at":"2019-08-08T22:46:18Z","html_url":"https://github.com/portworx/pxdocs/pull/373#discussion_r312272982","pull_request_url":"https://api.github.com/repos/portworx/pxdocs/pulls/373","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/comments/312272982"},"html":{"href":"https://github.com/portworx/pxdocs/pull/373#discussion_r312272982"},"pull_request":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/373"}}},"pull_request":{"url":"https://api.github.com/repos/portworx/pxdocs/pulls/373","id":305770775,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA1NzcwNzc1","html_url":"https://github.com/portworx/pxdocs/pull/373","diff_url":"https://github.com/portworx/pxdocs/pull/373.diff","patch_url":"https://github.com/portworx/pxdocs/pull/373.patch","issue_url":"https://api.github.com/repos/portworx/pxdocs/issues/373","number":373,"state":"open","locked":false,"title":"Add CLI doc page for dumping and uploading cluster wide secrets.","user":{"login":"adityadani","id":313611,"node_id":"MDQ6VXNlcjMxMzYxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/313611?v=4","gravatar_id":"","url":"https://api.github.com/users/adityadani","html_url":"https://github.com/adityadani","followers_url":"https://api.github.com/users/adityadani/followers","following_url":"https://api.github.com/users/adityadani/following{/other_user}","gists_url":"https://api.github.com/users/adityadani/gists{/gist_id}","starred_url":"https://api.github.com/users/adityadani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityadani/subscriptions","organizations_url":"https://api.github.com/users/adityadani/orgs","repos_url":"https://api.github.com/users/adityadani/repos","events_url":"https://api.github.com/users/adityadani/events{/privacy}","received_events_url":"https://api.github.com/users/adityadani/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-08T22:22:48Z","updated_at":"2019-08-08T22:46:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"765613392af05a90ce0038a3a470a69256e1e1ca","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vilasd","id":14971467,"node_id":"MDQ6VXNlcjE0OTcxNDY3","avatar_url":"https://avatars2.githubusercontent.com/u/14971467?v=4","gravatar_id":"","url":"https://api.github.com/users/vilasd","html_url":"https://github.com/vilasd","followers_url":"https://api.github.com/users/vilasd/followers","following_url":"https://api.github.com/users/vilasd/following{/other_user}","gists_url":"https://api.github.com/users/vilasd/gists{/gist_id}","starred_url":"https://api.github.com/users/vilasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilasd/subscriptions","organizations_url":"https://api.github.com/users/vilasd/orgs","repos_url":"https://api.github.com/users/vilasd/repos","events_url":"https://api.github.com/users/vilasd/events{/privacy}","received_events_url":"https://api.github.com/users/vilasd/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/portworx/pxdocs/pulls/373/commits","review_comments_url":"https://api.github.com/repos/portworx/pxdocs/pulls/373/comments","review_comment_url":"https://api.github.com/repos/portworx/pxdocs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/portworx/pxdocs/issues/373/comments","statuses_url":"https://api.github.com/repos/portworx/pxdocs/statuses/bcdec7d7172a85e66e2a3971ff676097249c7439","head":{"label":"adityadani:dump-cluster-wide-secret","ref":"dump-cluster-wide-secret","sha":"bcdec7d7172a85e66e2a3971ff676097249c7439","user":{"login":"adityadani","id":313611,"node_id":"MDQ6VXNlcjMxMzYxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/313611?v=4","gravatar_id":"","url":"https://api.github.com/users/adityadani","html_url":"https://github.com/adityadani","followers_url":"https://api.github.com/users/adityadani/followers","following_url":"https://api.github.com/users/adityadani/following{/other_user}","gists_url":"https://api.github.com/users/adityadani/gists{/gist_id}","starred_url":"https://api.github.com/users/adityadani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityadani/subscriptions","organizations_url":"https://api.github.com/users/adityadani/orgs","repos_url":"https://api.github.com/users/adityadani/repos","events_url":"https://api.github.com/users/adityadani/events{/privacy}","received_events_url":"https://api.github.com/users/adityadani/received_events","type":"User","site_admin":false},"repo":{"id":160384076,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAzODQwNzY=","name":"pxdocs","full_name":"adityadani/pxdocs","private":false,"owner":{"login":"adityadani","id":313611,"node_id":"MDQ6VXNlcjMxMzYxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/313611?v=4","gravatar_id":"","url":"https://api.github.com/users/adityadani","html_url":"https://github.com/adityadani","followers_url":"https://api.github.com/users/adityadani/followers","following_url":"https://api.github.com/users/adityadani/following{/other_user}","gists_url":"https://api.github.com/users/adityadani/gists{/gist_id}","starred_url":"https://api.github.com/users/adityadani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityadani/subscriptions","organizations_url":"https://api.github.com/users/adityadani/orgs","repos_url":"https://api.github.com/users/adityadani/repos","events_url":"https://api.github.com/users/adityadani/events{/privacy}","received_events_url":"https://api.github.com/users/adityadani/received_events","type":"User","site_admin":false},"html_url":"https://github.com/adityadani/pxdocs","description":"Source for upcoming version of docs.portworx.com","fork":true,"url":"https://api.github.com/repos/adityadani/pxdocs","forks_url":"https://api.github.com/repos/adityadani/pxdocs/forks","keys_url":"https://api.github.com/repos/adityadani/pxdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adityadani/pxdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adityadani/pxdocs/teams","hooks_url":"https://api.github.com/repos/adityadani/pxdocs/hooks","issue_events_url":"https://api.github.com/repos/adityadani/pxdocs/issues/events{/number}","events_url":"https://api.github.com/repos/adityadani/pxdocs/events","assignees_url":"https://api.github.com/repos/adityadani/pxdocs/assignees{/user}","branches_url":"https://api.github.com/repos/adityadani/pxdocs/branches{/branch}","tags_url":"https://api.github.com/repos/adityadani/pxdocs/tags","blobs_url":"https://api.github.com/repos/adityadani/pxdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adityadani/pxdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adityadani/pxdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/adityadani/pxdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adityadani/pxdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/adityadani/pxdocs/languages","stargazers_url":"https://api.github.com/repos/adityadani/pxdocs/stargazers","contributors_url":"https://api.github.com/repos/adityadani/pxdocs/contributors","subscribers_url":"https://api.github.com/repos/adityadani/pxdocs/subscribers","subscription_url":"https://api.github.com/repos/adityadani/pxdocs/subscription","commits_url":"https://api.github.com/repos/adityadani/pxdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/adityadani/pxdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/adityadani/pxdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/adityadani/pxdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/adityadani/pxdocs/contents/{+path}","compare_url":"https://api.github.com/repos/adityadani/pxdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adityadani/pxdocs/merges","archive_url":"https://api.github.com/repos/adityadani/pxdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adityadani/pxdocs/downloads","issues_url":"https://api.github.com/repos/adityadani/pxdocs/issues{/number}","pulls_url":"https://api.github.com/repos/adityadani/pxdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/adityadani/pxdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/adityadani/pxdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adityadani/pxdocs/labels{/name}","releases_url":"https://api.github.com/repos/adityadani/pxdocs/releases{/id}","deployments_url":"https://api.github.com/repos/adityadani/pxdocs/deployments","created_at":"2018-12-04T16:07:16Z","updated_at":"2019-05-17T01:38:09Z","pushed_at":"2019-08-08T22:21:54Z","git_url":"git://github.com/adityadani/pxdocs.git","ssh_url":"git@github.com:adityadani/pxdocs.git","clone_url":"https://github.com/adityadani/pxdocs.git","svn_url":"https://github.com/adityadani/pxdocs","homepage":null,"size":36119,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"portworx:master","ref":"master","sha":"54f0f16b2b7f9c9f58ff6e635c0f90e7c10ccd9f","user":{"login":"portworx","id":12014092,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMDE0MDky","avatar_url":"https://avatars3.githubusercontent.com/u/12014092?v=4","gravatar_id":"","url":"https://api.github.com/users/portworx","html_url":"https://github.com/portworx","followers_url":"https://api.github.com/users/portworx/followers","following_url":"https://api.github.com/users/portworx/following{/other_user}","gists_url":"https://api.github.com/users/portworx/gists{/gist_id}","starred_url":"https://api.github.com/users/portworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portworx/subscriptions","organizations_url":"https://api.github.com/users/portworx/orgs","repos_url":"https://api.github.com/users/portworx/repos","events_url":"https://api.github.com/users/portworx/events{/privacy}","received_events_url":"https://api.github.com/users/portworx/received_events","type":"Organization","site_admin":false},"repo":{"id":142054032,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIwNTQwMzI=","name":"pxdocs","full_name":"portworx/pxdocs","private":false,"owner":{"login":"portworx","id":12014092,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMDE0MDky","avatar_url":"https://avatars3.githubusercontent.com/u/12014092?v=4","gravatar_id":"","url":"https://api.github.com/users/portworx","html_url":"https://github.com/portworx","followers_url":"https://api.github.com/users/portworx/followers","following_url":"https://api.github.com/users/portworx/following{/other_user}","gists_url":"https://api.github.com/users/portworx/gists{/gist_id}","starred_url":"https://api.github.com/users/portworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portworx/subscriptions","organizations_url":"https://api.github.com/users/portworx/orgs","repos_url":"https://api.github.com/users/portworx/repos","events_url":"https://api.github.com/users/portworx/events{/privacy}","received_events_url":"https://api.github.com/users/portworx/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/portworx/pxdocs","description":"Source for upcoming version of docs.portworx.com","fork":false,"url":"https://api.github.com/repos/portworx/pxdocs","forks_url":"https://api.github.com/repos/portworx/pxdocs/forks","keys_url":"https://api.github.com/repos/portworx/pxdocs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portworx/pxdocs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portworx/pxdocs/teams","hooks_url":"https://api.github.com/repos/portworx/pxdocs/hooks","issue_events_url":"https://api.github.com/repos/portworx/pxdocs/issues/events{/number}","events_url":"https://api.github.com/repos/portworx/pxdocs/events","assignees_url":"https://api.github.com/repos/portworx/pxdocs/assignees{/user}","branches_url":"https://api.github.com/repos/portworx/pxdocs/branches{/branch}","tags_url":"https://api.github.com/repos/portworx/pxdocs/tags","blobs_url":"https://api.github.com/repos/portworx/pxdocs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portworx/pxdocs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portworx/pxdocs/git/refs{/sha}","trees_url":"https://api.github.com/repos/portworx/pxdocs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portworx/pxdocs/statuses/{sha}","languages_url":"https://api.github.com/repos/portworx/pxdocs/languages","stargazers_url":"https://api.github.com/repos/portworx/pxdocs/stargazers","contributors_url":"https://api.github.com/repos/portworx/pxdocs/contributors","subscribers_url":"https://api.github.com/repos/portworx/pxdocs/subscribers","subscription_url":"https://api.github.com/repos/portworx/pxdocs/subscription","commits_url":"https://api.github.com/repos/portworx/pxdocs/commits{/sha}","git_commits_url":"https://api.github.com/repos/portworx/pxdocs/git/commits{/sha}","comments_url":"https://api.github.com/repos/portworx/pxdocs/comments{/number}","issue_comment_url":"https://api.github.com/repos/portworx/pxdocs/issues/comments{/number}","contents_url":"https://api.github.com/repos/portworx/pxdocs/contents/{+path}","compare_url":"https://api.github.com/repos/portworx/pxdocs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portworx/pxdocs/merges","archive_url":"https://api.github.com/repos/portworx/pxdocs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portworx/pxdocs/downloads","issues_url":"https://api.github.com/repos/portworx/pxdocs/issues{/number}","pulls_url":"https://api.github.com/repos/portworx/pxdocs/pulls{/number}","milestones_url":"https://api.github.com/repos/portworx/pxdocs/milestones{/number}","notifications_url":"https://api.github.com/repos/portworx/pxdocs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portworx/pxdocs/labels{/name}","releases_url":"https://api.github.com/repos/portworx/pxdocs/releases{/id}","deployments_url":"https://api.github.com/repos/portworx/pxdocs/deployments","created_at":"2018-07-23T18:34:11Z","updated_at":"2019-08-08T22:24:23Z","pushed_at":"2019-08-08T22:42:44Z","git_url":"git://github.com/portworx/pxdocs.git","ssh_url":"git@github.com:portworx/pxdocs.git","clone_url":"https://github.com/portworx/pxdocs.git","svn_url":"https://github.com/portworx/pxdocs","homepage":null,"size":37431,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":30,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":33,"open_issues":30,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/373"},"html":{"href":"https://github.com/portworx/pxdocs/pull/373"},"issue":{"href":"https://api.github.com/repos/portworx/pxdocs/issues/373"},"comments":{"href":"https://api.github.com/repos/portworx/pxdocs/issues/373/comments"},"review_comments":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/373/comments"},"review_comment":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/portworx/pxdocs/pulls/373/commits"},"statuses":{"href":"https://api.github.com/repos/portworx/pxdocs/statuses/bcdec7d7172a85e66e2a3971ff676097249c7439"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"nathan-px"}}