Skip to content

Commit

Permalink
fix: replace deprecated argon-cli npm package with argon2 (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
matekuzdi authored Dec 6, 2024
1 parent b1fd3d6 commit 5a4c671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lab/cfn/eks-workshop-vscode-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Resources:
- !Sub |
set -e
yum install -y git tar gzip vim nodejs npm make gcc g++
yum install -y git tar gzip vim nodejs npm make gcc g++ argon2
export environment="${Environment}"
Expand Down Expand Up @@ -329,7 +329,7 @@ Resources:
PASSWORD_SECRET_VALUE=$(aws secretsmanager get-secret-value --secret-id "${EksWorkshopIdePassword.Id}" --query 'SecretString' --output text)
IDE_PASSWORD=$(echo "$PASSWORD_SECRET_VALUE" | jq -r '.password')
HASHED_PASSWORD=$(echo -n "$IDE_PASSWORD" | npx argon2-cli -e)
HASHED_PASSWORD=$(echo -n "$IDE_PASSWORD" | argon2 saltItWithSalt -l 32 -e)
mkdir -p ~/.config/code-server
touch ~/.config/code-server/config.yaml
Expand Down

0 comments on commit 5a4c671

Please sign in to comment.