Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntfy user commands don't work if auth_file is used in config instead of auth-file #344

Closed
Histalek opened this issue Jun 24, 2022 · 2 comments
Labels
🪲 bug Something isn't working server Relates to the main binary (server or client)

Comments

@Histalek
Copy link

Essentially what the title says.

Deployment / Version used

podman run -d -v ./server.yml:/etc/ntfy/server.yml:ro -p 80:80 --name=ntfy docker.io/binwiederhier/ntfy:v1.27.2@sha256:19eeaec60fda9dfd4757f79610494f5ec78ece274c995f032edc68238720e0a2 serve

Reproduction

  1. specify auth_file in server.yml e.g. auth_file: "/var/lib/ntfy/auth.db"
  2. start container (see above)
  3. exec into container e.g. podman exec -it ntfy /bin/sh
  4. execute ntfy user command and observe output:
$ ntfy user add myuser mytopic rw
option auth-file not set; auth is unconfigured for this server

Once I switch from auth_file to auth-file in the server.yml everything works. This contradicts the statement at the top of the server.yml

@binwiederhier
Copy link
Owner

Good catch. This is just an oversight. Fixed in 30c8d6b, which will be a while since I just released yesterday.

Thank you for reporting and the detailed report!

@binwiederhier binwiederhier added 🪲 bug Something isn't working server Relates to the main binary (server or client) labels Jun 24, 2022
@Histalek
Copy link
Author

Thanks for fixing this so quickly!
I'm totally fine waiting for the next release, the workaround is easy enough :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working server Relates to the main binary (server or client)
Projects
None yet
Development

No branches or pull requests

2 participants