Commit Graph

325 Commits

Author SHA1 Message Date
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
Ahson Khan
804be39699
Update key_client_create_test_live.cpp to remove dependency on attestation headers (#4727)
* Update key_client_create_test_live.cpp to remove dependency on attestation headers

* Update CMakeLists.txt to remove linking to azure-security-attestation

* Update CMakeLists.txt in hsm unit tests to remove linking to azure-security-attestation
2023-06-23 13:14:04 -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
Ahson Khan
b2f92f3513
Fix typos in KeyVault Keys and Secrets sources. (#4716) 2023-06-15 15:09:26 -07:00
Rick Winter
fb1b439ddc
Remove a private internal method that is not used. (#4667) 2023-06-09 13:55:32 -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
Azure SDK Bot
7ec78e5816
Increment version for keyvault releases (#4624)
* 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
2023-05-09 11:13:36 -07:00
Anton Kolesnyk
abf6be6951
Azure Key Vault May Release (#4580)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-05-09 08:44:57 -07:00
Azure SDK Bot
cfe34de5b3
Increment version for keyvault releases (#4545)
* Increment package version after release of azure-security-keyvault-keys

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

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

* Increment package version after release of azure-security-keyvault-certificates
2023-04-11 22:50:54 +00:00
Anton Kolesnyk
e7995c0fc0
Key Vault April Beta Releases (#4518)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-04-11 11:54:55 -07:00
Larry Osterman
3cb4993423
Removed 'using namespace' directive from public header (#4514)
* Removed 'using namespace' directive from public header

* Shortened namespace names (Thanks Antkmsft)

* Update sdk/keyvault/azure-security-keyvault-administration/inc/azure/keyvault/administration/settings_client.hpp

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-04-04 18:31:37 +00:00
Anton Kolesnyk
fd687c32fa
Add support for challenge-based and multi-tenant authentication (#4506)
* Add support for challenge-based and multi-tenant authentication

* Clang-format

* cspell

* clang-format

* gcc warning

* clang warning

* Remove debug message

* clang-format

* update version>= in vcpkg manifests

* unpublic copy ctor in polymorphic class

* KeyVault::_internal::ChallengeBasedAuthenticationPolicy => KeyVault::_internal::KeyVaultChallengeBasedAuthenticationPolicy

* keyvault/shared/challenge_based_authentication_policy.hpp => keyvault/shared/keyvault_challenge_based_authentication_policy.hpp

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-04-04 11:00:05 -07:00
Ahson Khan
57a4f8de9a
Fixed the user-agent string sent to the service to include the "keys" suffix in the value, when using CryptographyClient. (#4467)
* Fixed the user-agent string sent to the service to include the "keys"
suffix in the value, when using `CryptographyClient`.

* Fix clang format.
2023-03-29 17:36:44 -07:00
Rick Winter
c457e91373
Ensure the comparison is unsigned to unsigned (#4464)
* Ensure the comparison is unsigned to unsigned

* Remove cast
2023-03-21 13:57:07 -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
George Arama
5e91f5584e
Enable profiling in perf piplines. (#4398)
* profiling

* dsadsada

* Update eng/pipelines/templates/jobs/perf.yml

Co-authored-by: Mike Harder <mharder@microsoft.com>

---------

Co-authored-by: Mike Harder <mharder@microsoft.com>
2023-03-08 12:28:13 -08:00
George Arama
7946b83b9b
separate hsm tests from keys, and regen the tests (#4392)
* separate hsm tests from keys, and regen the tests

* adding assets

* cleanup includes

* clang and map

* hgghg
2023-03-08 11:19:50 -08:00
Azure SDK Bot
b46ee09627
Increment package version after release of azure-security-keyvault-administration (#4423) 2023-03-07 22:03:50 -08:00
George Arama
3bebe6ff99
Kv admin march release (#4402)
* Changelog update

* merch changelog
2023-03-07 16:26:11 -08:00
George Arama
e48cf92704
update to version 7.4 for admin. update tests (#4388) 2023-02-27 12:03:57 -08:00
George Arama
1849597580
Fix pipelines path (#4358)
* test path

* qwq

* dsda

* asas

* dsada

* sdsds

* Update sdk/keyvault/azure-security-keyvault-certificates/perf-tests.yml

Co-authored-by: Mike Harder <mharder@microsoft.com>

* Update sdk/keyvault/azure-security-keyvault-certificates/perf-tests.yml

Co-authored-by: Mike Harder <mharder@microsoft.com>

* remove warmup

---------

Co-authored-by: Mike Harder <mharder@microsoft.com>
2023-02-21 17:21:17 -08:00
Scott Beddall
5058f15594
Triggerkeyvault on proxy changes (#4343)
* autotrigger the keyvault and storage CI when a testproxy file is changed
2023-02-21 13:32:30 -08:00
George Arama
889e0255a2
update comment (#4364)
* update comment

* jghjg

* update broken link

* Update sdk/keyvault/tools/cleanup/src/cleanup.cpp

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

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-02-21 10:52:20 -08:00
George Arama
c8b97561f3
changelog (#4350) 2023-02-11 00:24:50 +00:00
Mike Harder
fd1695ebba
[Perf] Refactor tests.yml into one file per package per language (#4270) 2023-02-09 21:18:03 -08:00
Azure SDK Bot
46fbcb914c
Increment package version after release of azure-security-keyvault-administration (#4340) 2023-02-07 14:47:14 -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
George Arama
39ec586d96
Feb key vault release (#4319)
* kv release

* ds

* Update sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md

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

* core to latest GA

* 1.8.0

* update folder list

* put to stable versions

* put back to last GA

* put back to original

* try core 1.8.0

* Revert "try core 1.8.0"

This reverts commit 1e0b612235dfa60e7be60819a2076cb6bc266813.

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-02-07 01:31:59 -08:00
George Arama
310790a5c1
Update artifacts for ci.yml (#4330)
* update artifacts

* remove error

* try

* gfd

* folderlist

* put back core
2023-02-03 11:41:52 -08:00
George Arama
69763502f1
move cleanup tool. (#4307)
* move cleanup tool.

* move to /tools/cleanup

* aAsaddas
2023-02-01 17:37:49 -08:00
George Arama
139bd10feb
Updates from API Review (#4272)
* Updates from API Review

* clang

* update sample
2023-01-31 11:13:36 -08:00
Ahson Khan
876a7baaa5
Add CI pipeline step and script that validates all files in the repo contain ASCII-only bytes and no UTF-8 BOM (#4134)
* Add CI pipeline step and script that validates all files in the repo contain ASCII-only bytes and no UTF-8 BOM

* Update platform-matrix.json to turn on CHECK_ASCII_CHARACTERS

* Fix missing comma in json.

* Update indentation in the ci.test.yml for the bash script

* Exclude the .github folder and test recording json files.

* Remove "recordings" exclusion since it doesn't exist anymore.

* Fixed UTF-8 with BOM and other non-ASCII character issues within the
files in the repo.

* Exclude nlohmann json tests from ASCII validation check.

* Log an intro to the CI console for the validation step.

* Remove codecoverage.cmake exclusion.

* Remove exclusion for docs and tools directories.
2023-01-25 17:33:26 -08:00
George Arama
86aa9b4b0c
ApiView (#4248) 2023-01-25 11:07:42 -08:00
George Arama
cc09902b17
rollback OKP change (#4271) 2023-01-24 15:44:19 -08:00
George Arama
f0aef715fe
perf resources (#4260)
* perf resources

* yt

* par 1

* put back resource
2023-01-18 16:33:00 -08:00
George Arama
d5e2ab88a9
Okp skip tests (#4256)
* first pass

* part2

* part3

* part 5

* pre PR

* updated tests

* fix test

* clangs

* updated changelog

* skip okp test sfor non HSM test runs

* no return value

* stupid mistake

* clang

* clang

* pr comments, clang

* oops

* skipping maybe?

* Update sdk/core/azure-core-test/inc/azure/core/test/test_base.hpp

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

* fir RemovePreffffffix

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-01-17 16:22:04 -08:00
George Arama
b7e7e4e000
Kv perf pipeline (#4222)
* secrets

* perftestst for get  Secret

* dss

* qfe

* pipelines

* comments

* cleanup script

* comment

* key last

* somemore stuff

* clang
2023-01-17 10:53:55 -08:00
Ahson Khan
4f7a0ea6cd
Fix spelling in doc comments within Certificate client models. (#4255)
Discovered in https://dev.azure.com/azure-sdk/public/_build/results?buildId=2120396&view=logs&jobId=a129effc-2dd1-54d1-fb5a-ad7bdc0e851d&j=a129effc-2dd1-54d1-fb5a-ad7bdc0e851d&t=ccad100f-2904-5913-2083-c525ad929a03 from https://github.com/Azure/azure-sdk-for-cpp/pull/4134
2023-01-17 18:37:25 +00:00
George Arama
275f6f8077
Okp (#4239)
* first pass

* part2

* part3

* part 5

* pre PR

* updated tests

* fix test

* clangs

* updated changelog
2023-01-13 11:00:46 -08:00
George Arama
41e3e89cf8
live settings tests (#4242)
* settings tests

* oops the other way around

* asstes

* sample and readm e

* try try again

* typo
2023-01-13 10:40:18 -08:00
George Arama
efee11268e
Settings API (#4210)
* skeletor

* client

* rework

* all works plus test

* sample , self pr

* tests

* clang

* Mind your language .. Sir ...

* comments

* removed preprocessor directives

* removed template class

* dll clang

* Rick PR
2023-01-11 10:55:15 -08: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
Rick Winter
3fe9c27c41
Remove the identity dependency from pkgs. (#4179) 2022-12-09 15:31:38 -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
Ahson Khan
585677e68b
Fix typo for llong -> long in doc comment for Key Vault Certificates (#4108) 2022-11-11 09:04:18 -08:00