luci: luci-app-acme: variables don't save using dns-api
Is there an existing issue for this?
- I have searched the existing issues
screenshots or captures
https://github.com/user-attachments/assets/c8b71a71-5198-4520-a31d-7f45f6ea7739
https://github.com/user-attachments/assets/4f7e78a3-e25f-4844-9ef4-ee9ec60b8aaa
Actual behaviour
I noticed this while setting up cloudflare api, but i tested a few dns api providers and data input also failed to save.
While using the dns-api function, the various new input field don’t save the variables. First Video Example.
But manually adding the variable in the DNS API credentials area such as CF_Token=“Example” saves and also displays in the corresponding box. Second Video Example
I originally experienced this on my MT6000, but I performed a fresh install of the latest snapshot last night on my Netgear R8000 and confirmed this behavior.
Expected behaviour
I would expect the fields to save the input data, and not just display the manually entered variables, thus making it redundant.
Steps to reproduce
- Go to Services > ACME Certificates
- Add cert config
- Change Validation method to DNS
- Go to DNS Challenge Validation tab
- Change DNS API to CloudFlare.com
- Enter Data. Into any of the Fields. i.e.CF Key, CF Email, CF Token, CF Account ID, CF Zone ID
- Save
- Edit new entry to view empty fields.
Additional Information
AME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r28576-a9895c4585"
OPENWRT_BOARD="mediatek/filogic"
OPENWRT_ARCH="aarch64_cortex-a53"
OPENWRT_TAINTS="busybox"
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r28576-a9895c4585"
OPENWRT_BUILD_DATE="1734722468"
What browsers do you see the problem on?
Firefox
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (14 by maintainers)
Commits related to this issue
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to stokito/luci by stokito 2 years ago
- luci-app-acme: DNS API store all params Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix #7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com> — committed to openwrt/luci by stokito 2 years ago
Thanks for checking. This is definitely a bug 🐛
I know what’s going wrong and might have a fix.
In the meantime, @stokito.
I fixed the issue in the #7510 Instead of changing of the credentials map I directly changing the value of the DynamicList UI component. Then the change is detected and saved. Please test it.
@IamRPDev if you don’t mind I’ll ask you to test my next PR to the acme app. If you wish to code let me know and I’ll prepare a simple task with detailed description.
If there is anything you’d like me to test let me know. While I’m still learning the programming end of things, I’m a capable tech.
I’d also love to support the project anyway I can, giving back where possible.
If you remove the credentials field, then you cannot delete them or modify them later (not easily), which defeats the point of the GUI. Welcome to the data race condition 😃