docker-training / ddev-labs

Labs for the workshop Docker for Enterprise Developers
15 stars 29 forks source link

Fix 2 bugs so the password feature actually works :) #30

Closed franklouwers closed 5 years ago

franklouwers commented 5 years ago

Two bugs: 1) The part that reads the password-string from our secrets file, adds a \n. So if our password is "abc", the password was actually read as "abc ", including the newline. This was never noticed because nobody ever tried with a different password and bug nr 2)

2) It seems that the application.yaml file is read AFTER we read the password from a text file. So by defining the password in the application.yaml file, that password was always used! Their might be a way to fix this, but my Java Spring Boot knowledge is not good enough.

And then there's #29 :)

bkatiemills commented 5 years ago

Thanks @franklouwers, works for me.