Commit Graph

89 Commits

Author SHA1 Message Date
George Arama
34c2441523
Enable UseFederatedAuth by default (#5852)
* enable use federated

* 401 unauthorized

* 401

* cleanup readmes

* DISABLE RUN

* Remove UseFederatedAuth overrides from ci.yml

* DISABLE RUN for admin samples,
2024-07-31 17:10:39 -07:00
Anton Kolesnyk
0f62b3aa63
Add consumption-time value of __cplusplus to User-Agent (#5662)
* Add consumption-time value of __cplusplus to User-Agent

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-29 18:31:51 -07:00
Ahson Khan
9b9f76a737
Re-enable running previously disabled samples using AzureCliCredential. (#5818)
* Re-enable running KeyVault samples on Ubuntu using AzureCliCredential.

* Re-enable running Attestation samples using AzureCliCredential.

* Re-enable running EventHubs samples using AzureCliCredential.

* Re-enable running Identity samples.

* Disable client_secret_credential_sample since it depends on env vars
that don't exist.
2024-07-18 14:45:27 -07:00
Larry Osterman
90089ad326
Cleaned up Azure::Core::Context API surface (#5676)
* Deprecated Azure::Core::ApplicationContext because its use is confusing and inconsistent with the original design. 

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2024-07-17 12:38:30 -07:00
Larry Osterman
e19dc2371c
Use GetTestCredentials in eventhubs admin client; updated samples to allow sample execution to be disabled (#5799)
* Use GetTestCredentials in eventhubs admin client; updated samples to allow sample execution to be disabled

* Made sample execution optional

* re-enabled building keyvault samples

* Disabled RetrieveMultipleEvents test

* Disabled RetrieveMultipleEvents test

* Pull request feedback
2024-07-16 10:29:54 -07:00
George Arama
313fb0e58f
Move tests to use azure pipeline credentials (#5754)
* test1

* hgdfchg

* remove the remnants of azure client secret

* test KV with federated auth

* UseFederatedAuth

* fdsa

* kv template with managed

* try try again

* retry permissions

* add net acls

* blunt force replace the resource json

* put back stuff

* trey again with new method

* attempt

* missed something

* flip if else

* Temporarily use empty sub config file path for preview cloud

* remove client secret

* try to fix the identity tests

* live skip failing tests and return in samples

* samples for identity fix

* disable failing samples in identity

* fix winhttp failing test

* comment out code

* remove managed identity

* restore version from main

* revert readme changes

* PR comments

* test 2

* clang

* attempt default creds with pipeline chanined

* clangs

* identity test and clangs

* oops

* live

* cleanup

* reter

* test

* revert the DAC change

* missed one

* taking the samples to a farm upstate

* PR comments

* Fix bad merge

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-07-11 17:38:19 -07:00
Larry Osterman
5b9ea47d6b
Disable playback for several attestation tests that use JWTs (#5665)
* Disable playback tests on test that receive a JWT

* Reduced code coverage numbers due to disabled tests.
2024-05-28 10:15:07 -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
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
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
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
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
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
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
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
6da4d9649d
FIx typos (#5185)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-27 13:55:27 -08:00
Anton Kolesnyk
05d1f5455c
Make vcpkg.json comment multiline (#5175)
* Make vcpkg.json comment multiline

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

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-11-21 17:06:37 -08:00
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
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
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
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
0ad52a028c
Ignore compiler and STL version mismatch on published packages to unblock ApiView (#4925) 2023-09-06 10:22:52 -07: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
Rick Winter
b54d509c72
Use standard syntax for MIT license (#4786)
* Use standard syntax for MIT license

* Stop appending "All rights reserved"
2023-07-12 22:37:36 -07:00
Larry Osterman
fba91e34c9
Enabled doxygen validation in CI pipeline. (#4715)
* doxygen fixes

* enable doxygen errors now that doxygen is updated.

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-06-22 18:26:07 -07:00
Larry Osterman
184303a893
Manually disable tests in all vcpkg portfile.cmake files (#4697) 2023-06-05 11:52:21 -07:00
Larry Osterman
b303a70eaa
Stop disabling security warnings in get_env.hpp; Fixed all incorrect … (#4655)
* Disable deprecation warnings in cmakelists.txt to avoid introducing new concepts; removed unnecessary uses of get_env.hpp

* Removed use of GetEnvHelper from AMQP samples

* Removed special case for get_env.hpp
2023-06-01 12:50:45 -07:00
Larry Osterman
fb240a4b25
Define a standardized header ordering for Azure SDK for C++ (#4632)
* Standardized header ordering for C++ repo

* Reordered categories to move private headers above public headers; added space between categories to enable future flexibility
2023-05-26 14:32:45 -07:00
Rick Winter
f027c95177
Fixes contributing section
* Update README.md
2023-05-15 13:09:09 -07:00
Larry Osterman
b4be76fec8
Fixed AV in attestation tests (#4480)
* Fixed AV in attestation tests

* Fixed another test AV
2023-04-06 18:03:39 +00:00
Anton Kolesnyk
ba086576be
Fix potentially high CPU usage on Windows (#4448)
* Fix potentially high CPU usage on Windows

* Undo unnecessary formatting

* Undo unnecessary changelog

* Undo unnecessary formatting

* Undo unnecessary formatting

* Uninclude locale

* Add issue link to changelog

* EXPECT_TRUE(a == b) => EXPECT_EQ(a, b)

* Update second changelog with link as well

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-03-20 13:06:11 -07:00
Anton Kolesnyk
43632ebce8
Tests: replace most EXPECT_TRUE(a OP b) with EXPECT_OP(a, b) (#4457)
* Tests: replace most `EXPECT_TRUE(a OP b)` with `EXPECT_OP(a, b)`

* Undo unnecessary change

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-03-17 03:55:14 -07:00
Anton Kolesnyk
c673e9550c
Update vcpkg release manifest templates per vcpkg team recommendation (#4425)
* Update vcpkg release manifest templates per vcpkg team recommendation

* Forgotten change

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-03-08 21:00:59 -08:00
Larry Osterman
562ca4c69c
Fixed credscan error (#4417)
* Fixed credscan error

* Try removing credscan placeholder suppression

* Refactored credentials into their own source file

* Pull request feedback
2023-03-08 15:15:45 -08:00
JinmingHu
395e9a0640
Test proxy & storage tests improvements (#4241) 2023-02-22 09:37:49 +08:00
Azure SDK Bot
2be39bcc8b
Increment package version after release of azure-security-attestation (#4345) 2023-02-08 01:44:55 +00:00
Anton Kolesnyk
08a267275d
Attestation February Release (#4326)
* Attestation February Release

* Changelog (repeat Beta changes)

* Update azure core minimum version dependency

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-02-07 16:13:04 -08:00
George Arama
3762c59552
Test proxy start (#4295)
* lll

* sss

* oipio

* vcvc

* enable test proxy start at test suite start for KV and storage , example created for attestation, we cannot find the base definitions for the test suites,

* Contrib

* clangs

* clangs

* test logs

* pipeline

* more clangs

* pipeline

* clang

* try try again

* try try again

* try again

* try again

* again

* update paths , moved to macro , call macro in target code

* core

* capitalization
2023-02-07 10:52:20 -08:00
Anton Kolesnyk
243fb4c58d
Compilation fixes for UWP (#4335)
* Compilation fixes for UWP

* More accurate condition

* Fix warnings

* Format files as vcpkg formats them; pull one change back from vcpkg

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-02-02 20:04:21 -08:00
Larry Osterman
f757bb06e7
Clean up tracing logic - prepare for new tracing functionality. (#4263)
- Made Context immutable (including marking the static ApplicationContext as const
- Put back TelemetryPolicy in all pipeline cases and removed User-Agent generation from RequestActivityPolicy (note: This part of the change may end up being reverted). Also updated parameters for TelemetryPolicy to make it clearer that the parameter is a package name, not a service name.
- Changed Az.Namespace value from being the package name to being the service name.
- Change test SpanExporter to fully capture exported values rather than keeping references to the values.


Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-01-25 19:07:25 +00:00
Larry Osterman
a34b8d19a5
Add ApiView settings for existing packages. (#4226)
* Create ApiViewSettings for most existing packages

* Corrected name for blobs storage review name

* Added cspell settings for DCURL

* Create ApiViewSettings for most existing packages

* Corrected name for blobs storage review name

* Added cspell settings for DCURL

* ApiView settings changes for DataLake

* Renamed includeInternal to allowInternal; Added storage common; Fixed package names

* Fixed spelling error

* If there's an error accessing the site with no CRL checks, don't try it any more

* Stop checking example.com because it doesn't work

* Update sdk/attestation/azure-security-attestation/inc/ApiViewSettings.json

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

* Update sdk/core/azure-core/inc/ApiViewSettings.json

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

* Update sdk/keyvault/azure-security-keyvault-secrets/inc/ApiViewSettings.json

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-01-11 08:16:13 -08:00
Anton Kolesnyk
a70be339e7
Audit string comparisons (#4197)
* Audit string comparisons

* Mac fix

* !isxdigit()

* Rewrite condition + comment

* <3

* Clang-format

* 255

* Allow uppercase

* stoi() radix

* ShouldEncode()

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-01-03 11:16:54 -08:00
George Arama
ef4d41267f
Test proxy (#4118)
* start

* recording

* playback

* refactor, playback and record

* recordings for kv

* klklk

* open telemetry, identity

* attest

* all tests recorded except storage

* STORAGE RECORDINGDS

* some cleanup

* ignore result

* testproxy remade

* fiiine , do something with the result , goooosh

* install test proxy

* clang

* clang

* certs maybe

* cmake generate fix,

* start test proxy script

* start test proxy on env

* clang, move TP after build

* reregen

* certs

* sda

* dss

* allow insecure connections

* put back

* debug

* iuy

* try again

* ewew

* chmod

* try again

* update sanitizer

* output testproxy log

* sjhgasjgdajh

* folder

* worxy

* fix tests and log file

* format files

* clang format

* clang

* sa

* sa

* cleanup

* cspell

* oops

* remove redundant method

* tests

* put back original

* restore to 933486385a

* recordings

* remove storage values

* storage recordings

* disable non functioning tests

* remove core install of test proxy

* _LIVEONLY_ tests

* clang install when needed

* logs on condition

* skip tests

* revert cpp to original version

* quick test

* right that one

* one skip

* identity pushed

* maybe

* override

* clang

* clang

* attestetion

* keyvault

* reenable 20+ tests

* 5 tests left , lease related

* a bit of cleanup

* try now

* snitizers

* some fixes

* capitalization

* clang , cover, peakA

* WEIRD NAME THING ON WINDOWS

* storage recordings

* one more livee

* createappenddelete_liveonly

* CreateWithTags_LIVEONLY_

* try capitalization

* another onw

* maybe now

* all liveonly

* try restore before test

* typo

* condition

* clang and cc

* azure core ci

* qwqwq

* dsasdas

* cleanup1

* typo

* spaces

* cleanup2

* cleanup 3

* remove start proxy

* cleanup +1

* Update cmake-modules/TestProxyPrep.cmake

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

* Update eng/scripts/Start-TestProxy.ps1

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

* Update eng/scripts/Stop-TestProxy.ps1

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

* PR comments

* clangs

* Update sdk/core/azure-core-test/src/test_proxy_policy.cpp

* build

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2022-12-13 10:58:19 -08:00
Anton Kolesnyk
c14775d5fb
Better TokenRequestContext initialization (#4169)
* Better TokenRequestContext initialization

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-12-07 20:25:22 -08:00
George Arama
1da78ce13e
Gtest timeout fix (#4078)
* PT1

* typo

* timeout

* gtest_1.12.1

* cspell isnore cmakelistst , it seem to freeze when checking these files

* timeout for cmake generate

* timeout for cmake generate p2

* timeout for cmake generate p3

* timeout for cmake generate p4

* timeout for cmake generate p5

* PR

* node 18

* nppm

* npm

* bug in cspell, freezed on txt files

* AntonComment extra space

* cspell
2022-11-02 15:46:38 -07:00
Azure SDK Bot
02e233c7a3
Increment package version after release of azure-security-attestation (#4018) 2022-10-11 21:06:21 -07:00
Ahson Khan
f99e9d014f
Updated attestation change log to add periods for consistency (#4016)
* Updated attestation change log to add periods for consistency

* Update wording for a breaking change.

* Add back-ticks.
2022-10-11 23:45:20 +00:00
Larry Osterman
2bc639432c
Attestation October (#4017) 2022-10-11 23:34:30 +00:00
Anton Kolesnyk
dd2d050ec8
Update Attestation readme.md (#3991) 2022-10-04 16:53:55 -07:00