Compare commits

...

12 Commits

Author SHA1 Message Date
hys
6642c2ad2f Revert "fix: app clone failed"
This reverts commit a8a14ab9d6.
2025-12-12 20:46:52 +08:00
hysyeah
97a504d91f fix: argo resource namespace validate (#2228) 2025-12-12 16:01:56 +08:00
hys
e8f30989f3 fix: argo resource namespace validate 2025-12-12 15:44:19 +08:00
eball
2f5a3c322d Merge branch 'main' into module-appservice
* main:
  feat: add /file/extract-fail rest api (#2199)
  refactor: integrate module BFL into main repo (#2206)
  fix(ci): specify working directory in github action for tapr (#2215)
  refactor: integrate module tapr into main repo (#2209)
  system-frontend, files-server, market-backend, user-service: Add backup size push & upgrade progress, fix payment bug, optimize CS app sync, move uninstall popup, add disk check and no-cache (#2197)
  feat(app-service): v2 stop support all to stop server  (#2196)
  fix:  validation certification error (#2194)
  daemon: reset local domain when ip changing (#2192)
  docs: solve formatting issues
  docs: refine table width and path format
  Apply suggestion from @fnalways
  Apply suggestions from code review
  docs: update based on suggestions
  docs: update based on suggestions
  Apply suggestions from code review
  docs: update the structure and content
  docs: update ComfyUI Launcher tutorial

# Conflicts:
#	framework/app-service/.olares/config/cluster/deploy/appservice_deploy.yaml
2025-12-11 20:42:43 +08:00
eball
cce4a36583 app-service: update owner field to use app owner from app manager 2025-12-11 20:39:45 +08:00
hysyeah
2471def663 app-service: update owner field to use app owner from app manager (#2216) 2025-12-11 20:25:53 +08:00
eball
e04eaa4d1b app-service: update owner field to use app owner from app manager 2025-12-11 20:16:14 +08:00
hysyeah
421d2e9f6e fix: envoy inbound skip qemu source ip (#2208)
fix: skip qemu source ip
2025-12-11 17:32:20 +08:00
hysyeah
8dd5f37f53 fix: app clone failed (#2200) 2025-12-11 14:34:14 +08:00
hys
a8a14ab9d6 fix: app clone failed 2025-12-11 14:23:11 +08:00
hysyeah
4b7a1d9925 feat: v2 stop support all to stop server (#2195) 2025-12-10 22:03:28 +08:00
hys
870cd164f9 feat: v2 stop support all to stop server 2025-12-10 21:46:13 +08:00
4 changed files with 5 additions and 31 deletions

View File

@@ -170,7 +170,7 @@ spec:
priorityClassName: "system-cluster-critical"
containers:
- name: app-service
image: beclab/app-service:0.4.59
image: beclab/app-service:0.4.60
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0

View File

@@ -212,7 +212,7 @@ func (h *Handler) listBackend(req *restful.Request, resp *restful.Response) {
Appid: appv1alpha1.AppName(am.Spec.AppName).GetAppID(),
IsSysApp: appv1alpha1.AppName(am.Spec.AppName).IsSysApp(),
Namespace: am.Spec.AppNamespace,
Owner: owner,
Owner: am.Spec.AppOwner,
Entrances: appconfig.Entrances,
SharedEntrances: appconfig.SharedEntrances,
Icon: appconfig.Icon,

View File

@@ -570,36 +570,9 @@ func (h *Handler) validateArgoResources(ctx context.Context, req *admissionv1.Ad
return h.sidecarWebhook.AdmissionError(req.UID, err)
}
labels := object.GetLabels()
if labels != nil && labels[constants.ApplicationAuthorLabel] == constants.ByteTradeAuthor {
return resp
}
appNamespace := req.Namespace
if strings.HasSuffix(req.Namespace, "-shared") {
var ns corev1.Namespace
err := h.ctrlClient.Get(ctx, types.NamespacedName{Name: req.Namespace}, &ns)
if err != nil {
klog.Errorf("failed to get ns %s %v", req.Namespace, err)
return h.sidecarWebhook.AdmissionError(req.UID, err)
}
if ns.Labels != nil {
installUser := ns.Labels[constants.ApplicationInstallUserLabel]
appName := ns.Labels[constants.ApplicationNameLabel]
appNamespace = fmt.Sprintf("%s-%s", appName, installUser)
}
}
// Ensure the namespace matches some ApplicationManager.Spec.AppNamespace
var amList v1alpha1.ApplicationManagerList
if err := h.ctrlClient.List(ctx, &amList, &client.ListOptions{}); err != nil {
klog.Errorf("Failed to list application managers for argo resources validation err=%v", err)
return h.sidecarWebhook.AdmissionError(req.UID, err)
}
for _, am := range amList.Items {
if am.Spec.AppNamespace == appNamespace {
return resp
}
if !apputils.IsProtectedNamespace(appNamespace) {
return resp
}
resp.Allowed = false

View File

@@ -329,6 +329,7 @@ func generateIptablesCommands(appCfg *appcfg.ApplicationConfig) string {
-A OUTPUT -p tcp -j PROXY_OUTBOUND
-A PROXY_INBOUND -p tcp --dport %d -j RETURN
-A PROXY_INBOUND -s 20.20.20.21 -j RETURN
-A PROXY_INBOUND -s 172.30.0.0/16 -j RETURN
`, constants.EnvoyAdminPort)
if appCfg != nil {
for _, port := range appCfg.Ports {