TLDR: I'm straddling between asking how to create a PR effecting this change should look like and asking it as a feature for an end-user.
--
I insist in using DeSec.io because it's one of the few providers I've seen to support DNSSEC.
The problem is my DeSec.io provider but no matter what I do the provider does not accept my update:
ACTUAL extract from log file viewer tab in LuCI:
201200 : #>/usr/bin/wget --hsts-file=/tmp/.wget-hsts -nv -t 1 -O /var/run/ddns/myddns_ipv4.dat -o /var/run/ddns/myddns_ipv4.err --bind-address=[IPv4] --ca-directory=/etc/ssl/certs --no-proxy 'https://update.dedyn.io/update?username=ddns&password=***PW***&hostname=[FQDN]&myipv4=[IPv4]&myipv6=preserve'
201201 ERROR : GNU Wget Error: '6'
201201 : failed: Invalid argument.
Username/Password Authentication Failed.
I don't know exactly which is the offending argument, maybe it's the use of username & password in the URL itself instead of headers? Anyway I've run some manual tests in CLI and the following updates work smoothly:
GOOD1:
wget -d --header="Authorization: Token [TOKEN]"https://update.dedyn.io/?hostname=[FQDN]&myipv4=[IPv4]&myipv6=[IPv6]"
GOOD2:
/usr/bin/wget --hsts-file=/tmp/.wget-hsts -nv -t 1 -O /var/run/ddns/myddns_ipv4.dat -o /var/run/ddns/myddns_ipv4.err --header="Authorization: Token [TOKEN]" --ca-directory=/etc/ssl/certs --no-proxy 'https://update.dedyn.io/update?hostname=[FQDN]&myipv4=[IPv4]&preserve=true'
PS:
DeDyn.io is an alias for DeSec.io
[TOKEN] and ***PW*** are the same
Given DeSec.io is configured in https://github.com/openwrt/packages/blob/7b06b1d312ed3a43d2d030b55b6932a55365b5bd/net/ddns-scripts/files/usr/share/ddns/default/desec.io.json and there are a few examples in net/ddns-scripts/files/usr/lib/ddns/update_luadns_v1.sh where should I start investigating on how should I add this change?
I'm currently thinking of investigating how update_luadns_v1.sh works and/ or/ if desec.io.json can contain headers to be passed to WGET / cURL client
Are there any workarounds that would be preferred instead of making this as a PR?