Clients to successfully connect with provided credentials, unless I'm misunderstanding the functionality of EMQX_ALLOW_ANONYMOUS (I'm relatively new to Docker, EMQX and Linux)
Actual behavior
Connections refused from any client (not authorized to connect), unless EMQX_ALLOW_ANONYMOUS=true, but then any client can connect which I don't want.
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
Expected behavior
Clients to successfully connect with provided credentials, unless I'm misunderstanding the functionality of EMQX_ALLOW_ANONYMOUS (I'm relatively new to Docker, EMQX and Linux)
Actual behavior
Connections refused from any client (not authorized to connect), unless EMQX_ALLOW_ANONYMOUS=true, but then any client can connect which I don't want.
Test code
sudo docker run -d --name emqx -p 18083:18083 -p 1883:1883 \ -e EMQX_LOADED_PLUGINS="emqx_management,emqx_dashboard,emqx_auth_username" \ -e EMQX_ALLOW_ANONYMOUS=false \ -e EMQX_AUTH_USER_1_USERNAME="admin" \ -e EMQX_AUTH_USER_1_PASSWORD="1111" \ -e EMQX_AUTH_USER2_USERNAME="home" \ -e EMQX_AUTH_USER2_PASSWORD="2222" \ emqx/emqx:latest
EMQ version
Which branch are you on? If you know the Git revision then add it here as well. 3.2.3
Docker version
Which docker-engine version? Docker version 19.03.3, build a872fc2
How docker info? Client: Debug Mode: false
Server: Containers: 2 Running: 2 Paused: 0 Stopped: 0 Images: 3 Server Version: 19.03.3 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 5.3.0-1008-raspi2 Operating System: Ubuntu 19.10 OSType: linux Architecture: aarch64 CPUs: 4 Total Memory: 3.703GiB Name: ubuntu ID: H3VC:2X7T:KDL4:JN64:QPFB:A5PJ:Z4LM:QIVD:RKYU:A4QQ:UQLT:7ORV Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
WARNING: No memory limit support WARNING: No swap limit support WARNING: No kernel memory limit support WARNING: No kernel memory TCP limit support WARNING: No oom kill disable support
System
What system do you use? Ubuntu 19.10
Hardware
How is the host machine? Raspberry Pi 4