Add encryption support to `use_user_data` hook
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 357
- Fork
- 22
- Merge trung bình
- 10 giờ 31 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của reactive-python/reactpy-django
-
Add coverage tests Đang mởcomplexity: 3 (low) priority: 3 (low) type: ci
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
complexity: 1 (high) priority: 1 (high)
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
complexity: 2 (medium) priority: 3 (low)
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
complexity: 2 (medium) priority: 3 (low)
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
`pyscript_router` component Đang mởcomplexity: 1 (high) priority: 2 (moderate)
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của reactive-python/reactpy-django
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
use-agent-os/agent-os#3314 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
BasedHardware/omi#15662 · 1 bình luận ·
-
documentation help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AiursoftWeb/AnduinOS-2#19 ·