Add encryption support to `use_user_data` hook
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
研究方向
Start by tracing the use_user_data hook and the UserDataModel and ComponentSession definitions, then inspect settings.py and the manage.py command entry points. The work is complete when encrypted storage, key rotation, the reactpy_upgrade_data_encryption command, the deploy warning, and short or low-entropy key warnings are covered.
由索引模型根據 Issue 內容生成。
描述
Current Situation
Our use_user_data hook stores user data as unencrypted binary. If the user wants to encrypt certain key/values, this needs to be done manually which is highly inconvenient.
Proposed Actions
Add built-in encryption support to this hook. This design will be inspired by django-searchable-encrypted-fields.
Based on that library, here's a few specifics about the implementation:
- Create
settings.py:REACTPY_USER_DATA_ENCRYPTION_KEYS: list - Add
encrypted = models.BooleanField(default=False)toUserDataModelandComponentSession - Add new
manage.py reactpy_upgrade_data_encryptionmanagement command.- Encryption keys are upgraded lazily by default, but this command will be used to manually upgrade all data to the newest encryption key.
- Add a check to
manage.py check --deploythat warns if encryption is not enabled. - Warn if encryption keys are too short or lack entropy.
- 主要語言
- Python
- 星號
- 357
- 分支
- 22
- 平均合併
- 10 小時 31 分鐘
- 30 天內合併 PR
- 2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
reactive-python/reactpy-django 的其他 Issue
-
complexity: 3 (low) priority: 3 (low) type: ci
難度 3/5 1-2 天 新手友好度 45/100
-
complexity: 1 (high) priority: 1 (high)
難度 5/5 一週以上 新手友好度 25/100
-
complexity: 2 (medium) priority: 3 (low)
難度 5/5 一週以上 新手友好度 25/100
-
complexity: 2 (medium) priority: 3 (low)
難度 5/5 一週以上 新手友好度 25/100
-
complexity: 1 (high) priority: 2 (moderate)
難度 5/5 一週以上 新手友好度 25/100
查看 reactive-python/reactpy-django 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 90/100
-
bug
難度 2/5 1-3 小時 新手友好度 86/100
zostera/django-bootstrap4#894 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
use-agent-os/agent-os#3276 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
難度 2/5 1-3 小時 新手友好度 88/100
NousResearch/hermes-agent#117848 ·