SubjectX500PrincipalExtractor could use the SAN or dNSName instead of CN
Maintainer thường phản hồi trong vòng 2 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
- 52/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ệ
- java
- Lĩnh vực
- authentication, security
Hướng nghiên cứu
Start by reading the X.509 configuration and SubjectX500PrincipalExtractor implementation, then trace how the principal is derived from a certificate. Compare the current CN behavior with the suggested distinguished-name and SAN options, and check the related X.509 tests. Done means the principal extraction behavior and its tests address the requested SAN or dNSName support.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
@Bean
SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) {
return httpSecurity
.x509(Customizer.withDefaults())
.csrf(customizer -> customizer.disable())
.build();
}
results in using SubjectX500PrincipalExtractor which creates the Principal based on CN property of the certificate.
Rfc2818 "Although the use of the Common Name is existing practice, it is deprecated and Certification Authorities are encouraged to use the dNSName instead, https://www.rfc-editor.org/info/rfc2818/
Alternative:
@Bean
SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) {
return httpSecurity
.x509(customizer -> customizer.x509PrincipalExtractor(cert -> {
return cert.getSubjectX500Principal().getName();
}))
.csrf(x -> x.disable())
.build();
}
It uses the distinguished name. SAN could also be used.
- Ngôn ngữ chính
- Java
- Star
- 9.7k
- Fork
- 6.4k
- Merge trung bình
- 7 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 35
Chuẩn bị môi trường
- Không có Dockerfile hay 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 spring-projects/spring-security
-
Update spring-ldap to 4.0.7Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
spring-projects/spring-security#20057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Update micrometer to 1.16.9Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
spring-projects/spring-security#20056 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Update spring-ldap to 4.1.3Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
spring-projects/spring-security#20055 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Update micrometer to 1.17.3Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
spring-projects/spring-security#20054 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Update spring-ldap to 4.2.0Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
spring-projects/spring-security#20053 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của spring-projects/spring-security
Issue tương tự
-
physical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
antonyrag/ragleap-core#1339 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
[Bug] Guidebook DiscrepanciesĐang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rezelyn/Wathe-Extended#116 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
langchain4j/langchain4j#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
opensearch-project/k-NN#3693 ·
Maintainer thường phản hồi trong vòng 1 ngày