Creation of Azure storage from connection string failed for shared key credentials
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
- 35/100
Hướng nghiên cứu
Start with StorageFactory.Blobs.FromConnectionString and FluentStorage.ConnectionString.StorageConnectionString.Parse, which the issue identifies as the path that decodes every property value. Check how the Azure account key and password values are handled, then reproduce the failure with a key containing +. Done means shared key credentials work without corrupting the Base64 key, with connection string parsing behavior covered by a regression test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
the creation of a Azure file or blob storage instance failes if doing so via StorageFactory.Blobs.FromConnectionString
Reason:
The factory uses FluentStorage.ConnectionString.StorageConnectionString internally to parse the connection string. For each property value the method UrlDecode is called by the Parse method. This makes a lot of sense to be able to pass special characters in passwords.
The Azure account key is Base64 encoded, though. If it contains + characters, those get replaced by spaces, other characters might also get replaced falsely. Therefore the Azure account key must not be tampered with.
One workaround would be to store the account key urlencoded in the connection string in the application configuration - not very user friendly, its base64 already...
The StorageConnectionString on the other hand side has no knowledge if the secret key is urlencoded or base64 encoded... not sure how to solve this.
Maybe it would make sense to mention the url-encoding for passwords in the documentation.
- Ngôn ngữ chính
- C#
- Star
- 464
- Fork
- 78
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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 robinrodricks/FluentStorage
-
Azure Blob bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
robinrodricks/FluentStorage#179 · 1 bình luận ·
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
robinrodricks/FluentStorage#178 · 7 bình luận ·
-
discussion help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
robinrodricks/FluentStorage#148 ·
-
response requested Wasabi
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
robinrodricks/FluentStorage#121 · 2 bình luận ·
-
maintainance work in progress
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
robinrodricks/FluentStorage#111 · 2 bình luận ·
Tất cả issue của robinrodricks/FluentStorage
Issue tương tự
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
erkamyaman/rust-anything#943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
SixLabors/ImageSharp.Drawing#438 · 1 bình luận ·
-
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 92/100
NetSparkleUpdater/NetSparkle#762 ·
-
ANSIInitializer.Enabled getterĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100