devspace icon indicating copy to clipboard operation
devspace copied to clipboard

If a "var" is set as password it should be masked on outputs and logs

Open leventogut opened this issue 3 years ago • 1 comments

vars:

  • name: DB_PASSWORD password: true
  • name: DB_ROOT_PASSWORD password: true

LOGS>> info] Execute hook 'sh -c while ! mysql -u root -p"db.root.password/" -e ";" >/dev/null 2>&1 ; do echo "Waiting for database to be ready..."; sleep 3; done

echo "CREATE USER IF NOT EXISTS 'laravel'@'%' IDENTIFIED BY 'db.password'; ALTER USER 'laravel' IDENTIFIED BY 'db.password';" | mysql -u root -p'db.root.password/' ' [info] Waiting for running containers for hook 'sh -c while ! mysql -u root -p"db.root.password/" -e ";" >/dev/null 2>&1 ; do echo "Waiting for database to be ready..."; sleep 3; done

echo "CREATE USER IF NOT EXISTS 'laravel'@'%' IDENTIFIED BY 'db.password'; ALTER USER 'laravel' IDENTIFIED BY 'db.password';" | mysql -u root -p'db.root.password/' ' [info] Execute hook 'sh -c while ! mysql -u root -p"db.root.password/" -e ";" >/dev/null 2>&1 ; do echo "Waiting for database to be ready..."; sleep 3; done

echo "CREATE USER IF NOT EXISTS 'laravel'@'%' IDENTIFIED BY 'db.password'; ALTER USER 'laravel' IDENTIFIED BY 'db.password';" | mysql -u root -p'db.root.password/'

leventogut avatar Jul 22 '21 10:07 leventogut

@leventogut thanks for creating this issue! Yes makes sense, I think we can add this

FabianKramm avatar Jul 23 '21 07:07 FabianKramm