Commit Graph

2206 Commits

Author SHA1 Message Date
JinmingHu
bbd5da5bcd
Reapply "Update sorting algorithm used in storage shared-key signing (#5547)" (#5560) (#5563)
This reverts commit 886f01def1.
2024-04-23 16:18:32 +08:00
Azure SDK Bot
394b5748dc
Increment version for storage releases (#5562)
* 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
2024-04-23 07:12:34 +00:00
microzchang
886f01def1
Revert "Update sorting algorithm used in storage shared-key signing (#5547)" (#5560)
This reverts commit b6e04fd035.
2024-04-23 12:06:45 +08:00
JinmingHu
b6e04fd035
Update sorting algorithm used in storage shared-key signing (#5547) 2024-04-22 11:34:42 +08:00
microzchang
1d50b1283e
Storage April Release (#5531) 2024-04-16 17:21:50 +08:00
microzchang
698490f175
Storage/Enable Test Cases(Resolve Issue #5524) (#5532)
* Enable Test Cases

* Fix Customer provided key
2024-04-16 03:28:01 +00:00
George Arama
9f30ba4a9a
one more set of patterns (#5535)
* one more set of patterns

* tr

* ads

* add signed Oid

* clangs
2024-04-15 13:25:10 -07:00
George Arama
067d6acb3b
fix testName (#5527)
* fix testName

* trigger
2024-04-12 22:57:13 +00:00
Larry Osterman
3f6543d2a9
Fixed test deadlock in processor test (#5513)
* Fixed test deadlock in processor test

* Updated changelog; Changed fatal to error in test logs

* 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>
2024-04-12 13:34:20 -07:00
George Arama
e2f0e0a50b
Liveonly tests , the cert was in another form in both of them… (#5520)
* disable download tests , the cert was in another form in both of them, cleanup the recording

* tre

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 12:10:03 -07:00
George Arama
c7f2767d6a
headers sanitize (#5518)
* headers sanitize

* test-proxy client id

* Liveonly storage tests and a couple of disables

* typo

* cover

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 12:09:52 -07:00
WangWeiLin-MV
e148d89745
Update sdk vcpkg portfile with VERSION and HEAD_REF (#5516)
* Update vcpkg portfile.cmake of sdk to add parameter HEAD_REF

* Update vcpkg portfile.cmake of sdk to use variable VERSION

* Update eng\scripts\Initialize-VcpkgRelease.ps1 regex for quoted REF

* Re-trigger CI

* Revert unnecessary change

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 10:25:19 -07:00
Azure SDK Bot
a665523af3
Increment package version after release of azure-data-tables (#5505)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 10:22:59 -07:00
Azure SDK Bot
cfebe4057e
Increment version for keyvault releases (#5504)
* Increment package version after release of azure-security-keyvault-keys

* Increment package version after release of azure-security-keyvault-secrets

* Increment package version after release of azure-security-keyvault-certificates
2024-04-12 10:22:18 -07:00
WangWeiLin-MV
17c3cb50f1
Fix azure-data-tables Config.cmake.in dependency on WIN32 (#5514) 2024-04-11 11:10:22 -07:00
Azure SDK Bot
a74ecaad3d
Increment package version after release of azure-core (#5511) 2024-04-10 15:55:55 -07:00
Azure SDK Bot
26192fbf85
Increment package version after release of azure-messaging-eventhubs (#5506) 2024-04-10 11:20:07 -07:00
Anton Kolesnyk
145f6dbdb6
Fixed libcurl connection pool to use Connection response header values (#5473)
* Fixed libcurl connection pool to use `Connection` response header values

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-10 08:01:29 -07:00
microzchang
936f618d3d
Storage/STG93 Features (#5508)
* Storage/STG92 List Handles Include Client Name (#5088) (#5134) (#5236)

* List Handles Include Client Name

* add test reocrd

* update test record

* update record

* Storage/STG93 ACL response header support and UPN request headers (#5245)

* add acl response support

* add user principal name

* test record

* fix comments

* Storage/STG93 Add Rename Support to List Ranges (#5266)

* add rename support

* reset swagger url

* update

* add nfs support (#5267)

* Storage/STG93 Add UserPrincipalName support for GetAccessControlList (#5287)

* add upn support for get acl

* add test record

* Revert "add nfs support (#5267)" (#5288)

This reverts commit fc043e1db752fc0c60260d9f7a6807a563e6caa0.

* fix archboard review comments (#5367)

* Storage/STG93 Update documents for UPN (#5391)

* update documentation for upn.

* Remove en-us in link.

* update test cases

* update test record

* update test case due to server behavior change.

* format
2024-04-10 15:52:18 +08:00
Azure SDK Bot
7f2f593b30
Increment version for core releases (#5503)
* Increment package version after release of azure-core-amqp

* Increment package version after release of azure-core
2024-04-09 14:39:30 -07:00
Larry Osterman
4092c2ee6f
April 2024 Eventhubs Release. (#5500)
* Updated changelog after release

* Added dependency on azure core and updated amqp dependency

* Added azure core find_package to config.cmake.in

* Removed explicit core dependency for now
2024-04-09 13:22:48 -07:00
Anton Kolesnyk
b1d1763d91
Update more dependency versions (#5502)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-09 12:27:33 -07:00
Larry Osterman
68d88eb80a
Updated azure core dependency to the new 1.11.3 version (#5501) 2024-04-09 18:58:17 +00:00
George Arama
bd8c5f81ed
Tables April Release (#5489)
* quick update

* sdfsds

* Update sdk/tables/azure-data-tables/CHANGELOG.md

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-04-09 11:11:03 -07:00
George Arama
f9b65ac9c8
Key Vault April Release (#5488)
* Kv changelogs

* changelogs
2024-04-09 11:08:08 -07:00
Ahson Khan
0bdec1e3c9
Core April GA Release (#5491)
* Azure Core 1.12.0 April Release

* Update Core's CHANGELOG.md

* Update Core's package_version.hpp

* Update AMQPCHANGELOG.md

* Update ci.tests.yml

* Re-enable coverage checks

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2024-04-09 10:45:25 -07:00
George Arama
abeb4e797b
tables transactions samples (#5496)
* transactions samples

* cleanup sample, update readme
2024-04-08 12:28:04 -07:00
Ahson Khan
da1513977a
Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight this is internal only and reduce chances of collision. (#5419)
* Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where they are not needed.

* Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight this is internal only and reduce chances of collision.

* Update remaining macro names and add comments.

* Revert rename change which was using BUILD_TESTING cmake flag in source.
2024-04-05 12:05:04 -07:00
George Arama
8c34ec83ab
Api comments (#5481)
* transactions and some other comments

* accouunt sas resource type

* ghf

* Get/set part/row key

* accessors

* jyugdg

* done, need add samples

* typo

* clangs, typo

* fsd

* assets

* no keys, need investigate test recordings

* doc fix

* data types reflected in properties

* dswa

* wqeq

* remove shared key policy and switch to secondary

* dsdsa

* PR comments

* das

* clang
2024-04-05 09:48:59 -07:00
Larry Osterman
acb6d97f7c
Disable otel warnings in shared_functions.hpp (#5494) 2024-04-04 17:20:38 -07:00
Ahson Khan
ce6b3bd124
Strengthen the client_secret sanitizer regex (#5474)
* Strengthen the client_secret sanitizer regex

* clang-format update
2024-04-04 15:04:15 -07:00
Anton Kolesnyk
d62b0d6669
Revert "Move the connection back to the connection pool when HTTP error 404 was received (#5308)" (#5472)
* Revert "Move the connection back to the connection pool when HTTP error 404 was received (#5308)"

This reverts commit 79cc06d004.

* Changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-02 17:08:34 -07:00
Scott Addie
aa2e83cac5
Update Azure AD Learn links in Identity (#5469) 2024-03-27 12:54:14 -05:00
George Arama
7cf80b5cf7
HSM Tests to run from recordings only (#5463)
* mroe quotes

* dssf

* qweqeqw

* record only

* remove HSM from live platform

* clangs

* weqw

* spellcheck

* oopsie daisy

* trigger storage

* undo changes

* part 2

* update tests

* ffds

* gfdg

* fgdgd

* skip tests

* clangs
2024-03-25 15:35:56 -07:00
George Arama
8973c6c9fb
Get entity (#5461)
* mroe quotes

* dssf

* getentity

* tests

* re

* assets working now

* re

* fgf

* clang

* url encode

* update comment
2024-03-20 13:09:03 -07:00
George Arama
ebe61a5982
Get entity api (#5456)
* mroe quotes

* dssf

* getentity

* tests

* re

* assets working now

* re

* fgf

* clang

* url encode
2024-03-19 12:27:44 -07:00
George Arama
84e4a81947
Api view comments (#5408)
* mroe quotes

* dssf

* listTables -> queryTables

* move create/delete to the tableservice

* one more batch

* small refactor, added default data types

* oops

* clangs

* table sas builder

* sas test

* cspell

* add more test

* cspell

* hjhjh

* clang

* rename table-> tables

* clang

* partition and row key

* clang why?

* constructors, update tests

* IT WORKSSSSS

* PR comments

* wqe

* ewr

* enum operator

* clang

* dsaada

* sada

* assets.json

* clang

* Update sdk/tables/azure-data-tables/inc/azure/data/tables/enum_operators.hpp

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

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

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

* the = enums

* assert and remove empty

* compact string tests

* clangs

* complement

* azureSasCredentials

* PR cpmments

* some extra

* clang 11

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-03-15 14:30:45 -07:00
Rick Winter
9fbfd5784c
Match doc comments to method names (#5440)
* Match doc comments to method names

Fixes #4683
2024-03-15 20:42:28 +00:00
George Arama
caa7ad7652
Troublesooting guides 4742 (#5448)
* mroe quotes

* dssf

* troubleshooting guides

* PR comments
2024-03-15 11:36:24 -07:00
George Arama
a733518306
Keyvault regen (#5445)
* mroe quotes

* dssf

* update to api version 7.5 , added field to key properties , regen tests

* update hsm location

* fds
2024-03-15 11:00:41 -07:00
microzchang
fdacc99cb7
update records (#5447) 2024-03-14 14:01:50 +08:00
Larry Osterman
d7bd238560
Added blocking Open for message sender (#5374)
* Added blocking Open for message sender

* Blocking message sender open; added AZURE_NODISCARD to help ensure APIs that are likely to fail have their returns checked

* Update eventhubs stress test to use DefaultAzureCredential instead of ClientSecretCredential; Fixed stress test to correctly request client parameters; Removed hard coded resource name from producer client test

* Pull request feedback with link events; renamed AZURE_NODISCARD to _azure_NODISCARD

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-03-13 12:44:41 -07:00
Rick Winter
cdff274e14
Update README.md (#5439)
* Update README.md

Fixes #4636
2024-03-12 22:21:11 +00:00
Scott Beddall
3658df22db
1ES Template Refactor (#5441)
* All eng/ folder changes necessary to enable 1es-templates for the azure-sdk-for-cpp
* Includes updates to all ci.yml files to reflect new syntax requirements from 1es-template changes to archetype-sdk-client
2024-03-12 15:20:45 -07:00
Ronnie Geraghty
a0559c53f7
Fixing links in Event Hubs README.md (#5393)
* Fixing links in Event Hubs README.md

Came across these links pointing to material for the Go libraries and updated them to the C++ materials.

* Updating links for event hubs checkpoint library
2024-03-08 16:14:50 -08:00
Ahson Khan
7025e232bd
Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where they are not needed. (#5418) 2024-03-07 16:56:06 -08:00
Anton Kolesnyk
aad2299dcd
Revert commits related to _azure_BUILD_FOR_TESTING and _azure_*_FOR_TESTS (#5416)
* Revert "Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where (#5406)"

This reverts commit 2d8c940f55.

* Revert "Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight (#5390)"

This reverts commit 256c2df8b5.

* Revert "Use new macros in existing surface area, so that classes marked as final don't have virtual methods. (#5389)"

This reverts commit 3d7eaddb9d.

* Revert "For new surface area, classes marked as final should not have virtual methods. (#5331)"

This reverts commit ddd0f4bd07.

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-03-07 04:03:35 +00:00
Anton Kolesnyk
e4002aeff7
Fix warnings that block the Live CI pipeline (#5398)
* Fix warnings that block the Live CI pipeline

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-03-05 08:17:56 +00:00
Ahson Khan
2d8c940f55
Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where (#5406)
they are not needed.
2024-03-01 07:09:54 +00:00
Ahson Khan
256c2df8b5
Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight (#5390)
this is internal only and reduce chances of collision.
2024-03-01 05:45:36 +00:00
Ahson Khan
3d7eaddb9d
Use new macros in existing surface area, so that classes marked as final don't have virtual methods. (#5389)
* Use new macros in existing surface area, so that classes marked as final don't have virtual methods.

* Update doc comments.

* Use DOXYGEN_PREDEFINED to expand only the macros we want expanded.

* Add the compile definition for more projects.

* Address PR feedback.

* Make TestableTokenCache a friend class of TokenCache.
2024-02-29 20:48:12 -08:00
Morten Ofstad
93d8c12e4c
Fix use of namespace qualifiers that have not been explicitly introduced (#5371)
* Fix use of namespace qualifiers that have not been explicitly introduced.

* Format (sort usings alphabetically)

* Update CHANGELOG.md

* Update cspell.json

---------

Co-authored-by: Morten Ofstad <morten.ofstad@bluware.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-29 02:51:42 +00:00
Larry Osterman
c707769604
Updated tests to support -UserAuth test resources switch to enable non-corpnet access. (#5387)
* Updated tests to support -UserAuth test resources switch to enable non-corpnet access.

* Try setting sample environment variables in sample script pipeline
2024-02-28 01:36:54 +00:00
Richard Park
b655b0bd6d
Updating to use the common image (#5385) 2024-02-27 13:10:55 -08:00
George Arama
093db5a49c
QFE Identity playback (#5377)
* mroe quotes

* dssf

* pipeline first take

* 2 out of 3

* clangs

* newline

* shoot

* cache 0/1
2024-02-26 11:50:04 -08:00
JinmingHu
a448c94052
Parse storage error code for HEAD requests (#5372)
* Error code for HEAD requests

* clang-format

* Recording
2024-02-26 10:11:12 +08:00
Anton Kolesnyk
00b30e3d86
AMQP: do not use scope.MinimumExpiration when getting SAS Token (#5376)
* AMQP: do not use scope.MinimumExpiration when getting SAS Token

* Remove unused parameters

* Match style

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-23 15:11:40 -08:00
George Arama
300e518eed
Identity perf tests part 1 (#5373)
* mroe quotes

* dssf

* pipeline first take

* 2 out of 3

* clangs

* newline
2024-02-23 13:03:12 -08:00
Larry Osterman
aadd25dcd1
Reworked EventHubs Stress test to export information to OpenTelemetry (#5370)
# Significant rewrite of Eventhubs stress test.

## Cleaned up implementation of EventHubs stress/reliability test

* Reworked stress test layout to isolate stress test implementation from stress deployment elements.
* Added ability of stress test scenarios to be independently configured.
* Rewrote stress test app to be closer to the Go equivalent app.
* added apparg.hpp for command line parsing
* added scope_guard to test for scope_guard implementation.

## Added close methods to Consumer client and Producer client.

They don't do much currently, but will eventually.

## AI Generated summary of pull request

This pull request primarily focuses on the `azure-core-amqp` and `azure-messaging-eventhubs` packages, introducing changes to improve code efficiency and maintainability. The most significant changes include the removal of unnecessary `#include` directives in various files in the `azure-core-amqp` package, the addition of `Close` methods in `consumer_client.hpp` and `producer_client.hpp` in the `azure-messaging-eventhubs` package, and modifications to the `cgmanifest.json` files in the `azure-messaging-eventhubs-checkpointstore-blob` and `azure-messaging-eventhubs` directories.

Removal of unnecessary `#include` directives:

* [`sdk/core/azure-core-amqp/src/amqp/claim_based_security.cpp`](diffhunk://#diff-5acd7049cef5955540cc4253f264207e5a7d2701612e148c736ca5781e69d224L12-L14): Removed unnecessary `#include` directives for `iostream` and `sstream`.
* [`sdk/core/azure-core-amqp/src/amqp/connection.cpp`](diffhunk://#diff-fc3a6e5b11f1254c4fd344bcd1846c83ad4ca8e2a8a23b7db0657c2846f43937L18): Removed unnecessary `#include` directive for `azure/core/url.hpp`.
* [`sdk/core/azure-core-amqp/src/amqp/connection_string_credential.cpp`](diffhunk://#diff-14cf130dc5f0b51f698cca57724b733591d48fad0e5beb4745fc1cd78cbdaa72L7-L20): Removed unnecessary `#include` directives for `azure/core/amqp/internal/models/amqp_protocol.hpp`, `azure_c_shared_utility/azure_base64.h`, `azure_c_shared_utility/buffer_.h`, and `iostream`.
* [`sdk/core/azure-core-amqp/src/amqp/link.cpp`](diffhunk://#diff-249643f29ca2c0b1226e9d22ce90be83c77105f55221a1092fb605a5c7ead356L10-L21): Removed unnecessary `#include` directives for `azure/core/amqp/internal/message_receiver.hpp`, `azure/core/amqp/internal/message_sender.hpp`, `azure/core/amqp/internal/models/messaging_values.hpp`, and `azure_uamqp_c/amqp_definitions_sequence_no.h`.
* [`sdk/core/azure-core-amqp/src/amqp/management.cpp`](diffhunk://#diff-b03544340ff264961e045648c2c274dde9fa7ceb33b07b0c41a708128e28d40fL6-L16): Removed unnecessary `#include` directives for `azure/core/amqp/internal/connection.hpp`, `azure/core/amqp/internal/session.hpp`, and `azure_uamqp_c/amqp_management.h`.

Addition of `Close` methods:

* [`sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/consumer_client.hpp`](diffhunk://#diff-fad00d7bec0f12ef5e7d36387e866ab5291c6f5f57568845dfabe3f23320c899R152-R159): Added a `Close` method to the `ConsumerClient` class.
* [`sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/producer_client.hpp`](diffhunk://#diff-cba1fbd1d786b763c27123a2284476e1cc8093753abe6e3a6af9ca78aae4d594R96-R113): Added a `Close` method to the `ProducerClient` class.

Modification of `cgmanifest.json` files:

* [`sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/cgmanifest.json`](diffhunk://#diff-465b096c14ed240a8f14180f16e0924e3df69bd1c95934dca435c0b3c97468a0R1-R37): Added a new `cgmanifest.json` file specifying development dependencies.
* [`sdk/eventhubs/azure-messaging-eventhubs/cgmanifest.json`](diffhunk://#diff-f3e86a1f7be148625ac80b2151504461f3faff4d0564db588c6df9d0d9eb0986R1-R48): Added a new `cgmanifest.json` file specifying development dependencies.
* 

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-02-22 20:41:18 -08:00
George Arama
1bb65192d4
Identity perf tests (#5329)
* mroe quotes

* dssf

* azure identity tests

* comments

* comments
2024-02-21 12:05:43 -08:00
George Arama
8ef815dc6a
Install test proxy and enable all tests (#5365)
* mroe quotes

* dssf

* compact the tests in the proper folder

* 2 more tests

* eqwq

* enabled all except http

* endline

* fhg

* oops

* new teests

* update

* update defaults

* hdg
2024-02-21 10:58:35 -08:00
Azure SDK Bot
c0c7f88e65
Increment package version after release of azure-core (#5366) 2024-02-16 17:13:53 -08:00
George Arama
2a9934a596
Core perf tests consolidation (#5363)
* mroe quotes

* dssf

* compact the tests in the proper folder

* 2 more tests

* eqwq

* enabled all except http

* endline
2024-02-16 15:15:36 -08:00
Anton Kolesnyk
46fe50212c
Azure Core 1.11.2 Release (#5360)
* Azure Core 1.11.2 Release

* Update release date to 2/16

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-16 15:14:13 -08:00
George Arama
73bb6c63c1
Winhttp flaky test (#5356)
* mroe quotes

* dssf

* attempt 2

* updated test and logs

* clang

* update PR

* changelog update

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

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

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

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

---------

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-15 15:55:03 -08:00
Anton Kolesnyk
9271d13542
Guard against Windows' min/max macros (#5348)
* Guard against Windows' min/max macros

* Add NOMINMAX and LEAN_AND_MEAN + clang-format

* clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-13 13:41:34 -08:00
Azure SDK Bot
31692518fe
Increment package version after release of azure-identity (#5343) 2024-02-12 19:37:18 +00:00
Ahson Khan
ddd0f4bd07
For new surface area, classes marked as final should not have virtual methods. (#5331)
* Classes marked as final should not have virtual methods.

(cherry picked from commit 7413384c111b73be448f78527a08a544fd1f6ec6)

* Update changelog.

* Address PR feedback and use named-macro.

* Only use the macro for testing_build final classes.

* Add a new compile definition _azure_TESTING_BUILD.

* Add test as a friend class and put the test in a Identity specific test
namespace.

* Remove the macro for final expansion since doxygen struggles with it.

* Address PR feedback, add ifdef guard around _azure_VIRTUAL_FOR_TESTS.
2024-02-09 17:46:04 -08:00
Ahson Khan
78a3239006
Azure Identity February Release (#5307)
* Azure Identity February Release

* Update CHANGELOG.md release date to Thurs

* Update release date.

* Remove empty CL sections.
2024-02-10 00:40:38 +00:00
Ahson Khan
3b231e5850
Enable proactive renewal of Managed Identity tokens. (#5336)
* Enable proactive renewal of Managed Identity tokens.

* Address PR feedback - move helpers to anonymous namespace and renames.

* Address local variable rename suggestion.
2024-02-09 16:01:44 -08:00
Larry Osterman
0229d0a3b3
Multithreaded support for Eventhubs management family of APIs (#5315)
* Enabled multithreaded calls to eventhubs management APIs

* Added partition client properties tests, removed unused variables in consumer client tests

* Restructured properties APIs in eventhubs to simplify producer client and consumer client implementations

* Fixed test crash in LinkAttachDetach AMQP test

* Added test cases for management authn failures

* Don't emit body contents in AmqpMessage insertion operator

* Don't take numeric value parameters by value to ostream insertion operators

* Updated eventhubs dependency to match reality

* Added value based tests for enumeration stream inserters
2024-02-09 14:22:28 -08:00
George Arama
50cc742865
Json test (#5324)
* mroe quotes

* dssf

* sqa

* Json test p1

* qw

* re

* pr build

* cast part 2

* ew

* jj
2024-02-07 12:20:52 -08:00
Azure SDK Bot
43f6c1d5a7
Increment package version after release of azure-messaging-eventhubs (#5327) 2024-02-06 20:34:56 +00:00
Larry Osterman
44cb7df563
Eventhubs February Release (#5305) 2024-02-06 09:04:33 -08:00
Anton Kolesnyk
025c06715c
Retroactively update AMQP's changelog (#5321)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-03 04:34:45 +00:00
Anton Kolesnyk
111ec80478
Update Azure Core changelog after #5308 (#5317)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-02 23:32:07 +00:00
Mykhailo Chelnokov
79cc06d004
Move the connection back to the connection pool when HTTP error 404 was received (#5308)
* Move the connection back to the connection pool when HTTP error 404 was received

* Use symbolic name for 404 status code
2024-02-02 14:10:58 -08:00
Azure SDK Bot
807b6c946a
Increment version for core releases (#5316)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-amqp
2024-02-02 22:06:37 +00:00
George Arama
1689a00df9
Pipeline tests (#5310)
* mroe quotes

* dssf

* sqa

* pipeline and policies

* PR comments

* cast int
2024-02-02 13:03:38 -08:00
George Arama
4f6cc88004
Http Transport perf test (#5309)
* mroe quotes

* dssf

* sqa

* first identity test no caching

* cache no cache

* cleanup cache shortcircuit

* some cleanup

* http test 1

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* dfs

* clang

* http get post curl winhttp

* Update sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp

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

* rtter

* PR comments

* PT comments

* clang

* http transport test

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* dfs

* clang

* http get post curl winhttp

* rtter

* PR comments

* PT comments

* clang

* http transport test

* PR comments

* clangs

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-02 11:28:26 -08:00
Anton Kolesnyk
901bd298e4
Azure Core February Releases (#5312)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-02 10:23:58 -08:00
Larry Osterman
092d6bcc3b
Fixed nightly CI pipeline build error (#5311)
* Fixed nightly CI pipeline build error

* printf format string errors
2024-02-02 10:10:09 -08:00
Anton Kolesnyk
9b79205b68
Azure Core February Releases (#5304)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-01 12:54:29 -08:00
George Arama
070c7e94db
Step 1 in adding (more)perf tests for Core and Identity. (#5300)
* mroe quotes

* dssf

* sqa

* first identity test no caching

* cache no cache

* cleanup cache shortcircuit

* some cleanup

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* clang

* Update sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp

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

* PR comments

* PT comments

* clang

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-01 10:47:02 -08:00
Larry Osterman
c2f189695c
Removed dead script (#5306) 2024-01-31 23:13:08 +00:00
Larry Osterman
27aab786c2
AMQP Session related fixes. (#5299)
* Implemented connection handle table to fix half closed session problem

* Correctly handle session begin after connection is open

* Split out amqp settle mode to separate header; added test coverage for AMQP Transfer and Detach performatives

* Use absolute path for settle mode header
2024-01-30 15:32:58 -08:00
Larry Osterman
47bf038701
Ported uAMQP bug fix to C++ repo (#5291) 2024-01-24 13:34:11 -08:00
Larry Osterman
76c82f0b9e
Fixed bug in Eventhubs live tests (#5290)
* Fixed bug in Eventhubs live tests

* switched back to DAC for tests
2024-01-24 21:33:40 +00:00
Larry Osterman
f109f63f4e
Synchronous AMQP Close (#5281)
* First cut at blocking close

* Removed synchronous ifdefs
2024-01-18 12:54:23 -08:00
Larry Osterman
32e774f2ed
Changelog entry for winhttp bug fix (#5277)
* Changelog entry for winhttp bug fix

* Updated changelog with further suggestions
2024-01-17 13:21:13 -08:00
Larry Osterman
3bff843704
Attempt to diagnose WinHTTP CI pipeline errors. (#5259)
* Fixes for CVE-2024-21646

* Added note about this fix to CHANGELOG.md

* Tweaks to investigate CI pipeline error
2024-01-17 12:02:42 -08:00
Azure SDK Bot
4383383283
Increment version for keyvault releases (#5276)
* Increment package version after release of azure-security-keyvault-keys

* Increment package version after release of azure-security-keyvault-certificates

* Increment package version after release of azure-security-keyvault-secrets

* Increment package version after release of azure-security-keyvault-administration
2024-01-17 01:20:46 +00:00
Azure SDK Bot
2a4292f3ac
Increment package version after release of azure-data-tables (#5274) 2024-01-16 23:20:21 +00:00
Anton Kolesnyk
1d22b9bc57
Fix broken link (#5273)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-16 22:27:05 +00:00
Anton Kolesnyk
09b3f81ff2
Tables January Release (#5239)
* Tables January Release

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-16 13:10:25 -08:00
Anton Kolesnyk
68644be709
Key Vault January Releases (#5241)
* Key Vault January Releases

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-16 13:09:48 -08:00
George Arama
0f73c3958c
last quotes (#5271)
* mroe quotes

* dssf

* sqa
2024-01-16 12:31:47 -08:00
George Arama
b43d53bb23
fix export (#5270)
* fix export

* naming

* quotes

* more quotes
2024-01-16 12:01:31 -08:00
George Arama
677d54aff3
Larry's comments (#5261)
* Larry's comments

* clang

* revenge of the clang
2024-01-12 17:21:13 -08:00
Anton Kolesnyk
b0217106e4
Remove 'using namespace' from header files (#5260)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-12 14:42:30 -08:00
George Arama
20d9364a3d
Storage tables implementation (#5137)
* dss

* first pass at a client and tests

* constructors work

* working request, need to fix the response parsing

* basic tests working for service client

* refactored the constructors

* testproxy and tests

* format file

* got client and one API working

* list working

* all apis recorded

* new assets.json

* assets.json regen

* format json

* adding word to cspell

* fix build issues

* fix one more break

* typo

* clangs

* one more issue

* more fixezez

* regen recordings

* try again

* clangs

* clangs again

* new assets

* new test proxy

* regen tests based on new merge

* hmmm

* restore

* add debug env for test proxy

* resync cmake presets from main

* gor get and set working

* get stats

* table client and create

* delete

* get/set acls

* list tables

* some cleanup

* Create /update/merge/delete

* upsert

* query entities

* generated tests

* clangs

* some fixes

* some more errors

* cspells

* got transaction API working

* transactions working , need to parse response

* get data out of the response

* clangs

* batch1

* regen tests

* part 2

* batch3

* batch4

* clangs

* regen tests

* regen tests

* try again

* live only

* added some more tests for the transaction body

* small refactor for tests

* oops

* some oter update

* darn includes

* sddfsd

* erorr fix

* key clients

* sas

* small cleanup

* All tests passing

* test recordings

* clangs

* missing ENV for test

* attempt1

* retry

* couple recordings

* regen some tests

* clangs

* again

* again

* comments

* comments

* headers and footers

* some cleanjup

* Move folders step1

* revert assets and test resources in storage

* revert to main

* cspell

* readme

* comments

* revert ci.yml

* liveonly test

* clangs

* camke

* ci2

* try again

* fdssfs

* fdsfsd

* some cleanup

* dasda

* dsdsds

* asda

* assets

* comments

* a few more bits and pieces

* some other updates for cspell

* typo

* more docs

* spell

* another doc error

* clangs docs

* docs

* test cov

* dasdas

* hg

* stress test

* cspell

* Update sdk/storage/azure-storage-common/test/ut/CMakeLists.txt

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

* Update sdk/storage/azure-storage-common/test/ut/shared_key_policy_lite_test.cpp

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

* Update sdk/tables/azure-data-tables/CHANGELOG.md

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

* Update sdk/tables/azure-data-tables/CMakeLists.txt

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

* Update sdk/tables/azure-data-tables/test/stress/scenarios-matrix.yaml

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

* Update sdk/tables/azure-data-tables/test/stress/Dockerfile

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

* PR comments

* respurces cleanup

* cleanup 2

* respurce fix

* revddrt

* weqq

* oops

* try again

* Update sdk/tables/azure-data-tables/vcpkg/vcpkg.json

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

* try

* test fix

* samples

* readmes

* readmes

* readmes

* api view settings

* qualify friends

* try

* moving usings

* refactor for API View tool

* some more

* clangs

* Update sdk/tables/README.md

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

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* Update sdk/core/azure-core/src/http/transport_policy.cpp

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

* Update sdk/tables/azure-data-tables/inc/azure/data/tables/rest_client.hpp

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

* Update sdk/tables/azure-data-tables/CHANGELOG.md

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

* Update sdk/tables/azure-data-tables/test/ut/CMakeLists.txt

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

* Update sdk/tables/azure-data-tables/src/rest_client.cpp

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

* some comments

* comments

* comments part N

* clang

* try now

* clang

* comments

* update file names

* update test to check for the final signature

* ccc

* rename shared key policy lite

* cleanup some includes

* add a couple more tests

* small update

* clang

* increase test limits

* xml transition

* service_version_policy

* shared creds and key policy lite

* switch to secondary policy

* code done

* remove last storage vestiges

* put back some code

* readme/changelog

* Update sdk/tables/azure-data-tables/src/serializers.cpp

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* Add the shared key policy for Larry

* Larry comments

* curlybracify the initializers

* Update sdk/core/azure-core-xml/inc/azure/core/xml/dll_import_export.hpp

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* Update sdk/core/azure-core-xml/vcpkg.json

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* Update sdk/tables/azure-data-tables/inc/azure/data/tables.hpp

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* Rick's comments one more namespace change for serializers

* whiteline

* typo

* oops

* includes and clangs

* cleanup

* jhfjdhjfd

* hjkjdhf

* daas

* Anton's comments

* clang

* revert some changes

* fdss

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

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

* everything works

* clangs and vcpkg test

* test remove azure-core-xml

* vcpkg json

* remove the code

* merge main

* saa

* wqw

* last comments

* clang

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-01-12 11:04:43 -08:00
Azure SDK Bot
9d3870fe8d
Increment package version after release of azure-identity (#5257) 2024-01-11 15:47:56 -08:00
Azure SDK Bot
01e3e05efa
Increment package version after release of azure-messaging-eventhubs (#5256) 2024-01-11 15:44:54 -08:00
Azure SDK Bot
2e343802cd
Increment version for core releases (#5255)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-amqp
2024-01-11 15:43:19 -08:00
Anton Kolesnyk
23af33186e
Identity January Release (#5242)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-11 13:31:07 -08:00
Anton Kolesnyk
03de1fbaa4
Core-Core (GA) + Core-AMQP (Beta) + Event Hubs (Beta) January Releases (#5243)
* Core-Core + Core-AMQP + Event Hubs January Releases

* Update CHANGELOG.md

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-01-11 13:30:42 -08:00
Larry Osterman
23ecf87ecb
Fixes for CVE-2024-21646 (#5251)
* Fixes for CVE-2024-21646

* Added note about this fix to CHANGELOG.md
2024-01-11 11:33:25 -08:00
Ahson Khan
dece333752
Add a remark in CAInfo doc comment mentioning it is Linux only. (#5248) 2024-01-11 19:23:35 +00:00
George Arama
e69559f45e
Options UT (#5249)
* Options Http Enum add

* spaces

* options UT

* remove Options

* Revert "remove Options"

This reverts commit 0da5d2c1f57133c22723208d6feb2c925e7f8103.
2024-01-11 10:11:01 -08:00
Ahson Khan
88242f3cf1
Make the CAPath option available on all OSes and change to throw on runtime on non-linux. (#5207)
* Make the CAPath option available on all OSes and change to throw on
runtime on non-linux.

* Address PR feedback, update test, and let curl fail on unsupported
platforms.
2024-01-10 17:16:50 -08:00
George Arama
7eeb60960c
Options Http Enum add to Core (#5246)
* Options Http Enum add

* spaces
2024-01-10 12:26:37 -08:00
Ben Broderick Phillips
e5e675440b
Move squid image to registry mirror (#5218)
* Move squid image to registry mirror

* Add comments regarding private registry
2023-12-19 18:32:01 +00:00
Anton Kolesnyk
e328665588
Update cspell words and exclusions (#5231)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-12-15 17:41:11 -08:00
Anton Kolesnyk
a419a63bc0
AzureCliCredential to treat datetime without TZ info as local time. (#5179)
* AzureCliCredential to treat datetime without TZ info as local time.

* Fix spelling

* CLang-format

* Parse as local by appending TimeZoneOffsetAsString()

* Fix bad merge

* PR Feedback

* Merge

* Merge

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-12-15 17:39:58 -08:00
Anton Kolesnyk
15716714a4
Fix spelling errors (#5230)
* Fix spelling errors

* Exclusion list

* More updates for the exclusion list

* Even more updates for the exclusion list

* And even more updates for the exclusion list

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-12-15 14:17:59 -08:00
Anton Kolesnyk
eba15a9ff4
AzureCliCredential: add support for expires_on field. (#5180)
* AzureCliCredential: add support for xpires_on field.

* Remove unused variables

* Remove unused variables

* Clang-format

* Update changelog

* PR feedback

* Update unit test expectation

* PR Feedback

* Add comment

* Remove extra line

* PR feedback

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-12-15 01:13:09 +00:00
Theodore Tsirpanis
2dbaa8a37d
Disable default features in libxml2. (#5221)
* Disable default features in libxml2.
We don't seem to make use of any of them in `xml_wrapper.cpp`.

* Update changelog.

* Added "Acknowledgments" section to the Storage Changelog.

* "Identity" => "Storage" (my bad)

* Apply suggestions from code review

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-12-12 10:02:29 -08:00
JinmingHu
af6d5dcd07
fix typo in storage (#5220) 2023-12-05 12:50:11 +08:00
Larry Osterman
faeb832f8a
Initial cut at snippet generation tool. Also updated KeyVault Secrets readme to use snippets as a working proof of concept. (#5213)
* First cut at snippet generation - markdown files only for now.

* Removed trailing blank lines in updated file

* Use snippet generator for keyvault snippets
2023-11-30 19:40:30 +00:00
JinmingHu
a82d25302c
Revert "Storage/STG92 List Handles Include Client Name (#5088) (#5134)" (#5204)
This reverts commit 761f2586ad.
2023-11-30 12:47:21 +08:00
Anton Kolesnyk
c6fecca8e7
Remove unnecessary condition (#5210)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 12:52:45 -08:00
Anton Kolesnyk
79022a36ec
Identity changelog update - PR feedback (#5211)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 12:52:22 -08:00
Anton Kolesnyk
1b3b872b10
Move Azure::Core::_internal::UniqueHandleHelper to _detail (#5177)
* Move Azure::Core::_internal::UniqueHandleHelper to _detail

* Linux build fix

* More Linux fixes and clang-format

* Get back the @cond

* Revert one more @cond removal

* Linux fix: include necessary header

* Undo unnecessary clang-format

* Clang-format, again

* Trigger CI

* Trigger CI

* amqps, amqpvalue

* Update cspell.json

* Update curl.cpp

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 08:39:04 -08:00
Anton Kolesnyk
73399d7325
Change samples to use DefaultAzureCredential (#5183)
* Change samples to use `DefaultAzureCredential`

* Missed instance

* Oaep

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-29 16:07:40 +00:00
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
JinmingHu
d3a252db11
Use the same client-request-id for retry requests (#5182) 2023-11-29 06:21:10 +00:00
JinmingHu
71cee91d1b
fix typos in storage SDK (#5208) 2023-11-29 12:39:22 +08: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
b997e76e0d
ClientCertificateCredential: better exception message for unsupported file extensions (#5197)
* Cert Cred: better exception message for unsupported file extensions

* fix spelling

* Make it better

* Empty path case

* adfs

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 12:19:05 -08:00
Anton Kolesnyk
bce301a841
Include error details into Identity exceptions (#5184)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 11:20:44 -08: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
2da2d0d8cc
Remove some usages of internal APIs in samples (#5186)
* Remove some usages of internal APIs in samples

* std::cerr => std::cout

* Two errors would actually go to stderr

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-28 01:15:14 -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
JinmingHu
74f6896a4f
replace internal functions in storage sample code (#5196) 2023-11-27 12:50:23 +08:00
JinmingHu
4a32d7266c
update storage NOTICE.txt (#5159) 2023-11-22 09:50:04 +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
microzchang
761f2586ad
Storage/STG92 List Handles Include Client Name (#5088) (#5134)
* List Handles Include Client Name

* add test reocrd

* update test record

* update record
2023-11-17 10:50:58 +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
microzchang
2aafab4605
fix ci failure (#5160) 2023-11-13 03:47:31 +00:00
JinmingHu
61f2f836dc
update storage cgmanifest.json (#5136) 2023-11-13 09:52:44 +08:00
Azure SDK Bot
4db4630ee2
Increment package version after release of azure-identity (#5157) 2023-11-11 06:54:30 +00:00
Anton Kolesnyk
41b3df3dd3
Azure Identity November Release (#5102)
* Azure Identity November Release

* Re-order and move fix to new feature.

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-11-10 21:32:38 -08: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
Ahson Khan
3b3795f3df
Revert order of credentials used within the DefaultAzureCredential (#5156)
back to what it was at previous GA.
2023-11-10 20:15:31 -08:00
Ahson Khan
d2419de28d
Add logging to WorkloadIdentityCredential to help with debugging. (#5153)
* Add logging to  to help with debugging.

* Fixup tests.

* Address PR feedback and fix up log messages to be more accurate.
2023-11-10 19:32:49 -08:00
Ahson Khan
083d52aefc
Fix typo in storage faq.md (#5139) 2023-11-10 04:42:13 +00:00
Ahson Khan
b082d54656
Update perf test secret_credential_test.hpp to be more generic to make modifications easier (#5150) 2023-11-10 03:54:05 +00:00
Ahson Khan
7632d67584
Re-use the selected credential that works for each subsequent request in DefaultAzureCredential by caching the chosen credential per instance. (#5142)
* Re-use the selected credential that works for each subsequent request in
DefaultAzureCredential by caching the chosen credential per instance.

* Update test to include per-instance caching validation.

* Addresss PR feedback and fix clang error on atomic assignment.

* Fix typo in CL and drop ifdef testing_build to investigate clang build
issue.

* Add double-colon in front of friend class.
2023-11-09 19:33:26 -08: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
Anton Kolesnyk
4997ec8a9f
Drop non-essential line from Storage FAQ (#5140)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-08 20:43:17 -08:00
Anton Kolesnyk
030ad9a6ca
Unify all markup C++ code sections to use 'cpp' (#5138)
* Unify all markup C++ code sections to use 'cpp'

* Update broken link

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-08 20:42:59 -08:00
Ahson Khan
f816bb194b
Harden checks for the tenant ID across all inputs. (#5106)
* Harden checks for the tenant ID across all inputs.

* Fix clang formatting.

* Fixup unit tests.

* Fixup test comments.
2023-11-09 01:57:00 +00:00
Heath Stewart
a9c492a8b3
Move MHSM to region with more availability (#5122)
* Move MHSM to region with more availability

Resolves #4613

* Trigger CI re-run

* Undo the trigger

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-11-08 11:44:57 -08:00
Azure SDK Bot
e94719131d
Increment version for storage releases (#5135)
* 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-11-08 05:35:18 +00:00
Anton Kolesnyk
37060211b5
Fix malformed URL in KeyVault (#5129)
* Fix malformed URL in KeyVault

* Update changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-07 21:33:05 -08:00
microzchang
6cae0c71fa
Storage November Release (#5096)
* Storage November Release

* update queue version
2023-11-08 10:16:47 +08:00
Azure SDK Bot
902f8a1651
Increment package version after release of azure-messaging-eventhubs (#5121) 2023-11-07 19:20:47 +00: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
52831a833a
Azure Messaging EventHubs November Release (#5101)
* Azure Messaging EventHubs November Release

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-07 03:02:03 -08: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
JinmingHu
f534decbf3
Update faq.md (#5113) 2023-11-03 12:47:30 +08: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
Anton Kolesnyk
986bbb3a59
Remove old warning suppression from Storage (#5109)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-02 20:25:40 -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
Ahson Khan
82de63902d
Create separate lists of characters that are allowed within a tenant id vs scopes in AzureCliCredential. (#5086)
* Create separate lists of characters that are allowed within a tenant id vs scopes in AzureCliCredential.

* Update test to catch the particular exception we expect to be thrown for
tenant id but not for scopes.

* Address PR feedback.
2023-11-02 02:41:50 +00:00
Ahson Khan
677a1da61e
Disallow space character when validating tenant id and scopes as input for AzureCliCredential. (#5085)
* Disallow space character when validating tenant id and scopes as input
for AzureCliCredential.

* Address PR feedback.
2023-11-01 19:04:26 -07:00
Ben Broderick Phillips
bc2bb8da0b
Bump min tls version to 1.2 for storage live test storage account (#5098) 2023-11-01 20:14:39 +00:00
JinmingHu
acf8926bb3
Update faq.md (#5103) 2023-11-01 03:03:09 +00:00
JinmingHu
747e38fc7b
Add storage FAQ (#5067) 2023-11-01 10:26:04 +08: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
15d8133a21
Prefix interal macros with _azure_ to 'remove' them from the public area (#5064)
* Prefix interal macros with _azure_ to 'remove' them from the public area

* PR feedback

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-10-25 22:55:21 -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
microzchang
1acf0ba6df
Storage/Added x-ms-file-request-intent to PutRangeFromUrl (#5042)
* Added x-ms-file-request-itent to PutRangeFromUrl

* update test

* update test case
2023-10-20 15:05:50 +08:00
George Arama
860240fec9
Add retry for the restore operation in sample (#5036)
* just to checkup

* try again

* bvj

* fudge brownies

* added retry for restore

* clang
2023-10-19 11:55:28 -07: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
Scott Addie
1fc481b5cc
Replace AAD references in azure-identity (#5041)
* Replace AAD references in azure-identity

* Update cspell config

* Update cspell config again

* Fix code formatting

* Replace one more occurrence
2023-10-18 11:26:16 -05: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
e7b9b0aaaf
Increment version for storage releases (#5040)
* 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-10-17 04:54:17 +00:00
microzchang
6b66a9d189
Storage October release (#5038)
* Storage October release

* fix spell

* update release date

* update changelog
2023-10-17 02:45:48 +00:00
microzchang
1e013e5fe9
Storage/STG91 Move audience out of models namespace and add help function for audience (#5026)
* move audience out of models namespace

* Update sdk/storage/azure-storage-queues/inc/azure/storage/queues/queue_options.hpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* Update sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_options.hpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* Update sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_options.hpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* add help func

---------

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2023-10-16 12:12:09 +08:00
Azure SDK Bot
50e3a0e8fb
Increment package version after release of azure-identity (#5034) 2023-10-12 20:43:08 +00:00
Anton Kolesnyk
e89625e85c
Azure Identity October Release (#5010)
* Azure Identity October Releases

* Change release to beta.3.

* Update the identity CL.`

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-10-12 12:44:03 -07:00
George Arama
25dc8ca24d
Implement purge check intead of blind timeout (#5021)
* implement purge check intead of blind timeput

* typo

* timeout
2023-10-11 08:38:29 -07:00
Azure SDK Bot
426abfe530
Increment version for eventhubs releases (#5024)
* Increment package version after release of azure-messaging-eventhubs

* Increment package version after release of azure-messaging-eventhubs-checkpointstore-blob
2023-10-10 20:31:11 +00:00
Anton Kolesnyk
60a805770d
Azure Event Hubs October Releases (#5005)
* Azure Event Hubs October Releases

* Update sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md

* Update sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md

* Update sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CHANGELOG.md

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

* Update CHANGELOG.md

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
2023-10-10 11:33:09 -07:00
microzchang
a4a24fbd39
change test record tenant id (#5023) 2023-10-10 12:23:50 +08:00
microzchang
f0b4b948cb
Storage/STG91 Renamed PublicAudience to DefaultAudience (#5022)
* Change Audience

* change PublicAudience to DefaultAudience
2023-10-10 12:23:33 +08:00
microzchang
504d9f2753
Storage/STG91 Audience remove scope (#5019)
* Audience remove scope

* update record

* update test

* Update sdk/storage/azure-storage-common/src/storage_credential.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

---------

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2023-10-08 22:56:04 +08: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
b5c3c4971d
Do not throw an exception during AzureCliCredential construction, but rather delay it on GetToken() call. (#4979)
* Do not throw an exception during `AzureCliCredential` construction, but rather delay it on GetToken() call.

* Update az cli unsafe chars test.
2023-10-05 20:31:29 +00: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
Ahson Khan
81d95c951f
Change the default value for the authority host option to be read from the environment variable first. (#4980)
* Change the default option for authority host to be read from the environment first.

* Update changelog.

* Update doc comment and refer to the env var correctly.

* Update doc comments and add unit tests.
2023-10-05 11:14:22 -07:00
Anton Kolesnyk
be478542fb
Vcpkg-related fixes for checkpointstore-blob (#4998)
* checkpointstore-blob vcpkg dependency fix

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update FolderList.cmake
2023-10-03 00:35:16 +00:00
Anton Kolesnyk
7bf42a30c3
Fix azure-messaging-eventhubscheckpointstore-blob build manifest (#4996)
* Fix azure-messaging-eventhubscheckpointstore-blob build manifest

* Update vcpkg.json
2023-09-29 20:52:43 +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
Larry Osterman
daa36f1650
Renamed blob checkpointstore to long name (#4990)
* Renamed blob checkpointstore to long name

* Moved unit tests into ut directory

* Re-ran recordings
2023-09-27 10:16:15 -07:00
Anton Kolesnyk
ebf958df23
Shorten the names of some long name headers (#4987)
* Shorten the names of some long name headers

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-26 09:29:27 -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
9d3fb20bb7
Added ApiView for blob checkpoint store (#4981) 2023-09-22 10:25:59 -07:00
Larry Osterman
336c8c02fb
Removed storage dependency from eventhubs (#4954)
* Removed storage dependency from eventhubs

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-09-22 08:06:58 -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
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
Richard Park
3e5af5508f
Readme spelling mistake: bahavior -> behavior (#4863)
* bahavior -> behavior

* Update transport_adapter_base_test.hpp to fix the typo

* Update blob_base_test.hpp to fix the typo

* Update cspell.json to exclude bahavior is a valid word in the dictionary

---------

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
2023-08-09 15:36:13 -07:00
Azure SDK Bot
eb3074d5c0
Increment package version after release of azure-storage-files-shares (#4862) 2023-08-09 15:26:26 +08:00
JinmingHu
98c2e319dc
add sanitizer for x-ms-copy-source-authorization header (#4851) 2023-08-09 11:29:37 +08:00
JinmingHu
950a39e3f1
Enable some storage test cases (#4856)
* fix container name

* test last access time

* recording

* playback only test cases

* legalhold
2023-08-09 11:28:51 +08:00
Azure SDK Bot
56c9f47c16
Increment version for storage releases (#4855)
* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake
2023-08-09 10:18:00 +08:00
Anton Kolesnyk
4428baf59e
Azure Event Hubs August Release (#4838)
* Azure Event Hubs August Release

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-08-08 16:30:57 -07:00
Larry Osterman
4d580a7fe3
Added azure_test resources to test-resources.json (#4858)
* Added azure_test resources to test-resources.json

* Add RBAC roles to created eventhubs instances

* Eventhubs samples read from the start of the partition, not the end.
2023-08-08 23:29:56 +00:00
Larry Osterman
15a8a7b0da
Updated test-resources to add eventhubs host name (#4854) 2023-08-08 11:35:56 -07:00
microzchang
0d26f247ec
Update GA Package Version (#4849) 2023-08-08 11:02:38 +08:00
microzchang
6375570d62
Update Beta Package Version (#4848) 2023-08-08 09:32:57 +08:00
Azure SDK Bot
660180ffd2
Increment version for core releases (#4846)
* Increment package version after release of azure-core-amqp

* Increment package version after release of azure-core
2023-08-04 16:06:59 -07:00
Anton Kolesnyk
3391610edb
Fix EventHubs samples warnings (#4844)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-08-04 14:25:17 -07:00
Anton Kolesnyk
35ee073d91
Azure Core August Releases (#4837)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-08-04 12:22:22 -07:00
Larry Osterman
9fbc3856ad
Create EventHubs stress and performance test basics. (#4818)
* Scaffolding for eventhubs perf test

* Added eventhubs 'stress' test, which is really a totally broken perf test'

* Added stress test skeleton

* EventHubs Stress test is an actual eventhubs test now

* EventHubs throws exceptions on producer client failure. Rationalized error reporting from AMQP - message sender and receiver generate the same errors.

* Rationalize AMQP error results; throw exceptions on eventhubs errors

* Fixed amqp management test; added HTTP status code for management triggered exceptions

* Event Data binary no longer takes an AMQP binary; Preliminary readme.md for eventhubs (still many go constructs in the readme)

* Created the first eventhubs samples - they don't do much but they work

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* API Review feedback

* Added isTransient flag to eventhubs exception based on Java implementation

* Updated AMQP changelog to reflect recent changes

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-08-04 11:40:30 -07:00
JinmingHu
f206df6b66
Fix bugs in List operations (#4830) 2023-08-02 19:11:40 +08:00
microzchang
5f3fe6fa5e
Storage/STG90 features (#4827)
* Storage/STG90-Data Lake Pagination Delete (#4816)

* add pagination delete

* remove id and secret

* fix spell

* add clientConfiguartion to all clients

* fix doxygen doc

* fix conversation

* add unit tests

* fix cspell

* fix clang format

* update test code

* update test case

* update record

* Storage/Archive to Cold Tier Rehydration (#4825)

* add RehydratePendingToCold

* add unit test

* update changelog.md

* update record
2023-07-31 21:21:53 +08:00
JinmingHu
1634d5825e
Add test cases to cover paged response APIs (#4828)
* add more test case for paged response APIs

* recordings
2023-07-31 07:12:51 +00:00
JinmingHu
c8693fe8b3
fix list files and dirs bug (#4826)
* fix list files and dirs bug

* test case

* recording
2023-07-31 13:19:54 +08:00
Rick Winter
db328891d5
Support root cert validation on CURL (#4821)
* Only CURL >= 7.44 supports root cert validation

* Update Changelog
2023-07-28 09:39:05 -07:00
JinmingHu
e77eff6ab4
Storage test cases improvements (#4819)
* soft delete test

* enable setTierCold

* IsConnectionReuse in record-playback mode

* DISABLED_UploadPagesFromUriCrc64AccessCondition

* update recording assets

* ClientSecretCredentialWorks works in record-playback mode

* ServiceContainerSasPermissions and ServiceBlobSasPermissions work in record-playback mode

* BlobServiceClientTest.UserDelegationKey works in record-playback mode

* update recordings

* f
2023-07-27 11:25:21 +08:00
JinmingHu
ce85f6f12c
improve test proxy sanitizers (#4796) 2023-07-25 12:52:50 +08:00
JinmingHu
9293a6da77
blob test cases improvements (#4806)
* move not-working test assertion to a separate case

* enable AppendBlobClientTest.HighThroughputAppendBlob_LIVEONLY_

* remove incorrect comment
2023-07-24 11:20:37 +08:00
Anton Kolesnyk
0a175f2c83
Clean up version requirements (#4814)
* Clean up version requirements

* Revert curl back to 7.44

* Update vcpkg.json

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-20 16:03:57 -07:00
Anton Kolesnyk
7d52c01d18
Fix eventhubs manifest (#4812)
* Move eventhubs under messaging

* Update cmakefile

* cspell

* Do it the other way

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-20 12:27:23 -07:00