Add encryption support to `use_user_data` hook
还没有人认领这个 Issue。
评估
调研方向
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
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
bancolombia/sentinel#23 ·
-
test md 未关闭CI
难度 2/5 1-3 小时 新手友好度 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·
-
bug client
难度 2/5 1-3 小时 新手友好度 88/100