@ibm-cloud/secrets-manager 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -2
- package/examples/secrets-manager.v2.test.js +15 -26
- package/package.json +2 -2
- package/secrets-manager/v2.d.ts +821 -293
- package/secrets-manager/v2.js +138 -78
- package/secrets-manager/v2.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [2.0.5](https://github.com/IBM/secrets-manager-node-sdk/compare/v2.0.4...v2.0.5) (2024-08-05)
|
|
2
|
+
|
|
3
|
+
## [2.0.4](https://github.com/IBM/secrets-manager-node-sdk/compare/v2.0.3...v2.0.4) (2024-03-11)
|
|
4
|
+
|
|
1
5
|
## [2.0.3](https://github.com/IBM/secrets-manager-node-sdk/compare/v2.0.2...v2.0.3) (2024-02-07)
|
|
2
6
|
|
|
3
7
|
## [2.0.2](https://github.com/IBM/secrets-manager-node-sdk/compare/v2.0.1...v2.0.2) (2023-12-11)
|
package/README.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# IBM Cloud Secrets Manager Node SDK
|
|
4
4
|
|
|
5
|
-
A Node.js client library to interact with
|
|
6
|
-
the [IBM Cloud® Secrets Manager APIs](https://cloud.ibm.com/apidocs/secrets-manager).
|
|
5
|
+
A Node.js client library to interact with the [IBM Cloud® Secrets Manager APIs](https://cloud.ibm.com/apidocs/secrets-manager).
|
|
7
6
|
|
|
8
7
|
<details>
|
|
9
8
|
<summary>Table of Contents</summary>
|
|
@@ -293,27 +293,12 @@ describe('SecretsManagerV2', () => {
|
|
|
293
293
|
|
|
294
294
|
// Request models needed by this operation.
|
|
295
295
|
|
|
296
|
-
//
|
|
296
|
+
// PublicCertificateConfigurationDNSCloudInternetServicesPrototype
|
|
297
297
|
const configurationPrototypeModel = {
|
|
298
|
-
config_type: '
|
|
299
|
-
name: 'example-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
crl_disable: false,
|
|
303
|
-
crl_distribution_points_encoded: true,
|
|
304
|
-
issuing_certificates_urls_encoded: true,
|
|
305
|
-
common_name: 'example.com',
|
|
306
|
-
alt_names: ['alt-name-1', 'alt-name-2'],
|
|
307
|
-
ip_sans: '127.0.0.1',
|
|
308
|
-
uri_sans: 'https://www.example.com/test',
|
|
309
|
-
other_sans: ['1.2.3.5.4.3.201.10.4.3;utf8:test@example.com'],
|
|
310
|
-
ttl: '2190h',
|
|
311
|
-
format: 'pem',
|
|
312
|
-
private_key_format: 'der',
|
|
313
|
-
key_type: 'rsa',
|
|
314
|
-
key_bits: 4096,
|
|
315
|
-
max_path_length: -1,
|
|
316
|
-
exclude_cn_from_sans: false,
|
|
298
|
+
config_type: 'public_cert_configuration_dns_cloud_internet_services',
|
|
299
|
+
name: 'example-cloud-internet-services-config',
|
|
300
|
+
cloud_internet_services_apikey: '5ipu_ykv0PMp2MhxQnDMn7VzrkSlBwi3BOI8uthi_EXZ',
|
|
301
|
+
cloud_internet_services_crn: 'crn:v1:bluemix:public:internet-svcs:global:a/128e84fcca45c1224aae525d31ef2b52:009a0357-1460-42b4-b903-10580aba7dd8::',
|
|
317
302
|
};
|
|
318
303
|
|
|
319
304
|
const params = {
|
|
@@ -431,6 +416,8 @@ describe('SecretsManagerV2', () => {
|
|
|
431
416
|
sort: 'created_at',
|
|
432
417
|
search: 'example',
|
|
433
418
|
groups: ['default', 'cac40995-c37a-4dcb-9506-472869077634'],
|
|
419
|
+
secretTypes: ['arbitrary', 'kv'],
|
|
420
|
+
matchAllLabels: ['dev', 'us-south'],
|
|
434
421
|
};
|
|
435
422
|
|
|
436
423
|
const allResults = [];
|
|
@@ -897,6 +884,7 @@ describe('SecretsManagerV2', () => {
|
|
|
897
884
|
limit: 10,
|
|
898
885
|
sort: 'config_type',
|
|
899
886
|
search: 'example',
|
|
887
|
+
secretTypes: ['iam_credentials', 'public_cert', 'private_cert'],
|
|
900
888
|
};
|
|
901
889
|
|
|
902
890
|
const allResults = [];
|
|
@@ -930,7 +918,7 @@ describe('SecretsManagerV2', () => {
|
|
|
930
918
|
|
|
931
919
|
const params = {
|
|
932
920
|
name: configurationNameForGetConfigurationLink,
|
|
933
|
-
xSmAcceptConfigurationType: '
|
|
921
|
+
xSmAcceptConfigurationType: 'public_cert_configuration_dns_cloud_internet_services',
|
|
934
922
|
};
|
|
935
923
|
|
|
936
924
|
let res;
|
|
@@ -959,15 +947,16 @@ describe('SecretsManagerV2', () => {
|
|
|
959
947
|
|
|
960
948
|
// Request models needed by this operation.
|
|
961
949
|
|
|
962
|
-
//
|
|
950
|
+
// PublicCertificateConfigurationDNSCloudInternetServicesPatch
|
|
963
951
|
const configurationPatchModel = {
|
|
964
|
-
|
|
952
|
+
cloud_internet_services_apikey: '5ipu_ykv0PMp2MhxQnDMn7VzrkSlBwi3BOI8uthi_EXZ',
|
|
953
|
+
cloud_internet_services_crn: 'crn:v1:bluemix:public:internet-svcs:global:a/128e84fcca45c1224aae525d31ef2b52:009a0357-1460-42b4-b903-10580aba7dd8::',
|
|
965
954
|
};
|
|
966
955
|
|
|
967
956
|
const params = {
|
|
968
957
|
name: configurationNameForGetConfigurationLink,
|
|
969
958
|
configurationPatch: configurationPatchModel,
|
|
970
|
-
xSmAcceptConfigurationType: '
|
|
959
|
+
xSmAcceptConfigurationType: 'public_cert_configuration_dns_cloud_internet_services',
|
|
971
960
|
};
|
|
972
961
|
|
|
973
962
|
let res;
|
|
@@ -1004,7 +993,7 @@ describe('SecretsManagerV2', () => {
|
|
|
1004
993
|
const params = {
|
|
1005
994
|
name: configurationNameForGetConfigurationLink,
|
|
1006
995
|
configActionPrototype: configurationActionPrototypeModel,
|
|
1007
|
-
xSmAcceptConfigurationType: '
|
|
996
|
+
xSmAcceptConfigurationType: 'public_cert_configuration_dns_cloud_internet_services',
|
|
1008
997
|
};
|
|
1009
998
|
|
|
1010
999
|
let res;
|
|
@@ -1242,7 +1231,7 @@ describe('SecretsManagerV2', () => {
|
|
|
1242
1231
|
|
|
1243
1232
|
const params = {
|
|
1244
1233
|
name: configurationNameForGetConfigurationLink,
|
|
1245
|
-
xSmAcceptConfigurationType: '
|
|
1234
|
+
xSmAcceptConfigurationType: 'public_cert_configuration_dns_cloud_internet_services',
|
|
1246
1235
|
};
|
|
1247
1236
|
|
|
1248
1237
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibm-cloud/secrets-manager",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Client library for IBM Cloud Secrets Manager",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"extend": "^3.0.2",
|
|
39
|
-
"ibm-cloud-sdk-core": "^
|
|
39
|
+
"ibm-cloud-sdk-core": "^5.0.0"
|
|
40
40
|
},
|
|
41
41
|
"jest": {
|
|
42
42
|
"collectCoverage": true,
|