Creation of Azure storage from connection string failed for shared key credentials
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 464
- Fork
- 78
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di robinrodricks/FluentStorage
-
Azure Blob bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
robinrodricks/FluentStorage#179 · 1 commento ·
-
question
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
robinrodricks/FluentStorage#178 · 7 commenti ·
-
discussion help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
robinrodricks/FluentStorage#148 ·
-
response requested Wasabi
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
robinrodricks/FluentStorage#121 · 2 commenti ·
-
maintainance work in progress
Difficoltà 3/5 1-2 giorni Idoneità per principianti 54/100
robinrodricks/FluentStorage#111 · 2 commenti ·
Tutte le issue di robinrodricks/FluentStorage
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
bug effort:S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightscout/nocturne#4563 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
KnifeLemon/Filee#1887 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno