Commit Graph
277 Commits
Author SHA1 Message Date
Alex Lee 54231b1f75 fix(applaunchpad): guard pod file writes by exec access (#7312)
* fix(applaunchpad): gate pod file management by exec permission

* fix(applaunchpad): allow pod file browsing without write access

* fix(applaunchpad): recheck pod access on file switch

* fix(ci): make release tag creation idempotent

* fix(account): synchronize Go module metadata

* fix(account): use WaitGroup Go helper

* Revert "fix(ci): make release tag creation idempotent"

This reverts commit 45412568b8.

* test(applaunchpad): avoid dynamic route file resolution

* fix(account): retain Go 1.24 module compatibility

* revert(account): remove unrelated runtime test

* fix(applaunchpad): preserve read-only file access

* fix(applaunchpad): tolerate dangling file links
2026-09-08 15:50:19 +08:00
github-actions[bot]andzijiren 058fe3f41c ci(test): run Go tests with race detector (#7311)
ci(test): run Go tests with race detector (#7299)

* ci: run Go tests with race detector

* ci: use standard race test targets

* ci: avoid coverage during controller race tests

* test: document trusted external request targets

* ci: fold account runtime tests into unit tests

* test: always run account testcontainers tests

Co-authored-by: zijiren <84728412+zijiren233@users.noreply.github.com>
2026-09-07 13:52:16 +08:00
github-actions[bot]andYun Pan 0893fb67da fix(account): prevent consumption amount double counting (#7307)
fix(account): prevent consumption amount double counting (#7301)

* fix(account): prevent consumption amount double counting

* docs(account): clarify consumption aggregation logic

* docs(account): add consumption query examples

* test(account): add anonymized billing runtime fixture

* style(account): format billing runtime fixture

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-09-07 13:46:46 +08:00
github-actions[bot]andYun Pan e812891355 perf(account): optimize consumption amount aggregation (#7297)
perf(account): optimize consumption amount aggregation (#7294)

* perf(account): optimize consumption amount aggregation

* fix(account): correct consumption app type filtering

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-09-03 18:47:38 +08:00
github-actions[bot]andYun Pan 45d825d873 perf(account): optimize workspace consumption aggregation (#7291)
perf(account): optimize workspace consumption aggregation (#7254)

* perf(account): optimize workspace consumption aggregation

* perf(account): address workspace consumption review feedback

* style(account): satisfy golangci-lint formatting

* perf(account): simplify workspace consumption aggregation

* fix(account): avoid duplicate direct workspace totals

* fix(account): preserve settled subconsumption totals

* test(account): add workspace consumption MongoDB runtime test

* test(account): use AVX-compatible MongoDB image

* test(account): benchmark workspace consumption query

* ci(account): require MongoDB runtime test in CI

* fix(ci): resolve semgrep and account lint failures

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-09-03 10:34:04 +08:00
github-actions[bot]andYun Pan b5032aa2be feat(account): add admin notification recipients API (#7290)
feat(account): add admin notification recipients API (#7247)

* feat(account): add admin notification recipients API

* fix(account): validate notification namespaces

* fix(account): handle ambiguous notification owners

* fix(account): satisfy golangci-lint

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-09-03 10:30:56 +08:00
github-actions[bot]andzijiren 711fa8ae05 perf(account): reduce controller cache memory usage (#7272)
perf(account): reduce controller cache memory usage (#7255)

* perf(account): reduce controller cache memory usage

* test(account): satisfy cache test lint checks

* perf(account): limit pod informer cache

* perf(account): cache projected pod fields

* style(account): format pod cache test

Co-authored-by: zijiren <84728412+zijiren233@users.noreply.github.com>
2026-08-27 20:05:58 +08:00
JiahuiandYun Pan d635293f84 feat(account): expose admin account read APIs (#7220) , cherry-pick #7220 (#7252)
feat(account): expose admin account read APIs (#7220)

* feat(account): expose admin account read APIs

* fix(account): satisfy golangci-lint

* fix(account): satisfy golines formatting

* fix(account): apply golangci-lint formatting

* fix(account): address review feedback

* feat(account): isolate admin jwt authentication

* test(account): cover property reload admin auth

* fix(account): satisfy context-aware request lint

* fix(account): address admin auth review feedback

(cherry picked from commit beea1e56cb)

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-08-24 15:09:27 +08:00
JiahuiandYun Pan f58c071c73 fix(account): cherry-pick main (#7235)
* fix(account): prevent stale debt deletion after recharge (#7230)

* fix(account): prevent stale debt deletion after recharge

* style(account): satisfy golangci-lint formatting

* fix(account): improve debt deletion diagnostics

* fix(account): wait for all deletion workers (#7232)

---------

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-08-24 14:50:11 +08:00
yy c8fdd96c87 feat(service): add health endpoints and Kubernetes probes (#7194)
* feat(service): add health endpoints and probes

* fix(service): use context-aware request in health tests

* refactor(service): parameterize health probes and drop minio probes

* feat(service): add startup probe to monitor charts
2026-08-11 15:02:02 +08:00
xzy fa3fda6cea refactor(minio): remove minio service from monorepo (#7199) 2026-08-11 14:20:37 +08:00
Alex Lee b11b077e95 fix(costcenter): clarify gift code redemption errors (#7163)
* fix(costcenter): clarify used gift code redemption errors

* test(account): satisfy gift code lint
2026-08-05 17:17:41 +08:00
cuisongliu f7577fd9c0 fix(account): update ingress configuration to use new values structure (#7160)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2026-08-04 20:55:32 +08:00
cuisongliu 49d59e09a5 chore(entrypoint): remove OSS installation package sync command (#7152)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2026-08-04 11:21:43 +08:00
Yun Pan 210c52dc2e fix(lint): backport CI and source lint fixes (#7136)
* ci(lifecycle): backport ci and linter updates

* fix(lint): backport source lint fixes

Backport the source-side lint fixes from #7095 and the lifecycle test lint gate from #7119.

* fix(lint): suppress semgrep HPA cast findings

* fix(account): backport missing account types

* fix(account): backport missing account helpers

* fix(lint): backport semgrep-compatible HPA suppressions

* fix(account): backport account upgrade helpers

* fix(lint): satisfy semgrep HPA cast rule

* fix(lint): use plain nosemgrep for HPA casts

* fix(lint): avoid semgrep HPA cast finding

* feat(account): backport alert notification routes

* fix(account): format user alert notification helpers

* fix(account): apply golines to alert notification files

* ci: stop kubelet before core e2e tests
2026-07-29 14:38:17 +08:00
cuisongliu ae2f7dc3d9 chore(vlogs): rename service-vlogs-monitor-values.yaml to vlogs-monit… (#7127)
chore(vlogs): rename service-vlogs-monitor-values.yaml to vlogs-monitor-values.yaml

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2026-07-28 10:27:24 +08:00
cuisongliu 568d00f702 feat(service): migrate monitor services to helm (#7109)
* feat(service): migrate monitor services to helm

Move database-monitor, launchpad-monitor, and service-vlogs onto Helm charts in namespace sealos.

Also wire the runtime env/config data into the charts and keep the legacy raw manifests only for first-run cleanup during migration.

* feat(service): update database monitor configuration and entrypoint script

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat(service): refactor entrypoint and update configuration paths

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat(service): refactor entrypoint and update configuration paths

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat(service): update legacy manifest path in entrypoint script

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat: add configmap checksum rollouts

* fix(service/account): build without workspace mode

* feat(service): rename service-vlogs files and update entrypoint configuration

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat(service): rename service-vlogs files and update entrypoint configuration

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* feat(service): remove var for PROMETHEUS_URL

Signed-off-by: cuisongliu <cuisongliu@qq.com>

---------

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2026-07-27 22:48:51 +08:00
cuisongliuandJiahui ffd0ddfb47 fix(ci): ci build error (#7114) (#7120)
fix ci

(cherry picked from commit cc4a72c142)

Co-authored-by: Jiahui <4543bxy@gmail.com>
2026-07-27 15:26:18 +08:00
github-actions[bot]andJiahui 2810fad154 chore(service): remove pay service (#7116)
chore(service): remove pay service (#7112)

remove pay service

# Conflicts:
#	service/go.work.sum

Co-authored-by: Jiahui <4543bxy@gmail.com>
2026-07-27 13:28:03 +08:00
github-actions[bot]andcuisongliu ebd1a1db8d chore(service): remove hubble and exceptionmonitor (#7110)
chore(service): remove hubble and exceptionmonitor (#7108)

* chore(service): remove hubble and exceptionmonitor

* fix(service/account): restore compile with gin logger

* Revert "fix(service/account): restore compile with gin logger"

This reverts commit c57c974f3c.

Co-authored-by: cuisongliu <cuisongliu@qq.com>
2026-07-27 10:40:05 +08:00
b617a2ac7b chore(devbox): remove devbox modules (#7104)
* 🤖 Release sealos for sealos using github-actions. (#1057)

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(devbox): remove devbox modules

---------

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-26 18:25:54 +08:00
github-actions[bot]andYun Pan 2c893f2c40 fix(account): harden PAYG debt recovery (#7103)
fix(account): harden PAYG debt recovery (#7089)

* fix(account): recover debt status after balance normalization

* fix(account): retry debt refresh when user lock is busy

* fix(account): verify workspace subscriptions during debt recovery

Co-authored-by: Yun Pan <dinoallo@netc.it>
2026-07-25 23:12:08 +08:00
cuisongliu b7aeaed1db chore(aiproxy): remove aiproxy provider references from configuration… (#7087)
chore(aiproxy): remove aiproxy provider references from configuration (#7079)


(cherry picked from commit 87cac0128a)

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2026-07-23 16:35:26 +08:00
cuisongliu 0bcd6e124a Revert "chore(cloud): remove migrated and unused projects (#7072)" (#7074)
This reverts commit a3b196cda3.
2026-07-23 11:13:18 +08:00
Alex Lee a3b196cda3 chore(cloud): remove migrated and unused projects (#7072)
* chore(frontend): remove unused provider projects

* chore(backend): remove migrated controllers and services

* chore(frontend): remove aiproxy provider

* fix(objectstorage): preserve migrated size API

Signed-off-by: Alex Lee <3076438032@qq.com>

---------

Signed-off-by: Alex Lee <3076438032@qq.com>
2026-07-21 17:54:56 +08:00
github-actions[bot] 5270c19817 chore(deps): remove license server from service (#6875) 2026-04-08 14:55:04 +08:00
cuisongliu a6f9f3640e fix(service): remove unused project dependencies from workspace (#6870) (#6873) 2026-04-08 14:50:59 +08:00
github-actions[bot]andJiahui 990c1d5890 feat(core): standardized sealos cloud core component deployment (#6861)
feat(core): standardized sealos cloud core component deployment (#6722)

* support core helm refactor:
core/
├── frontend/
│   ├── desktop-frontend
│   ├── costcenter-frontend
│   └── license-frontend
├── controller/
│   ├── user-controller
│   ├── account-controller
│   ├── license-controller
│   └── resources-controller
├── service/
│   └── account-service
└── job / misc
    ├── init-job
    └── init-heartbeat

* rebase

Co-authored-by: Jiahui <4543bxy@gmail.com>
2026-04-02 11:42:39 +08:00
github-actions[bot]andcuisongliu 73d6fbbb67 fix(account-service): add ingress resource adoption and create instal… (#6833)
fix(account-service): add ingress resource adoption and create instal… (#6832)

* fix(account-service): add ingress resource adoption and create install script



* fix(config): add support for allowedAllOrigins in configmap and values



---------

Signed-off-by: cuisongliu <cuisongliu@qq.com>
Co-authored-by: cuisongliu <cuisongliu@qq.com>
2026-03-25 13:31:24 +08:00
github-actions[bot]andJiahui 290f9dcd1b fix(account-service): add ingress template to helm chart (#6734)
fix(account-service): add ingress template to helm chart (#6733)

fix ingress add to templates

Co-authored-by: Jiahui <4543bxy@gmail.com>
2026-02-27 18:28:18 +08:00
e6a2b5e838 feat(account): migrate account-service deployment to Helm chart (#6647)
feat(account): migrate account-service deployment to Helm chart (#6646)

- Replace manifest-based deployment with Helm chart structure
- Add Helm chart with standard templates (deployment, service, configmap)
- Create account-service-entrypoint.sh for Helm installation
- Update Kubefile to use Helm chart instead of manifests
- Simplify deployment by reusing account-controller-manager service account
- Remove unnecessary components (no webhook, RBAC, metrics, certificates)
- Use compatible selector labels for seamless migration from manifests
- Add comprehensive README.md with configuration examples and troubleshooting guide

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Jiahui <4543bxy@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-02-02 21:19:24 +08:00
Jiahui 87b1132f4f feat(account): support custom gpu monitor (cherry-pick release-v5.1 branch) (#6638)
* feat(account): support custom gpu monitor (#6636)

add enum

(cherry picked from commit 437095418f)
2026-02-02 10:40:06 +08:00
zijiren 79dd773eb2 feat(c1): impl new docker image build method and makefile (#6633)
feat: impl new docker image build method and makefile
2026-01-30 18:18:36 +08:00
github-actions[bot]andBearix 7e7d97894c feat(launchpad): add gpu monitor. (#6630)
feat(launchpad): add gpu monitor. (#6625)

add gpu monitor.

Co-authored-by: Bearix <2669184984@qq.com>
2026-01-30 16:57:46 +08:00
github-actions[bot]andcuisongliu 723b35fa1d feat(redis): add initial Helm chart and installation script for Redis… (#6617)
feat(redis): add initial Helm chart and installation script for Redis… (#6615)

feat(redis): add initial Helm chart and installation script for Redis deployment

Signed-off-by: cuisongliu <cuisongliu@qq.com>
Co-authored-by: cuisongliu <cuisongliu@qq.com>
2026-01-28 10:22:19 +08:00
zijirenandxzy cd17c2ebe7 feat(ci): service build on docker and arm runner (#6608)
feat(ci): service build on docker and arm runner (#6596)

* feat: service build on docker and arm runner

* fix: build context

* fix: go mod downlaod cache

* fix: go build main pachage

* fix: hubble build main package

* fix: remote jsoniter tag

* fix: configure ReadHeaderTimeout for minio http server (#129)

---------

Co-authored-by: xzy <nowinkey@tom.com>
2026-01-27 15:52:56 +08:00
github-actions[bot]andJiahui 48d3887382 fix(account-service): fix mod (#6610)
fix(account-service): fix mod (#6561)

fix mod

Co-authored-by: Jiahui <4543bxy@gmail.com>
2026-01-27 15:15:05 +08:00
Jiahui aedfe6c6e7 feat(release): release v5.1 patch limit user (#6563)
feat(license): suppor limit user count (#6556)

* Add a prompt for detecting the number of users exceeding the active license

Multiple Active licenses only use the latest License for restriction detection

init

# Conflicts:
#	controllers/user/api/v1/user_webhook.go
#	controllers/user/controllers/user_controller.go

* fix rebase conflict

* fix ci lint

(cherry picked from commit d6d0845643)
2026-01-21 20:28:49 +08:00
Jiahui d8507d08c9 fix(account): Manual copy to avoid copy() issues with complex types (#6480) 2026-01-05 11:54:23 +08:00
Jiahui 1a6c135432 feat(account): support reload account config api (#6458)
* support reload account config api

* set account ingress with apply
2026-01-04 16:44:32 +08:00
github-actions[bot]andBearix 6f2452d4de feat(service): vlogs service add database log query. (#6298)
feat(service): vlogs service add database log query. (#6273)

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

* add database logs query.

Co-authored-by: Bearix <2669184984@qq.com>
2025-12-05 09:59:06 +08:00
cuisongliuandBearix 207a1da13c feat(vlogs): cherry-pick from (#6202) (#6181) (#6203)
* feat(vlogs): add vlogs keywords escape. (#6181)

* fix vlogs keywords.

* add vlogs keywords escape.

* add vlogs keywords escape.

* add vlogs keywords escape.

* add vlogs keywords escape.

* add vlogs keywords escape.

* add vlogs keywords escape.

* add vlogs keywords escape.

* fix ci lint.

* fix ci lint.

* add decolor .

* add decolor .

* add decolor .

* add decolor .

* add esacpe ut.

(cherry picked from commit d4486468e2)

* feat(vlogs): Remove the decolor query. (#6202)

* add esacpe ut.

* add esacpe ut.

(cherry picked from commit 4b8de1d803)

---------

Co-authored-by: Bearix <2669184984@qq.com>
2025-11-17 11:46:22 +08:00
Bearix 0796e3018c fix(service): fix launchpad metrics query logic. (#6133)
fix launchpad metrics query logic.
2025-10-31 18:25:53 +08:00
Jiahui ea8e5cf0a9 feat(account): Add workspace subscription plan (#6103)
* initialize the data structure

* Initialize the lifecycle management of workspace subscriptions

* fix index

* add workspace subscription debt

* optimize parse period & init workspace subscription & fix subscription create bug

* remove quota controller

* add user notify framework:
content_generator:content generation
service:event notification service
providers:vms/sms/email ... provider implementation
types: core structure type definition

* optimize struct & adjust the database to obtain data

* Implement the initialization of subscriptions and the implementation of subscription traffic packages

* service implement the database layer

* auto add column payment.stripe

* add stripe pay interface

* add workspace subscription service

* add the usercr tag for subscription based spaces, Add delete workspace subscription operator & Add api interfaces related to obtaining workspace costs

* optimize interface

* overall adjustment and repair

* optimize traffic early warning notifications

* optimize traffic early warning notifications

* optimize

* optimize & add deletion account api

* optimize log

* add get payment status api && support workspace subscription AI quota package

* optimize

* Fixed the issue where traffic was not distributed after renewing the subscription package

* fix

* fix workspace subscription transaction process add ai quota package

* fix ci lint

* fix controller/account ci lint

* fix controller/pkg ci lint

* fix controller/account ci lint

* fix controller/pkg ci lint

* add admin add workspace subscription

* fix upgrade workspace subscription

* add get workspace subscription plans api

* add get workspace subscription plans api

* fix ci lint

* fix ci lint

* fix ci lint
2025-10-26 16:15:52 +08:00
zijiren 608b8478dc feat(service): add zombie detoctor service (#6104) 2025-10-17 16:55:32 +08:00
zijiren 627131c2ed feat(service): add iamge monitor to watch pull image error and slow pull (#6100)
* feat(service): add iamge monitor to watch pull image error and slow pull

* fix: replace request

* fix: ci lint

* fix: comments convert to en
2025-10-17 14:36:21 +08:00
0f45368708 fix(alerts): update ns alert (#6098)
* fix ns alerts

* fix ns alerts

* fix ns alerts

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update service/exceptionmonitor/helper/monitor/database_monitor.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: cuisongliu <cuisongliu@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-16 15:42:40 +08:00
BearixandCopilot 11341f4593 feat(service): Add launchpad PVC query function and bug fix (#6063)
* change monitor cpu mem query logic.

* change monitor cpu mem query logic.

* change monitor cpu mem query logic.

* change monitor cpu mem query logic.

* change monitor cpu mem query logic.

* change monitor pvc query logic.

* change monitor pvc query logic.

* Update service/pkg/api/req.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 17:12:43 +08:00
cuisongliu bf284a8c85 fix(deploy): add optional payment secret to account manager deployment (#6031)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2025-09-23 16:30:13 +08:00
Bearix 23b2514428 feat(vlogs): change vlogs query logic (#6029)
change vlogs query logic.
2025-09-23 15:12:27 +08:00