!39 [sync] PR-37: 更新版本到1.3.0
From: @openeuler-sync-bot Reviewed-by: @zhu-yuncheng Signed-off-by: @zhu-yuncheng
This commit is contained in:
commit
b19882cca5
@ -1,54 +0,0 @@
|
|||||||
From 412ebea59d55abbf1acc328077b8854b2634a4d1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: rabbitali <shusheng.wen@outlook.com>
|
|
||||||
Date: Thu, 1 Jun 2023 09:09:39 +0800
|
|
||||||
Subject: [PATCH] update cve fix
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
---
|
|
||||||
zeus/function/verify/vulnerability.py | 2 +-
|
|
||||||
zeus/vulnerability_manage/view.py | 8 ++++++--
|
|
||||||
2 files changed, 7 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/zeus/function/verify/vulnerability.py b/zeus/function/verify/vulnerability.py
|
|
||||||
index 253bb4d..4aabc00 100644
|
|
||||||
--- a/zeus/function/verify/vulnerability.py
|
|
||||||
+++ b/zeus/function/verify/vulnerability.py
|
|
||||||
@@ -75,7 +75,7 @@ class CveFixSchema(TaskGeneralSchema):
|
|
||||||
"""
|
|
||||||
tasks = fields.List(fields.Nested(CveFixTask()),
|
|
||||||
required=True, validate=lambda s: len(s) > 0)
|
|
||||||
-
|
|
||||||
+ accepted = fields.Boolean(validate=validate.OneOf([True, False]),required=True)
|
|
||||||
|
|
||||||
class CveRollbackTask(Schema):
|
|
||||||
host_id = fields.Integer(required=True, validate=lambda s: s > 0)
|
|
||||||
diff --git a/zeus/vulnerability_manage/view.py b/zeus/vulnerability_manage/view.py
|
|
||||||
index adb4bc8..368847c 100644
|
|
||||||
--- a/zeus/vulnerability_manage/view.py
|
|
||||||
+++ b/zeus/vulnerability_manage/view.py
|
|
||||||
@@ -604,7 +604,12 @@ class ExecuteCveFixTask(BaseResponse):
|
|
||||||
})
|
|
||||||
return data
|
|
||||||
|
|
||||||
+ for cve in task_info.get("cves"):
|
|
||||||
+ if cve.get("hotpatch"):
|
|
||||||
+ cve["accepted"] = task_info["accepted"]
|
|
||||||
+
|
|
||||||
command_args = {
|
|
||||||
+ "accepted": task_info.get("accepted"),
|
|
||||||
"check_items": self._check_items,
|
|
||||||
"check": task_info.get("check"),
|
|
||||||
"cves": task_info.get("cves")
|
|
||||||
@@ -732,8 +737,7 @@ class ExecuteCveFixTask(BaseResponse):
|
|
||||||
self._task_name = params.get("task_name")
|
|
||||||
self._task_type = params.get("task_type")
|
|
||||||
self._check_items = params.get('check_items')
|
|
||||||
- tasks = generate_tasks(params.get('tasks'), host_infos,
|
|
||||||
- **{"repo_info": params.get("repo_info")})
|
|
||||||
+ tasks = generate_tasks(params.get('tasks'), host_infos, **{"accepted": params.get("accepted", False)})
|
|
||||||
if params.get("timed"):
|
|
||||||
self._header.update({
|
|
||||||
"exempt_authentication": configuration.individuation.get("EXEMPT_AUTHENTICATION"),
|
|
||||||
--
|
|
||||||
Binary file not shown.
BIN
aops-zeus-v1.3.0.tar.gz
Normal file
BIN
aops-zeus-v1.3.0.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,10 @@
|
|||||||
Name: aops-zeus
|
Name: aops-zeus
|
||||||
Version: v1.2.1
|
Version: v1.3.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: A host and user manager service which is the foundation of aops.
|
Summary: A host and user manager service which is the foundation of aops.
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch0001: 0001-update-cve-fix.patch
|
|
||||||
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
Requires: aops-vulcanus >= v1.2.0
|
Requires: aops-vulcanus >= v1.2.0
|
||||||
@ -21,7 +20,7 @@ A host and user manager service which is the foundation of aops.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
# build for aops-zeus
|
# build for aops-zeus
|
||||||
@ -30,6 +29,8 @@ A host and user manager service which is the foundation of aops.
|
|||||||
|
|
||||||
# install for aops-zeus
|
# install for aops-zeus
|
||||||
%py3_install
|
%py3_install
|
||||||
|
mkdir -p %{buildroot}/opt/aops/
|
||||||
|
cp -r database %{buildroot}/opt/aops/
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -39,9 +40,13 @@ A host and user manager service which is the foundation of aops.
|
|||||||
%attr(0755,root,root) /usr/lib/systemd/system/aops-zeus.service
|
%attr(0755,root,root) /usr/lib/systemd/system/aops-zeus.service
|
||||||
%{python3_sitelib}/aops_zeus*.egg-info
|
%{python3_sitelib}/aops_zeus*.egg-info
|
||||||
%{python3_sitelib}/zeus/*
|
%{python3_sitelib}/zeus/*
|
||||||
|
%attr(0755, root, root) /opt/aops/database/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 05 2023 wenxin<shusheng.wen@outlook.com> - v1.3.0-1
|
||||||
|
- optimize the method of executing apollo tasks
|
||||||
|
|
||||||
* Fri Jun 02 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-2
|
* Fri Jun 02 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-2
|
||||||
- update cve fix
|
- update cve fix
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user