From 3d246268a5bc833377218c6eae29375cba4023bf Mon Sep 17 00:00:00 2001 From: SPGoding <15277496+SPGoding@users.noreply.github.com> Date: Wed, 30 Dec 2020 10:56:48 -0600 Subject: [PATCH 1/4] Change to use printf in the doc --- doc/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/FAQ.md b/doc/FAQ.md index 9787b9449b9d..b46233f11ad0 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -167,7 +167,7 @@ Again, please follow [./guide.md](./guide.md) for our recommendations on setting Yes you can! Use `hashed-password` instead of `password`. Generate the hash with: ``` -echo "thisismypassword" | sha256sum | cut -d' ' -f1 +printf "thisismypassword" | sha256sum | cut -d' ' -f1 ``` Of course replace `"thisismypassword"` with your actual password. From 4ae90184944561f109eb384348aa320b40a4b6f1 Mon Sep 17 00:00:00 2001 From: SPGoding <15277496+SPGoding@users.noreply.github.com> Date: Wed, 30 Dec 2020 11:01:18 -0600 Subject: [PATCH 2/4] Remove ambiguity of the term 'use' --- doc/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/FAQ.md b/doc/FAQ.md index b46233f11ad0..d1185f4c0609 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -164,7 +164,7 @@ Again, please follow [./guide.md](./guide.md) for our recommendations on setting ## Can I store my password hashed? -Yes you can! Use `hashed-password` instead of `password`. Generate the hash with: +Yes you can! Set the value of `hashed-password` instead of `password`. Generate the hash with: ``` printf "thisismypassword" | sha256sum | cut -d' ' -f1 From ebfe9f02815941922924b3c803c1f742e7a68db9 Mon Sep 17 00:00:00 2001 From: SPGoding <15277496+SPGoding@users.noreply.github.com> Date: Wed, 30 Dec 2020 11:04:00 -0600 Subject: [PATCH 3/4] Add an example --- doc/FAQ.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/FAQ.md b/doc/FAQ.md index d1185f4c0609..9f6529dfd79d 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -172,6 +172,13 @@ printf "thisismypassword" | sha256sum | cut -d' ' -f1 Of course replace `"thisismypassword"` with your actual password. +Example: + +```yaml +auth: password +hashed-password: 1da9133ab9dbd11d2937ec8d312e1e2569857059e73cc72df92e670928983ab5 # You got this from the command above +``` + ## How do I securely access web services? code-server is capable of proxying to any port using either a subdomain or a From f4f368e392c2e1b2394574a98fc70fd26bcd0880 Mon Sep 17 00:00:00 2001 From: SPGoding <15277496+SPGoding@users.noreply.github.com> Date: Wed, 30 Dec 2020 11:05:12 -0600 Subject: [PATCH 4/4] Remove reference of quotes --- doc/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/FAQ.md b/doc/FAQ.md index 9f6529dfd79d..f3c58db84f42 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -170,7 +170,7 @@ Yes you can! Set the value of `hashed-password` instead of `password`. Generate printf "thisismypassword" | sha256sum | cut -d' ' -f1 ``` -Of course replace `"thisismypassword"` with your actual password. +Of course replace `thisismypassword` with your actual password. Example: