Anonymitaet commented on code in PR #15734: URL: https://github.com/apache/pulsar/pull/15734#discussion_r880143965
########## site2/docs/security-basic-auth.md: ########## @@ -0,0 +1,127 @@ +--- +id: security-basic-auth +title: Authentication using HTTP basic +sidebar_label: "Authentication using HTTP basic" +--- + +````mdx-code-block +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +```` + +[Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) is a simple authentication scheme built into the HTTP protocol, which uses base64-encoded username and password pairs as credentials. + +## Prerequisites + +Install [`htpasswd`](https://httpd.apache.org/docs/2.4/programs/htpasswd.html) in your environment to create a password file for storing username-password pairs. + +* For Ubuntu/Debian, run the following command to install `htpasswd`. + + ``` + apt install apache2-utils + ``` + +* For CentOS/RHEL, run the following command to install `htpasswd`. + + ``` + yum install httpd-tools + ``` + +## Create your authentication file + +:::note +Currently, you can use MD5 (recommended) and CRYPT encryption to authenticate your password. +::: + +Create a password file named `.htpasswd` with a user account `superuser/admin`: +* Use MD5 encryption (recommended): Review Comment: This part is not shown in the preview screenshot. Does it render correctly (there is no empty line between two sentences)? ########## site2/docs/security-basic-auth.md: ########## @@ -0,0 +1,127 @@ +--- +id: security-basic-auth +title: Authentication using HTTP basic +sidebar_label: "Authentication using HTTP basic" +--- + +````mdx-code-block +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +```` + +[Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) is a simple authentication scheme built into the HTTP protocol, which uses base64-encoded username and password pairs as credentials. + +## Prerequisites + +Install [`htpasswd`](https://httpd.apache.org/docs/2.4/programs/htpasswd.html) in your environment to create a password file for storing username-password pairs. + +* For Ubuntu/Debian, run the following command to install `htpasswd`. + + ``` + apt install apache2-utils + ``` + +* For CentOS/RHEL, run the following command to install `htpasswd`. + + ``` + yum install httpd-tools + ``` + +## Create your authentication file + +:::note +Currently, you can use MD5 (recommended) and CRYPT encryption to authenticate your password. +::: + +Create a password file named `.htpasswd` with a user account `superuser/admin`: +* Use MD5 encryption (recommended): Review Comment: Can you attach the preview screenshot for all changes? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org