Add columns to `worker_oauth` to track last key rotation date and key expiry date

Đang mở
#573 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
53/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
database

Hướng nghiên cứu

Start by locating the worker_oauth table definition and the code that creates or updates its keys. Check how schema changes and database migrations are handled in the project. Done means the table can store the last rotation date and a nullable expiry date, while existing key records continue to work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

database security

the worker_oauth table (which is used for storing keys on instances where there are more than one of them) should ideally have columns to track key dates related to the keys, such as:

  • When they were last rotated (this can probably also account for when they were added/last updated too)
  • When they expire (nullable, some platforms allow no expiry, and some may mandate that theres an expiry date)
    - When they were first added (dubiously useful and hard to retroactively add as a mandatory field)

Having these dates would be useful to display in the UI (as part of #55) and might be helpful for reminding instance owners if some of their keys are up for expiry soon (or if they want a reminder to rotate them periodically)

Currently, if this information is desired to be stored, it can be shoved into the name field (using it more like a comments field)

Ngôn ngữ chính
Python
Star
17
Fork
30
Merge trung bình
6 giờ 16 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.