From e86058dd5e5695b8321e1859b3678c7e655bd1ce Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Thu, 26 Aug 2021 11:18:52 -0700 Subject: [PATCH] [KeyVault] - Revert Key Rotation changes (#17141) Revert 44a435caa6a4c0fdaba2da9860b82a829711e592 and c65e17fe9e0a7d828515a0e3736322666c13a82e as they will be cut from 7.3 and moved to 7.4-preview. --- sdk/keyvault/keyvault-keys/CHANGELOG.md | 5 - ...efined_if_there_is_no_rotation_policy.json | 117 -------- ...getkeyrotationpolicy_supports_tracing.json | 117 -------- ...ing_rotatekey_supports_rotating_a_key.json | 117 -------- .../recording_rotatekey_supports_tracing.json | 117 -------- ...o_fetch_a_policy_of_a_nonexistent_key.json | 90 ------- ...a_new_rotation_policy_and_fetching_it.json | 144 ---------- ...atekeyrotationpolicy_supports_tracing.json | 117 -------- ..._supports_updating_an_existing_policy.json | 144 ---------- ...ndefined_if_there_is_no_rotation_policy.js | 215 --------------- ...g_getkeyrotationpolicy_supports_tracing.js | 215 --------------- ...rding_rotatekey_supports_rotating_a_key.js | 215 --------------- .../recording_rotatekey_supports_tracing.js | 215 --------------- ..._to_fetch_a_policy_of_a_nonexistent_key.js | 181 ------------- ...g_a_new_rotation_policy_and_fetching_it.js | 249 ------------------ ...pdatekeyrotationpolicy_supports_tracing.js | 215 --------------- ...cy_supports_updating_an_existing_policy.js | 249 ------------------ .../keyvault-keys/review/keyvault-keys.api.md | 38 --- .../keyvault-keys/samples-dev/keyRotation.ts | 70 ----- .../src/generated/models/index.ts | 2 +- .../src/generated/models/mappers.ts | 2 +- sdk/keyvault/keyvault-keys/src/index.ts | 100 +------ sdk/keyvault/keyvault-keys/src/keysModels.ts | 74 ------ .../keyvault-keys/src/transformations.ts | 62 +---- sdk/keyvault/keyvault-keys/swagger/README.md | 13 - .../test/internal/transformations.spec.ts | 103 +------- .../test/public/keyClient.spec.ts | 135 +--------- sdk/keyvault/test-resources.json | 3 +- 28 files changed, 14 insertions(+), 3310 deletions(-) delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.json delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.js delete mode 100644 sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.js delete mode 100644 sdk/keyvault/keyvault-keys/samples-dev/keyRotation.ts diff --git a/sdk/keyvault/keyvault-keys/CHANGELOG.md b/sdk/keyvault/keyvault-keys/CHANGELOG.md index a4f93bc86f15..74970ccc282f 100644 --- a/sdk/keyvault/keyvault-keys/CHANGELOG.md +++ b/sdk/keyvault/keyvault-keys/CHANGELOG.md @@ -4,11 +4,6 @@ ### Features Added -- Added support for automated key rotation in Azure Key Vault. - > Note: Automated key rotation is currently in private preview and is not available to all Azure Key Vault customers. - - Added `KeyClient.rotateKey` to rotate a key on-demand. - - Added `KeyClient.updateKeyRotationPolicy` to update a key's automated rotation policy. - ### Breaking Changes ### Bugs Fixed diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.json deleted file mode 100644 index 9f44aa202cf5..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/getrotationpolicy162811057688708332/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:16 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "217fa8c1-9650-410c-afe2-2a99be2895df", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "417a9e97-5597-4a45-8176-ff05ef1ee49e", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:16 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "cd8c11e3-b557-4bba-a471-0000c9047801" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/getrotationpolicy162811057688708332/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/getrotationpolicy162811057688708332/62cab10e3d1b4e85878cad634f0bd144\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"tclcfL6LPzvlHkdEuvpyEKHg4Vv2uXvrCAUZHahLsXLKukSAEQrts8TM_6-_i_A61n7017z3x-SmRBt2FSLNb6ErHvuIFfRnWJbcEvWmwSyL6qzL42axq1emmaI07eTiDYKnkp2eJoJezB_oBV6a4uKfIlWXcD_XwmgESXyee9dGIVIkt5Ja7vFolml8DXMmUgdr-Fi5Ez2Dzjr9NuYx1oIyeoRyDrbik9tc6QWldcqRortQizTAY3yW6g6m6MYu2bBAZEWEvb5Ipq1WG3G7_liCHh6ZHIzf8oU_XbkQOR4x4rCDQ9tvErp6vA4giYecGj7s4dZcKUqzPixV4jfBIQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110577,\"updated\":1628110577,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "712", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:16 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "217fa8c1-9650-410c-afe2-2a99be2895df", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "1044056d-4393-4125-ae8d-5f5cd260f1bc", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "GET", - "url": "https://keyvault_name.vault.azure.net/keys/getrotationpolicy162811057688708332/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"lifetimeActions\":null,\"attributes\":null}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "42", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:16 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "1d0b1260-9a33-446c-8b6d-2d4d6d676558", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "da55fdd5-aa23-49ad-871c-4cc0d8ce64c2", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "getrotationpolicy": "getrotationpolicy162811057688708332" - }, - "newDate": {} - }, - "hash": "ca327e21e13774f706418fb5fe45f72a" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.json deleted file mode 100644 index 17da29cb7c57..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/rotationpolicytracing162811057798900636/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "1a0b9f09-bd51-4475-b86a-76ab7733c0a2", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "c5dfb2e2-89ad-4d72-9e36-5b21088a1a4d", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - SCUS ProdSlices", - "x-ms-request-id": "93293a6d-37be-4201-aa70-1087b2cb0000" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/rotationpolicytracing162811057798900636/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/rotationpolicytracing162811057798900636/478ee3d1a3ee4ac9945ad00a0ee5f36a\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"vwwtgFxn27NqAHHUUFFGK4smMMDD_ZiWSbEJu2K0fQMsSza1gnMYztQsQPOGDSfYueVdcZWqF3f7I8n50SIvW0UsldC5UjO9rf2x8xJHGO77IxlAIOnZTALPWEyAWwcbCQH9Z4vKs1Q-Kmy_VQEldLnFWmF4GZ27CDe60ah74Yrolh-Nu_-Vx_wEJc4ORRlxJlDYepcYJb5y6nTY-Y7jYihOglvEvMKt-viqaSfFMceQmyUbzroGNfjkXPsRrxttRvoBNbuNhlxPEgBMmDYMwRdu_R2vCCHURfUD3FK2IbUxTpFh75b0FIGbHEjMR1F_lVLeS8Q4gGppDw-FdzZ8JQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110578,\"updated\":1628110578,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "716", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "1a0b9f09-bd51-4475-b86a-76ab7733c0a2", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "dadc4f3b-3d55-410b-99df-808bbfcb89ba", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "GET", - "url": "https://keyvault_name.vault.azure.net/keys/rotationpolicytracing162811057798900636/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"lifetimeActions\":null,\"attributes\":null}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "42", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "e1a662a9-a0fc-42e4-8aa2-e5fa059dd2d3", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "37810a74-d99b-4130-9b11-b911a7df7b2c", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "rotationpolicytracing": "rotationpolicytracing162811057798900636" - }, - "newDate": {} - }, - "hash": "3be853d5c8d1d22db45d0936104a72ca" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.json deleted file mode 100644 index 5bc8e05631c0..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotate162811057214302678/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:11 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "2aa2c815-1113-4488-be34-57fc2b48de45", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "22a9b7e1-8887-49fa-8ccd-d39bf23b58b9", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:12 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "ea7e953e-a336-468f-980a-b760675e1600" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotate162811057214302678/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotate162811057214302678/2446c2d92d3249c88aaf0ddac46e2544\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"0fSoVIv4yInvYAqaDQIygkTtRNU4gMcjGYbs9P7m2gMH1Yi5xEHDudIWkkDxaEQrIjBQ3kwFaH-8qd3M7rL10v3CD9UqQfCgM48vP7sQzVoC6WbS0jSQKRtxL0dBmtsN4T2ZFVBk9bdPxykXL9DAiMife9ZkrWD8LOddbZbkH5JJuUu8Dc-rWLuw7tCob7hoYoO1XEt6g3yu1hvYgwLzzQiVOd2pL1fcwU_tJyUjacv9N7h_EyQsHHlrquJ033MfTT0g8zJfbSccVfDPZzftY1CNKpja1FysAD0udU4yw2UscBO86C42HVu3Y9-6uwsJuvWd-q2KRP2ASnsYIuy9EQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110572,\"updated\":1628110572,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "704", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:12 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "2aa2c815-1113-4488-be34-57fc2b48de45", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "b5b8da1b-9e97-4b48-a1f9-7b9ec9656ec9", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotate162811057214302678/rotate", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotate162811057214302678/69dc59b628874f3aab705a26095106b3\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"pl5XDU1hX1XhgnESm9RsF5WGLVrR5R5p0JY42zZA9_fQ2J4rgzeLS2NQpKf13GeXoSDnb9gh887VE-90U4YOaBbGTU27ZecdFUc38Zvn6YLZTHAlfvW2D5IfFoGfJ14Mns8M2rVg5I4lSFNef7QwTvMesucpgmlBP1Mckqtuub3Ae8W7fm1sEWGWKFYEiu12wqBcuSFARc0Imx-GOcVcZKiqdnZSDhGT-YFQSnGFeQSCISeSUCHFhC6YXA_ijgVclZ53MLqHAxamm9MKkNfkV0YRrnUTGH4bgXUQeiNQzS85heMQ71AST1sIFkNRKWi67w_dx7VtJPZ5EWXHQNWqNQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110573,\"updated\":1628110573,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "704", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:12 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "dcd544f8-1a44-4113-87d9-7b12ea3c04d4", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "8a75bd1b-4fdb-4b22-bd38-51b28a5e0016", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "keyrotate": "keyrotate162811057214302678" - }, - "newDate": {} - }, - "hash": "504f52dc3166b8ad4c7f758e9751053a" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.json deleted file mode 100644 index 81579e8ef027..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811057353409141/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:12 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "3068088d-65ce-421e-9c6f-48141ca5879d", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "5c7edf3b-51ec-4b60-b20a-1e2f69bbfa21", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:13 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - NCUS ProdSlices", - "x-ms-request-id": "326948c9-3f2d-4d1f-b898-eb5e1d5a0000" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811057353409141/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811057353409141/182e13d32fb942f68f423ec84854d9e7\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"ozWMuHE12a-fZCFQqhWLMSBrXOZJ0ZhUBtasDplYePirdYBWbFcRQpBhJPpJ1ZpmE3K-QTzfBp3jGATL2CuipvjNpIx8m965PV05xTUJ-KzNAwYrTFYmx1UZBoGbMGTzTZmkRYTqvsAlvJ9g3k3ZkFYRIpDpuLgf6m5Ne1nijC56K37Y9NVO3ErfuwJ6kM9EO0cmCK48wKHV_mxS4jXnNyxzRZB9iBh9pt9g-DiGmKM3gfKiDAJxas0rtpjoy89EPF7wGZtX46RBl4h-8557J2Ws72PEWl4mBsmLxhKaSX8QNBbo4P2-7AS3aRussXE3PCYIBWllpX49a2o6mtt9sQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110573,\"updated\":1628110573,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "711", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:13 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "3068088d-65ce-421e-9c6f-48141ca5879d", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "965b10f6-13d5-4200-969c-af26d9f2d127", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811057353409141/rotate", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811057353409141/b1e6bf4bd7e845338fae6d19814edf0e\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"uZvHm3wRwbl2R8WLnXXILB7o3YtheGbT67Z8-W9pWw4Pxg8nuahosbg8WhOIFFTW9uVt3hWIwj0vNJuIIzxlgjdteLQd7H8rysXK_6Lbt69c_Sn3t7-4kpgQHbUwKbDMvbnchm1johZDh3R8ZV4RrRUlnugwP7nM2C2uglDWPiyBE2qnZxqnAcpZ8S2naNObinShxXo6GMwU-B1VHmowOJCLNbxXOWd_wM4UAKD8C5wIGNyQV0QYNuCv19CzhIm1saDlcgaoXuzfeEf_37XBgMVPE9xST7mfJI4FqOtmGoKIyC1Jg4_U6udXxgx25BZlkITmTzzfU6M617vHwB93uQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110574,\"updated\":1628110574,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "711", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:13 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "cd55a3ca-6ca3-4ca3-b60b-81fd30cf5916", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "61ebee25-1492-4578-b213-5e1034529314", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "keyrotatetracing": "keyrotatetracing162811057353409141" - }, - "newDate": {} - }, - "hash": "34efe3684c35244f507b56e5e3d5c2b3" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.json deleted file mode 100644 index 42db358988da..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "recordings": [ - { - "method": "GET", - "url": "https://keyvault_name.vault.azure.net/keys/nonexistentkey162811057765601062/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:16 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "cd51f48a-e3fb-41a2-bad9-ad64b930a4b3", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "144efab8-7abe-495e-ad07-16d09d8bc335", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - NCUS ProdSlices", - "x-ms-request-id": "7c457ddf-b784-4f47-8aa8-7397a6610000" - } - }, - { - "method": "GET", - "url": "https://keyvault_name.vault.azure.net/keys/nonexistentkey162811057765601062/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 404, - "response": "{\"error\":{\"code\":\"KeyNotFound\",\"message\":\"A key with (name/id) nonexistentkey162811057765601062 was not found in this key vault. If you recently deleted this key you may be able to recover it using the correct recovery command. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125182\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "320", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:17 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "404", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "cd51f48a-e3fb-41a2-bad9-ad64b930a4b3", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "5f6069de-ccf5-4a5e-8593-a957b20ef9a8", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "nonexistentkey": "nonexistentkey162811057765601062" - }, - "newDate": {} - }, - "hash": "27fa09b65962143734bca9f44e4204dd" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.json deleted file mode 100644 index 737705e6cc87..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:13 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "2f78d218-d8e7-45df-8adf-4e1d3fc5ca17", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "8d3675dc-d890-471e-9a43-6b530794b1c2", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:14 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - NCUS ProdSlices", - "x-ms-request-id": "96242e21-daa8-4815-9143-963038bc9600" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/3994932394344340a5c36fd36753d416\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"wEF5YJZIedyaOZu_5YCXrxO03odJBVnihutgkM87acAl17WcSAs2_-TDKR_OTafKLKKr1RrI2tQAAgyZfcPWpywd2_jh96x2ENMBc9izj6KqdkzTsk_BTPIDBFWtpWm-9cw5e0ig05N6hhpmCkaYGVJSggRsqjVooovvPiibVMA8_TRIvR_NFeIgGvZp25ImpAYosFDgiTsV4le-k3QDWKR2tHibOQB1uJkie3_YLrjlkNbF-sJCshgtl7haPMluHcZCsE9be7bVtfnFor9Mbr4D67wiFQy1R5MLPtbUrAmZHGM6NldXuzpnQDR4gdYn15VvMsyt_T3aOQQHumXJJQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110574,\"updated\":1628110574,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "712", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:14 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "2f78d218-d8e7-45df-8adf-4e1d3fc5ca17", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "76d3b235-0a78-463a-aef8-8e26666428cd", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "PUT", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Rotate\"}}],\"attributes\":{\"expiryTime\":\"P90D\"}}", - "status": 200, - "response": "{\"id\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/rotationpolicy\",\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Rotate\"}},{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\",\"created\":1628110575,\"updated\":1628110575}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "332", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:14 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "8438a2f7-4aa5-4b89-bdb2-0071983a8ff9", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "17709fe0-ec0b-44c2-b05b-4aab32abf165", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "GET", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"id\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057443705192/rotationpolicy\",\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Rotate\"}},{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\",\"created\":1628110575,\"updated\":1628110575}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "332", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:14 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "dcd3d9ab-ace2-4011-90fd-30b7d7482307", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "0ad2fd18-7d2f-436b-92f8-a674f0c3afc9", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "keyrotationpolicy": "keyrotationpolicy162811057443705192" - }, - "newDate": {} - }, - "hash": "84b2eb109474f25026f5ff6eb8e3f60e" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.json deleted file mode 100644 index 2d396c305fc2..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998596004008/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 18 Aug 2021 15:19:45 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "dc768c3c-7b3f-4040-8aba-0a4f3778e386", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "westus2", - "x-ms-keyvault-service-version": "1.9.79.1", - "x-ms-request-id": "2813b4f8-17e8-4f86-89ef-a6708c90ff70", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 18 Aug 2021 15:19:44 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11961.8 - SCUS ProdSlices", - "x-ms-request-id": "d426f3e6-a313-476f-a0f8-ec58711a1601" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998596004008/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"EC\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998596004008/7cbe4368e0fd4ad0a6a58cbe9f436561\",\"kty\":\"EC\",\"key_ops\":[\"sign\",\"verify\"],\"crv\":\"P-256\",\"x\":\"VJdir-HjjEiqKjxfzi8SAAQ677aU3yf8lIzcVhYrcw0\",\"y\":\"TVQ4i0qysXFDfaPIKag-c0AIdFOSYxPXXs6KYohEPZ0\"},\"attributes\":{\"enabled\":true,\"created\":1629299985,\"updated\":1629299985,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "426", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 18 Aug 2021 15:19:45 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "dc768c3c-7b3f-4040-8aba-0a4f3778e386", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "westus2", - "x-ms-keyvault-service-version": "1.9.79.1", - "x-ms-request-id": "09ddf447-3bad-4490-81a6-c94047d4a828", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "PUT", - "url": "https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998596004008/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\"}}", - "status": 200, - "response": "{\"id\":\"https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998596004008/rotationpolicy\",\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\",\"created\":1629299985,\"updated\":1629299985}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "268", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 18 Aug 2021 15:19:45 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "24c554f8-2528-4699-80f7-4195600435d5", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "westus2", - "x-ms-keyvault-service-version": "1.9.79.1", - "x-ms-request-id": "f677e181-e782-455a-ad5b-debc3828d21c", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "updaterotationpolicy": "updaterotationpolicy162929998596004008" - }, - "newDate": {} - }, - "hash": "61aa442d682ded866af0675eab54070b" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.json b/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.json deleted file mode 100644 index 05deaff8c0f0..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/browsers/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"AKV10000: Request is missing a Bearer or PoP token.\"}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "97", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:14 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "401", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "www-authenticate": "Bearer authorization=\"https://login.windows.net/12345678-1234-1234-1234-123456789012\", resource=\"https://vault.azure.net\"", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "a463b3bd-3371-4886-8f34-9ee6e7a564a5", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "ce87950a-a2a6-4871-84cc-6d1959d1d757", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1315", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:15 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - SCUS ProdSlices", - "x-ms-request-id": "17ea1171-a418-4a6c-8404-364aae230200" - } - }, - { - "method": "POST", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/create", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"kty\":\"RSA\"}", - "status": 200, - "response": "{\"key\":{\"kid\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/62b064327aaf418fa123fc6425eedd0b\",\"kty\":\"RSA\",\"key_ops\":[\"encrypt\",\"decrypt\",\"sign\",\"verify\",\"wrapKey\",\"unwrapKey\"],\"n\":\"soIoHeMYLj1mQat9QFjesu2MMabke1oksTkWUDwZuZTZcwTPUjP4ANI14iNqWpGRiCKqMxUAQfLMogkev-2xpFpPF8_dKymLuY_AZ1IzIA-PExDjY1Nb-DqvZTZ-9lQlOTZ4nlDrpsypqJZ_6DdfIAwXiC21ZNBQPZAnJmnm0IRsd2qDTuiVvW8UBp2MqPPw7JIJhMWFJg8bOnCyYsxRwABjcZta9VT4ofSgLOV5wURjtjHvOT00nmt6dLe1x09HGPWit12-f0f2KwkWIEbu2bGJ5Abt8pS5z7DZBDqq4pMyzY4T68y0d8_8D-nxfaI_-4MC7hemnH70-gSToXCIYQ\",\"e\":\"AQAB\"},\"attributes\":{\"enabled\":true,\"created\":1628110575,\"updated\":1628110575,\"recoveryLevel\":\"CustomizedRecoverable+Purgeable\",\"recoverableDays\":7}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "712", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:15 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "a463b3bd-3371-4886-8f34-9ee6e7a564a5", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "c7b9efe9-f1d6-49d2-aace-55636871bc0d", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "PUT", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"lifetimeActions\":[{\"trigger\":{\"timeAfterCreate\":\"P2M\"},\"action\":{\"type\":\"Rotate\"}}],\"attributes\":{}}", - "status": 200, - "response": "{\"id\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/rotationpolicy\",\"lifetimeActions\":[{\"trigger\":{\"timeAfterCreate\":\"P2M\"},\"action\":{\"type\":\"Rotate\"}},{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"created\":1628110576,\"updated\":1628110576}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "310", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:15 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "c740d9ca-5652-404a-87e3-66567248bcd4", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "6da16588-4af4-4c45-8eed-9db922c1d1e7", - "x-powered-by": "ASP.NET" - } - }, - { - "method": "PUT", - "url": "https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/rotationpolicy", - "query": { - "api-version": "7.3-preview" - }, - "requestBody": "{\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\"}}", - "status": 200, - "response": "{\"id\":\"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811057539807738/rotationpolicy\",\"lifetimeActions\":[{\"trigger\":{\"timeBeforeExpiry\":\"P30D\"},\"action\":{\"type\":\"Notify\"}}],\"attributes\":{\"expiryTime\":\"P90D\",\"created\":1628110576,\"updated\":1628110576}}", - "responseHeaders": { - "cache-control": "no-cache", - "content-length": "265", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:56:15 GMT", - "expires": "-1", - "pragma": "no-cache", - "status": "200", - "strict-transport-security": "max-age=31536000;includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "3ec8a0f9-36ca-4b4d-834e-e0a365ebfde7", - "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;", - "x-ms-keyvault-region": "eastus", - "x-ms-keyvault-service-version": "1.9.48.0", - "x-ms-request-id": "3dde7586-e39e-4b15-a40c-f0b38e8534bf", - "x-powered-by": "ASP.NET" - } - } - ], - "uniqueTestInfo": { - "uniqueName": { - "keyrotationpolicy": "keyrotationpolicy162811057539807738" - }, - "newDate": {} - }, - "hash": "48d775741c1f06d6f7a53dbd18df56c5" -} \ No newline at end of file diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.js deleted file mode 100644 index b2f0986caa18..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_returns_undefined_if_there_is_no_rotation_policy.js +++ /dev/null @@ -1,215 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6dec65cc98aac3bcba0355f5a74f2034"; - -module.exports.testInfo = {"uniqueName":{"getrotationpolicy":"getrotationpolicy162811056510303055"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/getrotationpolicy162811056510303055/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '5b838779-7ade-400a-b060-f7705fc33c83', - 'x-ms-request-id', - 'f3dc642e-bb4e-44c3-a8ab-990bedfef318', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:04 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'd1cfdd66-1374-4a88-9d2b-51905fded201', - 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAwAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrZMJUNEnH1XWio8SDnq_yBKOTCnH6EX6O4h2-zP9Cypa3jcIsjClckUd0bu_zic9benUWGXOejCTj274f2c9fXq2I1T4lUEW0oJblogflGzRmHJr0txFra0W9EcoldfPVJ5ZJLIip90hF71Si-V-pMI6oaH0T3qCEJSqRJGjScO0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:04 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'd8909bda-d121-457d-9b40-067a41004801', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAwAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2muWQFsT0e9YCEzPH0p0RzZ9wkx0KwkBdK93-IVSOHKU2xivB_owKUf72cLDlSfhhx_-_6jSXm0mtjViN8mZVhjQw1lg1HSqqVCK2OPnnN3CL68ZbLa0jdMjsgplKxAXf9fL6Vg84d1hn3gLz11uSZvOaEMra7RJZeVyHLqDsZIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=f56c3501-bb99-4ddd-9a9b-54e421e75bcd&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ee0e393c-b6ce-42a5-a0b6-2c70ac9e7901', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBAAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/getrotationpolicy162811056510303055/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/getrotationpolicy162811056510303055/7ab22a9dc8af411ba965f81cfe6d92f0","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"xexPIGdVwLvEzfHPybNyFXbhA5qInS6qqB-JREngXPGmMYZz0Q6f9raa_wGlFK8fyw9wQz1PArwGIYP8De3OSotPaVsnpLwVzKDlqF7-F48LdRC2O1PdKC046yrwGnjHhMKGD9sdjFa_VO99pzHa9Soqwlw_5SydtAylD4F9ZCjsSjaYqZjIXQEzQ9489zBrYDUPqVlJQE7gWyJ2bi8VgXs8s9bSP_xjjugOTGgNGyBB3-RGA-UVz6sDqIM1PRnwRy9T8m6JJPffE48pxRhlvi8bVys6lVk2c1qXjX8V5EoZH3Ay9WzUp6mb1AXiNCpNOsnXK66OGq14a87b02ko0Q","e":"AQAB"},"attributes":{"enabled":true,"created":1628110565,"updated":1628110565,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '5b838779-7ade-400a-b060-f7705fc33c83', - 'x-ms-request-id', - '7828048f-36ac-4b91-af3a-0279e1603b71', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT', - 'Content-Length', - '712' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .get('/keys/getrotationpolicy162811056510303055/rotationpolicy') - .query(true) - .reply(200, {"lifetimeActions":null,"attributes":null}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '8b468919-c125-4ebc-992b-02e565bea3d1', - 'x-ms-request-id', - '29b54947-04d3-460e-9520-d014bb809a71', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT', - 'Content-Length', - '42' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.js deleted file mode 100644 index fe01450f4109..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_getkeyrotationpolicy_supports_tracing.js +++ /dev/null @@ -1,215 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "93eb04ed5ef2868f7a746f8f52ae5cba"; - -module.exports.testInfo = {"uniqueName":{"rotationpolicytracing":"rotationpolicytracing162811056648002190"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/rotationpolicytracing162811056648002190/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '5300188a-ddef-4e41-b694-9db82a0e9f77', - 'x-ms-request-id', - '4ad5f53f-50bf-48bd-81ce-99f1f146ef88', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '5d236dab-10cf-465b-a342-70107b62a301', - 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd8wvTWK7cW3Z1KNaWJjrqnEaF8ChcVWNI9_VTHTH0mhqU_aHidq0HEYxoMDDlJPNvf_KwAlIeOQKFIjNF6wvq2apzo_gfSN74rD0AB-bv7Y-X1mflQidqyorg1BZXGlW5KNDY3Rbm4yC3M35Cx75nu_D_GkEIPzJd8nx6iuq918gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9558fbf8-d109-4b1a-b0ed-778db3115801', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhbes_2K0AFdPWlREhE2XWMqkb_NOM0lz1xhV2nbq6w9xK3i8NArNLhiQkRSAK0QPaYZvSCpqWPNjeqTumeqil9WDazX5FhJ44xLxY8jD9bxvd1oK5LyJjydnq09TU6q9NnKsK-4QSKvUSHKGyvZJlAGCevG_d84DrtN9wuqgH6kgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=cb8df217-b892-4b78-9a4f-346446da3a2f&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '10b8f80c-bff6-46a6-9a38-2fc8a7eb0100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/rotationpolicytracing162811056648002190/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/rotationpolicytracing162811056648002190/957d7747b36e432eb995f266377bc125","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"ldgpQpafGCx4wp-DUkNtd0bmie2o8zYKhBk6hkcxyE2CciwH8qifZKCI0K_sZqLN_6WCIpwQauXAQC4eqUO4evxUYLxz5x5YvCCmS2R2hK3OIEe6MtNuPfrn73j2iQR8hURQX6c7vHMtp_XjaG7QkNXEDoVwdcPr3r-Hl-kpLhTqcZLnHifORhjveMR0JiyPr6e3gnCa302f9tQKaxpCwPUf04unUIEKtIN7IdRcX2cgzkGxnVo7rgenqlcBezVbfTpDDYVR3e-GMbezK62nm61H5dspNcirDb-hHQGsWBjKLlADjQnovc1_zwLXm7BcRy-XW2rE1aNJaaiGUZYjzQ","e":"AQAB"},"attributes":{"enabled":true,"created":1628110566,"updated":1628110566,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '5300188a-ddef-4e41-b694-9db82a0e9f77', - 'x-ms-request-id', - '4ac78150-6b8e-463a-b726-30ce2cde6fdc', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '716' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .get('/keys/rotationpolicytracing162811056648002190/rotationpolicy') - .query(true) - .reply(200, {"lifetimeActions":null,"attributes":null}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'ee05b0ea-9a0f-49f2-a507-458596e5897a', - 'x-ms-request-id', - '42e8739a-1f0c-4c40-9d1d-d23f5831b965', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '42' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.js deleted file mode 100644 index c090145884af..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_rotating_a_key.js +++ /dev/null @@ -1,215 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6f567888b759516f7351c531615709eb"; - -module.exports.testInfo = {"uniqueName":{"keyrotate":"keyrotate162811055942405038"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotate162811055942405038/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '61aa03fd-d0be-4061-9485-29656129980a', - 'x-ms-request-id', - '0d780fba-a6c1-4e6a-bf5b-68e2004e89de', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:55:59 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c534fa8f-2831-4abf-83de-34c366eaab01', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CI; expires=Fri, 03-Sep-2021 20:56:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrb04EjQNKjJ2I0g-tHWLr9f5usdx0lTG3ppIaGa5HiNv5tqCvNJVVQ93WtBE-eB7vA3TjKto-9b9tV-P0zKhTk7xBSlizcWtHrXVqJRRtaRA8W7OkmgfkSbQ8PYGguCsBjhEHOB9omY6VRS92SvKfaKG1QMK0DA7moz7Wc7YSA7EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:55:59 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c6c85d19-18ae-4998-aea5-a46167ba0100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CI; expires=Fri, 03-Sep-2021 20:56:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGXlur4h7pGvp7v7dE_OXJ9jaOKhT10oWWb6gIgbmEg1OAxZXbKIU9iMpRfSSicI5FR63YCwXs9aXSSHeiIPIoU90RHn6V0KxhGwjxZarrtB5BA2QieysJWF3z6WcH7Y6cLco_m2GKL_u0poMjyEkiaLM6Zdf-W6VNEZZ1jCUsM0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:55:59 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=c54ebd49-9228-46fd-85d7-d317c1534c65&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'a359ca03-bbd0-40ab-b360-388b1b0d0a00', - 'x-ms-ests-server', - '2.1.11935.12 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:00 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotate162811055942405038/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotate162811055942405038/e5d4ba9a309d447fba997b05b94b9830","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"1yQYFrTLr-5xYW-sVv_RXw-G3VCoP7B04jFWdCM_d6kCYsGqEIdfdlcK-EaGqDBA-oT1Ctf6tFvhECKL0nozvM2GxpR7evbIb0w0Ge34K9j24XlEEUToRUE7JtWeBNCDoYtgAUJdgSX716B8f9_2hMPAPfDjOsEECqKibC3C6yJz3qyboaDBlAgjvNX3ze1Cs24untr9YhrZPzyY-SwKzPCwT4mEuydGwbi8dmh1ok5S23S01JYmmiCZqUeCvvdeZe-8LrPM5venRMVtrNc76ttxBvX2kAC-IUk9xqtcsUPylj35PrPlP6TVOky6CmCaUDXTx9NJP5dJO-s-kWdi8Q","e":"AQAB"},"attributes":{"enabled":true,"created":1628110560,"updated":1628110560,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '61aa03fd-d0be-4061-9485-29656129980a', - 'x-ms-request-id', - '5f824c6a-c6cc-43dc-b6b4-93be8617edfe', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:00 GMT', - 'Content-Length', - '704' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotate162811055942405038/rotate') - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotate162811055942405038/dbeae578486a4563910c6393417a1046","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"zCXdXUCUG5f-69tcoopczRpVj5lCB3cAOGqNZfSfyczymV2YiHVFz1Ax4J--JU-pbc62KRXmuZhMiK0GwD4PsP1aNE-ru8N01jlvqMShswrGJYend3oFX6y5f3ARYLoI8M2QQHpxJ8E-KEM70mJR4czIHGfjvXnY80eC7agGUf1OxurINl7tBs44un239SX7xNzhJvCIKhGq_amgo2237L1jYsjT4pvOu4xpelQaaNDuZWHJBgNMB_iQEZl_xhXx8fEl-0q1zYlwR6K8fmhdjJhbojcLecF-Q622kirE6FqKHZxzXDERwYHjGTXmXKMnqSI4n5pshbysM2TRwPAMYQ","e":"AQAB"},"attributes":{"enabled":true,"created":1628110560,"updated":1628110560,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'c053cbd6-5f50-4c55-ab9e-699810dd7de2', - 'x-ms-request-id', - 'fdd4940d-4245-405b-95d5-e45a58fdc4cd', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT', - 'Content-Length', - '704' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.js deleted file mode 100644 index a6156662a41a..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_rotatekey_supports_tracing.js +++ /dev/null @@ -1,215 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "51388ce8ab25efecf76415679a8de555"; - -module.exports.testInfo = {"uniqueName":{"keyrotatetracing":"keyrotatetracing162811056119301057"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotatetracing162811056119301057/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'f54631c4-e759-4453-ac3e-f0961b0e27cc', - 'x-ms-request-id', - '260108a7-770b-41d4-847f-873530ab7453', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'f3641da6-b904-4990-a389-8ea241bce701', - 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvM_SOxACS_TDnX27Uw37--aHYO6C2jX9TaAKsupBrcO6jAIq1-9CmwwYp_743l7psCbAi6x4X3___Z1vovwR__bcYkyCjs4pvMTGpdYnTM_LbeKplGEQar5tPuKw4RyPHdzTe_76QE-lbDcOC_7Q-YDTVnIx6Kw7FdKVgYlVKYEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'b6eae89c-abb2-4db2-82fe-ba53a55a0000', - 'x-ms-ests-server', - '2.1.11935.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBImF5aOgiq8jWz65t4HE3xYig6xE1AX7uiU4_S9ikFpqkRxgDIv2x7rLZAQNmuk-hJG7CLfSZUZEDSD4NCzDg2M8SREAAauPtjv2aRT5mk7HbHZg5ix1Buhya5-h0zD_I_CA_7IpECewF_TyNW7ncZC3Htb-pk4J89DD14Je1dIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d7be2ff7-fa06-4295-82ad-86ab4a1a211a&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '10b8f80c-bff6-46a6-9a38-2fc867ea0100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotatetracing162811056119301057/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811056119301057/3f0b74c57b9c43c5b35d63ad2d6df624","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"uv7GnH_AyHas9k44U3TazDrdFBpAPD_AIxI4pFfdp3AHX_6dH75Wks7tjkvysjGS1nC_pad27p2LUy-70sU5Lo0dGge-oemrCRH5nNkPpADjlpgK9yXuJ_6okZ6yWFMxgyP23qWsHpErQ0QwcsYgEpg9ujtWrHeSlWQ4AaOK-TvvifCfd_cszsYZXCDHjJGckQPn7WNVF6sit_fjqRyoX72I7fG_dZKbkndehE90_W6mPuHls9v4T7rsn14FhWqCy4sdHwZnyehhqX802_z2luwAinjcCFxQ-fGfzULqJ-AV1dADRDa9CHK8xS_nFQTJ-ROHYmYFI_6RyxSnc-1m6Q","e":"AQAB"},"attributes":{"enabled":true,"created":1628110561,"updated":1628110561,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'f54631c4-e759-4453-ac3e-f0961b0e27cc', - 'x-ms-request-id', - 'e93c9f7f-fd69-4da8-8f21-0b2d3c42c06e', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:01 GMT', - 'Content-Length', - '711' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotatetracing162811056119301057/rotate') - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotatetracing162811056119301057/d5cc26c84f0c4fa586c7514c2676dc78","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"zLDBNPvbKsY1ncdxmXp9ZXe7yTiY_BBf4i3Pp4JQSdJFam4Dq33i3coZszuvnJxcXXbuuXtPZlbm8PnKv-FwskRz9rd_bgBEYAPyi18nb51CwMRSubLnC5K2eCyLUWgzduO6C4GC2SCYWjLp0N7YoOoGGmzOOUOdATapNiV4foAlG4AOld_5lXZOH2CTQbgqaDX_E8DQ5vi099q_xPmk6xN3LP2U0_Bb9uL_9XEnGV48QHZfuXODuAcolPNMdtW8-ccqxwUXGopwB0ZYLZd0tEzY3GIuc39hzwzrwi4A7Txacox1hzqOEkqjdpDsPjJ232qVy9CoTSDnr3zPw1qYdQ","e":"AQAB"},"attributes":{"enabled":true,"created":1628110561,"updated":1628110561,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '5511824d-e160-4162-b4ad-87a3aab6e241', - 'x-ms-request-id', - 'c1d284e8-c042-4595-91e0-c6b67831907b', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '711' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.js deleted file mode 100644 index d8e5258015fa..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_throws_when_attempting_to_fetch_a_policy_of_a_nonexistent_key.js +++ /dev/null @@ -1,181 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "d83a7289c14f74c74c44e9cb7544ddbc"; - -module.exports.testInfo = {"uniqueName":{"nonexistentkey":"nonexistentkey162811056595000857"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .get('/keys/nonexistentkey162811056595000857/rotationpolicy') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '68dbd0af-a763-42ab-89dc-a5266ebfcb8d', - 'x-ms-request-id', - 'd77bb4c7-72f1-4d5b-b1e3-2e3ed7a58050', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'faca8948-e921-4883-9a78-6cb4536fe101', - 'x-ms-ests-server', - '2.1.11898.12 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBAAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrntxdU7rTO0eD8PgC5_Xw1yUH9hAHN01rggBFBmLQmP7RB6HrN-tqTCf-gN6QdRKbmKBXCYNo0RevtbvhaoA79Y1GLI4Vx1CoXIfI00z1_nnMWh_HZjOaK5TtulMkf0RW7K-nP0LZhJVW78qt4XsT5WUIPGdTrtSNC5agHWVvFxggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Length', - '1753', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9558fbf8-d109-4b1a-b0ed-778d99115801', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBAAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4cU3GH9wklX76Z6u6mEzUNe7Zf1EPGIodEE0UhljItjhTy38HZbS7hexpc-bXgzvAPkheVhC1p-pJ4_d_vvbh7L_92MH4mXPGIdcrxran47tCT5c4ikyDFofEO5fyzRC-Zm6xZTAWXMM6gdSsYTFlBBIyRhBpEWmsHIJpRUYRuggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=1a71bd1f-60ff-4dcb-acea-479fcb1cc72b&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9558fbf8-d109-4b1a-b0ed-778d9e115801', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUBQAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:06 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:06 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .get('/keys/nonexistentkey162811056595000857/rotationpolicy') - .query(true) - .reply(404, {"error":{"code":"KeyNotFound","message":"A key with (name/id) nonexistentkey162811056595000857 was not found in this key vault. If you recently deleted this key you may be able to recover it using the correct recovery command. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125182"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '320', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '68dbd0af-a763-42ab-89dc-a5266ebfcb8d', - 'x-ms-request-id', - '46272c88-3479-472f-a4aa-7457e9e63e36', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:05 GMT' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.js deleted file mode 100644 index 49b46b74fdf9..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_creating_a_new_rotation_policy_and_fetching_it.js +++ /dev/null @@ -1,249 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "846e85ef52695740ee29e1eecbcc0af4"; - -module.exports.testInfo = {"uniqueName":{"keyrotationpolicy":"keyrotationpolicy162811056222009526"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotationpolicy162811056222009526/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'c7e37304-bf74-41e1-be25-defb2d7325cc', - 'x-ms-request-id', - '0aed94fb-8d97-4acd-a97b-06f8bfcc65f3', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '63864d31-6053-4a5a-8b54-094a5decb701', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_vaBmiUMKorgcg2RrRGTQfp19xVWFFFvBXLzSbnynLibFq-_glrUaLGBDYhYAwRirV3U3ETKpEW4_I8c-9UqFjZ_0xcNiUXqihQLWFgSpIj1MeWCjiQlY3nKIqfb2yfIB2kmIlWDgDKmcN4h91hcEAwMlg_doP1gNH-ztySosN4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ee0e393c-b6ce-42a5-a0b6-2c700b9e7901', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAumn_GMJ-EhQwaXasN0pYFCRs88BFCjUs4BfI23UziMRL2gPic6Q-50Qco4RFgeVLFcKztdElr22NCNTSoWDeiouWD1eMKIH39WUm5Zu-dS7VD96DaPT8PTF85vfQciPYD0evFu20djfav93YBV2GYQNLM528aOX1ykq6tq3e_8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=9462bcc8-15e1-4963-b9cc-43b1ba727a91&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '10b8f80c-bff6-46a6-9a38-2fc8b0ea0100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotationpolicy162811056222009526/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056222009526/992ef2bd551b4f38a32ae5f5ccf7abe6","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"u0P7-5U8Od7VoY8CPcDdahXHg9mGOt1w-6PB-rhcIkSoEqoYgsgOujlNYSAIXgFkOfifdD_nysD23BfcbLf7fU_l4CVR6N00biAsh3ACa6b4E4Wb6dGQwQ99pe3_pDnswP9S_q_CQ9-VRNWfklxh3uwAOdPIJt8zQFKcD3S6HwkI2wfbmH8yozy1Ys9aStuSyPqblG_3i4ec2_07m8Qo5YahGj_Y5FtH6LRh6D-0FAXqPITZ28XntQqSoA9Z5CMLbBLaks3Kc4xg8NOUawcXg5jUGg1wvgHaOoX2vroyy0fDLLW4oToo7zdG4m00-091JHPpMasaABTNTJBT8qF8PQ","e":"AQAB"},"attributes":{"enabled":true,"created":1628110562,"updated":1628110562,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'c7e37304-bf74-41e1-be25-defb2d7325cc', - 'x-ms-request-id', - '586f3624-12e4-49c8-b4a1-25147e35dc42', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '712' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .put('/keys/keyrotationpolicy162811056222009526/rotationpolicy', {"lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Rotate"}}],"attributes":{"expiryTime":"P90D"}}) - .query(true) - .reply(200, {"id":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056222009526/rotationpolicy","lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Rotate"}},{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D","created":1628110562,"updated":1628110562}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'bc0deda9-ff3f-449e-aeb7-bcef9aacc41e', - 'x-ms-request-id', - '45a3bfbd-ed93-4341-be96-8d77313a8cc5', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:02 GMT', - 'Content-Length', - '332' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .get('/keys/keyrotationpolicy162811056222009526/rotationpolicy') - .query(true) - .reply(200, {"id":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056222009526/rotationpolicy","lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Rotate"}},{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D","created":1628110562,"updated":1628110562}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '14b16daf-c8bc-41ce-a5d3-a39be10cd77f', - 'x-ms-request-id', - '56abe90d-fca3-4316-a13e-25b2b86c11d5', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '332' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.js deleted file mode 100644 index be85b9cc4634..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_tracing.js +++ /dev/null @@ -1,215 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "51c86d86d7f38de092102afb54239aa7"; - -module.exports.testInfo = {"uniqueName":{"updaterotationpolicy":"updaterotationpolicy162929998008007828"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/updaterotationpolicy162929998008007828/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'westus2', - 'x-ms-client-request-id', - '86536fab-f981-45b6-81cf-80abad0d387b', - 'x-ms-request-id', - 'fbb1326d-f562-4e44-a889-5cf70cbb7436', - 'x-ms-keyvault-service-version', - '1.9.79.1', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 18 Aug 2021 15:19:38 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Length', - '980', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8980e80c-1245-470c-a2d9-c64bd1ff2700', - 'x-ms-ests-server', - '2.1.11935.14 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Agg9QugDTIVAqtEt_VpXdU0; expires=Fri, 17-Sep-2021 15:19:39 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIau1co5ywatQlxNHap0rFiQj_hVwV5CA3riiPCoYKmk-AkncFakyvU1RmwXNvt7onUukX7pGCioVBVKM2NIlCvFHtK35VBs0QI3yD9EW5Vw81H7e1YKOjV0UK8tl8Clur2L2cF1xUgSrAQebgneqOOZru_B_0Keh_GHtykR-pRcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 18 Aug 2021 15:19:38 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '50118e5f-150a-47b7-8cda-d214b08c0401', - 'x-ms-ests-server', - '2.1.11961.8 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Agg9QugDTIVAqtEt_VpXdU0; expires=Fri, 17-Sep-2021 15:19:39 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNskCSAgbUevB2CTLTvOOBtcjvzeeaGItaD2fGCoRe2yBJ0MubdHcLoZHHUZzeWXIVfKz0NPPEkpdh4VgkqMv9gw8cvf9bHxrzsWgazROnAYjUGaWrIWnSsGtO4LGoF5oe95o2-fpLm0ltEiZfo2ADWbUoQBnZzVTD8uoltwOGj4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 18 Aug 2021 15:19:39 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=317fa48f-d1e2-439e-a0be-5c42a3e82c2f&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '0bef0ead-5893-4285-b239-2119ccb0e200', - 'x-ms-ests-server', - '2.1.11961.8 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Agg9QugDTIVAqtEt_VpXdU1eySe-AQAAAAscr9gOAAAA; expires=Fri, 17-Sep-2021 15:19:40 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 18 Aug 2021 15:19:39 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/updaterotationpolicy162929998008007828/create', {"kty":"EC"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998008007828/023b4c0c0f7f4561a2073e0b86fcfd37","kty":"EC","key_ops":["sign","verify"],"crv":"P-256","x":"FEghFZiB93t78bTzCtGFP7uPPW5X83yARUGSO0qKzYE","y":"DG1-zU1ofhYgUJLGEC39bfg9zZqzgi86rjpKa9Ku6zE"},"attributes":{"enabled":true,"created":1629299980,"updated":1629299980,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'westus2', - 'x-ms-client-request-id', - '86536fab-f981-45b6-81cf-80abad0d387b', - 'x-ms-request-id', - '3e4e82a7-1291-4dd4-a4f8-d5206476065f', - 'x-ms-keyvault-service-version', - '1.9.79.1', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 18 Aug 2021 15:19:39 GMT', - 'Content-Length', - '426' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .put('/keys/updaterotationpolicy162929998008007828/rotationpolicy', {"lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D"}}) - .query(true) - .reply(200, {"id":"https://keyvault_name.vault.azure.net/keys/updaterotationpolicy162929998008007828/rotationpolicy","lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D","created":1629299980,"updated":1629299980}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'westus2', - 'x-ms-client-request-id', - 'f363bb8b-a66e-45f7-890b-8715e2dfd652', - 'x-ms-request-id', - '36ffd0d8-4d7b-443f-8b0f-15713037ee85', - 'x-ms-keyvault-service-version', - '1.9.79.1', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 18 Aug 2021 15:19:39 GMT', - 'Content-Length', - '268' -]); diff --git a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.js b/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.js deleted file mode 100644 index b12bfb7f1416..000000000000 --- a/sdk/keyvault/keyvault-keys/recordings/node/keys_client__create_read_update_and_delete_operations_key_rotation/recording_updatekeyrotationpolicy_supports_updating_an_existing_policy.js +++ /dev/null @@ -1,249 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "11e6e958f4c9616eb52ab30b3123a76c"; - -module.exports.testInfo = {"uniqueName":{"keyrotationpolicy":"keyrotationpolicy162811056325905459"},"newDate":{}} - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotationpolicy162811056325905459/create') - .query(true) - .reply(401, {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '97', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'WWW-Authenticate', - 'Bearer authorization="https://login.windows.net/12345678-1234-1234-1234-123456789012", resource="https://vault.azure.net"', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '45d96ad6-1414-40a5-a716-d6412ff09922', - 'x-ms-request-id', - 'b51a6466-0329-44ad-8a7b-0d1cd12d0a31', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c8306b55-04f1-4a1d-8aed-f06d31c4ae01', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbvFKO0JZP0e4ynDenqc2FaMO0HaOCrFwuCWAvdbHN1R2jns5CX7pxrndhJicoH4w5tah1-YVH4YI82hPNitPGzVFUZXNjCMDz1EOhzf4uqKAOIe2JXdgv7FXCJMDjfmfswRUlXE7XptV60arE4f44Bob2Gt70d6JS5i2mx5cFKsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c6c85d19-18ae-4998-aea5-a46147bb0100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAgAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqGUzemiwp4BEj-ODnNccezV5duvVOwMzU7L55l8jkSBXyP-jC92_DqAeJol7SE8a5JlBBOL5lRUjnoSXsv07SlCSM0nB2WFmZn3waUaEHqDbEJFuvkpYlXEkTTBzQs95AEgiwwD6WrTQibOtYXloT9FNfmPObeVRewbYpt_3VHAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.2.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=a2807cee-8c8c-442d-a0f7-c8cdafe24934&client_secret=azure_client_secret") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ccae6b68-540d-42f7-a248-216a33d30100', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ako-ybgyu-xEmwPTUI8x8CKN_3OUAwAAAN_1nNgOAAAA; expires=Fri, 03-Sep-2021 20:56:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '1315' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .post('/keys/keyrotationpolicy162811056325905459/create', {"kty":"RSA"}) - .query(true) - .reply(200, {"key":{"kid":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056325905459/a79ca5fabe7c4c5984b2d7843f30479d","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"5-OLcAHW2WAHyvLwP57hKI19BqOCA4VIp0rpJBjh2KXsmjLwP8ykLNqQrDV3gd31qfWlEerddLpyjKaoCEk1g9otkybTdYjtQMVRPdFS8wG7N4_GhEtmwLywsj3ypkGdY-y7pVJT3XNniA223tEVu-0YHWsG2ZFOmHhqKcBdzLwU6lounuOMWrYrRG_I_vEZKJaIpmrVl8CfziyVahNHOAwVtzsKXf83tblI8ZMAAvhRtJN8YWF7FM1nmOfPfph3iyEkLSwCVpDEKWEUxRdUOyVYttdpioA8cHVKiIUMrK0fjcs0OeMV5J88bIwU6IZe8gE5leIHKrb0Wtm-RwzDfQ","e":"AQAB"},"attributes":{"enabled":true,"created":1628110563,"updated":1628110563,"recoveryLevel":"CustomizedRecoverable+Purgeable","recoverableDays":7}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - '45d96ad6-1414-40a5-a716-d6412ff09922', - 'x-ms-request-id', - '670ac019-1d30-4d3d-8e75-5731a9762ef3', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '712' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .put('/keys/keyrotationpolicy162811056325905459/rotationpolicy', {"lifetimeActions":[{"trigger":{"timeAfterCreate":"P2M"},"action":{"type":"Rotate"}}],"attributes":{}}) - .query(true) - .reply(200, {"id":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056325905459/rotationpolicy","lifetimeActions":[{"trigger":{"timeAfterCreate":"P2M"},"action":{"type":"Rotate"}},{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"created":1628110563,"updated":1628110563}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'ea512208-42cf-46f7-8ad6-1a1b373cd221', - 'x-ms-request-id', - '9abd8d32-26c5-4b9e-8a38-163957a6b040', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:03 GMT', - 'Content-Length', - '310' -]); - -nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true}) - .put('/keys/keyrotationpolicy162811056325905459/rotationpolicy', {"lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D"}}) - .query(true) - .reply(200, {"id":"https://keyvault_name.vault.azure.net/keys/keyrotationpolicy162811056325905459/rotationpolicy","lifetimeActions":[{"trigger":{"timeBeforeExpiry":"P30D"},"action":{"type":"Notify"}}],"attributes":{"expiryTime":"P90D","created":1628110563,"updated":1628110564}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'x-ms-keyvault-region', - 'eastus', - 'x-ms-client-request-id', - 'ee8bbb95-8ef3-4ee9-b92d-1cb3638bcfdd', - 'x-ms-request-id', - 'cd192336-ec1f-43af-b840-480fff0dfe82', - 'x-ms-keyvault-service-version', - '1.9.48.0', - 'x-ms-keyvault-network-info', - 'conn_type=Ipv4;addr=50.35.231.105;act_addr_fam=InterNetwork;', - 'X-Powered-By', - 'ASP.NET', - 'Strict-Transport-Security', - 'max-age=31536000;includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Wed, 04 Aug 2021 20:56:04 GMT', - 'Content-Length', - '265' -]); diff --git a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md index 7989b5ca4247..0c730f91db0d 100644 --- a/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md +++ b/sdk/keyvault/keyvault-keys/review/keyvault-keys.api.md @@ -177,10 +177,6 @@ export interface GetKeyOptions extends coreHttp.OperationOptions { version?: string; } -// @public -export interface GetKeyRotationPolicyOptions extends coreHttp.OperationOptions { -} - // @public export interface GetRandomBytesOptions extends coreHttp.OperationOptions { } @@ -230,7 +226,6 @@ export class KeyClient { createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise; getDeletedKey(name: string, options?: GetDeletedKeyOptions): Promise; getKey(name: string, options?: GetKeyOptions): Promise; - getKeyRotationPolicy(name: string, options?: GetKeyRotationPolicyOptions): Promise; getRandomBytes(count: number, options?: GetRandomBytesOptions): Promise; importKey(name: string, key: JsonWebKey, options?: ImportKeyOptions): Promise; listDeletedKeys(options?: ListDeletedKeysOptions): PagedAsyncIterableIterator; @@ -239,10 +234,8 @@ export class KeyClient { purgeDeletedKey(name: string, options?: PurgeDeletedKeyOptions): Promise; releaseKey(name: string, target: string, options?: ReleaseKeyOptions): Promise; restoreKeyBackup(backup: Uint8Array, options?: RestoreKeyBackupOptions): Promise; - rotateKey(name: string, options?: RotateKeyOptions): Promise; updateKeyProperties(name: string, keyVersion: string, options?: UpdateKeyPropertiesOptions): Promise; updateKeyProperties(name: string, options?: UpdateKeyPropertiesOptions): Promise; - updateKeyRotationPolicy(name: string, policy: KeyRotationPolicyProperties, options?: UpdateKeyRotationPolicyOptions): Promise; readonly vaultUrl: string; } @@ -293,29 +286,6 @@ export interface KeyReleasePolicy { data?: Uint8Array; } -// @public -export interface KeyRotationLifetimeAction { - action: KeyRotationPolicyAction; - timeAfterCreate?: string; - timeBeforeExpiry?: string; -} - -// @public -export interface KeyRotationPolicy extends KeyRotationPolicyProperties { - readonly createdOn: Date; - readonly id: string; - readonly updatedOn?: Date; -} - -// @public -export type KeyRotationPolicyAction = "Rotate" | "Notify"; - -// @public -export interface KeyRotationPolicyProperties { - expiresIn?: string; - lifetimeActions?: KeyRotationLifetimeAction[]; -} - // @public export type KeyType = string; @@ -467,10 +437,6 @@ export interface ReleaseKeyResult { export interface RestoreKeyBackupOptions extends coreHttp.OperationOptions { } -// @public -export interface RotateKeyOptions extends coreHttp.OperationOptions { -} - // @public export interface RsaDecryptParameters { algorithm: RsaEncryptionAlgorithm; @@ -523,10 +489,6 @@ export interface UpdateKeyPropertiesOptions extends coreHttp.OperationOptions { }; } -// @public -export interface UpdateKeyRotationPolicyOptions extends coreHttp.OperationOptions { -} - // @public export interface VerifyDataOptions extends CryptographyOptions { } diff --git a/sdk/keyvault/keyvault-keys/samples-dev/keyRotation.ts b/sdk/keyvault/keyvault-keys/samples-dev/keyRotation.ts deleted file mode 100644 index 1928f9ecb935..000000000000 --- a/sdk/keyvault/keyvault-keys/samples-dev/keyRotation.ts +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** - * @summary Creates and updates a key's automated rotation policy, and rotates a key on-demand. - */ - -import { KeyClient } from "@azure/keyvault-keys"; -import { DefaultAzureCredential } from "@azure/identity"; - -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); - -export async function main(): Promise { - // DefaultAzureCredential expects the following three environment variables: - // - AZURE_TENANT_ID: The tenant ID in Azure Active Directory - // - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant - // - AZURE_CLIENT_SECRET: The client secret for the registered application - const credential = new DefaultAzureCredential(); - - const url = process.env["KEYVAULT_URI"] || ""; - const client = new KeyClient(url, credential); - - const uniqueString = `KeyRotationSample${Date.now()}`; - const keyName = `KeyName${uniqueString}`; - const key = await client.createKey(keyName, "EC"); - console.log("created key", key); - - // Set the key's automated rotation policy to rotate 30 days before the key expires. - const policy = await client.updateKeyRotationPolicy(key.name, { - lifetimeActions: [ - { - action: "Rotate", - timeBeforeExpiry: "P30D" - } - ], - expiresIn: "P90D" - }); - console.log("created policy", policy); - - // Get the key's current rotation policy - const currentPolicy = await client.getKeyRotationPolicy(key.name); - console.log("fetched policy", currentPolicy); - - // Update the key's automated rotation policy to notify 30 days after the key was created - const updatedPolicy = await client.updateKeyRotationPolicy(key.name, { - lifetimeActions: [ - { - action: "Notify", - timeAfterCreate: "P30D" - } - ] - }); - console.log("updated policy", updatedPolicy); - - // Rotate the key on-demand, generating a new version of the key. - const newKeyVersion = await client.rotateKey(key.name); - console.log("rotated key", newKeyVersion); - - // Delete the key. Deleting a key is a long running operation; however, for this sample we will - // fire-and-forget the process and assume the key was successfully deleted. - await client.beginDeleteKey(key.name); -} - -main().catch((err) => { - console.log("error code: ", err.code); - console.log("error message: ", err.message); - console.log("error stack: ", err.stack); -}); diff --git a/sdk/keyvault/keyvault-keys/src/generated/models/index.ts b/sdk/keyvault/keyvault-keys/src/generated/models/index.ts index 243e0084491d..cb7059f1b4f9 100644 --- a/sdk/keyvault/keyvault-keys/src/generated/models/index.ts +++ b/sdk/keyvault/keyvault-keys/src/generated/models/index.ts @@ -678,7 +678,7 @@ export enum KnownKeyEncryptionAlgorithm { */ export type KeyEncryptionAlgorithm = string; /** Defines values for ActionType. */ -export type ActionType = "Rotate" | "Notify"; +export type ActionType = "rotate" | "notify"; /** Optional parameters. */ export interface KeyVaultClientCreateKeyOptionalParams diff --git a/sdk/keyvault/keyvault-keys/src/generated/models/mappers.ts b/sdk/keyvault/keyvault-keys/src/generated/models/mappers.ts index a7f108f88509..7c2fd278f194 100644 --- a/sdk/keyvault/keyvault-keys/src/generated/models/mappers.ts +++ b/sdk/keyvault/keyvault-keys/src/generated/models/mappers.ts @@ -864,7 +864,7 @@ export const LifetimeActionsType: coreHttp.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: ["Rotate", "Notify"] + allowedValues: ["rotate", "notify"] } } } diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index b5064abfb5e8..b3689167df63 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -65,14 +65,7 @@ import { ReleaseKeyResult, KeyReleasePolicy, KeyExportEncryptionAlgorithm, - RandomBytes, - RotateKeyOptions, - UpdateKeyRotationPolicyOptions, - GetKeyRotationPolicyOptions, - KeyRotationLifetimeAction, - KeyRotationPolicy, - KeyRotationPolicyProperties, - KeyRotationPolicyAction + RandomBytes } from "./keysModels"; import { CryptographyClient } from "./cryptographyClient"; @@ -115,8 +108,7 @@ import { KeyVaultKeyIdentifier, parseKeyVaultKeyIdentifier } from "./identifier" import { getDeletedKeyFromDeletedKeyItem, getKeyFromKeyBundle, - getKeyPropertiesFromKeyItem, - keyRotationTransformations + getKeyPropertiesFromKeyItem } from "./transformations"; import { createTraceFunction } from "../../keyvault-common/src"; @@ -182,7 +174,6 @@ export { PollerLike, PurgeDeletedKeyOptions, RestoreKeyBackupOptions, - RotateKeyOptions, SignOptions, SignResult, UnwrapKeyOptions, @@ -193,17 +184,11 @@ export { VerifyResult, WrapKeyOptions, WrapResult, + logger, ReleaseKeyOptions, ReleaseKeyResult, KeyReleasePolicy, - KeyExportEncryptionAlgorithm, - KeyRotationPolicyAction, - KeyRotationPolicyProperties, - KeyRotationPolicy, - KeyRotationLifetimeAction, - UpdateKeyRotationPolicyOptions, - GetKeyRotationPolicyOptions, - logger + KeyExportEncryptionAlgorithm }; const withTrace = createTraceFunction("Azure.KeyVault.Keys.KeyClient"); @@ -742,25 +727,6 @@ export class KeyClient { }); } - /** - * Rotates the key based on the key policy by generating a new version of the key. This operation requires the keys/rotate permission. - * - * Example usage: - * ```ts - * let client = new KeyClient(vaultUrl, credentials); - * let key = await client.rotateKey("MyKey"); - * ``` - * - * @param name - The name of the key to rotate. - * @param options - The optional parameters. - */ - public rotateKey(name: string, options: RotateKeyOptions = {}): Promise { - return withTrace("rotateKey", options, async (updatedOptions) => { - const key = await this.client.rotateKey(this.vaultUrl, name, updatedOptions); - return getKeyFromKeyBundle(key); - }); - } - /** * Releases a key from a managed HSM. * @@ -773,7 +739,6 @@ export class KeyClient { * ``` * * @param name - The name of the key. - * @param target - The attestation assertion for the target of the key release. * @param options - The optional parameters. */ public releaseKey( @@ -798,63 +763,6 @@ export class KeyClient { return { value: result.value! }; }); } - - /** - * Gets the rotation policy of a Key Vault Key. - * - * Example usage: - * ```ts - * let client = new KeyClient(vaultUrl, credentials); - * await client.updateKeyRotationPolicy("MyKey", myPolicy); - * let result = await client.getKeyRotationPolicy("myKey"); - * ``` - * - * @param name - The name of the key. - * @param options - The optional parameters. - */ - public getKeyRotationPolicy( - name: string, - options: GetKeyRotationPolicyOptions = {} - ): Promise { - return withTrace("getKeyRotationPolicy", options, async () => { - const policy = await this.client.getKeyRotationPolicy(this.vaultUrl, name); - if (policy.id) { - return keyRotationTransformations.generatedToPublic(policy); - } - - return undefined; - }); - } - - /** - * Updates the rotation policy of a Key Vault Key. - * - * Example usage: - * ```ts - * let client = new KeyClient(vaultUrl, credentials); - * const setPolicy = await client.updateKeyRotationPolicy("MyKey", myPolicy); - * ``` - * - * @param name - The name of the key. - * @param policyProperties - The {@link KeyRotationPolicyProperties} for the policy. - * @param options - The optional parameters. - */ - public updateKeyRotationPolicy( - name: string, - policy: KeyRotationPolicyProperties, - options: UpdateKeyRotationPolicyOptions = {} - ): Promise { - return withTrace("updateKeyRotationPolicy", options, async (updatedOptions) => { - const result = await this.client.updateKeyRotationPolicy( - this.vaultUrl, - name, - keyRotationTransformations.propertiesToGenerated(policy), - updatedOptions - ); - return keyRotationTransformations.generatedToPublic(result); - }); - } - /** * @internal * @hidden diff --git a/sdk/keyvault/keyvault-keys/src/keysModels.ts b/sdk/keyvault/keyvault-keys/src/keysModels.ts index 63af4ba50fc8..cbeb0cc35255 100644 --- a/sdk/keyvault/keyvault-keys/src/keysModels.ts +++ b/sdk/keyvault/keyvault-keys/src/keysModels.ts @@ -600,77 +600,3 @@ export interface RandomBytes { /** The random bytes returned by the service. */ bytes: Uint8Array; } -/** - * Options for {@link KeyClient.rotateKey} - */ -export interface RotateKeyOptions extends coreHttp.OperationOptions {} - -/** - * The properties of a key rotation policy that the client can set for a given key. - */ -export interface KeyRotationPolicyProperties { - /** - * The expiry time of the policy that will be applied on new key versions, defined as an ISO 8601 duration. - */ - expiresIn?: string; - - /** - * Actions that will be performed by Key Vault over the lifetime of a key. - */ - lifetimeActions?: KeyRotationLifetimeAction[]; -} - -/** - * The complete key rotation policy that belongs to a key. - */ -export interface KeyRotationPolicy extends KeyRotationPolicyProperties { - /** - * The identifier of the Key Rotation Policy. - */ - readonly id: string; - - /** - * The created time in UTC. - */ - readonly createdOn: Date; - - /** - * The last updated time in UTC. - */ - readonly updatedOn?: Date; -} - -/** - * An action and its corresponding trigger that will be performed by Key Vault over the lifetime of a key. - */ -export interface KeyRotationLifetimeAction { - /** - * Time after creation to attempt the specified action, defined as an ISO 8601 duration. - */ - timeAfterCreate?: string; - - /** - * Time before expiry to attempt the specified action, defined as an ISO 8601 duration. - */ - timeBeforeExpiry?: string; - - /** - * The action that will be executed. - */ - action: KeyRotationPolicyAction; -} - -/** - * The action that will be executed. - */ -export type KeyRotationPolicyAction = "Rotate" | "Notify"; - -/** - * Options for {@link KeyClient.updateKeyRotationPolicy} - */ -export interface UpdateKeyRotationPolicyOptions extends coreHttp.OperationOptions {} - -/** - * Options for {@link KeyClient.getRotationPolicy} - */ -export interface GetKeyRotationPolicyOptions extends coreHttp.OperationOptions {} diff --git a/sdk/keyvault/keyvault-keys/src/transformations.ts b/sdk/keyvault/keyvault-keys/src/transformations.ts index dc37a3458a79..105580ccaf0c 100644 --- a/sdk/keyvault/keyvault-keys/src/transformations.ts +++ b/sdk/keyvault/keyvault-keys/src/transformations.ts @@ -6,20 +6,10 @@ import { DeletedKeyItem, KeyAttributes, KeyBundle, - KeyItem, - KeyRotationPolicy as GeneratedPolicy, - LifetimeActions + KeyItem } from "./generated/models"; import { parseKeyVaultKeyIdentifier } from "./identifier"; -import { - DeletedKey, - KeyVaultKey, - JsonWebKey, - KeyOperation, - KeyProperties, - KeyRotationPolicy, - KeyRotationPolicyProperties -} from "./keysModels"; +import { DeletedKey, KeyVaultKey, JsonWebKey, KeyOperation, KeyProperties } from "./keysModels"; /** * @internal @@ -121,51 +111,3 @@ export function getKeyPropertiesFromKeyItem(keyItem: KeyItem): KeyProperties { return resultObject; } - -/** - * @internal - */ -export const keyRotationTransformations = { - propertiesToGenerated: function( - parameters: KeyRotationPolicyProperties - ): Partial { - const policy: GeneratedPolicy = { - attributes: { - expiryTime: parameters.expiresIn - }, - lifetimeActions: parameters.lifetimeActions?.map((action) => { - const generatedAction: LifetimeActions = { - action: { type: action.action }, - trigger: {} - }; - - if (action.timeAfterCreate) { - generatedAction.trigger!.timeAfterCreate = action.timeAfterCreate; - } - - if (action.timeBeforeExpiry) { - generatedAction.trigger!.timeBeforeExpiry = action.timeBeforeExpiry; - } - - return generatedAction; - }) - }; - return policy; - }, - generatedToPublic(generated: GeneratedPolicy): KeyRotationPolicy { - const policy: KeyRotationPolicy = { - id: generated.id!, - createdOn: generated.attributes!.created!, - updatedOn: generated.attributes?.updated, - expiresIn: generated.attributes?.expiryTime, - lifetimeActions: generated.lifetimeActions?.map((action) => { - return { - action: action.action!.type!, - timeAfterCreate: action.trigger?.timeAfterCreate, - timeBeforeExpiry: action.trigger?.timeBeforeExpiry - }; - }) - }; - return policy; - } -}; diff --git a/sdk/keyvault/keyvault-keys/swagger/README.md b/sdk/keyvault/keyvault-keys/swagger/README.md index 13d26d4397da..b36191e2e6ed 100644 --- a/sdk/keyvault/keyvault-keys/swagger/README.md +++ b/sdk/keyvault/keyvault-keys/swagger/README.md @@ -35,16 +35,3 @@ directive: transform: > $["x-ms-client-name"] = "authenticationTag" ``` - -### Update swagger enum values for LifetimeActionsType to reflect what the service actually returns - -There is an ongoing thread about changing the swagger or returning lowercase values for enum values. - -```yaml -directive: - - from: swagger-document - where: $.definitions.LifetimeActionsType.properties["type"]["x-ms-enum"] - transform: > - $.values[0].value = "Rotate"; - $.values[1].value = "Notify"; -``` diff --git a/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts index c94e790d8435..030e1500c6d4 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts @@ -2,24 +2,12 @@ // Licensed under the MIT license. import { assert } from "chai"; -import { - DeletedKeyBundle, - DeletedKeyItem, - KeyBundle, - KeyRotationPolicy as GeneratedKeyRotationPolicy -} from "../../src/generated"; -import { - DeletedKey, - KeyProperties, - KeyVaultKey, - KeyRotationPolicy, - KeyRotationPolicyProperties -} from "../../src/keysModels"; +import { DeletedKeyBundle, DeletedKeyItem, KeyBundle } from "../../src/generated"; +import { DeletedKey, KeyProperties, KeyVaultKey } from "../../src/keysModels"; import { getDeletedKeyFromDeletedKeyItem, getKeyFromKeyBundle, - getKeyPropertiesFromKeyItem, - keyRotationTransformations + getKeyPropertiesFromKeyItem } from "../../src/transformations"; import { stringToUint8Array } from "../utils/crypto"; @@ -265,89 +253,4 @@ describe("Transformations", () => { const key: KeyProperties = getKeyPropertiesFromKeyItem(item); assert.deepEqual(key, expectedResult); }); - - describe("keyRotationTransformations", () => { - it("converts generated to public", () => { - const date = new Date(); - const generated: GeneratedKeyRotationPolicy = { - attributes: { - created: date, - expiryTime: "P30D", - updated: date - }, - id: "policy-id", - lifetimeActions: [ - { - action: { type: "Rotate" }, - trigger: { timeAfterCreate: "P90D", timeBeforeExpiry: "P90D" } - }, - { - action: { type: "Notify" }, - trigger: { timeAfterCreate: "P90D", timeBeforeExpiry: "P90D" } - } - ] - }; - - const expected: KeyRotationPolicy = { - createdOn: date, - expiresIn: "P30D", - updatedOn: date, - id: "policy-id", - lifetimeActions: [ - { - action: "Rotate", - timeAfterCreate: "P90D", - timeBeforeExpiry: "P90D" - }, - { - action: "Notify", - timeAfterCreate: "P90D", - timeBeforeExpiry: "P90D" - } - ] - }; - - assert.deepEqual(keyRotationTransformations.generatedToPublic(generated), expected); - }); - - it("converts properties to generated", () => { - const publicPolicy: KeyRotationPolicyProperties = { - expiresIn: "P30D", - lifetimeActions: [ - { - action: "Rotate", - timeAfterCreate: "P90D", - timeBeforeExpiry: "P90D" - }, - { - action: "Notify", - timeAfterCreate: "P90D", - timeBeforeExpiry: "P90D" - } - ] - }; - - const expected: GeneratedKeyRotationPolicy = { - attributes: { - expiryTime: "P30D" - }, - lifetimeActions: [ - { - action: { type: "Rotate" }, - trigger: { timeAfterCreate: "P90D", timeBeforeExpiry: "P90D" } - }, - { - action: { type: "Notify" }, - trigger: { timeAfterCreate: "P90D", timeBeforeExpiry: "P90D" } - } - ] - }; - - assert.deepEqualExcludingEvery( - keyRotationTransformations.propertiesToGenerated(publicPolicy), - expected, - ["created", "updated"] as any - ); - }); - }); }); diff --git a/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts b/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts index 72e53c26c7b9..c0c2d0fba2cf 100644 --- a/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts @@ -1,9 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import chai, { assert } from "chai"; -import chaiExclude from "chai-exclude"; -chai.use(chaiExclude); +import { assert } from "chai"; import { Context } from "mocha"; import { RestError } from "@azure/core-http"; import { AbortController } from "@azure/abort-controller"; @@ -15,7 +13,7 @@ import { UpdateKeyPropertiesOptions, GetKeyOptions } from "../../src"; -import { assertThrowsAbortError, getServiceVersion, onVersions } from "../utils/utils.common"; +import { assertThrowsAbortError, getServiceVersion } from "../utils/utils.common"; import { testPollerProperties } from "../utils/recorderUtils"; import { authenticate } from "../utils/testAuthentication"; import TestClient from "../utils/testClient"; @@ -399,133 +397,4 @@ describe("Keys client - create, read, update and delete operations", () => { ["Azure.KeyVault.Keys.KeyClient.createKey"] ); }); - - onVersions({ minVer: "7.3-preview" }).describe("key rotation", () => { - it("rotateKey supports rotating a key", async () => { - const keyName = recorder.getUniqueName("keyrotate"); - const key = await client.createKey(keyName, "RSA"); - const rotatedKey = await client.rotateKey(keyName); - - // The rotated key should have mostly the same data, excluding properties that are rotated. - assert.deepEqualExcludingEvery(rotatedKey, key, ["id", "kid", "version", "n", "e"] as any); - - // A new version is created, and the key material is rotated (RSA key, check n and e). - assert.notEqual(rotatedKey.id, key.id); - assert.notEqual(rotatedKey.properties.version, key.properties.version); - assert.notDeepEqual(rotatedKey.key?.n, key.key?.n); - }); - - it("rotateKey supports tracing", async () => { - const keyName = recorder.getUniqueName("keyrotatetracing"); - const key = await client.createKey(keyName, "RSA"); - - await supportsTracing((tracingOptions) => client.rotateKey(key.name, { tracingOptions }), [ - "Azure.KeyVault.Keys.KeyClient.rotateKey" - ]); - }); - - it("updateKeyRotationPolicy supports creating a new rotation policy and fetching it", async () => { - const keyName = recorder.getUniqueName("keyrotationpolicy"); - const key = await client.createKey(keyName, "RSA"); - - const rotationPolicy = await client.updateKeyRotationPolicy(key.name, { - expiresIn: "P90D", - lifetimeActions: [ - { - action: "Rotate", - timeBeforeExpiry: "P30D" - } - ] - }); - - const fetchedPolicy = await client.getKeyRotationPolicy(keyName); - - assert.deepEqual(fetchedPolicy, rotationPolicy); - }); - - it("updateKeyRotationPolicy supports updating an existing policy", async () => { - const keyName = recorder.getUniqueName("keyrotationpolicy"); - const key = await client.createKey(keyName, "RSA"); - - // Create a policy which we will override later. - await client.updateKeyRotationPolicy(key.name, { - lifetimeActions: [ - { - action: "Rotate", - timeAfterCreate: "P2M" - } - ] - }); - - const updatedPolicy = await client.updateKeyRotationPolicy(key.name, { - expiresIn: "P90D", - lifetimeActions: [ - { - action: "Notify", - timeBeforeExpiry: "P30D" - } - ] - }); - - assert.deepEqual(updatedPolicy, { - id: updatedPolicy.id, - createdOn: updatedPolicy.createdOn, - updatedOn: updatedPolicy.updatedOn, - expiresIn: "P90D", - lifetimeActions: [ - { - timeAfterCreate: undefined, - action: "Notify", - timeBeforeExpiry: "P30D" - } - ] - }); - }); - - it("updateKeyRotationPolicy supports tracing", async () => { - const keyName = recorder.getUniqueName("updaterotationpolicy"); - const key = await client.createKey(keyName, "EC"); - - await supportsTracing( - (tracingOptions) => - client.updateKeyRotationPolicy( - key.name, - { - lifetimeActions: [ - { - action: "Notify", - timeBeforeExpiry: "P30D" - } - ], - expiresIn: "P90D" - }, - { tracingOptions } - ), - ["Azure.KeyVault.Keys.KeyClient.updateKeyRotationPolicy"] - ); - }); - - it("getKeyRotationPolicy returns undefined if there is no rotation policy", async () => { - const keyName = recorder.getUniqueName("getrotationpolicy"); - await client.createKey(keyName, "RSA"); - - const fetchedPolicy = await client.getKeyRotationPolicy(keyName); - assert.notExists(fetchedPolicy); - }); - - it("throws when attempting to fetch a policy of a non-existent key", async () => { - const keyName = recorder.getUniqueName("nonexistentkey"); - await assert.isRejected(client.getKeyRotationPolicy(keyName)); - }); - - it("getKeyRotationPolicy supports tracing", async () => { - const keyName = recorder.getUniqueName("rotationpolicytracing"); - const key = await client.createKey(keyName, "RSA"); - - await supportsTracing( - (tracingOptions) => client.getKeyRotationPolicy(key.name, { tracingOptions }), - ["Azure.KeyVault.Keys.KeyClient.getKeyRotationPolicy"] - ); - }); - }); }); diff --git a/sdk/keyvault/test-resources.json b/sdk/keyvault/test-resources.json index aa24a28fad59..2ea9f35f7a40 100644 --- a/sdk/keyvault/test-resources.json +++ b/sdk/keyvault/test-resources.json @@ -140,8 +140,7 @@ "wrapKey", "verify", "sign", - "purge", - "rotate" + "purge" ], "secrets": ["get", "list", "set", "delete", "recover", "backup", "restore", "purge"], "certificates": [