Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81fdbcb

Browse files
authored
[storage] allow insecure connections (Azure#27815)
Storage accounts can be configured allow both HTTP and HTTPS connections. Azurite also uses HTTP. Unlike core-http, by default Core v2 doesn't allow HTTP. This PR sets `allowInsecureConnection` to `true` for storage clients. ### Issues associated with this PR Azure#27813
1 parent 0a59288 commit 81fdbcb

File tree

22 files changed

+67
-17
lines changed

22 files changed

+67
-17
lines changed

sdk/storage/storage-blob/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 12.23.0-beta.2 (Unreleased)
4+
5+
### Features Added
6+
7+
### Breaking Changes
8+
9+
### Bugs Fixed
10+
11+
### Other Changes
12+
13+
- Allow HTTP connections
14+
315
## 12.23.0-beta.1 (2023-11-01)
416

517
### Other Changes

sdk/storage/storage-blob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@azure/storage-blob",
33
"sdk-type": "client",
4-
"version": "12.23.0-beta.1",
4+
"version": "12.23.0-beta.2",
55
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
66
"main": "./dist/index.js",
77
"module": "./dist-esm/storage-blob/src/index.js",

sdk/storage/storage-blob/src/Pipeline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceCli
331331
}
332332
return {
333333
...restOptions,
334+
allowInsecureConnection: true,
334335
httpClient,
335336
pipeline: corePipeline,
336337
};

sdk/storage/storage-blob/src/generated/src/storageClient.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/storage-blob/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export const SDK_VERSION: string = "12.23.0-beta.1";
4+
export const SDK_VERSION: string = "12.23.0-beta.2";
55
export const SERVICE_VERSION: string = "2023-08-03";
66

77
export const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES: number = 256 * 1024 * 1024; // 256MB

sdk/storage/storage-blob/swagger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ add-credentials: false
2121
core-http-compat-mode: true
2222
use-extension:
2323
"@autorest/typescript": "latest"
24-
package-version: 12.23.0-beta.1
24+
package-version: 12.23.0-beta.2
2525
```
2626
2727
## Customizations for Track 2 Generator

sdk/storage/storage-file-datalake/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 12.22.0-beta.2 (Unreleased)
4+
5+
### Features Added
6+
7+
### Breaking Changes
8+
9+
### Bugs Fixed
10+
11+
### Other Changes
12+
13+
- Allow HTTP connections
14+
315
## 12.22.0-beta.1 (2023-11-01)
416

517
### Other Changes

sdk/storage/storage-file-datalake/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/storage-file-datalake",
3-
"version": "12.22.0-beta.1",
3+
"version": "12.22.0-beta.2",
44
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake",
55
"sdk-type": "client",
66
"main": "./dist/index.js",

sdk/storage/storage-file-datalake/src/StorageClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function getCoreClientOptions(pipeline: Pipeline): ExtendedServiceClientOptions
2929
}
3030
return {
3131
...restOptions,
32+
allowInsecureConnection: true,
3233
httpClient,
3334
pipeline: corePipeline,
3435
};

sdk/storage/storage-file-datalake/src/generated/src/storageClient.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)