Commit Graph

1730 Commits

Author SHA1 Message Date
microzchang
04a7477d2e
Storage/Storage Client Options Support Audiences (#4957) (#4966)
Storage Client Options Support Audiences.
2023-09-19 03:28:42 +00:00
Azure SDK Bot
ec33085d59
Increment package version after release of azure-identity (#4953) 2023-09-14 14:25:12 -07:00
Ahson Khan
13f1759acc
Do not throw an exception during Credential construction, but rather delay it on GetToken call. (#4951) 2023-09-13 16:57:24 -07:00
Anton Kolesnyk
d4bdf29ef2
Azure Identity September Release (#4930)
* Azure Identity September Release

* Update release date in CHANGELOG.md

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-09-13 22:39:23 +00:00
Ahson Khan
33dc61bbf8
Modify the order of the credentials used within the DefaultAzureCredential to be consistent with other languages. (#4946)
* Modify the order of the credentials used within the  to be consistent with other languages.

* Update LogMessages test since the order of credentials has changed.

* Fix the order for the rest of the log messages within the test.

* Update svg and clang format.
2023-09-13 15:02:25 -07:00
Larry Osterman
165eace629
AMQP Stack polls for operations in a background thread. (#4914)
There are two significant parts to this fix. The first is that the Connection object now has a method EnableAsyncOperation which registers the connection with a background thread which polls the connection. The EnableAsyncOperation needs to be callable from outside the connection because in normal client operation, the calls to open the connection are all internal to uAMQP. That means that the message sender and receiver need to call it when they're opened (and closed).

The other major part of this change is that the AsyncOperationQueue now has a WaitForRequest API which does not normally poll (there is a test hook which enables polling but that is not normally used in most scenarios).

The other part of this change fixes some concurrency issues associated with the Log::Stream functionality.

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Update sdk/core/azure-core/src/logger.cpp

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Update sdk/core/azure-core/test/ut/CMakeLists.txt

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Update sdk/core/azure-core/test/ut/logging_test.cpp

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Added ASAN as an option, converted transports to be bases to ensure consistancy

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-09-13 11:12:46 -07:00
Ahson Khan
e0bda0b406
Add WorkloadIdentityCredential to the DefaultAzureCredential. (#4940)
* Add WorkloadIdentityCredential to the DefaultAzureCredential.

* Clang format and update the CL.

* Address PR feedback - update CL, and SVG

* Define the required AZURE_FEDERATED_TOKEN_FILE env variable in the test.

* Update DAC unit test to include WIC in the log messages.
2023-09-13 01:15:25 -07:00
Ahson Khan
79737f1473
Make several params to WorkloadIdentityCredential optional and read them from the environment instead. (#4893)
* Make several params to WorkloadIdentityCredential optional and read them from the environment instead.

* Fix typo in calling the ClientCredentialCore ctor

* Add changelog entry.

* Address PR feedback, avoid creating many WIC options instances.

* Update ctor impl and add options test.

* Set locals if the options are non-empty, and void unused variable in tests.

* Fixup the sample since the customer no longer needs to explicitly pass in those params.
2023-09-12 23:18:05 -07:00
JinmingHu
ad28d10ee0
Memorize filesystemUrl in directoryClient so that ListPaths knows the correct endpoint without guessing (#4923) 2023-09-13 13:06:14 +08:00
Azure SDK Bot
59af02e52a
Increment version for storage releases (#4945)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-files-shares

* Increment package version after release of azure-storage-queues
2023-09-13 13:05:11 +08:00
microzchang
224332197d
storage-september-release (#4935)
* upgrade package version

* add features added title
2023-09-13 10:33:23 +08:00
Azure SDK Bot
517f1e61c8
Increment package version after release of azure-messaging-eventhubs (#4944) 2023-09-13 00:09:40 +00:00
Anton Kolesnyk
308c5a7ac8
Azure Eventhubs September Release (#4929)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-12 14:23:46 -07:00
microzchang
5afc901bef
Storage/TestProxy playback mode ignore storage sas version (#4941)
* Playback ignore storage sas version

* remove space
2023-09-12 05:00:21 +00:00
Azure SDK Bot
329eda3114
Increment package version after release of azure-core-amqp (#4933) 2023-09-07 16:05:12 -07:00
Anton Kolesnyk
2f7728794d
Better cmake UWP detection condition (use the same definition as vcpkg) (#4932)
* Better cmake UWP detection condition (use the same definition as vcpkg)

* Update Config.cmake.in

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-07 13:04:50 -07:00
Anton Kolesnyk
93a0942c6a
Azure Core AMQP September Release (#4928)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-07 12:18:42 -07:00
Anton Kolesnyk
a8dd2b021b
Fix Identity compilation (WinAPI crypto API) on UWP (#4931)
* Fix Identity compilation (WinAPI crypto API) on UWP

* Clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-07 10:28:37 -07:00
Ahson Khan
f7452cc233
Update the workload identity credential sample to work with required environment variables that need to be set. (#4924)
* Update the workload identity credential sample to work with required environment variables that need to be set.

* Fix clang format.
2023-09-06 10:25:26 -07:00
Larry Osterman
0ad52a028c
Ignore compiler and STL version mismatch on published packages to unblock ApiView (#4925) 2023-09-06 10:22:52 -07:00
Anton Kolesnyk
146460ec5a
Acknowledge community contributions in the changelogs (#4919)
* Acknowledge customer contributions in the changelogs

* cspell

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-05 14:05:19 -07:00
microzchang
06c0159137
Storage/Add instruction for setting up storage accounts (#4917)
* update readme.md

* update

* fxi spell

* update link

* update link

* update

---------

Co-authored-by: Jinming Hu <jinmhu@microsoft.com>
2023-09-05 14:01:49 +08:00
JinmingHu
85af81f0a6
Update storage coverage target (#4922) 2023-09-05 09:52:52 +08:00
microzchang
99567fa14d
Storage/Fix live test failure (#4920) 2023-09-01 01:20:04 +08:00
Larry Osterman
1177548540
WIL headers and C++ static analysis don't always get along (#4918)
* WIL headers and C++ static analysis don't always get along

* Accidentally removed a header
2023-08-29 13:41:52 -07:00
Theodore Tsirpanis
b7afe2faf1
[identity] Remove OpenSSL dependency on Windows. (#4747)
* Add dependency to WIL in azure-identity-cpp when on WIndows.

* Use Win32 APIs to get the thumbprint and private key of a certificate.

* Don't use `out_param_ptr` in `GetPrivateKey`.

`NCRYPT_KEY_HANDLE` is not a pointer but a uintptr and using `out_param_ptr` with it causes compiler errors.

* Use Win32 APIs to sign messages with a private key.

* Remove the OpenSSL dependency from azure-identity-cpp on Windows.

We can't remove it from the root vcpkg.json that gets used for development, because an attestation example uses OpenSSL for certificate code.

* Update the changelog.

* Fix compile errors.

We can't use WIL in the public headers; we will use instead the same approach with the OpenSSL handles.

* Fix more compile errors.

* Use `AZ_PLATFORM_WINDOWS`.

* clang-format

* Update cspell.json

* Update CHANGELOG.md

* Update cspell.json

* Update cspell.json

* Attempt to make spell checker happy with minimum changes

* Ignore `CMakeUserPresets.json`.

* Move to the BCrypt APIs in anticipation of the rewrite.

* Use Windows APIs to read the certificate and the private key in PEM format.

* Move decoding the PEM string to its own function.

* Remove redundant error messages from some checks.

WIL does not recommend them if they do not provide additional information, and it already captures the source location.

* Support opening raw RSA and ECC private keys.

* Stop using pseudo-handles.

They are not supported in Windows Server 2012 R2, which is still supported.

* Fix CI.

* Refactor the ClientCertificateCredential tests and test more certificates.

Thanks to googletest's parameterized tests, duplicate code was eliminated and we test twelve cases with only two test methods.

* Improve code sharing across OpenSSL and CNG.

* Fix error checks when signing.

* Remove ECC certificate support.

Turns out Microsoft identity platform itself does not support them.

* Replace `#ifdef` with `#if defined`.

* Move some CryptoAPI-related terms to a `cspell.json` file local to `azure-identity`.

* Exclude the root `cspell.json` file from gitignore.

* Clean-up `cspell.json`.

* Fix linked libraries of `azure-identity`.
We don't use ncrypt anymore.

* Move `platform.hpp` to `client_certificate_credential.cpp`.

* Clean-up `UniquePrivateKey` and reduce mentions of `pkey`.

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-08-28 10:55:49 -07:00
microzchang
be8c89123b
Storage/Update Queue API Version (#4903)
* update queue api version

* update version

* update sas version

* update test reocrd

* update test records
2023-08-23 09:31:16 +08:00
adamdebreceni
69fe21f7b0
Address gcc13 compilation issue (#4857) 2023-08-22 13:49:35 -07:00
Ahson Khan
384c1ae01e
Update core ci.yml so that some CI pipeline runs when modifying markdown files at the root of the repo (#4900)
* Update core ci.yml so that some CI pipeline runs when modifying markdown files at the root of the repo

* Update ci.yml for PRs.

* Update README.md to test that CI triggers.

* Check why wildcard isn't working as expected

* Try wrapping wildcard in quotes since it is at the start of the path to trigger
2023-08-18 14:51:46 -07:00
Ahson Khan
66e36b0399
Add a sample on how to use Workload Identity Credential. (#4894) 2023-08-18 12:44:35 -07:00
microzchang
653d7dfecd
Storage/File Share test coverage improvement (#4895)
* add share tests

* Add accessRights test

* update tests

* update test records

* change
2023-08-18 16:31:05 +08:00
JinmingHu
f6f2617201
Add some test cases for blob service (#4890) 2023-08-18 03:58:31 +00:00
microzchang
678d08072b
Storage/Datalake test coverage improvement (#4889)
* update test cases

* fix spell and conversation

* remove live only

* update test records
2023-08-18 09:24:50 +08:00
Larry Osterman
85d1a669e9
Removed version>= dependency for curl (#4892)
* Removed version>= dependency for curl

* removed another curl version check
2023-08-17 18:28:58 +00:00
Larry Osterman
b108bf6235
Post-release updates (#4871)
* Added link credit support to message sender and receiver; reworked message receiver creation to move to the partition client object

* Added round trip test, including filters; fixed a hang with the consumer client caused by no messages; fixed checkpoint store storage names.

* EventDataBatch is created from EventProducer. Fixes #4868

* SendEventDataBatch renamed to Send; pass in Context on methods which require a context

* Added producer client send APIs without requiring an explicit event data batch

* close message receiver in destructor if it is open

* Consumer client and producer client only create message sender and receiver when needed
2023-08-17 09:52:54 -07:00
microzchang
0a4d7009f4
Storage/Fix Files Shares ShareServiceClient::SetProperties 400 Error (#4887)
* fix bug

* update record

* udpate record

* test

* update test record
2023-08-17 06:35:40 +00:00
JinmingHu
7c10104461
Improve storage blob & queue coverage (#4888) 2023-08-17 10:15:56 +08:00
Ahson Khan
25f33e9800
Update azure-core dependency on curl to 7.48 from 7.44 since that's the minimum available on vcpkg. (#4882)
* Update azure-core dependency on curl to 7.48 from 7.44 since that's the minimum available on vcpkg.

* Update nested vcpkg.json to 7.48
2023-08-16 15:13:23 -07:00
Ahson Khan
e3a5a44e46
Update amqp dependency on core that isn't a beta (#4881)
As far as I know, this is the minimum version of core that's needed. If we need a newer version that we amqp needs, we can bump up this dependency.
2023-08-16 15:12:58 -07:00
JinmingHu
bbf6c9c3ee
Add test cases for simplified storage headers (#4880) 2023-08-16 20:09:30 +08:00
microzchang
9ef9483d92
Storage/File Share test improvement (#4885)
* update sas test

* update fileshare test cases
2023-08-16 06:04:28 +00:00
microzchang
efc0d8930a
Storage/Datalake test improvement (#4884)
* Update sas test

* add test case and test records

* fix import file

* fix import files

* update record

* fix test name

* fix conversations

* update test

* fix clang format
2023-08-15 14:17:39 +08:00
JinmingHu
3b91ee9c9a
add sanitizer for cookie and set-cookie headers (#4870) 2023-08-15 00:47:33 +08:00
Azure SDK Bot
d75e140049
Increment version for storage releases (#4878)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-files-shares

* Increment package version after release of azure-storage-queues
2023-08-12 05:58:05 +00:00
JinmingHu
00db04eb76
Storage August Release 2 (#4877) 2023-08-12 12:02:32 +08:00
Azure SDK Bot
5590c3bfbd
Increment package version after release of azure-identity (#4876) 2023-08-11 19:31:51 -07:00
Anton Kolesnyk
d6294aaa9f
Azure Identity August Release (#4839)
* Azure Identity August Release

* Update CL

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-08-12 01:18:04 +00:00
Ahson Khan
e43c34c90a
Add support for Workload Identity Credential for Kubernetes. (#4872)
* Add support for Workload Identity Credential for Kubernetes.

* Fix order of initialization for member fields.
2023-08-11 17:43:02 -07:00
microzchang
69e5f1a627
Storage/feature parity (#4869)
* add content type support on rename file. (#4712)

* Storage/STG74 Bearer Challenge (#4743)

* bearer challenge

* Storage/STG78 OAuth Copy (#4831)

* OAuth Copy

* add test for oauth copy

* add test

* fix conversation

* fix conversation

* update clang format

* update test record

* update test case

* fix unit test cases

* update recordings

* recordings

* fff

* fix doc

* CL

* recording

* fix typo

* CL

* recording

* revert debug code

---------

Co-authored-by: Jinming Hu <jinmhu@microsoft.com>
2023-08-11 20:47:53 +08:00
Azure SDK Bot
b8d2301931
Increment package version after release of azure-messaging-eventhubs (#4861) 2023-08-09 21:05:58 -07:00