tarantool / docker

Docker images for tarantool database
https://hub.docker.com/r/tarantool/tarantool
52 stars 25 forks source link

Broken user creation via env TARANTOOL_USER_NAME #219

Open vanyarock01 opened 2 years ago

vanyarock01 commented 2 years ago

I am trying to create user with a name from env variable TARANTOOL_USER_NAME (see topic Start a secure Tarantool instance at DockerHub).

But on version 2.8.3 this can not be work (the user is not created). Although on 1.10 everything is fine.

NickVolynkin commented 2 years ago
$ docker run --rm --name mytarantool-1.10.12 -p3301:3301 -e TARANTOOL_USER_NAME=myusername -e TARANTOOL_USER_PASSWORD=mysecretpassword tarantool/tarantool:1.10.12
...
2022-03-04 05:46:19.471 [1] main/101/tarantool-entrypoint.lua I> Creating user 'myusername'
2022-03-04 05:46:19.473 [1] main/101/tarantool-entrypoint.lua I> Granting admin privileges to user 'myusername'
2022-03-04 05:46:19.473 [1] main/101/tarantool-entrypoint.lua I> Setting password for user 'myusername'
...

$ docker run --rm --name mytarantool-2.8.3 -p3301:3301 -e TARANTOOL_USER_NAME=myusername -e TARANTOOL_USER_PASSWORD=mysecretpassword tarantool/tarantool:2.8.3
...
2022-03-04 05:46:53.308 [1] main/103/tarantool-entrypoint.lua I> Creating user 'myusername'
2022-03-04 05:46:53.309 [1] main/103/tarantool-entrypoint.lua I> Granting admin privileges to user 'myusername'
2022-03-04 05:46:53.310 [1] main/103/tarantool-entrypoint.lua I> Setting password for user 'myusername'
...

$ docker run --rm --name mytarantool-2.10.0 -p3301:3301 -e TARANTOOL_USER_NAME=myusername -e TARANTOOL_USER_PASSWORD=mysecretpassword tarantool/tarantool:2.10.0-beta2
...
2022-03-04 05:49:55.556 [1] main/103/tarantool-entrypoint.lua I> Creating user 'myusername'
2022-03-04 05:49:55.557 [1] main/103/tarantool-entrypoint.lua I> Granting admin privileges to user 'myusername'
2022-03-04 05:49:55.558 [1] main/103/tarantool-entrypoint.lua I> Setting password for user 'myusername'
...