Closed carlo161 closed 2 months ago
I have same problem. In version 1.5.1 working correctly.
Thank you @timerlan I had revert to 1.5.1..
Hello, readUser
and readPass
were deprecated in v1.6.0, now there's a global authentication system that you can tune by editing the authInternalUsers
key in the configuration.
More informations are in the configuration file.
Hello, thanks @aler9, I tried to configure it but I cannot authenticate, my settings are:
authInternalUsers:
- user: any
pass:
permissions:
- action: publish
- user: carlo
pass: carlo
permissions:
- action: read
I can publish but every read attempt failed. I also tried with sha256 with the same outcome.
@carlo161 after some investigation with the configuration you provided, it turned out that when ips
is not set explicitly, the default value from the default configuration is loaded, which in case of your second entry is 127.0.0.1
, and this prevents access to any machine other than localhost.
This is fixed by https://github.com/bluenviron/mediamtx/pull/3316.
In the meanwhile you can fix your issue by using explicit ips
in the configuration:
authInternalUsers:
- user: any
pass:
ips: []
permissions:
- action: publish
- user: carlo
pass: carlo
ips: []
permissions:
- action: read
Next time open a dedicated issue.
Thanks, I installed version 1.8.1 with the https://github.com/bluenviron/mediamtx/pull/3316 and I specify explicitly the ips in the yaml file.
Which version are you using?
v1.6.0
Which operating system are you using?
Describe the issue
I am using mediamtx to acquire the data from a USB webcam and make them available via RTSP. With the same configuration files:
If I use version 1.4.2 everything works fine and I could read the data with a client, using username and password. I f I use version 1.6.0 the container crashes and signals a 401 error.
Describe how to replicate the issue
Did you attach the server logs?
yes
Logs with version 1.6.0:
Logs with version 1.4.2:
Did you attach a network dump?
no