{"id":82252,"date":"2022-12-28T17:32:04","date_gmt":"2022-12-28T17:32:04","guid":{"rendered":"https:\/\/www.techrepublic.com\/?p=4016662"},"modified":"2023-02-15T10:40:43","modified_gmt":"2023-02-15T10:40:43","slug":"how-to-deploy-a-self-hosted-instance-of-the-passbolt-password-manager","status":"publish","type":"post","link":"https:\/\/cloudnewshub.com\/?p=82252","title":{"rendered":"How to deploy a self-hosted instance of the Passbolt password manager"},"content":{"rendered":"<div id=\"\">\n<p> A password manager can keep your sensitive information in-house. Here&#8217;s how to deploy Passbolt to your data center or cloud-hosted service.<\/p>\n<\/div>\n<div id=\"\">\n<figure id=\"attachment_4016667\" aria-describedby=\"caption-attachment-4016667\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4016667 size-article\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/12\/how-to-deploy-a-self-hosted-instance-of-the-passbolt-password-manager.jpg\" alt=\"A user typing a password.\" width=\"770\" height=\"513\"><figcaption id=\"caption-attachment-4016667\" class=\"wp-caption-text\">Image: Song_about_summer\/Adobe Stock<\/figcaption><\/figure>\n<p>Passbolt is a <a href=\"https:\/\/www.techrepublic.com\/article\/password-managers-built-teams\/\">password manager<\/a> you can use for team collaboration, and it offers plenty of the features you\u2019ve grown accustomed to having at your fingertips, such as a random password generator, team collaboration, folders, tags and user access control. This password manager is designed specifically for Agile and DevOps teams, and it\u2019s application programming interface-centric and developer-first.<\/p>\n<h2>Why would you want to run a self-hosted instance of Passbolt?<\/h2>\n<p>If your project or organization needs to save sensitive information and you don\u2019t want to trust it to third-party servers, you might want to run a self-hosted instance of Passbolt. If you\u2019re comfortable using Docker, this is a surefire solution for protecting your passwords from breaches, such as what recently occurred to LastPass.<\/p>\n<p><strong>SEE: <\/strong><a href=\"https:\/\/www.techrepublic.com\/resource-library\/whitepapers\/password-breach-why-pop-culture-and-passwords-don-t-mix-free-pdf\/\"><strong>Password breach: Why pop culture and passwords don\u2019t mix (free PDF)<\/strong><\/a><strong> (TechRepublic)<\/strong><\/p>\n<p>If Passbolt sounds like a password manager well-suited to your needs, learn how it can be deployed with the help of Docker.<\/p>\n<h2>What you\u2019ll need to deploy Passbolt<\/h2>\n<p>To run the self-hosted version of Passbolt, you\u2019ll need a server with an operating system that supports Docker. I\u2019ll demonstrate with Ubuntu Server 22.04 and the latest version of Docker CE; for that, you\u2019ll need a running instance of Ubuntu Server and a user with sudo privileges.<\/p>\n<h2>How to install Docker<\/h2>\n<p>First, add the official Docker GPG key with the command:<\/p>\n<p><code>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg<\/code><\/p>\n<p>With the key in place, add the Docker repository with the command:<\/p>\n<p><code>echo \"deb [arch=amd64 signed-by=\/usr\/share\/keyrings\/docker-archive-keyring.gpg] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/code><\/p>\n<p>Next, install the required dependencies with the command:<\/p>\n<p><code>sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y<\/code><\/p>\n<p>Update apt, and install Docker CE with the commands:<\/p>\n<p><code>sudo apt-get update<\/code><br \/>\n<code>sudo apt-get install docker-ce docker-ce-cli containerd.io -y<\/code><\/p>\n<p>Make sure your user is still a member of the docker group with the command:<\/p>\n<p><code>sudo usermod -aG docker $USER<\/code><\/p>\n<p>Log out and log back in for the changes to take effect.<\/p>\n<p>Download the Passbolt Docker Compose YAML file with:<\/p>\n<p><code>wget https:\/\/download.passbolt.com\/ce\/docker\/docker-compose-ce.yaml<\/code><\/p>\n<p>Open that file for editing with the command:<\/p>\n<p><code>nano docker-compose-ce.yaml<\/code><\/p>\n<p>Go through that file and edit any entries you need. For example, you might change the APP_FULL_BASE_URL: line to reflect your server\u2019s IP address or hostname. Once you\u2019ve edited the file, save and close it. You can then start the containers with the command:<\/p>\n<p><code>docker-compose -f docker-compose-ce.yaml up -d<\/code><\/p>\n<p>Once the containers have started, you must then create your first admin user with the command:<\/p>\n<p><code>docker-compose -f docker-compose-ce.yaml exec passbolt su -m -c \"\/usr\/share\/php\/passbolt\/bin\/cake passbolt register_user -u EMAIL -f FIRSTNAME -l LASTNAME -r admin\" -s \/bin\/sh www-data<\/code><\/p>\n<p>Where:<\/p>\n<ul>\n<li>EMAIL is your email address.<\/li>\n<li>FIRSTNAME is your first name.<\/li>\n<li>LASTNAME is your last name.<\/li>\n<\/ul>\n<p>The above command will output an address like this:<\/p>\n<p><code>https:\/\/192.168.1.60\/setup\/install\/f398345d-3bee-897d-afe5-321ea3dd3a5b\/724fe653-80d7-4042-8667-ea61ddd104c6<\/code><\/p>\n<p>Open your default web browser, which must be either Firefox, Chrome, Edge, Brave or Vivaldi, paste the output address and hit enter. Now, you can create a passphrase for your vault (<strong>Figure A<\/strong>), making sure it\u2019s strong and unique.<\/p>\n<p><strong>Figure A<\/strong><\/p>\n<figure id=\"attachment_4016664\" aria-describedby=\"caption-attachment-4016664\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4016664\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/12\/how-to-deploy-a-self-hosted-instance-of-the-passbolt-password-manager-1.jpg\" alt=\"Creating a passphrase for a Passbolt vault.\" width=\"492\" height=\"698\"><figcaption id=\"caption-attachment-4016664\" class=\"wp-caption-text\">Creating a passphrase for a Passbolt vault.<\/figcaption><\/figure>\n<p>Click Next, save the recovery kit file to your local drive and click Next again. You will be required to pick a color and type three random characters (<strong>Figure B<\/strong>).<\/p>\n<p><strong>Figure B<\/strong><\/p>\n<figure id=\"attachment_4016663\" aria-describedby=\"caption-attachment-4016663\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4016663\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/12\/how-to-deploy-a-self-hosted-instance-of-the-passbolt-password-manager-2.jpg\" alt=\"Creating a security token for Passbolt.\" width=\"492\" height=\"698\"><figcaption id=\"caption-attachment-4016663\" class=\"wp-caption-text\">Creating a security token for Passbolt.<\/figcaption><\/figure>\n<p>Click Next, and you\u2019ll find yourself on the Passbolt main window (<strong>Figure C<\/strong>), where you can start adding vault entries.<\/p>\n<p><strong>Figure C<\/strong><\/p>\n<figure id=\"attachment_4016665\" aria-describedby=\"caption-attachment-4016665\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4016665 size-article\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/12\/how-to-deploy-a-self-hosted-instance-of-the-passbolt-password-manager-3.jpg\" alt=\"The Passbolt self-hosted main window.\" width=\"770\" height=\"234\"><figcaption id=\"caption-attachment-4016665\" class=\"wp-caption-text\">The Passbolt self-hosted main window.<\/figcaption><\/figure>\n<p>Another security resource to use is <a href=\"https:\/\/www.techrepublic.com\/resource-library\/downloads\/password-management-policy\/\">TechRepublic Premium\u2019s password management policy<\/a>.<\/p>\n<p><em><strong>Subscribe to TechRepublic\u2019s <\/strong><a href=\"https:\/\/www.youtube.com\/channel\/UCKyMiy1zmJ7aZ8aP6DLZLIA\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>How To Make Tech Work on YouTube<\/strong><\/a><strong> for all the latest tech advice for business pros from Jack Wallen.<\/strong><\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A password manager can keep your sensitive information in-house. Here&#8217;s how to deploy Passbolt to your data center or cloud-hosted service. Image: Song_about_summer\/Adobe Stock Passbolt is a password manager you can use for team collaboration, and it offers plenty of the features you\u2019ve grown accustomed to having at your fingertips, such as a random password [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":82253,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,783,177,287],"tags":[],"class_list":["post-82252","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-cloudsync","category-open-source","category-security"],"_links":{"self":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/82252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82252"}],"version-history":[{"count":1,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/82252\/revisions"}],"predecessor-version":[{"id":88029,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/82252\/revisions\/88029"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/media\/82253"}],"wp:attachment":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}