Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
8226174
Reword the curl proxy fix changelog entry. (#3606)
ahsonkhan May 2, 2022
0494d24
Add Emma Zhu as code owner (#3605)
Jinming-Hu May 2, 2022
2c3d73e
Short circuit out of msdocs publish if no package locations are speci…
azure-sdk May 3, 2022
f1de8d2
sdk/core: Reimplement Md5OpenSSL using EVP API (#3609)
jepio May 3, 2022
a2d975c
API Review Feedback for Attestation SDK (#3543)
LarryOsterman May 3, 2022
f8ced21
Remove version pin for OpenSSL (#3610)
LarryOsterman May 3, 2022
e010b91
Update the version tool to the latest (#3616)
azure-sdk May 4, 2022
b9fb5ef
Get rid of warnings in nullable.hpp (#3617)
Jinming-Hu May 4, 2022
d317e06
cl (#3613)
vhvb1989 May 5, 2022
d3dbd56
Update pipeline-generator version (#3623)
azure-sdk May 5, 2022
44af947
Prepare Attestation SDK for May Release. (#3625)
LarryOsterman May 5, 2022
c2ce38d
Increment package version after release of azure-core (#3624)
azure-sdk May 6, 2022
d96216f
Update CODEOWNERS (#3628)
RickWinter May 9, 2022
7c34ab0
Fix identity samples running in CI (#3632)
antkmsft May 11, 2022
a4a6efb
azure identity may 2022 release (#3615)
vhvb1989 May 11, 2022
bfaf27c
Increment package version after release of azure-identity (#3637)
azure-sdk May 11, 2022
7c2682b
Removed uwp-x86 from platform matrix. (#3629)
LarryOsterman May 11, 2022
c0e92e4
Increment package version after release of azure-security-attestation…
azure-sdk May 11, 2022
0e68b12
Update readme for -pre and -post TestResource scripts (#3645)
azure-sdk May 11, 2022
fc2f7c5
Fixed a bug where text of XML element cannot be empty. (#3643)
Jinming-Hu May 12, 2022
f4a5dbe
String parsing improvements to service directory resource names (#3644)
azure-sdk May 12, 2022
ca9a40b
Adding Acknowledgments (#3611)
vhvb1989 May 13, 2022
a43622b
Add skip variable for remove test resources to support debugging (#3648)
azure-sdk May 13, 2022
e65ea2f
Storage Blob Stg78 Features (#3650)
Jinming-Hu May 17, 2022
3ec224e
Clean up target_include_directories() (#3641)
antkmsft May 17, 2022
80cf3d0
Update all-inclusive headers, and CMakeFiles for including all header…
antkmsft May 18, 2022
593464c
Remove (#3657)
antkmsft May 20, 2022
f3e2f6f
Add Language product slug (#3665)
azure-sdk May 23, 2022
644ab3e
Sync eng/common directory with azure-sdk-tools for PR 3342 (#3664)
azure-sdk May 23, 2022
745091d
Split out attestation client factory into separate class (#3654)
LarryOsterman May 23, 2022
8ca08a1
Initial implementation of OpenTelemetry APIs. (#3561)
LarryOsterman May 23, 2022
9334863
storage unittest fix and improvement (#3667)
Jinming-Hu May 24, 2022
c755aca
Sync eng/common directory with azure-sdk-tools for PR 3362 (#3676)
azure-sdk May 25, 2022
a401ac9
Sync eng/common directory with azure-sdk-tools for PR 3378 (#3679)
azure-sdk May 26, 2022
855f000
Vcpkg sample (#3670)
gearama May 27, 2022
7c93854
Complete the initial implementation of OpenTelemetry (#3677)
LarryOsterman May 31, 2022
7115c05
Creadscan skips (#3671)
gearama May 31, 2022
0fd0267
Moved attestation factory back to static method on attestation class …
LarryOsterman Jun 1, 2022
ebe084b
OpenTelemetry API Review Feedback (#3687)
LarryOsterman Jun 2, 2022
6b903d0
Attestation 1.0.0 GA Release (#3693)
LarryOsterman Jun 2, 2022
3aa878e
Disable detached head warnings on sparse checkout to commit (#3680)
azure-sdk Jun 2, 2022
cad69e1
Remove samples with docker.io (#3621)
vhvb1989 Jun 2, 2022
48ef687
Fix issue where matrix replace was not using imported display names (…
azure-sdk Jun 2, 2022
78095ce
Additional OpenTelemetry Feedback... (#3691)
LarryOsterman Jun 3, 2022
bea1479
Added ability to create instance with pointer (#3698)
LarryOsterman Jun 3, 2022
d0853af
Core 1.7.0-beta.1 Release (#3684)
antkmsft Jun 3, 2022
3a26df2
Increment package version after release of azure-core (#3699)
azure-sdk Jun 3, 2022
ad2591b
Format vcpkg.json (#3701)
antkmsft Jun 3, 2022
19fcc97
Update README to list all the vcpkgs (#3704)
antkmsft Jun 3, 2022
8ec7a99
Removed version>= fields for openssl in vcpkg.json files (#3705)
LarryOsterman Jun 3, 2022
7574e73
Tab vcpkg publishing condition in to apply to the task (#3709)
danieljurek Jun 6, 2022
0886fa2
Storage June Release (#3686)
Jinming-Hu Jun 6, 2022
d419260
Override live test location default to westus (#3696)
benbp Jun 7, 2022
473e020
Changelog updates for secrets and certificates (#3714)
gearama Jun 7, 2022
7e8065a
Removed empty sections in changelog (#3718)
LarryOsterman Jun 7, 2022
15f897c
Identity 1.3.0 Release (#3685)
antkmsft Jun 7, 2022
f391e45
OpenTelemetry vcpkg fixes (#3716)
antkmsft Jun 7, 2022
1a39c8c
Increment package version after release of azure-identity (#3721)
azure-sdk Jun 7, 2022
3b9d526
Increment version for storage releases (#3713)
azure-sdk Jun 8, 2022
f4bbfaa
[EngSys] Get Vcpkg automatically (#3614)
vhvb1989 Jun 8, 2022
ef58a37
Updated changelog (#3726)
LarryOsterman Jun 8, 2022
49500f1
Increment package version after release of azure-core-tracing-opentel…
azure-sdk Jun 8, 2022
42e284d
Increment package version after release of azure-security-attestation…
azure-sdk Jun 8, 2022
9792345
Increment package version after release of azure-security-attestation…
azure-sdk Jun 8, 2022
99f45a5
Enable Distributed Tracing for Attestation SDK client. (#3706)
LarryOsterman Jun 8, 2022
6aac5ab
Make sample service an object library (#3728)
antkmsft Jun 8, 2022
b36403a
Include pi-version to default list of unredacted query params for lo…
antkmsft Jun 11, 2022
a0f9a2d
Sync eng/common directory with azure-sdk-tools for PR 3433 (#3731)
azure-sdk Jun 13, 2022
164a2d6
Sync eng/common directory with azure-sdk-tools for PR 3267 (#3655)
azure-sdk Jun 14, 2022
9529b00
Sync eng/common directory with azure-sdk-tools for PR 3386 (#3733)
azure-sdk Jun 14, 2022
e2c1e21
ensure conditions all work properly in the case of a previous error (…
azure-sdk Jun 14, 2022
dfe9a2b
InputSanitizer: rename to HttpSanitizer, remove static member (#3736)
antkmsft Jun 15, 2022
1d9f44b
Increment version for keyvault releases (#3719)
azure-sdk Jun 16, 2022
f7a7d3e
Update DistributedTracing.md (#3715)
RickWinter Jun 16, 2022
82c77b0
ApiView command line generation script (#3711)
antkmsft Jun 16, 2022
de6ed1d
Add missing license header to http_sanitizer source file (#3739)
ahsonkhan Jun 16, 2022
61636bb
Add ResourceType parameter - Selects live test or perf test resources…
azure-sdk Jun 17, 2022
fd40343
Update identity codeowners (#3744)
ahsonkhan Jun 18, 2022
4f82060
Merge branch 'main' into HEAD
Jinming-Hu Jun 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions .devcontainer/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions .devcontainer/devcontainer.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
/sdk/core/ @rickwinter @ahsonkhan @antkmsft @vhvb1989 @gearama @LarryOsterman

# PRLabel: %Azure.Identity
/sdk/identity/ @antkmsft @schaabs @ahsonkhan @rickwinter @vhvb1989 @gearama
/sdk/identity/ @antkmsft @schaabs @ahsonkhan @rickwinter @vhvb1989 @gearama @LarryOsterman

###########
# Client SDKs
###########

# PRLabel: %Attestation
/sdk/attestation/ @LarryOsterman @gkostal @anilba06 @kroshkina-ms
/sdk/attestation/ @LarryOsterman @gkostal @anilba06 @kroshkina-ms @ahmadmsft @rickwinter @ahsonkhan @antkmsft @vhvb1989 @gearama

# PRLabel: %KeyVault
/sdk/keyvault/ @vhvb1989 @gearama @antkmsft @rickwinter
Expand Down
6 changes: 6 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Dockerfile",
"*nlohmann-json*",
"eng/docs/api/assets/**/*",
"eng/CredScanSuppression.json",
"**/test/ut/recordings/*.json"
],
// * Unless configured otherwise, these words are not case sensitive
Expand All @@ -42,9 +43,11 @@
"cuse",
"CUSEUAP",
"DCMAKE",
"DDISABLE",
"deserializers",
"Deserializes",
"DFETCH",
"DMSVC",
"docfx",
"DPAPI",
"DRUN",
Expand Down Expand Up @@ -81,6 +84,7 @@
"ncus",
"Niels",
"nlohmann",
"nostd",
"noclean",
"NOCLOSE",
"NOCRLF",
Expand All @@ -89,6 +93,8 @@
"northcentralus",
"NTSTATUS",
"okhttp",
"opentelemetry",
"otel",
"PBYTE",
"pdbs",
"Piotrowski",
Expand Down
15 changes: 12 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,31 @@ if(MSVC_USE_STATIC_CRT AND MSVC)
#
# 5. We "replace with empty string" (i.e. remove) first, then add, so that '/MT'
# will be present (and present once) even if '/MD' was not.

message(STATUS "Configuring Static Runtime Library.")
if(${CMAKE_CXX_FLAGS} MATCHES ".*/MD.*")
string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MT")
endif()

if(${CMAKE_CXX_FLAGS_RELEASE} MATCHES ".*/MD.*")
string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")

endif()

if(${CMAKE_CXX_FLAGS_RELWITHDEBINFO} MATCHES ".*/MD.*")
string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT")
endif()

if(${CMAKE_CXX_FLAGS_MINSIZEREL} MATCHES ".*/MD.*")
string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MT")
endif()

if(${CMAKE_CXX_FLAGS_DEBUG} MATCHES ".*/MD.*")
string(REGEX REPLACE "/MDd" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
endif()
endif()

if(BUILD_TESTING)
Expand Down Expand Up @@ -103,6 +113,5 @@ add_subdirectory(sdk/storage)
add_subdirectory(sdk/template)

if(BUILD_SAMPLES)
add_subdirectory(samples/integration/vcpkg-keyvault)
add_subdirectory(samples/integration/vcpkg-all-smoke)
endif()
21 changes: 21 additions & 0 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
"name": "VCPKG_TARGET_TRIPLET",
"value": "x64-windows-static",
"type": "STRING"
},
{
"name": "MSVC_USE_STATIC_CRT",
"value": "True",
"type": "BOOL"
}

]
},
{
Expand All @@ -33,6 +39,11 @@
"name": "VCPKG_TARGET_TRIPLET",
"value": "x64-windows-static",
"type": "STRING"
},
{
"name": "MSVC_USE_STATIC_CRT",
"value": "True",
"type": "BOOL"
}
]
},
Expand All @@ -51,6 +62,11 @@
"name": "VCPKG_TARGET_TRIPLET",
"value": "x86-windows-static",
"type": "STRING"
},
{
"name": "MSVC_USE_STATIC_CRT",
"value": "True",
"type": "BOOL"
}
]
},
Expand All @@ -70,6 +86,11 @@
"value": "True",
"type": "BOOL"
},
{
"name": "MSVC_USE_STATIC_CRT",
"value": "True",
"type": "BOOL"
},
{
"name": "BUILD_TRANSPORT_CURL",
"value": "True",
Expand Down
64 changes: 32 additions & 32 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Azure SDK for C++ Contributing Guide
# Azure SDK for C++ Contributing Guide

Thank you for your interest in contributing to Azure SDK for C++.

Expand Down Expand Up @@ -39,9 +39,9 @@ Thank you for your interest in contributing to Azure SDK for C++.
- Contributor is using an e-mail address other than the primary GitHub address and wants that preserved in the history. Contributor must be willing to squash
the commits manually before acceptance.

## Developer Guide
# Developer Guide

### Codespaces
## Codespaces

Codespaces is new technology that allows you to use a container as your development environment. This repo provides a Codespaces container which is supported by both GitHub Codespaces and VS Code Codespaces.

Expand All @@ -50,54 +50,54 @@ Codespaces is new technology that allows you to use a container as your developm
1. From the Azure SDK GitHub repo, click on the "Code -> Open with Codespaces" button.
1. Open a Terminal. The development environment will be ready for you. Continue to [Building and Testing](https://github.com/Azure/azure-sdk-for-cpp/blob/main/CONTRIBUTING.md#building-and-testing).

#### VS Code Codespaces
### VS Code Codespaces

1. Install the [VS Code Remote Extension Pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack)
1. When you open the Azure SDK for C++ repo in VS Code, it will prompt you to open the project in the Dev Container. If it does not prompt you, then hit CTRL+P, and select "Remote-Containers: Open Folder in Container..."
1. Open a Terminal. The development environment will be ready for you. Continue to [Building and Testing](https://github.com/Azure/azure-sdk-for-cpp/blob/main/CONTRIBUTING.md#building-and-testing).

### Full Local Setup
## Full Local Setup

#### Pre-requisites
### Pre-requisites

##### CMake
#### CMake

CMake version 3.13 or higher is required to build these libraries. Download and install CMake from the project's
[website](https://cmake.org/download/).

##### Third Party Dependencies
### Third Party Dependencies

- curl
- libxml2
- clang-format (min version 10)
Azure SDK uses Vcpkg manifest mode to declare the [list of required 3rd party dependencies](https://github.com/Azure/azure-sdk-for-cpp/blob/main/vcpkg.json) for building the SDK service libraries. It will also get and set up Vcpkg automatically. **You can move on to [Building the project](#building-the-project)** and skip the next part if you are not interested in learning about alternatives for setting up dependencies.

Vcpkg can be used to install the Azure SDK for CPP dependencies into a specific folder on the system instead of globally installing them.
Follow [vcpkg install guide](https://github.com/microsoft/vcpkg#getting-started) to get vcpkg and install the following dependencies:
#### Customize the Vcpkg dependency integration

```sh
./vcpkg install curl libxml2
```

When using vcpkg, you can set the `VCPKG_ROOT` environment variable to the vcpkg Git repository folder. This would automatically set the CMake variable `CMAKE_TOOLCHAIN_FILE` for you, enabling the project to use any library installed with vcpkg.
If the CMake option _-DCMAKE_TOOLCHAIN_FILE=..._ is not defined to generate the project, the Azure SDK project will automatically get Vcpkg and link it to get its dependencies. You can use the next environment variables to change this behavior:

The Azure SDK for C++ uses [this vcpkg release version](https://github.com/Azure/azure-sdk-for-cpp/blob/main/eng/vcpkg-commit.txt) for continuous integration (CI) building and testing. Make sure to checkout this version when following the next steps for building and running the Azure SDK for C++. Using a newer vcpkg version might still work, however, if it is tested.

```sh
# Checking out vcpkg release version before installing dependencies
<center>

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
# Checkout the vcpkg commit from the vcpkg-commit.txt file (link above)
git checkout <vcpkg commit>
<table>
<tr>
<td>Environment Variable</td>
<td>Description</td>
</tr>
<tr>
<td>AZURE_SDK_DISABLE_AUTO_VCPKG</td>
<td>When defined, Vcpkg won't be automatically cloned and linked. Use this setting, for example, if your dependencies are installed on the system and you don't need to get them.</td>
</tr>
<tr>
<td>AZURE_SDK_VCPKG_COMMIT</td>
<td>This variable can set the git commit id to be used when automatically cloning Vcpkg.</td>
</tr>
<tr>
<td>VCPKG_ROOT</td>
<td>Use this variable to set an existing Vcpkg folder from your system to be linked for building. Use this, for example, when working with Vcpkg classic mode, to switch between different Vcpkg folders.</td>
</tr>
</table>

# build vcpkg (showing Linux command, see vcpkg getting started for Windows)
./bootstrap-vcpkg.sh
./vcpkg install curl libxml2
```
</center>

### Building and Testing

#### Building the project
## Building the project

Generate the CMake files and build as you would with any standard CMake project. From the
repo root, run:
Expand Down
Loading