Commit Graph

2652 Commits

Author SHA1 Message Date
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
Azure SDK Bot
402f4ed94e
Change prod maintenance day. Fix stress watcher deploy (#4989)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-09-26 18:22:10 -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
4b155b5a72
Update vcpkg SHA (#4986)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-25 13:36:29 -07:00
Azure SDK Bot
744450472d
Sync eng/common directory with azure-sdk-tools for PR 6919 (#4988)
* Add autorest-preview pipeline

* Add emitternpminstall

* Always install

* Use shorter leg name

* Add short circuiting to emitter install

* Use language matrix function

* Don't look for subfolders in the matrix package folders

* Revert unnecessary eng/common changes

* Rewrite GetPullRequestUrl to Get-BuildSourceDescription

* Remove alias from Invoke-LoggedCommand

* Use invoke-expression instead of shelling out

* Add better job splitting

* Replace Folder with Directory

---------

Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-09-25 12:35:11 -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
Azure SDK Bot
e8b968fea0
Sync eng/common directory with azure-sdk-tools for PR 7002 (#4984)
* Add LockDeletionForDays parameter to set PodDisruptionBudget and cleanup job

* Use matrix for parallel tests. PDB improvements+docs.

* Fix kubectl namespace context preservation on login

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-09-22 17:36:39 -04: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
Daniel Jurek
c9ae5632e3
vcpkg asset cache configuration forward slash (#4972) 2023-09-20 09:17:59 -07:00
Larry Osterman
f561b97ddb
Disable dockerfile scanning in CI (#4967) 2023-09-19 16:53:34 -07:00
Daniel Jurek
04409f28df
Add X_VCPKG_ASSET_SOURCES to vcpkg cache configuration (#4824)
* Add X_VCPKG_ASSET_SOURCES to vcpkg cache configuration

* Prefix with quesiton mark

* Remove question mark

* add --debug

* /,?

* x-azurl

* Remove --debug

* Test no binary cache

* Clear

* Ensure ending of X_VCPKG_ASSET_SOURCES

* Include secrets

* Undo some investigation

* + _SECRET

* Revert testing-related changes
2023-09-19 18:54:20 +00: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
f04b7164eb
Serilaize with depth (#4960)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-09-18 10:43:30 -07:00
Larry Osterman
526143d69d
Updated ApiView tool to version 0.10.0 (#4959) 2023-09-15 16:51:43 -07:00
Azure SDK Bot
27919d0f91
update proxy version (#4958)
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2023-09-15 13:27:32 -07: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
Azure SDK Bot
309cab82a0
Sync eng/common directory with azure-sdk-tools for PR 6895 (#4948)
* Add legacy moniker migration logic

* Add functionality from Java testing

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-09-13 13:28:58 -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
9d97c40d3f
Sync eng/common directory with azure-sdk-tools repository (#4937) 2023-09-11 16:10:01 +00:00
Azure SDK Bot
329eda3114
Increment package version after release of azure-core-amqp (#4933) 2023-09-07 16:05:12 -07:00
Azure SDK Bot
129a36dbc9
Sync eng/common directory with azure-sdk-tools for PR 6903 (#4926)
* fixes

* ongoing

* ongoing

* add top-level throw/catches showing exception info

* fix handling of cases when there is 1 link and when there is no RetryAfter.Delta

* handle lack of Exception.Headers property

* handle gracefully obtaining status code from $_.Exception.InnerException.ErrorCode

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-09-07 14:12:30 -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
Azure SDK Bot
468742224b
Check for DocsMsPackagesAllValid before running validation step (#4916)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-08-28 21:54:57 -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
Azure SDK Bot
80b6fc6022
Fail fast on variable conflicts with subscription config (#4915)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-08-25 15:22:14 -04:00
Azure SDK Bot
dd23631119
Use emitter-package-lock.json and @local feed view (#4910)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-08-23 16:33:32 -07:00
Azure SDK Bot
97845b77eb
Sync eng/common directory with azure-sdk-tools for PR 6632 (#4912)
* Docs Onboarding 2 - Add eng/common changes

* Dictionary Syntax

* Remove $UpdatePackageMetadata, it can be handled in other places

* Set exit code to 0 on success. The last executable to run (pip or docker or other) may be passed through

* Add optional _DocsOnboardingOrdinal sorting to work around onboarding sequence problems

* Update-DocsMsPackages2.ps1 -> Update-DocsMsPackages.ps1

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-08-23 14:53:33 -07:00