Skip to content

Commit 0b3edc3

Browse files
committed
Security policy is updated.
* Allows the download of models that belong to the whitelist even at the 'normal' security level
1 parent 35f077c commit 0b3edc3

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
![menu](misc/menu.jpg)
66

77
## NOTICE
8+
* V2.48.1: Security policy has been changed. Downloads of models in the list are allowed under the 'normal' security level.
89
* V2.47: Security policy has been changed. The former 'normal' is now 'normal-', and 'normal' no longer allows high-risk features, even if your ComfyUI is local.
910
* V2.37 Show a ✅ mark to accounts that have been active on GitHub for more than six months.
1011
* V2.33 Security policy is applied.

glob/manager_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import cm_global
2424
from manager_util import *
2525

26-
version = [2, 48]
26+
version = [2, 48, 1]
2727
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
2828

2929

glob/manager_server.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,17 @@ async def install_model(request):
990990
return web.Response(status=403)
991991

992992
if not json_data['filename'].endswith('.safetensors') and not is_allowed_security_level('high'):
993-
print(f"ERROR: To use this feature, you must either set '--listen' to a local IP and set the security level to 'normal-' or lower, or set the security level to 'middle' or 'weak'. Please contact the administrator.")
994-
return web.Response(status=403)
993+
models_json = await core.get_data_by_mode('cache', 'model-list.json')
994+
995+
is_belongs_to_whitelist = False
996+
for x in models_json['models']:
997+
if x.get('url') == json_data['url']:
998+
is_belongs_to_whitelist = True
999+
break
1000+
1001+
if not is_belongs_to_whitelist:
1002+
print(f"ERROR: To use this feature, you must either set '--listen' to a local IP and set the security level to 'normal-' or lower, or set the security level to 'middle' or 'weak'. Please contact the administrator.")
1003+
return web.Response(status=403)
9951004

9961005
res = False
9971006

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-manager"
33
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
4-
version = "2.48"
4+
version = "2.48.1"
55
license = "LICENSE"
66
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
77

0 commit comments

Comments
 (0)