mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #830] PR to support using .netrc file for basic auth? #588
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#588
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomeon on GitHub (Aug 2, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/830
💡 Support loading basic auth credentials from the
.netrcfileCurious whether you'd be interested in a pull request adding support for loading basic auth credentials from the
.netrcfile when runningntfy {pub,sub}.Proposal:
Load
.netrcfrom the standard location (~/.netrc):Or, for a netrc somewhere other than
~/.netrc:Or, equivalently:
Some pluses:
ntfy {pub,sub}supports globaldefault-useranddefault-passwordvalues. Supporting.netrcfaciliates host-specific defaults, so that, if your client configurations lists multiple subscriptions each for multiplentfyhosts, you don't have to re-specifyuserandpasswordfor each subscription that doesn't usedefault-userordefault-password. Note also that this fixes, or at least works around, #829.curlsupports the--netrcand--netrc-file <filename>options.Some minuses:
ntfy {pub,sub}already supports managing basic auth credentials by other means..netrc(at least, those hosted on GitHub) seem to have low development activity and maybe also low uptake, as judged by the number of stargazers.1💻 Target components
ntfy pubntfy subntfyclient subcommands that support basic auth.🙏 Thanks for your consideration!
On the other hand, the
.netrcformat is pretty simple and has been stable for a while, so maybe "low development activity" just means "essentially complete"? ↩︎