Commit 0b6cb59
authored
Impelement secrets detection for Az modules (#412)
* Impelement secrets detection for Az modules
* Move some implementation from common to Az.Accounts and revise/rename ISanitizerSettings interface.
* Rename telemetry property name
* Make DefaultProviderResolver public due to reference needed in Az.Accounts
* Add IgnoredProperties in ISanitizerService to filter out special properties that may cause performance concern like lazy load properties.
* Return null for AzurePSSanitizer when AzureSession is not properly initialized
* Skip indexed properties in the object traverse
* Update sanitizer and move providers out to Az.Accounts1 parent 2cd3afb commit 0b6cb59
File tree
7 files changed
+170
-11
lines changed- src
- Authentication.Abstractions/Models
- Common
- Properties
- Sanitizer
7 files changed
+170
-11
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
169 | 181 | | |
170 | 182 | | |
171 | 183 | | |
| |||
331 | 343 | | |
332 | 344 | | |
333 | 345 | | |
334 | | - | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
393 | 421 | | |
394 | 422 | | |
395 | 423 | | |
396 | 424 | | |
397 | 425 | | |
398 | 426 | | |
399 | 427 | | |
400 | | - | |
| 428 | + | |
| 429 | + | |
401 | 430 | | |
402 | 431 | | |
403 | 432 | | |
| |||
414 | 443 | | |
415 | 444 | | |
416 | 445 | | |
417 | | - | |
| 446 | + | |
| 447 | + | |
418 | 448 | | |
419 | 449 | | |
420 | 450 | | |
| 451 | + | |
421 | 452 | | |
422 | 453 | | |
423 | 454 | | |
| |||
501 | 532 | | |
502 | 533 | | |
503 | 534 | | |
| 535 | + | |
504 | 536 | | |
505 | 537 | | |
506 | 538 | | |
507 | 539 | | |
508 | 540 | | |
509 | 541 | | |
| 542 | + | |
510 | 543 | | |
511 | 544 | | |
512 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
513 | 555 | | |
514 | 556 | | |
515 | 557 | | |
| |||
725 | 767 | | |
726 | 768 | | |
727 | 769 | | |
| 770 | + | |
| 771 | + | |
728 | 772 | | |
729 | 773 | | |
730 | 774 | | |
| |||
777 | 821 | | |
778 | 822 | | |
779 | 823 | | |
780 | | - | |
| 824 | + | |
781 | 825 | | |
782 | 826 | | |
783 | 827 | | |
| |||
1009 | 1053 | | |
1010 | 1054 | | |
1011 | 1055 | | |
1012 | | - | |
1013 | 1056 | | |
1014 | 1057 | | |
1015 | 1058 | | |
| |||
1059 | 1102 | | |
1060 | 1103 | | |
1061 | 1104 | | |
1062 | | - | |
| 1105 | + | |
1063 | 1106 | | |
1064 | 1107 | | |
1065 | 1108 | | |
1066 | | - | |
| 1109 | + | |
1067 | 1110 | | |
1068 | 1111 | | |
1069 | 1112 | | |
| |||
1105 | 1148 | | |
1106 | 1149 | | |
1107 | 1150 | | |
1108 | | - | |
| 1151 | + | |
1109 | 1152 | | |
1110 | 1153 | | |
1111 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | | - | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
| 454 | + | |
| 455 | + | |
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
| |||
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
461 | | - | |
| 464 | + | |
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
467 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
468 | 502 | | |
469 | 503 | | |
470 | 504 | | |
| |||
624 | 658 | | |
625 | 659 | | |
626 | 660 | | |
| 661 | + | |
| 662 | + | |
627 | 663 | | |
628 | 664 | | |
629 | 665 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1760 | 1760 | | |
1761 | 1761 | | |
1762 | 1762 | | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1763 | 1766 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments