Closed
Description
Description
Using ntfy CLI, when trying to subscribe to a topic as a user with an empty password, it seems impossible to do so from the config file client.yml. Things I tried all result in 403 forbidden authentication failures.
Steps to reproduce
- Set up a topic
empty-password-teston the server with policydeny.
ntfy access everyone empty-password-test deny- Add a user
alicewith empty password and read access toempty-password-test.
ntfy user add alice # provide empty password
ntfy access alice empty-password-test ro- Run
curl -u "alice:" -s http://my.domain.tld/empty-password-test/json, and observe that stream is opened successfully.
- This verifies that the server has been set up correctly.
- Set this up in
client.yml.
subscribe:
- topic: "http://my.domain.tld/empty-password-test"
command: 'notify-send "$m"'
user: "alice"
password: ""- Run
ntfy sub -C, and observe that authentication fails. - Run
ntfy sub -u "alice:" -C, and observe that with the username&password override, authentication no longer fails.
Miscellaneous
- I tried
password: ~,password: null,password: false, and omitting thepasswordfield altogether. None worked, althoughpassword: falseproduced401 unauthorizedinstead of403 forbidden. - Versions:
- Linux x86_64 5.18.14, ntfy 1.27.2@69d6cdd, go 1.18.4
Metadata
Metadata
Assignees
Labels
No labels