ibm-cloud-sdk-core 2.14.4 → 2.17.0

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.
Files changed (37) hide show
  1. package/.cra/.cveignore +6 -0
  2. package/.secrets.baseline +47 -45
  3. package/Authentication.md +387 -107
  4. package/CHANGELOG.md +28 -0
  5. package/auth/authenticators/authenticator-interface.d.ts +4 -0
  6. package/auth/authenticators/authenticator.d.ts +23 -0
  7. package/auth/authenticators/authenticator.js +25 -0
  8. package/auth/authenticators/basic-authenticator.d.ts +6 -0
  9. package/auth/authenticators/basic-authenticator.js +9 -0
  10. package/auth/authenticators/bearer-token-authenticator.d.ts +6 -0
  11. package/auth/authenticators/bearer-token-authenticator.js +9 -0
  12. package/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +6 -0
  13. package/auth/authenticators/cloud-pak-for-data-authenticator.js +10 -0
  14. package/auth/authenticators/container-authenticator.d.ts +9 -3
  15. package/auth/authenticators/container-authenticator.js +13 -3
  16. package/auth/authenticators/iam-authenticator.d.ts +3 -4
  17. package/auth/authenticators/iam-authenticator.js +6 -5
  18. package/auth/authenticators/iam-request-based-authenticator.d.ts +7 -0
  19. package/auth/authenticators/iam-request-based-authenticator.js +9 -0
  20. package/auth/authenticators/index.d.ts +3 -0
  21. package/auth/authenticators/index.js +2 -0
  22. package/auth/authenticators/no-auth-authenticator.d.ts +6 -0
  23. package/auth/authenticators/no-auth-authenticator.js +8 -0
  24. package/auth/authenticators/vpc-instance-authenticator.d.ts +68 -0
  25. package/auth/authenticators/vpc-instance-authenticator.js +104 -0
  26. package/auth/token-managers/iam-request-based-token-manager.d.ts +17 -0
  27. package/auth/token-managers/iam-request-based-token-manager.js +24 -0
  28. package/auth/token-managers/iam-token-manager.d.ts +0 -17
  29. package/auth/token-managers/iam-token-manager.js +0 -24
  30. package/auth/token-managers/index.d.ts +3 -0
  31. package/auth/token-managers/index.js +4 -0
  32. package/auth/token-managers/vpc-instance-token-manager.d.ts +57 -0
  33. package/auth/token-managers/vpc-instance-token-manager.js +203 -0
  34. package/auth/utils/get-authenticator-from-environment.js +28 -24
  35. package/auth/utils/helpers.d.ts +10 -0
  36. package/auth/utils/helpers.js +13 -0
  37. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "cve": "CVE-2021-3807",
4
+ "alwaysOmit": true
5
+ }
6
+ ]
package/.secrets.baseline CHANGED
@@ -3,7 +3,7 @@
3
3
  "files": "package-lock.json|^.secrets.baseline$",
4
4
  "lines": null
5
5
  },
6
- "generated_at": "2021-08-17T20:14:30Z",
6
+ "generated_at": "2021-10-27T20:42:11Z",
7
7
  "plugins_used": [
8
8
  {
9
9
  "name": "AWSKeyDetector"
@@ -70,31 +70,23 @@
70
70
  "hashed_secret": "91dfd9ddb4198affc5c194cd8ce6d338fde470e2",
71
71
  "is_secret": false,
72
72
  "is_verified": false,
73
- "line_number": 57,
73
+ "line_number": 73,
74
74
  "type": "Secret Keyword",
75
75
  "verified_result": null
76
76
  },
77
77
  {
78
- "hashed_secret": "47fcf185ee7e15fe05cae31fbe9e4ebe4a06a40d",
79
- "is_secret": false,
80
- "is_verified": false,
81
- "line_number": 122,
82
- "type": "Secret Keyword",
83
- "verified_result": null
84
- },
85
- {
86
- "hashed_secret": "24c3d19b8d127fe8f7274108156a718ec56fc6e6",
78
+ "hashed_secret": "98635b2eaa2379f28cd6d72a38299f286b81b459",
87
79
  "is_secret": false,
88
80
  "is_verified": false,
89
- "line_number": 136,
81
+ "line_number": 430,
90
82
  "type": "Secret Keyword",
91
83
  "verified_result": null
92
84
  },
93
85
  {
94
- "hashed_secret": "32e8612d8ca77c7ea8374aa7918db8e5df9252ed",
86
+ "hashed_secret": "47fcf185ee7e15fe05cae31fbe9e4ebe4a06a40d",
95
87
  "is_secret": false,
96
88
  "is_verified": false,
97
- "line_number": 171,
89
+ "line_number": 468,
98
90
  "type": "Secret Keyword",
99
91
  "verified_result": null
100
92
  }
@@ -119,12 +111,22 @@
119
111
  "verified_result": null
120
112
  }
121
113
  ],
114
+ "auth/authenticators/authenticator.ts": [
115
+ {
116
+ "hashed_secret": "fdee05598fdd57ff8e9ae29e92c25a04f2c52fa6",
117
+ "is_secret": false,
118
+ "is_verified": false,
119
+ "line_number": 39,
120
+ "type": "Secret Keyword",
121
+ "verified_result": null
122
+ }
123
+ ],
122
124
  "auth/authenticators/cloud-pak-for-data-authenticator.ts": [
123
125
  {
124
126
  "hashed_secret": "d5ff02fa48e492fac0a245ad63d1ae608e705c05",
125
127
  "is_secret": false,
126
128
  "is_verified": false,
127
- "line_number": 70,
129
+ "line_number": 71,
128
130
  "type": "Secret Keyword",
129
131
  "verified_result": null
130
132
  },
@@ -132,7 +134,7 @@
132
134
  "hashed_secret": "8f4bfc22c4fd7cb884f94ec175ff4a3284a174a1",
133
135
  "is_secret": false,
134
136
  "is_verified": false,
135
- "line_number": 71,
137
+ "line_number": 72,
136
138
  "type": "Secret Keyword",
137
139
  "verified_result": null
138
140
  }
@@ -142,7 +144,7 @@
142
144
  "hashed_secret": "8f4bfc22c4fd7cb884f94ec175ff4a3284a174a1",
143
145
  "is_secret": false,
144
146
  "is_verified": false,
145
- "line_number": 69,
147
+ "line_number": 70,
146
148
  "type": "Secret Keyword",
147
149
  "verified_result": null
148
150
  }
@@ -222,7 +224,7 @@
222
224
  "hashed_secret": "f84f793e0af9ade37c8b927bc5091e98f35bf821",
223
225
  "is_secret": false,
224
226
  "is_verified": false,
225
- "line_number": 81,
227
+ "line_number": 83,
226
228
  "type": "Secret Keyword",
227
229
  "verified_result": null
228
230
  },
@@ -230,7 +232,7 @@
230
232
  "hashed_secret": "45c43fe97e3a06ab078b0eeff6fbe622cc417a25",
231
233
  "is_secret": false,
232
234
  "is_verified": false,
233
- "line_number": 118,
235
+ "line_number": 120,
234
236
  "type": "Secret Keyword",
235
237
  "verified_result": null
236
238
  },
@@ -238,7 +240,7 @@
238
240
  "hashed_secret": "99833a8b234b57b886a9aef1dba187fdd7ceece8",
239
241
  "is_secret": false,
240
242
  "is_verified": false,
241
- "line_number": 120,
243
+ "line_number": 122,
242
244
  "type": "Secret Keyword",
243
245
  "verified_result": null
244
246
  }
@@ -248,7 +250,7 @@
248
250
  "hashed_secret": "8f4bfc22c4fd7cb884f94ec175ff4a3284a174a1",
249
251
  "is_secret": false,
250
252
  "is_verified": false,
251
- "line_number": 60,
253
+ "line_number": 58,
252
254
  "type": "Secret Keyword",
253
255
  "verified_result": null
254
256
  },
@@ -256,7 +258,7 @@
256
258
  "hashed_secret": "0358c67856fb6a21c4767daf02fcb8fe4dc0a318",
257
259
  "is_secret": false,
258
260
  "is_verified": false,
259
- "line_number": 63,
261
+ "line_number": 61,
260
262
  "type": "Secret Keyword",
261
263
  "verified_result": null
262
264
  },
@@ -264,7 +266,7 @@
264
266
  "hashed_secret": "dbb19b8ae3b78f908e1467721fe4c9f0b0529d9b",
265
267
  "is_secret": false,
266
268
  "is_verified": false,
267
- "line_number": 64,
269
+ "line_number": 62,
268
270
  "type": "Secret Keyword",
269
271
  "verified_result": null
270
272
  }
@@ -274,7 +276,7 @@
274
276
  "hashed_secret": "6947818ac409551f11fbaa78f0ea6391960aa5b8",
275
277
  "is_secret": false,
276
278
  "is_verified": false,
277
- "line_number": 48,
279
+ "line_number": 49,
278
280
  "type": "Secret Keyword",
279
281
  "verified_result": null
280
282
  }
@@ -312,7 +314,7 @@
312
314
  "hashed_secret": "2863fa4b5510c46afc2bd2998dfbc0cf3d6df032",
313
315
  "is_secret": false,
314
316
  "is_verified": false,
315
- "line_number": 27,
317
+ "line_number": 32,
316
318
  "type": "Secret Keyword",
317
319
  "verified_result": null
318
320
  },
@@ -320,7 +322,7 @@
320
322
  "hashed_secret": "407bb564bd0e4d31368cb53004c9c42adf8f7be8",
321
323
  "is_secret": false,
322
324
  "is_verified": false,
323
- "line_number": 29,
325
+ "line_number": 34,
324
326
  "type": "Secret Keyword",
325
327
  "verified_result": null
326
328
  },
@@ -328,7 +330,7 @@
328
330
  "hashed_secret": "e38ad214943daad1d64c102faec29de4afe9da3d",
329
331
  "is_secret": false,
330
332
  "is_verified": false,
331
- "line_number": 36,
333
+ "line_number": 41,
332
334
  "type": "Secret Keyword",
333
335
  "verified_result": null
334
336
  }
@@ -364,7 +366,7 @@
364
366
  "hashed_secret": "09f798553f7c035c2915bf8c59b46b6c285d2d84",
365
367
  "is_secret": false,
366
368
  "is_verified": false,
367
- "line_number": 4,
369
+ "line_number": 20,
368
370
  "type": "Secret Keyword",
369
371
  "verified_result": null
370
372
  }
@@ -374,7 +376,7 @@
374
376
  "hashed_secret": "5c5a15a8b0b3e154d77746945e563ba40100681b",
375
377
  "is_secret": false,
376
378
  "is_verified": false,
377
- "line_number": 19,
379
+ "line_number": 35,
378
380
  "type": "Secret Keyword",
379
381
  "verified_result": null
380
382
  }
@@ -384,7 +386,7 @@
384
386
  "hashed_secret": "85dd3fb12cb0dcae03f1bba6fb61f4edd90d986d",
385
387
  "is_secret": false,
386
388
  "is_verified": false,
387
- "line_number": 5,
389
+ "line_number": 21,
388
390
  "type": "Secret Keyword",
389
391
  "verified_result": null
390
392
  },
@@ -392,7 +394,7 @@
392
394
  "hashed_secret": "0c910ad3070d996b37a1c65f542b17adc3f962bc",
393
395
  "is_secret": false,
394
396
  "is_verified": false,
395
- "line_number": 6,
397
+ "line_number": 22,
396
398
  "type": "Secret Keyword",
397
399
  "verified_result": null
398
400
  }
@@ -402,7 +404,7 @@
402
404
  "hashed_secret": "1572bd30ac06678a82df42b5913e5e52e27f9a12",
403
405
  "is_secret": false,
404
406
  "is_verified": false,
405
- "line_number": 15,
407
+ "line_number": 31,
406
408
  "type": "Secret Keyword",
407
409
  "verified_result": null
408
410
  },
@@ -410,7 +412,7 @@
410
412
  "hashed_secret": "16856d955c788df03735a24feb2e3ffefd91f3dc",
411
413
  "is_secret": false,
412
414
  "is_verified": false,
413
- "line_number": 16,
415
+ "line_number": 32,
414
416
  "type": "Secret Keyword",
415
417
  "verified_result": null
416
418
  }
@@ -420,7 +422,7 @@
420
422
  "hashed_secret": "257368587362aab7f1180b4a5fe550ec26053e05",
421
423
  "is_secret": false,
422
424
  "is_verified": false,
423
- "line_number": 14,
425
+ "line_number": 30,
424
426
  "type": "Secret Keyword",
425
427
  "verified_result": null
426
428
  },
@@ -428,7 +430,7 @@
428
430
  "hashed_secret": "5c5a15a8b0b3e154d77746945e563ba40100681b",
429
431
  "is_secret": false,
430
432
  "is_verified": false,
431
- "line_number": 17,
433
+ "line_number": 33,
432
434
  "type": "Secret Keyword",
433
435
  "verified_result": null
434
436
  },
@@ -436,7 +438,7 @@
436
438
  "hashed_secret": "a3bf8418470bbb21ecdb24c28e38b446a3ab9b75",
437
439
  "is_secret": false,
438
440
  "is_verified": false,
439
- "line_number": 48,
441
+ "line_number": 65,
440
442
  "type": "Secret Keyword",
441
443
  "verified_result": null
442
444
  },
@@ -444,7 +446,7 @@
444
446
  "hashed_secret": "2c208e466e476d4d8cbe055832f40f04e4d5dd23",
445
447
  "is_secret": false,
446
448
  "is_verified": false,
447
- "line_number": 53,
449
+ "line_number": 70,
448
450
  "type": "Secret Keyword",
449
451
  "verified_result": null
450
452
  },
@@ -452,7 +454,7 @@
452
454
  "hashed_secret": "945db841c03e42eef2f3d0a4ff310e2f3b3e59ec",
453
455
  "is_secret": false,
454
456
  "is_verified": false,
455
- "line_number": 77,
457
+ "line_number": 94,
456
458
  "type": "Secret Keyword",
457
459
  "verified_result": null
458
460
  }
@@ -462,7 +464,7 @@
462
464
  "hashed_secret": "43ed4c2d8375dfc89e3dc8c917f404b9481d355b",
463
465
  "is_secret": false,
464
466
  "is_verified": false,
465
- "line_number": 5,
467
+ "line_number": 21,
466
468
  "type": "Secret Keyword",
467
469
  "verified_result": null
468
470
  }
@@ -472,7 +474,7 @@
472
474
  "hashed_secret": "43ed4c2d8375dfc89e3dc8c917f404b9481d355b",
473
475
  "is_secret": false,
474
476
  "is_verified": false,
475
- "line_number": 13,
477
+ "line_number": 29,
476
478
  "type": "Secret Keyword",
477
479
  "verified_result": null
478
480
  }
@@ -482,7 +484,7 @@
482
484
  "hashed_secret": "a7ef1be18bb8d37af79f3d87761a203378bf26a2",
483
485
  "is_secret": false,
484
486
  "is_verified": false,
485
- "line_number": 129,
487
+ "line_number": 145,
486
488
  "type": "Secret Keyword",
487
489
  "verified_result": null
488
490
  }
@@ -492,7 +494,7 @@
492
494
  "hashed_secret": "4c65cd3f160d60f7ca28ca04fa60b9035132781c",
493
495
  "is_secret": false,
494
496
  "is_verified": false,
495
- "line_number": 7,
497
+ "line_number": 23,
496
498
  "type": "Secret Keyword",
497
499
  "verified_result": null
498
500
  },
@@ -500,7 +502,7 @@
500
502
  "hashed_secret": "407bb564bd0e4d31368cb53004c9c42adf8f7be8",
501
503
  "is_secret": false,
502
504
  "is_verified": false,
503
- "line_number": 174,
505
+ "line_number": 204,
504
506
  "type": "Secret Keyword",
505
507
  "verified_result": null
506
508
  },
@@ -508,7 +510,7 @@
508
510
  "hashed_secret": "2863fa4b5510c46afc2bd2998dfbc0cf3d6df032",
509
511
  "is_secret": false,
510
512
  "is_verified": false,
511
- "line_number": 200,
513
+ "line_number": 230,
512
514
  "type": "Secret Keyword",
513
515
  "verified_result": null
514
516
  },
@@ -516,7 +518,7 @@
516
518
  "hashed_secret": "ed8c99e906cf3fdbae90a71e06142ebc72b4c056",
517
519
  "is_secret": false,
518
520
  "is_verified": false,
519
- "line_number": 218,
521
+ "line_number": 248,
520
522
  "type": "Secret Keyword",
521
523
  "verified_result": null
522
524
  }