Rotate the token signing and encryption keys without signing everyone out
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ó
- 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
- 39/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ệ
- csharp
- Lĩnh vực
- authentication, backend, security
Hướng nghiên cứu
Start with src/FluentCMS.Core/Identity/Oidc/SigningKeyStore.cs and the ServerCredentials code around lines 124–144, then trace token lifetimes, encryption keys, and the discovery document. The issue calls for an ADR before implementation; first establish the rotation and overlap design with maintainers. Done means accepted design and tests covering validation through the overlap, retirement, secondary certificate validation, and both discovery keys during rotation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
src/FluentCMS.Core/Identity/Oidc/SigningKeyStore.cs:21-22,32-47 only ever inserts one key per use under a fixed id; nothing adds a second. ServerCredentials (:124-144) takes one certificate with no slot for the previous one, so replacing a certificate invalidates every issued token at once. The encryption key never rotates either. An operator who suspects a key has no way to replace it without signing everyone out, and no routine rotation exists.
Proposal
Write an ADR first, then:
- A command and a recurring job that add a new signing key and retire the old one after the longest token lifetime.
- A secondary certificate setting, used for validation only.
- The same for the encryption key.
Acceptance
- ADR accepted
- A token issued before a rotation validates until it expires
- A retired key is removed after the overlap
- Replacing the configured certificate with the previous one set as secondary signs nobody out
- The discovery document lists both keys during the overlap
Found in the code review of 17 Nov 2026.
- Ngôn ngữ chính
- C#
- Star
- 569
- Fork
- 107
- Merge trung bình
- 2 giờ 49 phút
- Pull request đã merge (30 ngày)
- 397
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 fluentcms/FluentCMS
-
area:host area:operations type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:build security type:chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:sdk security type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:content security type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:build type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
microsoft/microsoft-ui-reactor#1567 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openclaw/openclaw-windows-node#2287 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind:ux needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
elsa-workflows/elsa-foundation#4742 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100