Commit Graph

841 Commits

Author SHA1 Message Date
Anton Kolesnyk
217b3cd8a5
Add thread safety for KeyVaultChallengeBasedAuthenticationPolicy (#5189)
* Add thread safety for `KeyVaultChallengeBasedAuthenticationPolicy`

* Copy constructor

* Add comment

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 07:37:15 +00:00
Anton Kolesnyk
135e746243
BearerTokenAuthenticationPolicy to use shared_lock in case no refresh is needed (#5188)
* `BearerTokenAuthenticationPolicy` to use shared_lock in case no refresh is needed

* Copy constructor

* Update bearer_token_authentication_policy.cpp

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 21:29:54 +00:00
Anton Kolesnyk
24ecd16308
Fix some spelling errors (for some PRs that are currently in review) (#5202)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 10:49:58 -08:00
Anton Kolesnyk
fbf58139f7
Nullable::Emplace() to set HasValue() (#5178)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 08:10:52 +00:00
Anton Kolesnyk
ee4be19b3f
URL: avoid double slash at the start of the path (#5187)
* URL: avoid double slash at the start of the path

* Remove unnecessary change

* More test coverage

* Changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-27 23:03:27 -08:00
Larry Osterman
a318d3756f
Make cspell checks case sensitive. Fixes #5198. (#5199)
* Make cspell checks case sensitive

* Add .vscode to path filter for CI pipeline

* Fixed some spelling errors
2023-11-27 22:04:25 +00:00
Anton Kolesnyk
6da4d9649d
FIx typos (#5185)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-27 13:55:27 -08:00
Anton Kolesnyk
05d1f5455c
Make vcpkg.json comment multiline (#5175)
* Make vcpkg.json comment multiline

* Update core-opentelemetry tests to be able to compile with opentelemetry-cpp version 1.12.0

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-21 17:06:37 -08:00
Larry Osterman
1b2e58f743
Moved all uAMQP types out of public headers into _impl headers (#5171)
* Moved all uAMQP types out of public headers into _impl headers

* SocketListener is now in _detail
2023-11-17 09:32:06 -08:00
Larry Osterman
37e1952f71
Fixed Linux AMQP crash and many other fixes. (#5166)
* Return pointer to message rather than message; cleaned up API surface to remove uAMQP details

* ASAN configuration via CMAKE preset, not environment variable

* clang-tidy fixes
2023-11-14 23:45:24 +00:00
Ahson Khan
f2bd22794d
Incapsulate all the defaults for options values such as authority host in a helper class and add authority host url validation. (#5155)
* Incapsulate all the defaults for options values such as authority host
in a helper class and add authority host url validation.

* Address PR feedback.
2023-11-11 05:00:14 +00:00
Larry Osterman
7b8d324540
Fixed AMQP Link Credits hang; fixed several AMQP memory leaks. (#5119)
* Add link pollable; Fixed several memory leaks

* Rule of 5 fixes for AMQP and EventHubs types; moved message handle type to _detail namespace.

* Update sdk/core/azure-core-amqp/CHANGELOG.md

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-11-09 15:55:54 -08:00
Azure SDK Bot
a5bce7ede3
Increment package version after release of azure-core-amqp (#5120) 2023-11-07 18:36:50 +00:00
Anton Kolesnyk
722ce7c1d5
Azure Core AMQP November Release (#5100)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-07 03:01:37 -08:00
Anton Kolesnyk
ab0c28a42f
Accurate vcpkg feature availability for winhttp (#5114)
* Accurate vcpkg feature availability for winhttp

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-03 12:42:52 -07:00
Anton Kolesnyk
edf7ab18c7
Add a note to vcpkg manifest files that all changes made in the vcpkg repo alone might be lost. (#5110)
* Add a note to vcpkg manifest files that all changes made in the vcpkg repo alone might be lost.

* may => will

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-02 20:57:51 -07:00
Azure SDK Bot
830a60e6c6
Increment package version after release of azure-core (#5108) 2023-11-02 19:24:33 +00:00
Anton Kolesnyk
2f14209e2b
Azure Core November Release (#5099)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-02 10:20:59 -07:00
Anton Kolesnyk
c9329cb34b
Fix vcpkg install for the vendored uamqp (#5095)
* Fix vcpkg install for the vendored uamqp

* Make changes mergeable to upstream

* Update CMakeLists.txt

* Update CMakeLists.txt

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-31 17:12:28 -07:00
Larry Osterman
9d14632f1c
Isolate headers for AMQP internal types into an internal-only header directory. Fixes #5069 (#5079)
* Moved internal AMQP types to internal header directory

* Updated consumers of AMQP headers to match moved headers

* Updated changelog to reflect breaking change in AMQP

* Made includes explicit in event_data.hpp

* Reference non-package headers with angle braces not quotes
2023-10-30 18:04:24 +00:00
Anton Kolesnyk
7d94094255
Fix AMQP vcpkg depndencies (#5084)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-30 08:51:27 -07:00
Anton Kolesnyk
6979126ad8
Small cleanup around AMQP dependencies (#5083)
* Small cleanup around AMQP dependencies

* Update cfgmanifest.json to remove uamqp, and add umock, csharedutil, and macro-utils-c

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-28 22:28:51 +00:00
Larry Osterman
102c6f3d95
Port uAMQPPython fixes to uAMQP to vendored uAMQP (#5059)
* Port uAMQPPython fixes to uAMQP to vendored uAMQP

* Fixed unit test failures

* Diff ported fixes against python codebase
2023-10-27 09:17:26 -07:00
Larry Osterman
2337ee796e
Split out curl and winhttp testing on WS2022 to work around CURL bias in test proxy tests (#5071)
* Split out curl an winhttp testing on WS2022 to work around CURL bias in test proxy tests

* Minor change to storage to trigger CI pipeline

* On testing builds, send a 0 length Content-Length header on Patch verbs if the caller has not provided a Content-Length header.

* Update sdk/core/azure-core/inc/azure/core/http/http.hpp

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-10-27 09:16:46 -07:00
JinmingHu
2c8143a702
Fix the regex to match client secret in OAuth requests, ignore Cookie when matching requests (#5070)
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: microzchang <zchang@microsoft.com>
2023-10-27 10:12:03 +08:00
Anton Kolesnyk
50c18516df
Ensure CMakeLists don't miss any files (#5065)
* Ensure CMakeLists don't miss any files

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-26 18:15:03 -07:00
Anton Kolesnyk
81e23e00aa
Ensure all-inclusive headers do include all public API headers (#5068)
* Ensure all-inclusive headers do include all public API headers

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-26 18:02:34 -07:00
Anton Kolesnyk
2b66182185
Add issue link for the fixed bug in the changelog (#5062) 2023-10-25 19:18:58 -07:00
Larry Osterman
d4b225c138
Updated changelog for azure core; azure core amqp; and eventhubs. (#5060) 2023-10-25 15:16:52 -07:00
Larry Osterman
51c8955d85
Vendor AMQP at commit 52942afb1a4b48a1d8af7a3ac37d3211661e3423 (#5049)
* Vendored version of uamqp

* Exclude vendored modules from cspell

* Code coverage

* Code coverage improvements

* Removed more coverage exclusions
2023-10-25 11:19:20 -07:00
Larry Osterman
a6de66df02
Remove code coverage exclusions from Azure SDK for C++ (#5055)
* Try to see what happens without coverage exclusions

* Reset coverage limits

* Mark ThrowParseError as [[noreturn]] to ensure compiler knows that code after it is dead code

* Added tests for the Azure assert macro

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-10-25 10:30:02 -07:00
Larry Osterman
490250646f
Reworked TLS 1.3 change; add WS2019 test coverage (#5051)
* Reworked TLS 1.3 change; add WS2019 test coverage

* Enable static MSVC lib support on WS2019

* Fall back to TLS 1.2 if TLS 1.3 doesn't work
2023-10-24 22:55:40 +00:00
Larry Osterman
ccddc7f3ed
Fully functioning eventhubs processor. (#5018)
* Functioning processor; reliability changes to azure core

* Eventhubs test fixes

* Functioning processor; cleaned up some memory leaks

* 

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-10-24 10:45:43 -07:00
Larry Osterman
92364dcee1
Enable TLS 1.3 support (#5047)
* Enable TLS 1.3 support

* Updated error message
2023-10-20 18:39:09 +00:00
Larry Osterman
903136098f
Added code annotations around proxy information scheme for winhttp to work around clang parsing issue (#5045) 2023-10-19 08:45:27 -07:00
Larry Osterman
fbec02365b
clang-13 version of cstdlib doesn't define integer types in global na… (#5031)
* clang-13 version of cstdlib doesn't define integer types in global namespace

* Added clang-13 and clang-15 variants to mix

* Pull request feedback

* Update sdk/core/azure-core/inc/azure/core/uuid.hpp

* Update sdk/core/azure-core/inc/azure/core/base64.hpp

---------

Co-authored-by: Larry Osterman <larryo@LOTHAIR-HOME.ntdev.corp.microsoft.com>
2023-10-17 18:55:54 +00:00
Azure SDK Bot
a2ef29aa93
Increment version for core releases (#5013)
* Increment package version after release of azure-core-amqp

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-10-05 23:28:01 +00:00
Azure SDK Bot
dbbcd0dc93
Increment package version after release of azure-core (#5012) 2023-10-05 22:26:46 +00:00
Anton Kolesnyk
9d88aeb651
Azure Core October Beta Releases (#5003)
* Azure Core October Beta Releases

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-05 13:41:51 -07:00
Ahson Khan
9a2c2e1257
Remove OPENSSL_VERSION_NUMBER version check for the CAPath option in libcurl (#5009)
* Remove OPENSSL_VERSION_NUMBER version check for the CAPath option in
libcurl.

* Revert unit test change that caused an intentional error.

* Remove the openssl header.
2023-10-05 20:30:46 +00:00
Anton Kolesnyk
6c2e3628fa
Fix vcpkg features for azure-core-cpp (#4934)
* Fix vcpkg features for azure-core-cpp

* Rearrange conditions

* EOL@EOF

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-29 19:16:53 +00:00
Anton Kolesnyk
c26fbb03ea
Acknowledge community contribution in the changelog (#4995)
* Acknowledge community contribution in the changelog

* Update cspell.json

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-29 17:14:03 +00:00
Phoebus Mak
bf652dcd47
Add support of setting CAPath and relevant test (#4982)
* Add support of setting CAPath and relevant test

* Renaming macro and update when will it get define
2023-09-29 09:32:47 -07:00
Anton Kolesnyk
ec220be784
Shorten build-time paths when building in vcpkg (#4977)
* Shorten build-time paths when building in vcpkg

* if-guard

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-25 09:30:00 -07:00
Larry Osterman
5f579513c2
Enable partial reads on EventHubs. (#4950)
* Added eventhubs test collateral to create and destroy eventhubs namespaces and eventhubs; Added peek message functionality to AMQP

* Use HTTP to talk to management APIs instead of az cli
2023-09-21 15:36:54 -07:00
Larry Osterman
f561b97ddb
Disable dockerfile scanning in CI (#4967) 2023-09-19 16:53:34 -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
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
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