Commit Graph
18 Commits
Author SHA1 Message Date
naibaandcloudcode 76a5e2b261 fix(server-group): hide guest-empty groups from guest listing
listServerGroup returned every group, including ones whose only
servers are HideForGuest=true (or that have zero members), to
unauthenticated callers. The group name itself is then leaked to
guests even though every server it references is hidden from them.

Guest visitors now only see groups that contain at least one guest-
visible server. Authenticated members and admins keep full visibility
(including their own empty groups) so management UI still works.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-26 04:07:50 +00:00
naibaandnaiba/CloudCode acc2b63ce2 fix(controller): filter listing endpoints by ownership
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-05-17 10:24:19 +08:00
NikoCat233 1a0d915afa Filter hidden servers in guest server-group API 2026-02-27 00:53:31 +08:00
UUBulb 91bef2882a 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 653d0cf2e9 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
naiba 3cce7ebf01 rename repo 2024-11-28 19:38:54 +08:00
UUBulb 3efbf9cce1 disable soft deletion in group api (#10)
* disable soft deletion in group api

* remove DeleteAt

* remove DeleteAt service
2024-11-19 21:41:21 +08:00
uubulb 5114fc2854 feat: add i18n support 2024-11-01 05:07:04 +08:00
UUBulb d086e98711 add fm api (#456) 2024-10-25 09:09:08 +08:00
UUBulb 61e755d2b9 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 4635bcf44f 💄 refactor common handler 2024-10-23 17:56:51 +08:00
naiba 387da11f1b feat: create user, read users, batch delete users 2024-10-22 21:19:30 +08:00
UUBulb 65aa18300d use plain error type for expected behaviors (#447) 2024-10-22 10:25:45 +08:00
naiba 9c08ebe956 feat: server group api 2024-10-21 23:00:51 +08:00
UUBulb 5efd995992 dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
UUBulb aa0d570b2b dev: add ddns create, edit and batch delete api (#444) 2024-10-21 14:30:50 +08:00
UUBulb cf5408751e add a helper function (#443) 2024-10-21 12:11:02 +08:00
naiba aa20c97312 refactor agent auth & server api 2024-10-20 23:23:04 +08:00