ComfyUI/tests-unit/prompt_server_test
Dr.Lt.Data ba8dec6669 feat(security): add System User protection with __ prefix
Add protected namespace for custom nodes to store sensitive data
(API keys, licenses) that cannot be accessed via HTTP endpoints.

Key changes:
- New API: get_system_user_directory() for internal access
- New API: get_public_user_directory() with structural blocking
- 3-layer defense: header validation, path blocking, creation prevention
- 54 tests covering security, edge cases, and backward compatibility

System Users use `__` prefix (e.g., __system, __cache) following
Python's private member convention. They exist in user_directory/
but are completely blocked from /userdata HTTP endpoints.
2025-11-29 00:49:05 +09:00
..
__init__.py Add model downloading endpoint. (#4248) 2024-08-13 15:48:52 -04:00
system_user_endpoint_test.py feat(security): add System User protection with __ prefix 2025-11-29 00:49:05 +09:00
user_manager_test.py Add /api/v2/userdata endpoint (#7817) 2025-04-27 20:06:55 -04:00