Skip to content

Commit

Permalink
docs: recommend offline bcrypt (argoproj#10050) (argoproj#10056)
Browse files Browse the repository at this point in the history
* docs: recommend offline bcrypt (argoproj#10050)

Signed-off-by: CI <michael@crenshaw.dev>

* add bcrypt example

Signed-off-by: CI <michael@crenshaw.dev>

* note title

Signed-off-by: CI <michael@crenshaw.dev>
  • Loading branch information
crenshaw-dev authored and Ashutosh committed Aug 11, 2022
1 parent 6c28f95 commit 568981e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ per [the getting started guide](getting_started.md). For Argo CD v1.9 and later,
a secret named `argocd-initial-admin-secret`.

To change the password, edit the `argocd-secret` secret and update the `admin.password` field with a new bcrypt hash.
You can use a site like [https://www.browserling.com/tools/bcrypt](https://www.browserling.com/tools/bcrypt) to generate
a new hash. For example:

!!! note "Generating a bcrypt hash"
Use a trustworthy, offline `bcrypt` implementation such as the [Python bcrypt library](https://pypi.org/project/bcrypt/) to generate the hash.

pip3 install bcrypt
python3 -c "import bcrypt; print(bcrypt.hashpw(b'YOUR-PASSWORD-HERE', bcrypt.gensalt()).decode())"

To apply the new password hash, use the following command (replacing the hash with your own):

```bash
# bcrypt(password)=$2a$10$rRyBsGSHK6.uc8fntPwVIuLVHgsAhAX7TcdrqW/RADU0uh7CaChLa
Expand Down

0 comments on commit 568981e

Please sign in to comment.