awesome-compose icon indicating copy to clipboard operation
awesome-compose copied to clipboard

ngnix-flask-mysql: when reading password secret file, should strip after read

Open louking opened this issue 1 year ago • 0 comments

Suggest adding .strip() after .read() at https://github.com/docker/awesome-compose/blob/e6b1d2755f2f72a363fc346e52dce10cace846c8/nginx-flask-mysql/backend/hello.py#L11

I spent days debugging a secrets file which had an errant LF character at the end.

See also https://stackoverflow.com/a/75488788/799921

louking avatar Feb 18 '23 12:02 louking