yobasystems / alpine-mariadb

MariaDB running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-mariadb/
237 stars 71 forks source link

Fresh run creates too many users #26

Closed demyxco closed 4 years ago

demyxco commented 5 years ago

mariadb:
  container_name: mariadb
  restart: unless-stopped
  image: yobasystems/alpine-mariadb
  volumes:
    - ./mariadb:/var/lib/mysql
  environment:
    MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  networks:
    - proxy
  labels:
    - "traefik.enable=false"
dominictayloruk commented 5 years ago

I cannot reproduce, the only user accounts that get created when only specifying the root password as a environment variable are root user on host %, 127.0.0.1, ::1, localhost and the dns of the container name

screen shot 2019-02-28 at 11 25 57

demyxco commented 5 years ago

Weird, does being on Traefik might have to do anything about this?

dominictayloruk commented 5 years ago

Not sure, i wouldn't have thought so as it only handles traffic nothing db related. Its always best to check and adjust your user privileges just from a security point of view anyway, as allowing root access is a risk in all cases so fine tuning is a must. Once you have all your privileges you could clone the repo and add extra scripts in to run before pre-execution of mariadb.

demyxco commented 5 years ago

Yeah I didn't specify a root user so maybe it auto created all those users. I'll have to do more testing.

dominictayloruk commented 5 years ago

Maybe some tighter security is needed.

Also maybe related to https://github.com/yobasystems/alpine-mariadb/issues/21