Enable SSL for blob storage
In order to increase Security. The Microsoft Azure storage services support both HTTP and HTTPS; however, using HTTPS is highly recommended.
This commit is contained in:
parent
ff4a11aa32
commit
3961de3e56
|
@ -57,14 +57,14 @@ public class AzureStorageServiceImpl extends AbstractLifecycleComponent<AzureSto
|
||||||
// We try to load storage API settings from `cloud.azure.`
|
// We try to load storage API settings from `cloud.azure.`
|
||||||
account = settings.get(ACCOUNT);
|
account = settings.get(ACCOUNT);
|
||||||
key = settings.get(KEY);
|
key = settings.get(KEY);
|
||||||
blob = "http://" + account + ".blob.core.windows.net/";
|
blob = "https://" + account + ".blob.core.windows.net/";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
logger.trace("creating new Azure storage client using account [{}], key [{}], blob [{}]", account, key, blob);
|
logger.trace("creating new Azure storage client using account [{}], key [{}], blob [{}]", account, key, blob);
|
||||||
|
|
||||||
String storageConnectionString =
|
String storageConnectionString =
|
||||||
"DefaultEndpointsProtocol=http;"
|
"DefaultEndpointsProtocol=https;"
|
||||||
+ "AccountName="+ account +";"
|
+ "AccountName="+ account +";"
|
||||||
+ "AccountKey=" + key;
|
+ "AccountKey=" + key;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue