Commit Graph
21 Commits
Author SHA1 Message Date
naiba 39d398066d fix(api): redact third-party credentials in ddns/notification list
GET /api/v1/ddns and /api/v1/notification returned full objects with
plaintext credentials (Cloudflare/TencentCloud secrets, webhook URLs
with embedded bot tokens, Authorization headers). Redact these fields
in the list responses.

Since the frontend edit form repopulates from the list endpoint, the
update handlers now treat an empty submitted credential as "no change"
and preserve the stored value, preventing accidental secret wipes.

Ref: GHSA-ww5p-j6cj-6mqq
2026-06-20 01:54:50 +00:00
UUBulb ea3739cf1c ddns: support provider hurricane electric (#1036) 2025-03-19 21:52:16 +08:00
UUBulb ea068d4db1 refactor: simplify server & service manipulation (#993)
* refactor: simplify server & service manipulation

* update

* fix

* update for nat, ddns & notification

* chore

* update cron

* update dependencies

* use of function iterators

* update default dns servers
2025-02-21 23:08:12 +08:00
UUBulb fa30df0320 feat: support id query for "list" apis (#908)
* feat: support id query for "list" apis

* gosec
2024-12-24 23:23:01 +08:00
UUBulb dc0132c9aa feat: user roles (#852)
* [WIP] feat: user roles

* update

* update

* admin handler

* update

* feat: user-specific connection secret

* simplify some logics

* cleanup

* update waf

* update user api error handling

* update waf api

* fix codeql

* update waf table

* fix several problems

* add pagination for waf api

* update permission checks

* switch to runtime check

* 1

* cover?

* some changes
2024-12-22 00:05:41 +08:00
UUBulb 4ddad9ea00 fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
naiba a7e4fe0909 rename repo 2024-11-28 19:38:54 +08:00
uubulb d56224a118 feat: add i18n support 2024-11-01 05:07:04 +08:00
UUBulb 8bfe70d519 add cron, nat api & refactor alert rule (#459)
* add cron api & refactor alert rule

* add nat api

* fix swagger

* remove unnecessary steps
2024-10-26 23:57:47 +08:00
UUBulb 785b4dce37 add alert api (#458) 2024-10-26 08:16:57 +08:00
UUBulb 800412a2c8 add fm api (#456) 2024-10-25 09:09:08 +08:00
UUBulb d742b605a5 fix swaggo (#454) 2024-10-24 14:11:06 +08:00
UUBulb 8b24a30bee fix list apis (#453) 2024-10-24 10:21:59 +08:00
UUBulb 28b606ef7b implement notification group (#450)
* implement notification group

* some fixes

* fix sql

* add listNotification

* retrieve notification from map

* create notification_group_notification if non-exist

* NotificationIDToGroup -> NotificationIDToGroups

* clean
2024-10-23 21:55:12 +08:00
naiba dd41017634 💄 refactor common handler 2024-10-23 17:56:51 +08:00
naiba c706950ecc feat: create user, read users, batch delete users 2024-10-22 21:19:30 +08:00
UUBulb 08dea15cbf use plain error type for expected behaviors (#447) 2024-10-22 10:25:45 +08:00
UUBulb 05b716d80f ddns: add listProviders api (#446)
* ddns: add listProviders api

* fix swagger
2024-10-22 00:04:17 +08:00
naiba 821baba639 feat: server group api 2024-10-21 23:00:51 +08:00
UUBulb ec83ff0617 dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
UUBulb 4061b847b2 dev: add ddns create, edit and batch delete api (#444) 2024-10-21 14:30:50 +08:00