Commit Graph

190 Commits

Author SHA1 Message Date
George Arama
8727030623
Start create certificate (#2909)
* fix tests local

* first stab

* second

* operation

* HUzaaaah

* split header file

* updates

* error

* format, error

* clang due to certificates

* remove useless line used for debugginng

* Update .vscode/cspell.json

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

* Update .vscode/cspell.json

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

* Update sdk/keyvault/azure-security-keyvault-certificates/inc/azure/keyvault/certificates/certificate_client_models.hpp

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

* Update sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client_operations.cpp

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

* PR fixes

* revert wrong changes

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2021-09-21 12:38:41 -07:00
Azure SDK Bot
c21718f838
Increment version for keyvault releases (#2855)
* Increment package version after release of azure-security-keyvault-keys

* Increment package version after release of azure-security-keyvault-secrets
2021-09-08 17:21:42 -07:00
Victor Vazquez
f752663d35
diable cert live tests (#2851) 2021-09-08 13:10:52 -07:00
Victor Vazquez
41138dcc8a
cl (#2840) 2021-09-08 10:08:33 -07:00
George Arama
6f8236287e
first pass (#2841) 2021-09-08 10:07:56 -07:00
Victor Vazquez
4ec0a34247
update links (#2842) 2021-09-07 14:45:08 -07:00
Victor Vazquez
8f0d6728c3
Adding Key Vault Certificates - GetCertificateWithPolicy API (#2818)
* certs one api checkpoint
2021-09-07 13:44:15 -07:00
George Arama
2b205d95f7
Kyle feedback (#2822)
* rename readmes for samples to show up in repo by default

* moved files around per kyle's comment

* update cmake file

* update links to samples
2021-09-02 10:28:50 -07:00
George Arama
9ef8d5a45f
cspell fixes for keyvault (#2812)
* cspell fixes for keyvault

* formatting issues
2021-08-30 19:49:22 -07:00
Victor Vazquez
ddee45759f
Add support for non public scope for secret client credential on Key Vault (#2763)
* add support for non public scope for secret client credential

* improve function comments

* update tests with good url

* update secret url tests

* update logic to no-throw

* use class

* Update sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp

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

* format

* fix

* remove default scope

* move patch out of Core to use package-per-client patch

* update includes

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

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

* update patch

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2021-08-30 16:39:54 -07:00
George Arama
9bcfc247b1
Secrets test (#2764)
* playback tests

* two running tests

* more tests and some redaction

* formatting

* formatting

* fix bb and remove unused includes

* macos

* annoying issues

* offline client

* format

* pr comment

* reset the env to original after the client is gone.

* oops

* testing

* formats

* remove default resource for secrets, not needed

* code coverage

* build issue
2021-08-26 11:19:37 -07:00
George Arama
04f4d3a5cf
Api review feedback (#2795)
* first set of changes

* another set

* add new constructor

* format files, remove pedantinc ;

* factory

* format

* expect_death not behaving as expected
2021-08-26 10:45:36 -07:00
Victor Vazquez
3ddd7f65f8
update test config for keyvault (#2793) 2021-08-25 14:58:31 -07:00
Anton Kolesnyk
7332432efd
Re-add vcpkg version constraints (#2781)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-08-24 16:10:07 -07:00
Victor Vazquez
d66081c01f
use package version for telemetry (#2780) 2021-08-23 11:04:14 -07:00
George Arama
27dc6bba32
Api view feedback (#2773)
* first set

* some more

* final set

* formats

* remove friend structs serializers
2021-08-20 15:42:47 -07:00
George Arama
66422c2841
some updates (#2760)
* some updates

* keyvault->key vault

* Update sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/sample2-backup-restore.md

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

* Update sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/sample2-backup-restore.md

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

* Update sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/sample1-basic-operations.md

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

* final updates

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2021-08-20 12:43:43 -07:00
Victor Vazquez
beb4a94cb4
adding GetUrl to key vault clients (#2761)
* adding GetUrl to key vault clients

* format
2021-08-19 10:23:30 -07:00
George Arama
512ae655b2
Samples & readmes (#2744)
* samples

* readme1

* rename misnamed type, readmes

* readmes, first pass, no links

* undo some uneeded changes

* PR comments
2021-08-16 19:41:56 -07:00
Anton Kolesnyk
a9281f2808
Remove vcpkg version constraints for Key Vault Keys (#2736)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-08-12 11:35:08 -07:00
Victor Vazquez
b3cfe0148e
Playback test impl (#2737)
* checkpoint

* playback working

* formant
2021-08-12 10:58:21 -07:00
Azure SDK Bot
1b05f98891
Increment package version after release of azure-security-keyvault-keys (#2729) 2021-08-10 22:42:58 +00:00
George Arama
00439b26f9
Remove Extraneous prefixes (#2722)
* KeyvaultSecret

* deletedsecret

* KeyVaultRestoreDeletedSecretOperation

* KeyVaultDeleteSecretOperation

* paged requests

* KeyvaultSecretProperties

* secretserializer

* serializers
2021-08-10 11:18:27 -07:00
Victor Vazquez
abdfcaeb94
changelog for release (#2724) 2021-08-10 10:58:30 -07:00
Victor Vazquez
0c041c9bfa
Add core-test recording-playback (#2685)
Recording feature
2021-08-09 15:38:57 -07:00
George Arama
b91dce9deb
Paged requests (#2711)
* now we need to deserialize

* GETs+tests

* Delete+tests

* new line

* build issues

* size_t

* comments

* file format

* PR comments

* format
2021-08-09 13:24:54 -07:00
Anton Kolesnyk
6bf52bdbde
Update vcpkg version dependencies (#2718) 2021-08-09 13:15:27 -07:00
George Arama
650a74ca62
Start delete secret (#2695)
* first stab

* hmmmm

* working

* forgot include

* cleanup

* remove pragma

* PR comments

* pedantic semicolon

* PR comments
2021-08-09 12:34:45 -07:00
Victor Vazquez
83295c69ed
Re implement keyvault keys (#2705)
* updated-create-key with no protocol client
2021-08-05 23:20:29 +00:00
George Arama
697f45a454
PurgeDeletedSecret (#2696)
* working

* comment
2021-08-05 10:26:57 -07:00
Victor Vazquez
2feed76d86
clang doc fixes (#2697) 2021-08-02 11:55:08 -07:00
George Arama
d830de4afc
Backup / Restore secret (#2683)
* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* code complete

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* test

* also restore

* new line

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* fixes for PR and build issues

* add header for linux build

* fix UT for mac

* remove offending issues

* rename from data to response

* added overload

* response -> result

* remove overload
2021-07-29 12:12:44 -07:00
George Arama
f14199e649
Update secret api (#2669)
* fix doc warnings

* working

* update the tag serialization

* get rid of files that were not supposed to be edited

* add convenience method

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* fix doc warnings

* get rid of bad merge

* updates for merge

* PR comments
2021-07-27 20:08:21 -07:00
Victor Vazquez
5c14975957
remove prefer ninja (#2675) 2021-07-27 19:26:11 -07:00
Victor Vazquez
a508789c36
Remove warning supress (#2677)
* remove warning suppress not required anymore

* json update

* update the curl header including

* changelog
2021-07-27 18:09:52 -07:00
Victor Vazquez
bd1beaf0b4
remove the const double ref and use move instead (#2674) 2021-07-27 17:39:26 -07:00
George Arama
72b9cf9487
Set secret (#2663)
* Progress stream reader

* format

* Update sdk/core/azure-core/src/io/body_stream.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* PR comments

* remove

* one more comment

* replaced if null with azure_assert

* moved from pointer to reference

* first pass

* src builds

* new line

* huzaaaaa

* readme

* strating point

* get progress, need to deserialize now

* serializer

* some more

* tests

* more tests

* some refactor

* start

* comment and formatting

* set secret serializer

* added serializer ut

* add headers

* working again

* add cmake

* cleanup relative paths

* couple of updates

* clang

* working as expected

* remove pedantic ;

* include

* pr comments

* clang format

* trigger

* trigger 2

* PR comments

* name value swap

* updates from merge

* pre PR

* format

* remove hpp from list

* remove unused #include

* put back hpp file

* put the methods in a namespace

* PR comments

* some more comments

* fixes

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-07-27 15:01:51 -07:00
George Arama
65d560dc11
GetDeletedSecret API (#2666)
* fix doc warnings

* fix doc warnings

* GetDeletedSecretAPI

* undo uneeded changes

* comments
2021-07-27 13:10:14 -07:00
Victor Vazquez
c8a45ad7ac
Remove extra whitespace from header 2021-07-27 08:26:39 -07:00
George Arama
0d4f138cb3
GetSecret Api implementation for Keyvault Secret (#2656)
* Progress stream reader

* format

* Update sdk/core/azure-core/src/io/body_stream.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* PR comments

* remove

* one more comment

* replaced if null with azure_assert

* moved from pointer to reference

* first pass

* src builds

* new line

* huzaaaaa

* readme

* strating point

* get progress, need to deserialize now

* serializer

* some more

* tests

* more tests

* some refactor

* start

* comment and formatting

* working again

* couple of updates

* clang

* remove pedantic ;

* include

* pr comments

* clang format

* trigger

* trigger 2

* PR comments

* name value swap

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-07-23 17:36:04 -07:00
George Arama
4805900fb6
Fix build break in vcpkg (#2662)
The issue came from a missformatted json file , the fix is straight forward ,
The number of commits can be ignored, the merge is squashed,
the operations i performed were : \

git checkout pipeline
git pull upstream main
git push
^^^^^
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 276 bytes | 276.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/gearama/azure-sdk-for-cpp.git
85b8e3f..032f2b3 pipeline -> pipeline
* Progress stream reader

* format

* Update sdk/core/azure-core/src/io/body_stream.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* PR comments

* fix doc warnings

* remove

* one more comment

* replaced if null with azure_assert

* moved from pointer to reference

* first pass

* src builds

* new line

* huzaaaaa

* maybe

* add resource for tests

* readme

* formatting

* build break url

* put proper link

* darn link

* comments from PR

* update to use gtest_main

* fix vcpkg build break

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-07-23 15:40:19 -07:00
Ahson Khan
e0c57f703e
Avoid duplication of a method by expanding out the struct into their constituting fields. (#2595) 2021-07-22 13:48:18 -07:00
Ahson Khan
d90d5c761e
Consolidate keyvault and cryptography client options and model files into single headers. (#2640)
* Consolidate keyvault options and model files into single headers.

* Consolidate cryptography client model headers into a single header.

* Fix up merge conflict

* Consolidate LROs into one, and fixup PagedResponse name.

* Fix up clang formatting and match cpp file name with hpp.

* Fix clang formatting.

* Move LROs and PagedResponse types into models as well.

* Move encrypt and decrypt parameter types into cryptography model header
file.

* Fix clang format, reodering of headers.

* Update to match recent changes.

* Update CL
2021-07-22 11:48:55 -07:00
George Arama
e4d5e31371
Pipeline for keyvault secrets (#2654)
* Progress stream reader

* format

* Update sdk/core/azure-core/src/io/body_stream.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* PR comments

* fix doc warnings

* remove

* one more comment

* replaced if null with azure_assert

* moved from pointer to reference

* first pass

* src builds

* new line

* huzaaaaa

* maybe

* add resource for tests

* readme

* formatting

* build break url

* put proper link

* darn link

* comments from PR

* update to use gtest_main

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-07-22 08:46:21 -07:00
George Arama
7da78d4cc9
Setup secrets boilerplate code from templates (#2650)
* Progress stream reader

* format

* Update sdk/core/azure-core/src/io/body_stream.cpp

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

* PR comments

* fix doc warnings

* remove

* one more comment

* replaced if null with azure_assert

* moved from pointer to reference

* first pass

* src builds

* new line

* huzaaaaa

* readme

* formatting

* build break url

* put proper link

* darn link

* comments from PR

* update to use gtest_main

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-07-21 14:13:19 -07:00
Victor Vazquez
7af67c509d
fix broken link (#2651) 2021-07-21 20:13:54 +00:00
Azure SDK Bot
c1ef7545c8
Increment package version after release of azure-security-keyvault-keys (#2649) 2021-07-20 13:33:53 -07:00
Ahson Khan
157e4875f1
Update CL version for key vault for the beta release (#2646)
* Update CL version for key vault for the beta release
2021-07-20 09:50:25 -07:00
Victor Vazquez
82ca4cfc83
update polling timeout to 5 min (#2641)
* update polling timeout to 5 min

* update all polling intervals

* disable purge testing until it is again supported by service

* update live tests

* update test to avoid checking number of keys

* fix test - look keys in deleted keys

* max timeout
2021-07-20 07:35:50 +00:00
Victor Vazquez
0140a4add6
remove local support for crypto client (#2638) 2021-07-15 18:15:21 -07:00