browserstack-node-sdk 1.27.2 → 1.28.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 (111) hide show
  1. package/ats/src/CFTemplates/aws-eks-cluster-dep.yaml +1 -1
  2. package/ats/src/cloudproviders/AWS.js +1 -0
  3. package/ats/src/cloudproviders/Azure.js +1 -0
  4. package/ats/src/cloudproviders/CloudProvider.js +1 -0
  5. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -0
  6. package/ats/src/cloudproviders/gcs.js +1 -0
  7. package/ats/src/cloudproviders/utils.js +1 -0
  8. package/ats/src/commands/configure.js +1 -1
  9. package/ats/src/commands/connect.js +1 -1
  10. package/ats/src/commands/connect_commands/grid.js +1 -1
  11. package/ats/src/commands/create.js +1 -1
  12. package/ats/src/commands/create_commands/grid.js +1 -1
  13. package/ats/src/commands/delete.js +1 -1
  14. package/ats/src/commands/delete_commands/grid.js +1 -1
  15. package/ats/src/commands/init.js +1 -1
  16. package/ats/src/commands/list.js +1 -1
  17. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  18. package/ats/src/commands/list_commands/grids.js +1 -1
  19. package/ats/src/config/constants.js +1 -1
  20. package/ats/src/config/logger.js +1 -1
  21. package/ats/src/index.js +1 -1
  22. package/ats/src/templates/azureresources/akscluster.json +134 -0
  23. package/ats/src/templates/azureresources/federatedidentityhub.json +50 -0
  24. package/ats/src/templates/azureresources/federatedidentitynode.json +50 -0
  25. package/ats/src/templates/azureresources/managedidentity.json +49 -0
  26. package/ats/src/templates/azureresources/storageaccount.json +92 -0
  27. package/ats/src/templates/cert-manager/cert-manager.yaml +1140 -0
  28. package/ats/src/templates/cert-manager/clusterissuer.yaml +21 -0
  29. package/ats/src/templates/cert-manager/crds.yaml +4468 -0
  30. package/ats/src/templates/default-service-account.yaml +5 -0
  31. package/ats/src/templates/gcpresources/KubeConfigTemplate.yaml +23 -0
  32. package/ats/src/templates/gcpresources/gkecluster.json +92 -0
  33. package/ats/src/templates/gcpresources/regionmap.json +198 -0
  34. package/ats/src/templates/hub-deployment.yaml +6 -0
  35. package/ats/src/templates/hub-service.yaml +1 -1
  36. package/ats/src/templates/ingress.yaml +20 -0
  37. package/ats/src/templates/nginx/helper.yaml +333 -0
  38. package/ats/src/templates/nginx/pods-and-services.yaml +315 -0
  39. package/ats/src/templates/nginx/private-pods-and-services.yaml +184 -0
  40. package/ats/src/utils/AWSUtils.js +1 -1
  41. package/ats/src/utils/createAutoscalerStack.js +1 -1
  42. package/ats/src/utils/createClusterStack.js +1 -1
  43. package/ats/src/utils/createk8sClient.js +1 -1
  44. package/ats/src/utils/deleteStack.js +1 -1
  45. package/ats/src/utils/gridComponents.js +1 -1
  46. package/ats/src/utils/hstUtils.js +1 -1
  47. package/ats/src/utils/instrumentationUtils.js +1 -1
  48. package/ats/src/utils/userInput.js +1 -1
  49. package/ats/src/utils/utilityMethods.js +1 -1
  50. package/ats/src/utils/webSocketUtils.js +1 -1
  51. package/package.json +1 -1
  52. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  53. package/src/bin/codeceptjs/command.js +1 -1
  54. package/src/bin/cucumber-js/command.js +1 -1
  55. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  56. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  57. package/src/bin/cucumber-js/test.setup.js +1 -1
  58. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  59. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  60. package/src/bin/jest/command.js +1 -1
  61. package/src/bin/jest/customEnvironment.js +1 -1
  62. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test_before.setup.js +1 -1
  65. package/src/bin/launcher/launcher.js +1 -1
  66. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  67. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  68. package/src/bin/mocha/command.js +1 -1
  69. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  70. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  71. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  72. package/src/bin/mocha/test.setup.js +1 -1
  73. package/src/bin/nightwatch/command.js +1 -1
  74. package/src/bin/playwright/accessibility-helper.js +1 -1
  75. package/src/bin/playwright/command.js +1 -1
  76. package/src/bin/playwright/globalSetup.js +1 -1
  77. package/src/bin/playwright/mock-process.js +1 -1
  78. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  79. package/src/bin/playwright/reporter/reporter.js +1 -1
  80. package/src/bin/playwright/reporter/test-details.js +1 -1
  81. package/src/bin/runner.js +1 -1
  82. package/src/bin/setup.js +1 -1
  83. package/src/bin/test-runner/index.js +1 -1
  84. package/src/bin/test-runner/runTest.js +1 -1
  85. package/src/bin/test-runner/testWorker.js +1 -1
  86. package/src/bin/utils/constants.js +1 -1
  87. package/src/bin/utils/log4jsAppender.js +1 -1
  88. package/src/bin/utils/logPatcher.js +1 -1
  89. package/src/bin/utils/logReportingAPI.js +1 -1
  90. package/src/bin/vanilla-js/command.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/ats/constants.js +1 -0
  95. package/src/helpers/ats/helper.js +1 -0
  96. package/src/helpers/capsMapping.js +1 -1
  97. package/src/helpers/helper.js +1 -1
  98. package/src/helpers/logger.js +1 -1
  99. package/src/helpers/patchHelpers.js +1 -1
  100. package/src/helpers/request-spy.js +1 -1
  101. package/src/helpers/setKeepAlive.js +1 -1
  102. package/src/helpers/test-observability/constants.js +1 -1
  103. package/src/helpers/test-observability/error-handler.js +1 -1
  104. package/src/helpers/test-observability/performance-tester.js +1 -1
  105. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  106. package/src/helpers/test-observability/sessionHandler.js +1 -1
  107. package/src/helpers/test-observability/utils.js +1 -1
  108. package/src/helpers/w3cMapping.js +1 -1
  109. package/src/hubAllocationMethods.js +1 -1
  110. package/src/index.js +1 -1
  111. package/ats/src/config/instanceTypes.json +0 -554
@@ -1 +1 @@
1
- var a11_0x310058=a11_0x3566;(function(_0x58ae57,_0x519de8){var _0x7f3f39=a11_0x3566,_0x2342c4=_0x58ae57();while(!![]){try{var _0x59692c=-parseInt(_0x7f3f39(0x1ee))/0x1*(parseInt(_0x7f3f39(0x1d0))/0x2)+parseInt(_0x7f3f39(0x1e2))/0x3*(parseInt(_0x7f3f39(0x1b0))/0x4)+parseInt(_0x7f3f39(0x1e3))/0x5+-parseInt(_0x7f3f39(0x1dc))/0x6*(parseInt(_0x7f3f39(0x1ec))/0x7)+-parseInt(_0x7f3f39(0x1bd))/0x8*(-parseInt(_0x7f3f39(0x1a6))/0x9)+parseInt(_0x7f3f39(0x1a7))/0xa*(-parseInt(_0x7f3f39(0x1d1))/0xb)+-parseInt(_0x7f3f39(0x1e0))/0xc*(-parseInt(_0x7f3f39(0x1ef))/0xd);if(_0x59692c===_0x519de8)break;else _0x2342c4['push'](_0x2342c4['shift']());}catch(_0xae4824){_0x2342c4['push'](_0x2342c4['shift']());}}}(a11_0x45fc,0xdfab8),require(a11_0x310058(0x1bc))[a11_0x310058(0x1a2)](),exports['DASHBOARD_ENDPOINT']=process[a11_0x310058(0x1df)][a11_0x310058(0x1a8)]||a11_0x310058(0x1b9),exports[a11_0x310058(0x1cb)]=process[a11_0x310058(0x1df)][a11_0x310058(0x1cb)]||a11_0x310058(0x1a9),exports[a11_0x310058(0x1c0)]=process[a11_0x310058(0x1df)][a11_0x310058(0x1c0)]||a11_0x310058(0x1d5),exports['WS_ENDPOINT']=a11_0x310058(0x1e4)+this[a11_0x310058(0x1c0)]+a11_0x310058(0x1ad),exports['CP_CONFIG_FILE']=a11_0x310058(0x1cd),exports[a11_0x310058(0x1af)]=a11_0x310058(0x1db),exports[a11_0x310058(0x1f0)]='high-scale-grid',exports[a11_0x310058(0x1b6)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a11_0x310058(0x1a4),exports[a11_0x310058(0x1c5)]=a11_0x310058(0x1b2));var a11_0x36f34f={};a11_0x36f34f[a11_0x310058(0x1a0)]=a11_0x310058(0x1ab),a11_0x36f34f[a11_0x310058(0x1c4)]='BrowserStack';function a11_0x45fc(){var _0x304214=['GRID_URL','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','dotenv','5440OMIgmb','CLI_RUN_STARTED','[REDACTED]','AG_API_URL','SUCCESS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','root','Value','CLUSTER_AUTOSCALER_STACK_NAME','UNKNOWN','messageTypes','RAW_ARGS_REGEX','list','ERROR','BS_API_URL','cliRunStarted','credentials','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','191554takGKr','11ZIjsFZ','BrowserStack-Automate-TurboScale','COMMON_HST_TAGS','grid','grid-api.browserstack.com','RESOURCES','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20{TurboScale}.','gridUrl','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','error','BrowserStackIAMUser','516EEQvDP','cliRunFinished','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','env','12unwCZb','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20{TurboScale}.','342663rPZOLY','2848190FTuuSe','wss://','configure','global_registry','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','REDACTED','LINK_MESSAGE','HELP_HEADER_MESSAGE','SUPPORTED_CLOUD_PROVIDERS','82502QzkLiS','browserstack:service','8fRsUnK','22232977hrgkNV','DEFAULT_GRID_NAME','WS_EVENTS','create','Key','warning','config','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BSTACK-ATS-CLUSTER','BrowserStack','7677oAYQRh','10777110axefCB','DASHBOARD_ENDPOINT','api.browserstack.com','CLI_ARGS_REGEX','browserstack:managedBy','AWS_INSTANCE_TYPE_LIST','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','IAM_USER_NAME','32dKfLxr','LOG','BSTACK-ATS-CLUSTER-AUTOSCALER','resourceInfo','connect','NULL','AWS','./instanceTypes.json','unknown','grid.browserstack.com'];a11_0x45fc=function(){return _0x304214;};return a11_0x45fc();}var a11_0xc5b538={};function a11_0x3566(_0x4449ce,_0x378fbb){var _0x45fcc0=a11_0x45fc();return a11_0x3566=function(_0x35661a,_0x27330a){_0x35661a=_0x35661a-0x1a0;var _0x1b34ed=_0x45fcc0[_0x35661a];return _0x1b34ed;},a11_0x3566(_0x4449ce,_0x378fbb);}a11_0xc5b538[a11_0x310058(0x1a0)]=a11_0x310058(0x1ed),a11_0xc5b538[a11_0x310058(0x1c4)]=a11_0x310058(0x1d2),exports[a11_0x310058(0x1d3)]=[a11_0x36f34f,a11_0xc5b538];var a11_0x326120={};a11_0x326120[a11_0x310058(0x1ab)]=a11_0x310058(0x1a5),a11_0x326120['browserstack:service']=a11_0x310058(0x1d2),exports['HST_CLUSTER_TAGS']=a11_0x326120,exports[a11_0x310058(0x1eb)]=[this[a11_0x310058(0x1b6)]];var a11_0x1c6792={};a11_0x1c6792[a11_0x310058(0x1b1)]=a11_0x310058(0x1ce),a11_0x1c6792[a11_0x310058(0x1d6)]=a11_0x310058(0x1b3),a11_0x1c6792[a11_0x310058(0x1ba)]=a11_0x310058(0x1d8),a11_0x1c6792[a11_0x310058(0x1be)]=a11_0x310058(0x1cc),a11_0x1c6792['CLI_RUN_FINISHED']=a11_0x310058(0x1dd),exports[a11_0x310058(0x1f1)]=a11_0x1c6792,exports[a11_0x310058(0x1e6)]={},exports['LINK_MESSAGE']=a11_0x310058(0x1c2);var a11_0x55e089={};a11_0x55e089[a11_0x310058(0x1c3)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a11_0x310058(0x1e9)],a11_0x55e089['init']=a11_0x310058(0x1d9)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1e5)]=a11_0x310058(0x1de)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1f2)]=a11_0x310058(0x1ae)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1c9)]={},a11_0x55e089['delete']=a11_0x310058(0x1bb)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1b4)]=a11_0x310058(0x1e7)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1c9)][a11_0x310058(0x1c3)]=a11_0x310058(0x1d7)+this['LINK_MESSAGE'],a11_0x55e089[a11_0x310058(0x1c9)][a11_0x310058(0x1d4)]=a11_0x310058(0x1cf)+this[a11_0x310058(0x1e9)],a11_0x55e089[a11_0x310058(0x1c9)]['gridProfile']=a11_0x310058(0x1a3)+this[a11_0x310058(0x1e9)],exports[a11_0x310058(0x1ea)]=a11_0x55e089,exports['HELP_FOOTER_MESSAGE']=a11_0x310058(0x1e1);var a11_0xc98fc5={};a11_0xc98fc5[a11_0x310058(0x1c1)]='success',a11_0xc98fc5[a11_0x310058(0x1ca)]=a11_0x310058(0x1da),a11_0xc98fc5['INFO']='info',a11_0xc98fc5['WARNING']=a11_0x310058(0x1a1),a11_0xc98fc5[a11_0x310058(0x1c6)]=a11_0x310058(0x1b8),a11_0xc98fc5[a11_0x310058(0x1b5)]=null,exports[a11_0x310058(0x1c7)]=a11_0xc98fc5,exports[a11_0x310058(0x1aa)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a11_0x310058(0x1c8)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a11_0x310058(0x1e8)]=a11_0x310058(0x1bf),exports[a11_0x310058(0x1ac)]=require(a11_0x310058(0x1b7));
1
+ var a17_0xd4ce62=a17_0x48c4;(function(_0x4b1ae5,_0x307019){var _0xc29b2b=a17_0x48c4,_0x30ebb1=_0x4b1ae5();while(!![]){try{var _0x308383=parseInt(_0xc29b2b(0xcd))/0x1*(-parseInt(_0xc29b2b(0x88))/0x2)+parseInt(_0xc29b2b(0xb2))/0x3*(-parseInt(_0xc29b2b(0xc1))/0x4)+-parseInt(_0xc29b2b(0xd3))/0x5+parseInt(_0xc29b2b(0xa7))/0x6*(-parseInt(_0xc29b2b(0xaa))/0x7)+-parseInt(_0xc29b2b(0x9f))/0x8*(-parseInt(_0xc29b2b(0xbf))/0x9)+-parseInt(_0xc29b2b(0xce))/0xa+-parseInt(_0xc29b2b(0x98))/0xb*(-parseInt(_0xc29b2b(0xc0))/0xc);if(_0x308383===_0x307019)break;else _0x30ebb1['push'](_0x30ebb1['shift']());}catch(_0x46617f){_0x30ebb1['push'](_0x30ebb1['shift']());}}}(a17_0x55e8,0xd5ecd),require(a17_0xd4ce62(0xa2))[a17_0xd4ce62(0xc7)](),exports['DASHBOARD_ENDPOINT']=process[a17_0xd4ce62(0xbc)][a17_0xd4ce62(0xbb)]||a17_0xd4ce62(0xb9),exports[a17_0xd4ce62(0xc3)]=process['env']['BS_API_URL']||a17_0xd4ce62(0x99),exports[a17_0xd4ce62(0x9c)]=process['env'][a17_0xd4ce62(0x9c)]||a17_0xd4ce62(0xba),exports[a17_0xd4ce62(0xae)]='wss://'+this[a17_0xd4ce62(0x9c)]+a17_0xd4ce62(0xb5),exports[a17_0xd4ce62(0xab)]='credentials',exports[a17_0xd4ce62(0x97)]=a17_0xd4ce62(0xa3),exports[a17_0xd4ce62(0xb0)]=a17_0xd4ce62(0xb8),exports[a17_0xd4ce62(0x96)]=a17_0xd4ce62(0x89),exports[a17_0xd4ce62(0xa1)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a17_0xd4ce62(0x9d),exports[a17_0xd4ce62(0xb7)]=a17_0xd4ce62(0xa6),exports['GCP']=a17_0xd4ce62(0xb3));var a17_0x2db23a={};function a17_0x55e8(){var _0x1342b3=['CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','CLI_RUN_FINISHED','WS_ENDPOINT','list','DEFAULT_GRID_NAME','Value','3AehyTs','gcp','RESOURCES','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','resourceInfo','AZURE','high-scale-grid','grid.browserstack.com','grid-api.browserstack.com','DASHBOARD_ENDPOINT','env','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','info','5040513QXgZAA','50217240HGwSMc','4501516ANJaOe','COMMON_HST_TAGS','BS_API_URL','create','NULL','BrowserStack','config','delete','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','1jMOsZn','14982470HQYUPc','cliRunStarted','[REDACTED]','WS_EVENTS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','5109100vDAWmh','messageTypes','global_registry','1695170ZCwUBt','aws','HST_CLUSTER_TAGS','log','gridUrl','gridProfile','ERROR','GRID_URL','BrowserStack-Automate-TurboScale','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','INFO','SUPPORTED_CLOUD_PROVIDERS','warning','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','AWS','IAM_USER_NAME','11xaZsYy','api.browserstack.com','LOG','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AG_API_URL','BSTACK-ATS-CLUSTER-AUTOSCALER','HELP_FOOTER_MESSAGE','24zVwilP','UNKNOWN','CLUSTER_DEP_STACK_NAME','dotenv','BrowserStackIAMUser','CLI_ARGS_REGEX','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','azure','138CxIbbe','cliRunFinished','RAW_ARGS_REGEX','150857XUtNLF'];a17_0x55e8=function(){return _0x1342b3;};return a17_0x55e8();}a17_0x2db23a['Key']='browserstack:managedBy',a17_0x2db23a[a17_0xd4ce62(0xb1)]='BrowserStack';function a17_0x48c4(_0x5c6791,_0x42a302){var _0x55e855=a17_0x55e8();return a17_0x48c4=function(_0x48c41e,_0x4ee9d5){_0x48c41e=_0x48c41e-0x87;var _0x425e74=_0x55e855[_0x48c41e];return _0x425e74;},a17_0x48c4(_0x5c6791,_0x42a302);}var a17_0x4c8fa1={};a17_0x4c8fa1['Key']='browserstack:service',a17_0x4c8fa1['Value']=a17_0xd4ce62(0x90),exports[a17_0xd4ce62(0xc2)]=[a17_0x2db23a,a17_0x4c8fa1];var a17_0x501fe6={};a17_0x501fe6['browserstack:managedBy']=a17_0xd4ce62(0xc6),a17_0x501fe6['browserstack:service']=a17_0xd4ce62(0x90),exports[a17_0xd4ce62(0x8a)]=a17_0x501fe6,exports[a17_0xd4ce62(0x93)]=[this[a17_0xd4ce62(0x96)]];var a17_0x1efc19={};a17_0x1efc19[a17_0xd4ce62(0x9a)]=a17_0xd4ce62(0x8b),a17_0x1efc19[a17_0xd4ce62(0xb4)]=a17_0xd4ce62(0xb6),a17_0x1efc19[a17_0xd4ce62(0x8f)]=a17_0xd4ce62(0x8c),a17_0x1efc19['CLI_RUN_STARTED']=a17_0xd4ce62(0xcf),a17_0x1efc19[a17_0xd4ce62(0xad)]=a17_0xd4ce62(0xa8),exports[a17_0xd4ce62(0xd1)]=a17_0x1efc19,exports[a17_0xd4ce62(0x87)]={},exports[a17_0xd4ce62(0xc9)]=a17_0xd4ce62(0xcc);var a17_0x1d9883={};a17_0x1d9883['root']=a17_0xd4ce62(0xbd)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883['init']=a17_0xd4ce62(0xac)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883['configure']=a17_0xd4ce62(0xd2)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883[a17_0xd4ce62(0xc4)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a17_0xd4ce62(0xc9)],a17_0x1d9883[a17_0xd4ce62(0xaf)]={},a17_0x1d9883[a17_0xd4ce62(0xc8)]=a17_0xd4ce62(0xa5)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883['connect']=a17_0xd4ce62(0x95)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883[a17_0xd4ce62(0xaf)]['root']=a17_0xd4ce62(0xcb)+this[a17_0xd4ce62(0xc9)],a17_0x1d9883[a17_0xd4ce62(0xaf)]['grid']=a17_0xd4ce62(0xca)+this['LINK_MESSAGE'],a17_0x1d9883[a17_0xd4ce62(0xaf)][a17_0xd4ce62(0x8d)]=a17_0xd4ce62(0x9b)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a17_0x1d9883,exports[a17_0xd4ce62(0x9e)]=a17_0xd4ce62(0x91);var a17_0x1c1881={};a17_0x1c1881['SUCCESS']='success',a17_0x1c1881[a17_0xd4ce62(0x8e)]='error',a17_0x1c1881[a17_0xd4ce62(0x92)]=a17_0xd4ce62(0xbe),a17_0x1c1881['WARNING']=a17_0xd4ce62(0x94),a17_0x1c1881[a17_0xd4ce62(0xa0)]='unknown',a17_0x1c1881[a17_0xd4ce62(0xc5)]=null,exports[a17_0xd4ce62(0xd4)]=a17_0x1c1881,exports[a17_0xd4ce62(0xa4)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a17_0xd4ce62(0xa9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a17_0xd4ce62(0xd0);
@@ -1 +1 @@
1
- const a12_0x131688=a12_0x2966;(function(_0x23383f,_0x4024e3){const _0x1c3262=a12_0x2966,_0x2df851=_0x23383f();while(!![]){try{const _0x4b5796=parseInt(_0x1c3262(0x7d))/0x1*(parseInt(_0x1c3262(0x93))/0x2)+-parseInt(_0x1c3262(0x88))/0x3*(-parseInt(_0x1c3262(0x7b))/0x4)+-parseInt(_0x1c3262(0x90))/0x5*(-parseInt(_0x1c3262(0x81))/0x6)+parseInt(_0x1c3262(0x98))/0x7*(-parseInt(_0x1c3262(0x83))/0x8)+parseInt(_0x1c3262(0x84))/0x9+parseInt(_0x1c3262(0x7f))/0xa+-parseInt(_0x1c3262(0x89))/0xb;if(_0x4b5796===_0x4024e3)break;else _0x2df851['push'](_0x2df851['shift']());}catch(_0x861512){_0x2df851['push'](_0x2df851['shift']());}}}(a12_0x360c,0xbdca7));function a12_0x360c(){const _0x99027b=['path','8JEqcHA','File','654vyqudx','format','1258120GqdkDl','fileLogger','18rtBhlO','mkdirSync','3928DWBwAT','4398975ppYoYF','transports','createLogger','debug','2096547PVbBjB','33956747cypQxR','existsSync','winston','Console','console.info','combine','level','1884170BaWQNf','join','YYYY-MM-DD\x20HH:mm:ss','4028UfnwdJ','timestamp','usage.log','\x20-\x20','message','8491DAuzhC'];a12_0x360c=function(){return _0x99027b;};return a12_0x360c();}const winston=require(a12_0x131688(0x8b)),fs=require('fs'),path=require(a12_0x131688(0x7a)),logDir='log';!fs[a12_0x131688(0x8a)](logDir)&&fs[a12_0x131688(0x82)](logDir);const a12_0x57843a={};a12_0x57843a[a12_0x131688(0x7e)]=a12_0x131688(0x92);const a12_0x539215={};function a12_0x2966(_0x1f66be,_0xccb70d){const _0x360c22=a12_0x360c();return a12_0x2966=function(_0x296647,_0x34247a){_0x296647=_0x296647-0x7a;let _0x11db4a=_0x360c22[_0x296647];return _0x11db4a;},a12_0x2966(_0x1f66be,_0xccb70d);}a12_0x539215[a12_0x131688(0x8f)]=!![];const a12_0x20f92c={};a12_0x20f92c['name']=a12_0x131688(0x8d),exports['logger']=new winston['createLogger']({'format':winston[a12_0x131688(0x7e)][a12_0x131688(0x8e)](winston['format'][a12_0x131688(0x94)](a12_0x57843a),winston['format']['colorize'](a12_0x539215),winston[a12_0x131688(0x7e)]['printf'](_0x20b3b0=>_0x20b3b0[a12_0x131688(0x94)]+a12_0x131688(0x96)+_0x20b3b0[a12_0x131688(0x8f)]+':\x20'+_0x20b3b0[a12_0x131688(0x97)])),'transports':[new winston[(a12_0x131688(0x85))][(a12_0x131688(0x8c))](a12_0x20f92c),new winston[(a12_0x131688(0x85))][(a12_0x131688(0x7c))]({'filename':path[a12_0x131688(0x91)](logDir,'events.log'),'level':a12_0x131688(0x87)})]});const winstonFileLoggerParams={'transports':[new winston[(a12_0x131688(0x85))]['File']({'filename':path[a12_0x131688(0x91)](logDir,a12_0x131688(0x95)),'level':'debug'})]};exports[a12_0x131688(0x80)]=new winston[(a12_0x131688(0x86))](winstonFileLoggerParams);
1
+ const a18_0x27b8d3=a18_0x3ed6;(function(_0x5d757e,_0x1a6cbd){const _0x7a372b=a18_0x3ed6,_0x3d6b0d=_0x5d757e();while(!![]){try{const _0x428c32=parseInt(_0x7a372b(0x15f))/0x1+parseInt(_0x7a372b(0x165))/0x2+-parseInt(_0x7a372b(0x167))/0x3*(-parseInt(_0x7a372b(0x16e))/0x4)+-parseInt(_0x7a372b(0x173))/0x5+-parseInt(_0x7a372b(0x170))/0x6+parseInt(_0x7a372b(0x169))/0x7*(parseInt(_0x7a372b(0x178))/0x8)+-parseInt(_0x7a372b(0x16a))/0x9*(parseInt(_0x7a372b(0x16b))/0xa);if(_0x428c32===_0x1a6cbd)break;else _0x3d6b0d['push'](_0x3d6b0d['shift']());}catch(_0x2d5ffe){_0x3d6b0d['push'](_0x3d6b0d['shift']());}}}(a18_0x4a79,0x441ba));function a18_0x3ed6(_0x5efaba,_0x3cd7d4){const _0x4a7950=a18_0x4a79();return a18_0x3ed6=function(_0x3ed6d2,_0x211aa0){_0x3ed6d2=_0x3ed6d2-0x15b;let _0x3144e3=_0x4a7950[_0x3ed6d2];return _0x3144e3;},a18_0x3ed6(_0x5efaba,_0x3cd7d4);}const winston=require(a18_0x27b8d3(0x15d)),fs=require('fs'),path=require(a18_0x27b8d3(0x16f)),logDir=a18_0x27b8d3(0x175);function a18_0x4a79(){const _0xcd5e1e=['748562kLMDyD','\x20-\x20','3327EBXojE','join','1491CNlYeq','253881oeDxnu','90rNvGyS','YYYY-MM-DD\x20HH:mm:ss','usage.log','796KihKzg','path','3268272ZUpLyH','printf','File','2191470wznQNS','console.info','log','message','transports','17904wGYdCa','createLogger','format','timestamp','winston','Console','444191VhAQrE','logger','combine','fileLogger','name','level'];a18_0x4a79=function(){return _0xcd5e1e;};return a18_0x4a79();}!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a18_0xcabaf0={};a18_0xcabaf0[a18_0x27b8d3(0x15b)]=a18_0x27b8d3(0x16c);const a18_0x19c272={};a18_0x19c272[a18_0x27b8d3(0x164)]=!![];const a18_0x3d29cd={};a18_0x3d29cd[a18_0x27b8d3(0x163)]=a18_0x27b8d3(0x174),exports[a18_0x27b8d3(0x160)]=new winston[(a18_0x27b8d3(0x179))]({'format':winston[a18_0x27b8d3(0x15b)][a18_0x27b8d3(0x161)](winston[a18_0x27b8d3(0x15b)][a18_0x27b8d3(0x15c)](a18_0xcabaf0),winston[a18_0x27b8d3(0x15b)]['colorize'](a18_0x19c272),winston[a18_0x27b8d3(0x15b)][a18_0x27b8d3(0x171)](_0x54ea3d=>_0x54ea3d[a18_0x27b8d3(0x15c)]+a18_0x27b8d3(0x166)+_0x54ea3d[a18_0x27b8d3(0x164)]+':\x20'+_0x54ea3d[a18_0x27b8d3(0x176)])),'transports':[new winston['transports'][(a18_0x27b8d3(0x15e))](a18_0x3d29cd),new winston[(a18_0x27b8d3(0x177))]['File']({'filename':path[a18_0x27b8d3(0x168)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a18_0x27b8d3(0x177))][(a18_0x27b8d3(0x172))]({'filename':path['join'](logDir,a18_0x27b8d3(0x16d)),'level':'debug'})]};exports[a18_0x27b8d3(0x162)]=new winston[(a18_0x27b8d3(0x179))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a13_0x4957b1=a13_0x4a11;(function(_0x1c3ba1,_0x200581){const _0x11b7f9=a13_0x4a11,_0x5aab98=_0x1c3ba1();while(!![]){try{const _0x34a96d=parseInt(_0x11b7f9(0x1af))/0x1*(-parseInt(_0x11b7f9(0x1b1))/0x2)+-parseInt(_0x11b7f9(0x1bb))/0x3*(-parseInt(_0x11b7f9(0x1b8))/0x4)+-parseInt(_0x11b7f9(0x1aa))/0x5+-parseInt(_0x11b7f9(0x1b2))/0x6+parseInt(_0x11b7f9(0x1a8))/0x7+-parseInt(_0x11b7f9(0x1a9))/0x8+parseInt(_0x11b7f9(0x1ac))/0x9*(parseInt(_0x11b7f9(0x1b4))/0xa);if(_0x34a96d===_0x200581)break;else _0x5aab98['push'](_0x5aab98['shift']());}catch(_0x228e8d){_0x5aab98['push'](_0x5aab98['shift']());}}}(a13_0x2460,0x848dd));function a13_0x4a11(_0x186821,_0x1d6f1e){const _0x246012=a13_0x2460();return a13_0x4a11=function(_0x4a1118,_0x39560a){_0x4a1118=_0x4a1118-0x1a8;let _0x2020ad=_0x246012[_0x4a1118];return _0x2020ad;},a13_0x4a11(_0x186821,_0x1d6f1e);}function a13_0x2460(){const _0x4fc6f3=['4GeJJCF','help','root','888267yjktlz','demandCommand','2540167CsEzCM','2342704LaUUIh','3447410oEsXJB','usage','104778YzcoVa','commands','epilogue','72040ApWEQn','sxYbD','16XaTjxV','6502218fYNWIO','Icwrs','2170HAQVhI','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','commandDir'];a13_0x2460=function(){return _0x4fc6f3;};return a13_0x2460();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a13_0x4957b1(0x1b6)][a13_0x4957b1(0x1b5)]=0x1;function run(_0x31b1fc){const _0x2dab60=a13_0x4957b1,_0x5231a0={};_0x5231a0[_0x2dab60(0x1b0)]=_0x2dab60(0x1ad),_0x5231a0[_0x2dab60(0x1b3)]=_0x2dab60(0x1b9);const _0x1478dc=_0x5231a0;_0x31b1fc[_0x2dab60(0x1ab)](HELP_HEADER_MESSAGE[_0x2dab60(0x1ba)])[_0x2dab60(0x1b7)](_0x1478dc[_0x2dab60(0x1b0)])[_0x2dab60(0x1bc)]()['help'](_0x1478dc['Icwrs'])[_0x2dab60(0x1ae)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a19_0x4c69df=a19_0x1e77;(function(_0x24a714,_0x7f2b5){const _0x5159e6=a19_0x1e77,_0x4812de=_0x24a714();while(!![]){try{const _0x257d53=-parseInt(_0x5159e6(0x12a))/0x1*(parseInt(_0x5159e6(0x129))/0x2)+-parseInt(_0x5159e6(0x11f))/0x3+parseInt(_0x5159e6(0x127))/0x4+parseInt(_0x5159e6(0x130))/0x5*(-parseInt(_0x5159e6(0x12f))/0x6)+parseInt(_0x5159e6(0x11e))/0x7*(parseInt(_0x5159e6(0x126))/0x8)+parseInt(_0x5159e6(0x121))/0x9*(parseInt(_0x5159e6(0x11c))/0xa)+parseInt(_0x5159e6(0x128))/0xb;if(_0x257d53===_0x7f2b5)break;else _0x4812de['push'](_0x4812de['shift']());}catch(_0x5f1125){_0x4812de['push'](_0x4812de['shift']());}}}(a19_0x1930,0xbb151));function a19_0x1e77(_0x1bda30,_0x494eb0){const _0x193071=a19_0x1930();return a19_0x1e77=function(_0x1e7740,_0x370456){_0x1e7740=_0x1e7740-0x11c;let _0x18d1a0=_0x193071[_0x1e7740];return _0x18d1a0;},a19_0x1e77(_0x1bda30,_0x494eb0);}function a19_0x1930(){const _0x3eab23=['demandCommand','357bNeDOW','4439496PGPTPC','commandDir','675qDIDwp','usage','AqTxW','commands','exports','204248FJGpEd','958200WKSTbL','15151224NqsQXd','2hScqCX','386602RJKiBD','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','epilogue','env','6orZZQj','5133835wtsnWg','./config/constants','MxMwJ','98730svgQDF'];a19_0x1930=function(){return _0x3eab23;};return a19_0x1930();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a19_0x4c69df(0x131));process[a19_0x4c69df(0x12e)][a19_0x4c69df(0x12b)]=0x1;function run(_0x35439d){const _0x53cb9c=a19_0x4c69df,_0x3abd03={};_0x3abd03[_0x53cb9c(0x132)]=_0x53cb9c(0x124),_0x3abd03[_0x53cb9c(0x123)]='help';const _0x3a9355=_0x3abd03;_0x35439d[_0x53cb9c(0x122)](HELP_HEADER_MESSAGE[_0x53cb9c(0x12c)])[_0x53cb9c(0x120)](_0x3a9355['MxMwJ'])[_0x53cb9c(0x11d)]()['help'](_0x3a9355[_0x53cb9c(0x123)])[_0x53cb9c(0x12d)](HELP_FOOTER_MESSAGE);}module[a19_0x4c69df(0x125)]=run;
@@ -0,0 +1,134 @@
1
+ {
2
+ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3
+ "contentVersion": "1.0.0.0",
4
+ "parameters": {
5
+ "clusterName": {
6
+ "type": "string",
7
+ "metadata": {
8
+ "description": "The name of the Managed Cluster resource."
9
+ }
10
+ },
11
+ "location": {
12
+ "type": "string",
13
+ "metadata": {
14
+ "description": "The location of AKS resource."
15
+ }
16
+ },
17
+ "userInstanceType": {
18
+ "type": "string",
19
+ "defaultValue": "Standard_D8_v5",
20
+ "metadata": {
21
+ "description": "Disk size (in GiB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
22
+ }
23
+ },
24
+ "osDiskSizeGB": {
25
+ "type": "int",
26
+ "defaultValue": 30,
27
+ "metadata": {
28
+ "description": "Disk size (in GiB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
29
+ }
30
+ },
31
+ "userMaxNodes": {
32
+ "type": "int",
33
+ "defaultValue": 1,
34
+ "metadata": {
35
+ "description": "Maximum num of nodes running in a node pool"
36
+ }
37
+ },
38
+ "userMinNodes": {
39
+ "type": "int",
40
+ "defaultValue": 1,
41
+ "metadata": {
42
+ "description": "Minimum num of nodes running in a node pool"
43
+ }
44
+ }
45
+ },
46
+ "resources": [
47
+ {
48
+ "apiVersion": "2023-04-01",
49
+ "dependsOn": [],
50
+ "type": "Microsoft.ContainerService/managedClusters",
51
+ "location": "[parameters('location')]",
52
+ "name": "[parameters('clusterName')]",
53
+ "properties": {
54
+ "dnsPrefix": "[concat(parameters('clusterName'), '-dns')]",
55
+ "kubernetesVersion": "1.26.6",
56
+ "enableRBAC": true,
57
+ "agentPoolProfiles": [
58
+ {
59
+ "name": "agentpool",
60
+ "osDiskSizeGB": "[parameters('osDiskSizeGB')]",
61
+ "count": "[parameters('userMinNodes')]",
62
+ "enableAutoScaling": true,
63
+ "minCount": "[parameters('userMinNodes')]",
64
+ "maxCount": "[parameters('userMaxNodes')]",
65
+ "vmSize": "[parameters('userInstanceType')]",
66
+ "osType": "Linux",
67
+ "storageProfile": "ManagedDisks",
68
+ "type": "VirtualMachineScaleSets",
69
+ "mode": "System",
70
+ "maxPods": 100,
71
+ "availabilityZones": [
72
+ "1",
73
+ "2",
74
+ "3"
75
+ ],
76
+ "enableNodePublicIP": false,
77
+ "tags": {
78
+ "browserstack:managedBy": "BrowserStack"
79
+ }
80
+ }
81
+ ],
82
+ "networkProfile": {
83
+ "loadBalancerSku": "standard",
84
+ "networkPlugin": "kubenet",
85
+ "networkPolicy": "calico"
86
+ },
87
+ "autoUpgradeProfile": {
88
+ "upgradeChannel": "none"
89
+ },
90
+ "disableLocalAccounts": false,
91
+ "aadProfile": {
92
+ "managed": true,
93
+ "adminGroupObjectIDs": [],
94
+ "enableAzureRBAC": true
95
+ },
96
+ "apiServerAccessProfile": {
97
+ "enablePrivateCluster": false
98
+ },
99
+ "addonProfiles": {
100
+ "azurepolicy": {
101
+ "enabled": false
102
+ },
103
+ "azureKeyvaultSecretsProvider": {
104
+ "enabled": false,
105
+ "config": null
106
+ }
107
+ },
108
+ "oidcIssuerProfile": {
109
+ "enabled": true
110
+ },
111
+ "securityProfile": {
112
+ "workloadIdentity": {
113
+ "enabled": true
114
+ }
115
+ },
116
+ "upgradePolicy": {
117
+ "automaticOSUpgradePolicy": {
118
+ "enableAutomaticOSUpgrade": false
119
+ }
120
+ }
121
+ },
122
+ "tags": {
123
+ "browserstack:managedBy": "BrowserStack"
124
+ },
125
+ "sku": {
126
+ "name": "Base",
127
+ "tier": "Standard"
128
+ },
129
+ "identity": {
130
+ "type": "SystemAssigned"
131
+ }
132
+ }
133
+ ]
134
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3
+ "contentVersion": "1.0.0.0",
4
+ "parameters": {
5
+ "clusterName": {
6
+ "type": "string",
7
+ "metadata": {
8
+ "description": "The name of the Managed Cluster resource."
9
+ }
10
+ },
11
+ "oidcIssuer": {
12
+ "type": "string",
13
+ "metadata": {
14
+ "description": "OIDC Issuer of AKS Cluster"
15
+ }
16
+ },
17
+ "gridName": {
18
+ "type": "string",
19
+ "metadata": {
20
+ "description": "Grid Name"
21
+ }
22
+ }
23
+ },
24
+ "variables": {
25
+ "managedIdentityName": "[concat('turboscale-managed-identity-', parameters('clusterName'))]"
26
+ },
27
+ "resources": [
28
+ {
29
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
30
+ "apiVersion": "2022-01-31-preview",
31
+ "name": "[variables('managedIdentityName')]",
32
+ "location": "[resourceGroup().location]"
33
+ },
34
+ {
35
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials",
36
+ "apiVersion": "2022-01-31-preview",
37
+ "name": "[concat(variables('managedIdentityName'), '/turboscale-federated-identity-hub-', parameters('gridName'))]",
38
+ "dependsOn": [
39
+ "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName'))]"
40
+ ],
41
+ "properties": {
42
+ "issuer": "[parameters('oidcIssuer')]",
43
+ "subject": "[concat('system:serviceaccount:', parameters('gridName'), ':default')]",
44
+ "audiences": [
45
+ "api://AzureADTokenExchange"
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3
+ "contentVersion": "1.0.0.0",
4
+ "parameters": {
5
+ "clusterName": {
6
+ "type": "string",
7
+ "metadata": {
8
+ "description": "The name of the Managed Cluster resource."
9
+ }
10
+ },
11
+ "oidcIssuer": {
12
+ "type": "string",
13
+ "metadata": {
14
+ "description": "OIDC Issuer of AKS Cluster"
15
+ }
16
+ },
17
+ "gridName": {
18
+ "type": "string",
19
+ "metadata": {
20
+ "description": "Grid Name"
21
+ }
22
+ }
23
+ },
24
+ "variables": {
25
+ "managedIdentityName": "[concat('turboscale-managed-identity-', parameters('clusterName'))]"
26
+ },
27
+ "resources": [
28
+ {
29
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
30
+ "apiVersion": "2022-01-31-preview",
31
+ "name": "[variables('managedIdentityName')]",
32
+ "location": "[resourceGroup().location]"
33
+ },
34
+ {
35
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials",
36
+ "apiVersion": "2022-01-31-preview",
37
+ "name": "[concat(variables('managedIdentityName'), '/turboscale-federated-identity-node-', parameters('gridName'))]",
38
+ "dependsOn": [
39
+ "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName'))]"
40
+ ],
41
+ "properties": {
42
+ "issuer": "[parameters('oidcIssuer')]",
43
+ "subject": "[concat('system:serviceaccount:', parameters('gridName'), ':browser-node')]",
44
+ "audiences": [
45
+ "api://AzureADTokenExchange"
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3
+ "contentVersion": "1.0.0.0",
4
+ "parameters": {
5
+ "clusterName": {
6
+ "type": "string",
7
+ "metadata": {
8
+ "description": "The name of the Managed Cluster resource."
9
+ }
10
+ }
11
+ },
12
+ "variables": {
13
+ "managedIdentityName": "[concat('turboscale-managed-identity-', parameters('clusterName'))]",
14
+ "BlobDataContributorRoleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')]",
15
+ "DelegatorRoleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'db58b8e5-c6ad-4a2a-8342-4190687cbf4a')]"
16
+ },
17
+ "resources": [
18
+ {
19
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
20
+ "apiVersion": "2023-01-31",
21
+ "name": "[variables('managedIdentityName')]",
22
+ "location": "[resourceGroup().location]"
23
+ },
24
+ {
25
+ "type": "Microsoft.Authorization/roleAssignments",
26
+ "apiVersion": "2020-08-01-preview",
27
+ "name": "[guid(resourceGroup().id, resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName')), variables('DelegatorRoleDefinitionId'))]",
28
+ "location": "[resourceGroup().location]",
29
+ "properties": {
30
+ "principalType": "ServicePrincipal",
31
+ "roleDefinitionId": "[variables('DelegatorRoleDefinitionId')]",
32
+ "principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName')), '2023-01-31').principalId]",
33
+ "scope": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name)]"
34
+ }
35
+ },
36
+ {
37
+ "type": "Microsoft.Authorization/roleAssignments",
38
+ "apiVersion": "2020-08-01-preview",
39
+ "name": "[guid(resourceGroup().id, resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName')), variables('BlobDataContributorRoleDefinitionId'))]",
40
+ "location": "[resourceGroup().location]",
41
+ "properties": {
42
+ "principalType": "ServicePrincipal",
43
+ "roleDefinitionId": "[variables('BlobDataContributorRoleDefinitionId')]",
44
+ "principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('managedIdentityName')), '2023-01-31').principalId]",
45
+ "scope": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name)]"
46
+ }
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3
+ "contentVersion": "1.0.0.0",
4
+ "parameters": {
5
+ "storageAccountName": {
6
+ "type": "string",
7
+ "metadata": {
8
+ "description": "Storage account name"
9
+ }
10
+ }
11
+ },
12
+ "resources": [
13
+ {
14
+ "type": "Microsoft.Storage/storageAccounts",
15
+ "apiVersion": "2021-04-01",
16
+ "name": "[parameters('storageAccountName')]",
17
+ "location": "[resourceGroup().location]",
18
+ "sku": {
19
+ "name": "Standard_RAGRS",
20
+ "tier": "Standard"
21
+ },
22
+ "kind": "StorageV2",
23
+ "properties": {
24
+ "allowCrossTenantReplication": false,
25
+ "minimumTlsVersion": "TLS1_0",
26
+ "allowBlobPublicAccess": false,
27
+ "networkAcls": {
28
+ "bypass": "AzureServices",
29
+ "virtualNetworkRules": [],
30
+ "ipRules": [],
31
+ "defaultAction": "Allow"
32
+ },
33
+ "supportsHttpsTrafficOnly": true,
34
+ "encryption": {
35
+ "services": {
36
+ "file": {
37
+ "keyType": "Account",
38
+ "enabled": true
39
+ },
40
+ "table": {
41
+ "keyType": "Account",
42
+ "enabled": true
43
+ },
44
+ "blob": {
45
+ "keyType": "Account",
46
+ "enabled": true
47
+ }
48
+ },
49
+ "keySource": "Microsoft.Storage"
50
+ },
51
+ "accessTier": "Hot"
52
+ }
53
+ },
54
+ {
55
+ "type": "Microsoft.Storage/storageAccounts/blobServices",
56
+ "apiVersion": "2021-04-01",
57
+ "name": "[concat(parameters('storageAccountName'), '/default')]",
58
+ "dependsOn": [
59
+ "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"
60
+ ],
61
+ "sku": {
62
+ "name": "Standard_RAGRS",
63
+ "tier": "Standard"
64
+ },
65
+ "properties": {
66
+ "cors": {
67
+ "corsRules": [
68
+ {
69
+ "allowedOrigins": [
70
+ "*"
71
+ ],
72
+ "allowedMethods": [
73
+ "GET"
74
+ ],
75
+ "maxAgeInSeconds": 0,
76
+ "exposedHeaders": [
77
+ ""
78
+ ],
79
+ "allowedHeaders": [
80
+ "*"
81
+ ]
82
+ }
83
+ ]
84
+ },
85
+ "deleteRetentionPolicy": {
86
+ "allowPermanentDelete": false,
87
+ "enabled": false
88
+ }
89
+ }
90
+ }
91
+ ]
92
+ }