Commit Graph

2002 Commits

Author SHA1 Message Date
Larry Osterman
2bf0d38236
Updated attestation SDK to remove ServiceVersion extensible enumeration (#3799)
Jeff has pointed out that the current practice in the SDK of having a ServiceVersion which contains the current API versions of the service (for instance:

```c++
  class ServiceVersion final {
  public:
    explicit ServiceVersion(std::string version) : m_version(std::move(version)) {}
    AZ_STORAGE_QUEUES_DLLEXPORT const static ServiceVersion V2018_03_28;
    AZ_STORAGE_QUEUES_DLLEXPORT const static ServiceVersion V2020_10_01;
  };
)

```
Has a problem because the `ServiceVersion` construct has an implication that each of the `ServiceVersion` values listed is fully supported by the SDK.

The reality is that the SDK client team only tests the most recent API version listed in the SDK (the value which is the default version listed in the `ServiceClient` constructor).

How do we resolve this issue?

There are a few possible solutions that we’ve explored:
1)	Test all the API versions listed in the `ServiceVersion` enumeration.
2)	Remove the unsupported values from the `ServiceVersion` enumeration.
3)	Remove the `ServiceVersion` enumeration
4)	Remove the ability to set the API version at all.

Each of these solutions has some fairly significant drawbacks.

1)	Test all the API versions listed.
The core problem with this is that the SDK team is small and adding tests to support every possible API version is going to be prohibitively expensive.
2)	Remove the unsupported values from the `ServiceVersion` enumeration.
This is a breaking change and it means that moving to a new API version requires a breaking change to the SDK, even if the changes between API versions is strictly additive.
3)	Remove the ServiceVersion enumeration.
This is also a breaking change for shipping SDKs (specifically KeyVault and Storage Queues). However, it is a one-time breaking change and we don’t have evidence of customers actually using the feature.
4)	Remove the ability to set the API version at all.
Having *some* mechanism to set the API version is an important “escape hatch” which will allow customers to specify a specific API version even if that API version is not fully supported.

After discussing this a LOT, [@Ahson Khan](mailto:ahkha@microsoft.com), [@Rick Winter](mailto:Rick.Winter@microsoft.com), [@Jeffrey Richter](mailto:jeffreyr@microsoft.com), [@George Arama](mailto:George.Arama@microsoft.com), and [@Larry Osterman](mailto:Larry.Osterman@microsoft.com) came to the conclusion that we should probably take option #3, but leave the ClientOptions.Version value as a std::string.
2022-07-06 09:29:55 -07:00
JinmingHu
cb1c35eb77
add const qualifiers for CreateBatch() (#3800) 2022-07-06 15:43:09 +08:00
Azure SDK Bot
803dfb5938
Update mgmt toc structure and modify the service readme (#3798)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-07-05 14:31:13 -07:00
Azure SDK Bot
fd3b8d2207
Enable verify-samples to handle multiple service directories (#3793)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2022-07-05 09:02:50 -07:00
JinmingHu
9aeefefbbc
Blob batch improvement (#3790) 2022-07-01 07:19:27 +00:00
Azure SDK Bot
e7e7db6d79
Increment package version after release of azure-identity (#3787) 2022-06-30 18:03:15 -07:00
Azure SDK Bot
570e406ffa
Increment version for core-tracing-opentelemetry release (#3786) 2022-07-01 01:02:58 +00:00
Azure SDK Bot
55a2f3b440
Increment package version after release of azure-core (#3789) 2022-07-01 00:26:13 +00:00
Anton Kolesnyk
498d930868
Update version for Core release (#3788)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-30 23:21:38 +00:00
Anton Kolesnyk
fa295fd9d6
Azure Core Services July Release (#3785)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-30 14:57:17 -07:00
Anton Kolesnyk
ee36dd3abb
OpenTelemetry ApiView fix (#3784) 2022-06-30 21:19:11 +00:00
JinmingHu
dc04b2410e
Azure Storage Blob Batch (#3776) 2022-06-30 18:07:01 +08:00
Larry Osterman
38b07749dc
Removed internal types from OpenTelemetry API surface; removed default parameters from OpenTelemetry API surface. (#3762)
* Removed internal references from public headers


* Updated changelog files

* Updated DistributedTracing.md to reflect Factory construction of Azure::Core::Tracing::OpenTelemetry::OpenTelemetryProvider type

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2022-06-29 21:39:56 -07:00
Azure SDK Bot
3d62767b5e
Sync eng/common directory with azure-sdk-tools for PR 3491 (#3781)
* stress test script and docs migration from test to pg cluster

* comments for stress-test-deployment-lib script

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-06-29 16:52:10 -07:00
Azure SDK Bot
6ab413955c
Sync eng/common directory with azure-sdk-tools for PR 3510 (#3778)
* Update verify-readme to take a single or multiple paths

* chance ScanPaths to a comma delimited list and coalesce ScanPath/ScanPaths into a single variable for the script

* VS Code was nice enough to add an extra single quote when adding a quote to the end of the line'

* Capture ScanPaths.Split into an array so we don't have to call Split again

Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2022-06-28 15:52:10 -07:00
Azure SDK Bot
2093f4ef81
Fail if the emulator doesn't start (#3777)
We had continueOnError set to true so if the emulator failed to start we would still try to run the tests which all fail but take a long time to run.  The timeout for this step is about 10mins of trying so that should be enough time and so we also don't really need another retry step.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-06-28 14:18:57 -07:00
Ben Broderick Phillips
1715a288d3
Add auto apiview review creation (#3763)
* Add create api auto review step

* Continue on api view upload failure

* Add comment explaining ast generation in api view script
2022-06-28 15:54:51 -04:00
Ronnie Geraghty
905be469e2
[CODEOWNERS] Update .github owners (#3774)
Added myself to the CodeOwners for .github dir as I will be helping @jsquire with GitHub CXP on this repo.
2022-06-28 09:02:36 -04:00
Larry Osterman
6d102d09ae
Fixed typo in LibcurlTransportAdapter.md (#3768) 2022-06-24 12:45:10 -07:00
Azure SDK Bot
98d4502d3a
Sync eng/common directory with azure-sdk-tools for PR 3481 (#3764)
* Support local addons path override in stress test deployment

* Support username based deployId in local stress deployment

* Support WhatIf in stress infrastructure provision script

* Simplify stress user detection

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Run helm plugin add with helper

* Add WhatIf support to ps module install helper function

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-06-24 11:23:53 -07:00
Ben Broderick Phillips
e3dd52a649
Revert "Override live test location default to westus (#3696)" (#3761)
This reverts commit d4192609d5.
2022-06-21 20:45:15 -04:00
George Arama
3f0c570007
Perf test for certs (#3729)
* one commit to rule them all

* main merge

* error

* main merge

* error

* main merge

* error

* main merge

* error

* example of perf test

* remove file

* create certs and keys in post setup, use to run the test

* PR comments
2022-06-21 15:46:08 -07:00
Azure SDK Bot
8c5dec33be
Use westus as default region in test resource deployments (#3759)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-06-21 09:41:39 -04:00
Azure SDK Bot
3174833951
Fix Bug in Resource Ref Verifier (#3758)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-06-20 13:53:26 -07:00
Anton Kolesnyk
5f575c32fa
ManagedIdentityCredential: Add support for AppServiceV2019 (#3734)
* ManagedIdentityCredential: Add support for AppServiceV2019

* Attempt to create 2019 before 2017

* Changelog update

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-20 11:55:37 -07:00
Ahson Khan
fd40343011
Update identity codeowners (#3744) 2022-06-18 00:33:15 +00:00
Azure SDK Bot
61636bba41
Add ResourceType parameter - Selects live test or perf test resources (#3740)
Co-authored-by: Mike Harder <mharder@microsoft.com>
2022-06-16 22:19:21 -07:00
Ahson Khan
de6ed1da38
Add missing license header to http_sanitizer source file (#3739) 2022-06-16 19:59:07 +00:00
Anton Kolesnyk
82c77b0251
ApiView command line generation script (#3711)
* ApiView command line generation script

* Strongly typed parameters

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2022-06-16 12:45:39 -07:00
Rick Winter
f7a7d3e045
Update DistributedTracing.md (#3715)
Fix typo
2022-06-16 12:44:37 -07:00
Azure SDK Bot
1d9f44bc4e
Increment version for keyvault releases (#3719)
* Increment package version after release of azure-security-keyvault-certificates

* Increment package version after release of azure-security-keyvault-secrets
2022-06-16 12:43:37 -07:00
Anton Kolesnyk
dfe9a2be1f
InputSanitizer: rename to HttpSanitizer, remove static member (#3736)
* InputSanitizer => HttpSanitizer, remove static

* Update cpp

* Clang format

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-15 11:18:23 -07:00
Azure SDK Bot
e2c1e219ce
ensure conditions all work properly in the case of a previous error (#3732)
Co-authored-by: Scott Beddall <scbedd@microsoft.com>
2022-06-14 14:50:46 -07:00
Azure SDK Bot
9529b008c4
Sync eng/common directory with azure-sdk-tools for PR 3386 (#3733)
* Update the order of remarks and examples to align with docs.ms

* change all occurance

* Update class.tmpl.partial

Co-authored-by: sizhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-06-14 10:47:25 -07:00
Azure SDK Bot
164a2d6a9a
Sync eng/common directory with azure-sdk-tools for PR 3267 (#3655)
* Use seperate scripts

* address comments.

* do compare and update

* save on the service level readme

* have the helper for reuse function

* remove mgmt table

* changes

* fix

* no return on error

* return if no contents

* Address comments

* change the table

* address wes comments.

* address wes comments.

* address more comments.

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-06-14 08:36:00 -07:00
Azure SDK Bot
a0f9a2d25f
Sync eng/common directory with azure-sdk-tools for PR 3433 (#3731)
* add condition

* divide line

Co-authored-by: Mariana Rios Flores <mariari@microsoft.com>
2022-06-13 14:57:17 -07:00
Anton Kolesnyk
b36403a018
Include pi-version to default list of unredacted query params for logging (#3730)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-10 17:17:37 -07:00
Anton Kolesnyk
6aac5aba17
Make sample service an object library (#3728)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-08 16:25:45 -07:00
Larry Osterman
99f45a5f18
Enable Distributed Tracing for Attestation SDK client. (#3706)
* Implement tracing for Attestation and Template services

* Pipeline no longer requires service name if opting into distributed tracing; enable tracing in attestation service

* Generate user-agent header from request activity policy

* Added test to catch the redacted header regression

* Updated documentation to reflect API surface changes
2022-06-08 11:40:56 -07:00
Azure SDK Bot
97923459cd
Increment package version after release of azure-security-attestation (#3720) 2022-06-08 10:01:15 -07:00
Azure SDK Bot
42e284dc14
Increment package version after release of azure-security-attestation (#3717) 2022-06-08 09:40:58 -07:00
Azure SDK Bot
49500f1b79
Increment package version after release of azure-core-tracing-opentelemetry (#3727) 2022-06-08 08:41:34 +00:00
Larry Osterman
ef58a37658
Updated changelog (#3726) 2022-06-08 00:32:14 -07:00
Victor Vazquez
f4bbfaa7da
[EngSys] Get Vcpkg automatically (#3614)
* get vcpkg automatically
2022-06-07 18:45:50 -07:00
Azure SDK Bot
3b9d526a26
Increment version for storage releases (#3713)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs
2022-06-08 09:08:35 +08:00
Azure SDK Bot
1a39c8c4ce
Increment package version after release of azure-identity (#3721) 2022-06-07 16:54:00 -07:00
Anton Kolesnyk
f391e45bc1
OpenTelemetry vcpkg fixes (#3716)
* OpenTelemetry vcpkg fixes

* Update ci.yml

* Drop version >= from project-level vcpkg

* find_package only supports numeric versions

* include(AzureBuildTargetForCI)

* Do not build as Windows/UWP DLL

* Docs and package dependencies

* Update condition

* Move condition down

* Move more under condition

* Rephrase condition

* Try hack for CI that won't affect vcpkg

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-07 14:40:27 -07:00
Anton Kolesnyk
15f897c4e9
Identity 1.3.0 Release (#3685)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-07 14:15:06 -07:00
Larry Osterman
7e8065a2e3
Removed empty sections in changelog (#3718) 2022-06-07 11:39:48 -07:00
George Arama
473e0201c5
Changelog updates for secrets and certificates (#3714)
* Changelog updates for secrets and certificates

* Update package versions
2022-06-07 11:09:46 -07:00