skyveda 0.4.1__tar.gz

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 (273) hide show
  1. skyveda-0.4.1/.gitattributes +2 -0
  2. skyveda-0.4.1/.github/workflows/ci.yml +33 -0
  3. skyveda-0.4.1/.gitignore +30 -0
  4. skyveda-0.4.1/.python-version +1 -0
  5. skyveda-0.4.1/CONTRIBUTING.md +37 -0
  6. skyveda-0.4.1/LICENSE +202 -0
  7. skyveda-0.4.1/NOTICE +10 -0
  8. skyveda-0.4.1/PKG-INFO +162 -0
  9. skyveda-0.4.1/README.md +139 -0
  10. skyveda-0.4.1/SECURITY.md +27 -0
  11. skyveda-0.4.1/TRADEMARKS.md +22 -0
  12. skyveda-0.4.1/demo/README.md +19 -0
  13. skyveda-0.4.1/demo/azure/AZ-ACR-001.json +22 -0
  14. skyveda-0.4.1/demo/azure/AZ-ACR-002.json +22 -0
  15. skyveda-0.4.1/demo/azure/AZ-ACR-003.json +24 -0
  16. skyveda-0.4.1/demo/azure/AZ-AI-001.json +13 -0
  17. skyveda-0.4.1/demo/azure/AZ-AKS-002.json +22 -0
  18. skyveda-0.4.1/demo/azure/AZ-AKS-003.json +22 -0
  19. skyveda-0.4.1/demo/azure/AZ-AKS-004.json +22 -0
  20. skyveda-0.4.1/demo/azure/AZ-AKS-005.json +22 -0
  21. skyveda-0.4.1/demo/azure/AZ-AKS-006.json +20 -0
  22. skyveda-0.4.1/demo/azure/AZ-AKS-007.json +20 -0
  23. skyveda-0.4.1/demo/azure/AZ-AKS-008.json +20 -0
  24. skyveda-0.4.1/demo/azure/AZ-AKS-009.json +20 -0
  25. skyveda-0.4.1/demo/azure/AZ-AKS-010.json +22 -0
  26. skyveda-0.4.1/demo/azure/AZ-COSMOS-001.json +22 -0
  27. skyveda-0.4.1/demo/azure/AZ-COSMOS-002.json +24 -0
  28. skyveda-0.4.1/demo/azure/AZ-COST-001.json +103 -0
  29. skyveda-0.4.1/demo/azure/AZ-COST-002.json +74 -0
  30. skyveda-0.4.1/demo/azure/AZ-COST-003.json +40 -0
  31. skyveda-0.4.1/demo/azure/AZ-COST-004.json +44 -0
  32. skyveda-0.4.1/demo/azure/AZ-COST-005.json +34 -0
  33. skyveda-0.4.1/demo/azure/AZ-COST-006.json +34 -0
  34. skyveda-0.4.1/demo/azure/AZ-COST-007.json +40 -0
  35. skyveda-0.4.1/demo/azure/AZ-COST-008.json +44 -0
  36. skyveda-0.4.1/demo/azure/AZ-KV-001.json +40 -0
  37. skyveda-0.4.1/demo/azure/AZ-KV-002.json +36 -0
  38. skyveda-0.4.1/demo/azure/AZ-KV-003.json +40 -0
  39. skyveda-0.4.1/demo/azure/AZ-MSG-001.json +24 -0
  40. skyveda-0.4.1/demo/azure/AZ-NET-001.json +106 -0
  41. skyveda-0.4.1/demo/azure/AZ-NET-002.json +74 -0
  42. skyveda-0.4.1/demo/azure/AZ-NET-003.json +67 -0
  43. skyveda-0.4.1/demo/azure/AZ-NET-004.json +49 -0
  44. skyveda-0.4.1/demo/azure/AZ-NET-005.json +40 -0
  45. skyveda-0.4.1/demo/azure/AZ-NET-006.json +106 -0
  46. skyveda-0.4.1/demo/azure/AZ-NET-007.json +74 -0
  47. skyveda-0.4.1/demo/azure/AZ-NET-008.json +22 -0
  48. skyveda-0.4.1/demo/azure/AZ-PGSQL-001.json +22 -0
  49. skyveda-0.4.1/demo/azure/AZ-REDIS-001.json +20 -0
  50. skyveda-0.4.1/demo/azure/AZ-REDIS-002.json +20 -0
  51. skyveda-0.4.1/demo/azure/AZ-REL-001.json +13 -0
  52. skyveda-0.4.1/demo/azure/AZ-REL-002.json +14 -0
  53. skyveda-0.4.1/demo/azure/AZ-REL-003.json +31 -0
  54. skyveda-0.4.1/demo/azure/AZ-SQL-001.json +28 -0
  55. skyveda-0.4.1/demo/azure/AZ-SQL-002.json +54 -0
  56. skyveda-0.4.1/demo/azure/AZ-SQL-003.json +31 -0
  57. skyveda-0.4.1/demo/azure/AZ-SQL-004.json +28 -0
  58. skyveda-0.4.1/demo/azure/AZ-STG-001.json +44 -0
  59. skyveda-0.4.1/demo/azure/AZ-STG-002.json +44 -0
  60. skyveda-0.4.1/demo/azure/AZ-STG-003.json +44 -0
  61. skyveda-0.4.1/demo/azure/AZ-STG-004.json +44 -0
  62. skyveda-0.4.1/demo/azure/AZ-STG-005.json +44 -0
  63. skyveda-0.4.1/demo/azure/AZ-VM-001.json +28 -0
  64. skyveda-0.4.1/demo/azure/AZ-VM-002.json +44 -0
  65. skyveda-0.4.1/demo/azure/AZ-VM-003.json +44 -0
  66. skyveda-0.4.1/demo/azure/AZ-VM-004.json +94 -0
  67. skyveda-0.4.1/demo/azure/AZ-WEB-001.json +49 -0
  68. skyveda-0.4.1/demo/azure/AZ-WEB-002.json +59 -0
  69. skyveda-0.4.1/demo/azure/AZ-WEB-003.json +49 -0
  70. skyveda-0.4.1/demo/azure/AZ-WEB-004.json +59 -0
  71. skyveda-0.4.1/demo/azure/AZ-WEB-005.json +59 -0
  72. skyveda-0.4.1/demo/azure/AZ-WEB-006.json +52 -0
  73. skyveda-0.4.1/demo/azure/billed_costs.json +3245 -0
  74. skyveda-0.4.1/demo/azure/scopes.json +17 -0
  75. skyveda-0.4.1/lab/azure/README.md +81 -0
  76. skyveda-0.4.1/lab/azure/batch1.tf +193 -0
  77. skyveda-0.4.1/lab/azure/batch2.tf +95 -0
  78. skyveda-0.4.1/lab/azure/batch3.tf +184 -0
  79. skyveda-0.4.1/lab/azure/main.tf +250 -0
  80. skyveda-0.4.1/lab/azure/outputs.tf +150 -0
  81. skyveda-0.4.1/lab/azure/variables.tf +65 -0
  82. skyveda-0.4.1/lab/azure/verify.py +67 -0
  83. skyveda-0.4.1/lab/azure/versions.tf +33 -0
  84. skyveda-0.4.1/packaging/build_cloudshell_bundle.py +46 -0
  85. skyveda-0.4.1/packaging/cloudshell/README.txt +33 -0
  86. skyveda-0.4.1/packaging/cloudshell/install.sh +48 -0
  87. skyveda-0.4.1/pyproject.toml +86 -0
  88. skyveda-0.4.1/src/skyveda/__init__.py +3 -0
  89. skyveda-0.4.1/src/skyveda/__main__.py +5 -0
  90. skyveda-0.4.1/src/skyveda/checks/azure/AZ-ACR-001.yaml +39 -0
  91. skyveda-0.4.1/src/skyveda/checks/azure/AZ-ACR-002.yaml +41 -0
  92. skyveda-0.4.1/src/skyveda/checks/azure/AZ-ACR-003.yaml +44 -0
  93. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AI-001.yaml +40 -0
  94. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-002.yaml +39 -0
  95. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-003.yaml +36 -0
  96. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-004.yaml +30 -0
  97. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-005.yaml +32 -0
  98. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-006.yaml +38 -0
  99. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-007.yaml +37 -0
  100. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-008.yaml +41 -0
  101. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-009.yaml +38 -0
  102. skyveda-0.4.1/src/skyveda/checks/azure/AZ-AKS-010.yaml +42 -0
  103. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COSMOS-001.yaml +39 -0
  104. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COSMOS-002.yaml +42 -0
  105. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-001.yaml +53 -0
  106. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-002.yaml +48 -0
  107. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-003.yaml +46 -0
  108. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-004.yaml +47 -0
  109. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-005.yaml +33 -0
  110. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-006.yaml +39 -0
  111. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-007.yaml +54 -0
  112. skyveda-0.4.1/src/skyveda/checks/azure/AZ-COST-008.yaml +40 -0
  113. skyveda-0.4.1/src/skyveda/checks/azure/AZ-KV-001.yaml +35 -0
  114. skyveda-0.4.1/src/skyveda/checks/azure/AZ-KV-002.yaml +39 -0
  115. skyveda-0.4.1/src/skyveda/checks/azure/AZ-KV-003.yaml +44 -0
  116. skyveda-0.4.1/src/skyveda/checks/azure/AZ-MSG-001.yaml +41 -0
  117. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-001.yaml +65 -0
  118. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-002.yaml +32 -0
  119. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-003.yaml +53 -0
  120. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-004.yaml +44 -0
  121. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-005.yaml +50 -0
  122. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-006.yaml +42 -0
  123. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-007.yaml +38 -0
  124. skyveda-0.4.1/src/skyveda/checks/azure/AZ-NET-008.yaml +35 -0
  125. skyveda-0.4.1/src/skyveda/checks/azure/AZ-PGSQL-001.yaml +42 -0
  126. skyveda-0.4.1/src/skyveda/checks/azure/AZ-REDIS-001.yaml +38 -0
  127. skyveda-0.4.1/src/skyveda/checks/azure/AZ-REDIS-002.yaml +37 -0
  128. skyveda-0.4.1/src/skyveda/checks/azure/AZ-REL-001.yaml +30 -0
  129. skyveda-0.4.1/src/skyveda/checks/azure/AZ-REL-002.yaml +38 -0
  130. skyveda-0.4.1/src/skyveda/checks/azure/AZ-REL-003.yaml +38 -0
  131. skyveda-0.4.1/src/skyveda/checks/azure/AZ-SQL-001.yaml +44 -0
  132. skyveda-0.4.1/src/skyveda/checks/azure/AZ-SQL-002.yaml +35 -0
  133. skyveda-0.4.1/src/skyveda/checks/azure/AZ-SQL-003.yaml +42 -0
  134. skyveda-0.4.1/src/skyveda/checks/azure/AZ-SQL-004.yaml +38 -0
  135. skyveda-0.4.1/src/skyveda/checks/azure/AZ-STG-001.yaml +48 -0
  136. skyveda-0.4.1/src/skyveda/checks/azure/AZ-STG-002.yaml +36 -0
  137. skyveda-0.4.1/src/skyveda/checks/azure/AZ-STG-003.yaml +38 -0
  138. skyveda-0.4.1/src/skyveda/checks/azure/AZ-STG-004.yaml +40 -0
  139. skyveda-0.4.1/src/skyveda/checks/azure/AZ-STG-005.yaml +39 -0
  140. skyveda-0.4.1/src/skyveda/checks/azure/AZ-VM-001.yaml +40 -0
  141. skyveda-0.4.1/src/skyveda/checks/azure/AZ-VM-002.yaml +44 -0
  142. skyveda-0.4.1/src/skyveda/checks/azure/AZ-VM-003.yaml +37 -0
  143. skyveda-0.4.1/src/skyveda/checks/azure/AZ-VM-004.yaml +49 -0
  144. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-001.yaml +37 -0
  145. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-002.yaml +37 -0
  146. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-003.yaml +42 -0
  147. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-004.yaml +36 -0
  148. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-005.yaml +36 -0
  149. skyveda-0.4.1/src/skyveda/checks/azure/AZ-WEB-006.yaml +39 -0
  150. skyveda-0.4.1/src/skyveda/cli.py +484 -0
  151. skyveda-0.4.1/src/skyveda/core/__init__.py +1 -0
  152. skyveda-0.4.1/src/skyveda/core/billing.py +163 -0
  153. skyveda-0.4.1/src/skyveda/core/checks.py +122 -0
  154. skyveda-0.4.1/src/skyveda/core/config.py +83 -0
  155. skyveda-0.4.1/src/skyveda/core/engine.py +93 -0
  156. skyveda-0.4.1/src/skyveda/core/errors.py +61 -0
  157. skyveda-0.4.1/src/skyveda/core/evaluators.py +151 -0
  158. skyveda-0.4.1/src/skyveda/core/models.py +411 -0
  159. skyveda-0.4.1/src/skyveda/core/offline.py +97 -0
  160. skyveda-0.4.1/src/skyveda/core/provider.py +87 -0
  161. skyveda-0.4.1/src/skyveda/core/remedy.py +170 -0
  162. skyveda-0.4.1/src/skyveda/core/retry.py +72 -0
  163. skyveda-0.4.1/src/skyveda/core/scoring.py +52 -0
  164. skyveda-0.4.1/src/skyveda/core/waivers.py +130 -0
  165. skyveda-0.4.1/src/skyveda/providers/__init__.py +1 -0
  166. skyveda-0.4.1/src/skyveda/providers/azure/__init__.py +21 -0
  167. skyveda-0.4.1/src/skyveda/providers/azure/arm.py +189 -0
  168. skyveda-0.4.1/src/skyveda/providers/azure/auth.py +142 -0
  169. skyveda-0.4.1/src/skyveda/providers/azure/collectors.py +117 -0
  170. skyveda-0.4.1/src/skyveda/providers/azure/costs.py +234 -0
  171. skyveda-0.4.1/src/skyveda/providers/azure/evaluators.py +144 -0
  172. skyveda-0.4.1/src/skyveda/providers/azure/provider.py +159 -0
  173. skyveda-0.4.1/src/skyveda/providers/azure/resource_graph.py +202 -0
  174. skyveda-0.4.1/src/skyveda/py.typed +0 -0
  175. skyveda-0.4.1/src/skyveda/report/__init__.py +5 -0
  176. skyveda-0.4.1/src/skyveda/report/fixpack.py +386 -0
  177. skyveda-0.4.1/src/skyveda/report/fonts/DejaVuSans-Bold.ttf +0 -0
  178. skyveda-0.4.1/src/skyveda/report/fonts/DejaVuSans.ttf +0 -0
  179. skyveda-0.4.1/src/skyveda/report/fonts/LICENSE-DejaVu.txt +187 -0
  180. skyveda-0.4.1/src/skyveda/report/html.py +76 -0
  181. skyveda-0.4.1/src/skyveda/report/pdf.py +494 -0
  182. skyveda-0.4.1/src/skyveda/report/summary.py +231 -0
  183. skyveda-0.4.1/src/skyveda/report/templates/report.html.j2 +163 -0
  184. skyveda-0.4.1/tests/__init__.py +0 -0
  185. skyveda-0.4.1/tests/conftest.py +19 -0
  186. skyveda-0.4.1/tests/fixtures/azure/AZ-ACR-001.json +31 -0
  187. skyveda-0.4.1/tests/fixtures/azure/AZ-ACR-002.json +4 -0
  188. skyveda-0.4.1/tests/fixtures/azure/AZ-ACR-003.json +5 -0
  189. skyveda-0.4.1/tests/fixtures/azure/AZ-AI-001.json +4 -0
  190. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-002.json +1 -0
  191. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-003.json +4 -0
  192. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-004.json +4 -0
  193. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-005.json +3 -0
  194. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-006.json +20 -0
  195. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-007.json +20 -0
  196. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-008.json +20 -0
  197. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-009.json +4 -0
  198. skyveda-0.4.1/tests/fixtures/azure/AZ-AKS-010.json +4 -0
  199. skyveda-0.4.1/tests/fixtures/azure/AZ-COSMOS-001.json +5 -0
  200. skyveda-0.4.1/tests/fixtures/azure/AZ-COSMOS-002.json +5 -0
  201. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-001.json +5 -0
  202. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-002.json +3 -0
  203. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-003.json +4 -0
  204. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-004.json +3 -0
  205. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-005.json +1 -0
  206. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-006.json +4 -0
  207. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-007.json +52 -0
  208. skyveda-0.4.1/tests/fixtures/azure/AZ-COST-008.json +4 -0
  209. skyveda-0.4.1/tests/fixtures/azure/AZ-KV-001.json +3 -0
  210. skyveda-0.4.1/tests/fixtures/azure/AZ-KV-002.json +5 -0
  211. skyveda-0.4.1/tests/fixtures/azure/AZ-KV-003.json +5 -0
  212. skyveda-0.4.1/tests/fixtures/azure/AZ-MSG-001.json +5 -0
  213. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-001.json +7 -0
  214. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-002.json +4 -0
  215. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-003.json +4 -0
  216. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-004.json +40 -0
  217. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-005.json +31 -0
  218. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-006.json +4 -0
  219. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-007.json +4 -0
  220. skyveda-0.4.1/tests/fixtures/azure/AZ-NET-008.json +4 -0
  221. skyveda-0.4.1/tests/fixtures/azure/AZ-PGSQL-001.json +4 -0
  222. skyveda-0.4.1/tests/fixtures/azure/AZ-REDIS-001.json +5 -0
  223. skyveda-0.4.1/tests/fixtures/azure/AZ-REDIS-002.json +4 -0
  224. skyveda-0.4.1/tests/fixtures/azure/AZ-REL-001.json +3 -0
  225. skyveda-0.4.1/tests/fixtures/azure/AZ-REL-002.json +26 -0
  226. skyveda-0.4.1/tests/fixtures/azure/AZ-REL-003.json +22 -0
  227. skyveda-0.4.1/tests/fixtures/azure/AZ-SQL-001.json +5 -0
  228. skyveda-0.4.1/tests/fixtures/azure/AZ-SQL-002.json +5 -0
  229. skyveda-0.4.1/tests/fixtures/azure/AZ-SQL-003.json +5 -0
  230. skyveda-0.4.1/tests/fixtures/azure/AZ-SQL-004.json +5 -0
  231. skyveda-0.4.1/tests/fixtures/azure/AZ-STG-001.json +4 -0
  232. skyveda-0.4.1/tests/fixtures/azure/AZ-STG-002.json +4 -0
  233. skyveda-0.4.1/tests/fixtures/azure/AZ-STG-003.json +5 -0
  234. skyveda-0.4.1/tests/fixtures/azure/AZ-STG-004.json +5 -0
  235. skyveda-0.4.1/tests/fixtures/azure/AZ-STG-005.json +5 -0
  236. skyveda-0.4.1/tests/fixtures/azure/AZ-VM-001.json +5 -0
  237. skyveda-0.4.1/tests/fixtures/azure/AZ-VM-002.json +4 -0
  238. skyveda-0.4.1/tests/fixtures/azure/AZ-VM-003.json +24 -0
  239. skyveda-0.4.1/tests/fixtures/azure/AZ-VM-004.json +4 -0
  240. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-001.json +31 -0
  241. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-002.json +37 -0
  242. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-003.json +40 -0
  243. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-004.json +37 -0
  244. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-005.json +37 -0
  245. skyveda-0.4.1/tests/fixtures/azure/AZ-WEB-006.json +5 -0
  246. skyveda-0.4.1/tests/fixtures/azure/resource_graph/subscriptions_page1.json +20 -0
  247. skyveda-0.4.1/tests/fixtures/azure/resource_graph/subscriptions_page2.json +13 -0
  248. skyveda-0.4.1/tests/fixtures/azure/scopes.json +4 -0
  249. skyveda-0.4.1/tests/fixtures/framework_mapping.csv +61 -0
  250. skyveda-0.4.1/tests/test_arm.py +121 -0
  251. skyveda-0.4.1/tests/test_azure_provider.py +165 -0
  252. skyveda-0.4.1/tests/test_billing.py +252 -0
  253. skyveda-0.4.1/tests/test_checks.py +79 -0
  254. skyveda-0.4.1/tests/test_cli.py +110 -0
  255. skyveda-0.4.1/tests/test_collectors.py +194 -0
  256. skyveda-0.4.1/tests/test_config.py +88 -0
  257. skyveda-0.4.1/tests/test_costs.py +158 -0
  258. skyveda-0.4.1/tests/test_engine.py +161 -0
  259. skyveda-0.4.1/tests/test_evaluators.py +111 -0
  260. skyveda-0.4.1/tests/test_fixpack.py +226 -0
  261. skyveda-0.4.1/tests/test_fixpack_safety.py +329 -0
  262. skyveda-0.4.1/tests/test_frameworks.py +151 -0
  263. skyveda-0.4.1/tests/test_models.py +159 -0
  264. skyveda-0.4.1/tests/test_nsg_evaluator.py +72 -0
  265. skyveda-0.4.1/tests/test_offline.py +46 -0
  266. skyveda-0.4.1/tests/test_pdf.py +183 -0
  267. skyveda-0.4.1/tests/test_read_only_guardrail.py +85 -0
  268. skyveda-0.4.1/tests/test_remedy.py +191 -0
  269. skyveda-0.4.1/tests/test_report.py +133 -0
  270. skyveda-0.4.1/tests/test_resource_graph.py +169 -0
  271. skyveda-0.4.1/tests/test_retry.py +68 -0
  272. skyveda-0.4.1/tests/test_waivers.py +229 -0
  273. skyveda-0.4.1/uv.lock +1372 -0
@@ -0,0 +1,2 @@
1
+ * text=auto eol=lf
2
+ *.png binary
@@ -0,0 +1,33 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ check:
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ os: [ubuntu-latest, windows-latest]
17
+ runs-on: ${{ matrix.os }}
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: astral-sh/setup-uv@v6
21
+ with:
22
+ python-version: "3.12"
23
+ enable-cache: true
24
+ - name: Install
25
+ run: uv sync --all-extras --locked
26
+ - name: Lint
27
+ run: uv run ruff check
28
+ - name: Format
29
+ run: uv run ruff format --check
30
+ - name: Type-check
31
+ run: uv run mypy
32
+ - name: Test
33
+ run: uv run pytest
@@ -0,0 +1,30 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ .venv/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ .mypy_cache/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+
13
+ # Scan output and live recordings may contain client data: never commit them.
14
+ out/
15
+ recordings/
16
+
17
+ # Terraform (lab)
18
+ .terraform/
19
+ *.tfstate
20
+ *.tfstate.*
21
+ *.tfvars
22
+ .terraform.lock.hcl
23
+
24
+ # Editors / OS
25
+ .vscode/
26
+ .idea/
27
+ .DS_Store
28
+ .ops/
29
+ lab/azure/expected.json
30
+ lab/azure/flagged.json
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,37 @@
1
+ # Contributing
2
+
3
+ Thank you for helping. Contributions are accepted under the Apache License 2.0, the same licence
4
+ as the project (inbound = outbound).
5
+
6
+ ## Sign off every commit
7
+
8
+ Every commit must carry a Developer Certificate of Origin sign-off
9
+ (https://developercertificate.org):
10
+
11
+ ```bash
12
+ git commit -s
13
+ ```
14
+
15
+ This adds `Signed-off-by: Your Name <you@example.com>` and confirms you have the right to submit
16
+ the change under the project's licence. Pull requests with unsigned commits are not merged.
17
+
18
+ ## Rules the code must keep
19
+
20
+ - **Read-only.** Only read, list and get APIs. No call that creates, changes or deletes anything.
21
+ - **Real fields only.** Every property path in a check must exist in the provider's API or
22
+ Resource Graph schema, with a fixture that shows it.
23
+ - **No real data.** Never put real subscription or tenant IDs, resource names, keys or customer
24
+ data in code, fixtures, issues or pull requests. Use the placeholders in `tests/fixtures`.
25
+ - **Tests never touch the cloud.** Sockets are disabled in the test run.
26
+
27
+ ## Before opening a pull request
28
+
29
+ ```bash
30
+ uv sync --all-extras
31
+ uv run ruff check && uv run ruff format --check
32
+ uv run mypy
33
+ uv run pytest
34
+ ```
35
+
36
+ Security problems go by email, not in an issue: see [SECURITY.md](SECURITY.md).
37
+ The Skyveda name is not covered by the code licence: see [TRADEMARKS.md](TRADEMARKS.md).
skyveda-0.4.1/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
skyveda-0.4.1/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ Skyveda Scan
2
+ Copyright 2026 Skyveda
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ "Skyveda" is a trademark of Skyveda. The Apache
7
+ License does not grant permission to use it (section 6). See TRADEMARKS.md.
8
+
9
+ Microsoft and Azure are trademarks of the Microsoft group of companies.
10
+ Skyveda is not affiliated with or endorsed by Microsoft.
skyveda-0.4.1/PKG-INFO ADDED
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.5
2
+ Name: skyveda
3
+ Version: 0.4.1
4
+ Summary: Read-only cloud platform health scanner that produces a scored HTML report.
5
+ Author-email: Skyveda <skyvedahq@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Classifier: Environment :: Console
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Topic :: System :: Systems Administration
12
+ Requires-Python: >=3.12
13
+ Requires-Dist: jinja2>=3.1
14
+ Requires-Dist: pydantic>=2.7
15
+ Requires-Dist: pyyaml>=6.0
16
+ Requires-Dist: reportlab>=4.2
17
+ Requires-Dist: rich>=13.7
18
+ Requires-Dist: typer>=0.12
19
+ Provides-Extra: azure
20
+ Requires-Dist: azure-identity>=1.17; extra == 'azure'
21
+ Requires-Dist: azure-mgmt-resourcegraph>=8.0; extra == 'azure'
22
+ Description-Content-Type: text/markdown
23
+
24
+ # Skyveda Scan
25
+
26
+ Read-only command-line scanner that checks a cloud environment against a catalogue of
27
+ best-practice checks and produces a scored HTML report with prioritised findings, estimated
28
+ monthly waste in ₹ (INR) and fix guidance.
29
+
30
+ * **Read-only.** Only read/list/get APIs. On Azure it works with the built-in **Reader** role
31
+ (plus **Cost Management Reader** for cost checks).
32
+ * **Local only.** No telemetry; nothing leaves your machine except the output files you write.
33
+ * **Checks are data.** Each check is one YAML file.
34
+
35
+ > Status: early development (v0.4: 60 Azure checks mapped to MCSB and Well-Architected, billed cost, fix pack). Azure first; AWS and GCP later.
36
+
37
+ ## Install
38
+
39
+ From PyPI (Python 3.12+):
40
+
41
+ ```bash
42
+ pip install "skyveda[azure]"
43
+ ```
44
+
45
+ Or:
46
+
47
+ * **Azure Cloud Shell (recommended for customers):** build the bundle with
48
+ `uv run python packaging/build_cloudshell_bundle.py`, upload
49
+ `dist/skyveda-cloudshell-<version>.zip` to Cloud Shell, then run
50
+ `unzip -o skyveda-cloudshell-*.zip && bash skyveda-cloudshell/install.sh`.
51
+ See [packaging/cloudshell/README.txt](packaging/cloudshell/README.txt).
52
+ * **From the wheel:** `pip install "skyveda-<version>-py3-none-any.whl[azure]"` (Python 3.12+).
53
+
54
+ On an Azure VM, the default credential uses the VM's managed identity before `az login`;
55
+ pass `--auth cli` to scan as your `az login` account, and `--tenant <id>` to refuse any other
56
+ tenant.
57
+
58
+ ## Usage
59
+
60
+ ```bash
61
+ az login # or service principal env vars / managed identity
62
+ skyveda scopes # which subscriptions can I read?
63
+ skyveda scan --provider azure --subscription <id> --out ./out
64
+ skyveda scan --offline tests/fixtures/azure # run on recorded data, no cloud access
65
+ skyveda list-checks # the check catalogue
66
+ skyveda validate-checks # check YAML files are valid
67
+ ```
68
+
69
+ Options: `--subscription` (repeat or comma-separate), `--management-group`, `--tenant`,
70
+ `--label` (a line under the report title), `--waivers`, `--pdf` (also write report.pdf).
71
+
72
+ ### Config file
73
+
74
+ Save options in a `skyveda.toml` and pass `--config skyveda.toml` to `scan` or `scopes`. Options
75
+ typed on the command line override the file. Paths in the file are relative to the file. Never put
76
+ credentials in it: sign-in uses `az login`, managed identity or environment variables as usual.
77
+
78
+ ```toml
79
+ schema_version = 1
80
+
81
+ [scan]
82
+ subscriptions = ["<subscription-id>"]
83
+ tenant = "<tenant-id>"
84
+ auth = "cli"
85
+ out = "skyveda-out"
86
+ fail_on = "high"
87
+ label = "Prepared for cust-001"
88
+ waivers = "waivers.yaml"
89
+ pdf = true
90
+ ```
91
+
92
+ ### Waivers
93
+
94
+ A `waivers.yaml` takes accepted risks and wrong findings out of the findings, the ₹ total and the
95
+ scores. The report lists every waiver in Appendix D, so nothing disappears silently.
96
+
97
+ ```yaml
98
+ schema_version: 1
99
+ waivers:
100
+ - check: AZ-NET-001
101
+ resource: /subscriptions/<id>/resourceGroups/<rg>/providers/Microsoft.Network/networkSecurityGroups/<nsg>
102
+ kind: accepted_risk # or false_positive
103
+ reason: Vendor access, limited by the upstream firewall
104
+ approver: Head of Platform
105
+ expires: 2027-03-31 # applies up to and including this date
106
+ ```
107
+
108
+ Omit `resource` to waive every resource the check flags. Expired waivers, and waivers that match
109
+ nothing, are not applied and are listed as warnings. To apply waivers to a findings.json someone
110
+ sent you, use `skyveda report findings.json --waivers waivers.yaml --out <new dir>`; the original
111
+ file is never changed.
112
+
113
+ ### Fix pack
114
+
115
+ `skyveda fixes` turns findings into reviewable work. It only **writes files**: it runs no command,
116
+ calls no cloud and needs no credentials.
117
+
118
+ ```bash
119
+ skyveda fixes out/findings.json --out ./fixes [--waivers waivers.yaml]
120
+ ```
121
+
122
+ * `fixes/README.md`: the plan, ordered by severity and then ₹ a month, with risk, downtime and the
123
+ script for each item, plus a "Manual fix: see report" list for checks with no fix template.
124
+ * `fixes/<check-id>/<resource-name>.sh`: one script per resource, with risk, downtime, before-steps,
125
+ rollback and verify lines in the header. **Every command is commented out**: a reviewer removes
126
+ the `# ` on purpose, after reading it.
127
+ * `fixes/PULL_REQUEST.md`: text to paste into your pull request.
128
+
129
+ Waived resources are skipped. A non-empty `--out` is refused unless you add `--force`, which first
130
+ removes only the old pack's `<check-id>/*.sh`, `README.md` and `PULL_REQUEST.md`. Fix templates (az CLI) exist for AZ-COST-001 to 004, AZ-NET-001 and
131
+ AZ-STG-001. A check adds one with an optional `remedy:` block in its YAML, and `{placeholders}` may
132
+ only use columns the check's query projects (plus `id`, `name` and `subscriptionId`).
133
+
134
+ Exit codes: `0` ran fine · `2` findings at or above `--fail-on` (default `critical`) · `1` error.
135
+
136
+ ### Framework mapping
137
+
138
+ Every check carries a `frameworks:` block that maps it to the Microsoft cloud security benchmark (MCSB) and to Well-Architected pillars and recommendations. Each finding shows a "Maps to" line, and the HTML and PDF reports add a per-control and per-pillar pass and fail summary. MCSB control IDs are from the Microsoft cloud security benchmark v2 (preview); the same IDs exist in v1, the default in Microsoft Defender for Cloud. Well-Architected IDs are Skyveda's mapping to Microsoft's published checklists. Skyveda maps to these frameworks; it does not certify compliance. `skyveda validate-checks` rejects malformed IDs.
139
+
140
+ ## Development
141
+
142
+ Requires [uv](https://docs.astral.sh/uv/). Python 3.12 is installed automatically.
143
+
144
+ ```bash
145
+ uv sync --all-extras
146
+ uv run ruff check && uv run ruff format --check
147
+ uv run mypy
148
+ uv run pytest # sockets are disabled: tests can never reach the cloud
149
+ ```
150
+
151
+ ## Contributing and security
152
+
153
+ See [CONTRIBUTING.md](CONTRIBUTING.md); every commit needs a `git commit -s` sign-off. Report
154
+ vulnerabilities by email, not in an issue: see [SECURITY.md](SECURITY.md).
155
+
156
+ ## Licence
157
+
158
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). The Skyveda™ name is not licensed with
159
+ the code: see [TRADEMARKS.md](TRADEMARKS.md).
160
+
161
+ Microsoft and Azure are trademarks of the Microsoft group of companies. Skyveda is not affiliated
162
+ with or endorsed by Microsoft.
@@ -0,0 +1,139 @@
1
+ # Skyveda Scan
2
+
3
+ Read-only command-line scanner that checks a cloud environment against a catalogue of
4
+ best-practice checks and produces a scored HTML report with prioritised findings, estimated
5
+ monthly waste in ₹ (INR) and fix guidance.
6
+
7
+ * **Read-only.** Only read/list/get APIs. On Azure it works with the built-in **Reader** role
8
+ (plus **Cost Management Reader** for cost checks).
9
+ * **Local only.** No telemetry; nothing leaves your machine except the output files you write.
10
+ * **Checks are data.** Each check is one YAML file.
11
+
12
+ > Status: early development (v0.4: 60 Azure checks mapped to MCSB and Well-Architected, billed cost, fix pack). Azure first; AWS and GCP later.
13
+
14
+ ## Install
15
+
16
+ From PyPI (Python 3.12+):
17
+
18
+ ```bash
19
+ pip install "skyveda[azure]"
20
+ ```
21
+
22
+ Or:
23
+
24
+ * **Azure Cloud Shell (recommended for customers):** build the bundle with
25
+ `uv run python packaging/build_cloudshell_bundle.py`, upload
26
+ `dist/skyveda-cloudshell-<version>.zip` to Cloud Shell, then run
27
+ `unzip -o skyveda-cloudshell-*.zip && bash skyveda-cloudshell/install.sh`.
28
+ See [packaging/cloudshell/README.txt](packaging/cloudshell/README.txt).
29
+ * **From the wheel:** `pip install "skyveda-<version>-py3-none-any.whl[azure]"` (Python 3.12+).
30
+
31
+ On an Azure VM, the default credential uses the VM's managed identity before `az login`;
32
+ pass `--auth cli` to scan as your `az login` account, and `--tenant <id>` to refuse any other
33
+ tenant.
34
+
35
+ ## Usage
36
+
37
+ ```bash
38
+ az login # or service principal env vars / managed identity
39
+ skyveda scopes # which subscriptions can I read?
40
+ skyveda scan --provider azure --subscription <id> --out ./out
41
+ skyveda scan --offline tests/fixtures/azure # run on recorded data, no cloud access
42
+ skyveda list-checks # the check catalogue
43
+ skyveda validate-checks # check YAML files are valid
44
+ ```
45
+
46
+ Options: `--subscription` (repeat or comma-separate), `--management-group`, `--tenant`,
47
+ `--label` (a line under the report title), `--waivers`, `--pdf` (also write report.pdf).
48
+
49
+ ### Config file
50
+
51
+ Save options in a `skyveda.toml` and pass `--config skyveda.toml` to `scan` or `scopes`. Options
52
+ typed on the command line override the file. Paths in the file are relative to the file. Never put
53
+ credentials in it: sign-in uses `az login`, managed identity or environment variables as usual.
54
+
55
+ ```toml
56
+ schema_version = 1
57
+
58
+ [scan]
59
+ subscriptions = ["<subscription-id>"]
60
+ tenant = "<tenant-id>"
61
+ auth = "cli"
62
+ out = "skyveda-out"
63
+ fail_on = "high"
64
+ label = "Prepared for cust-001"
65
+ waivers = "waivers.yaml"
66
+ pdf = true
67
+ ```
68
+
69
+ ### Waivers
70
+
71
+ A `waivers.yaml` takes accepted risks and wrong findings out of the findings, the ₹ total and the
72
+ scores. The report lists every waiver in Appendix D, so nothing disappears silently.
73
+
74
+ ```yaml
75
+ schema_version: 1
76
+ waivers:
77
+ - check: AZ-NET-001
78
+ resource: /subscriptions/<id>/resourceGroups/<rg>/providers/Microsoft.Network/networkSecurityGroups/<nsg>
79
+ kind: accepted_risk # or false_positive
80
+ reason: Vendor access, limited by the upstream firewall
81
+ approver: Head of Platform
82
+ expires: 2027-03-31 # applies up to and including this date
83
+ ```
84
+
85
+ Omit `resource` to waive every resource the check flags. Expired waivers, and waivers that match
86
+ nothing, are not applied and are listed as warnings. To apply waivers to a findings.json someone
87
+ sent you, use `skyveda report findings.json --waivers waivers.yaml --out <new dir>`; the original
88
+ file is never changed.
89
+
90
+ ### Fix pack
91
+
92
+ `skyveda fixes` turns findings into reviewable work. It only **writes files**: it runs no command,
93
+ calls no cloud and needs no credentials.
94
+
95
+ ```bash
96
+ skyveda fixes out/findings.json --out ./fixes [--waivers waivers.yaml]
97
+ ```
98
+
99
+ * `fixes/README.md`: the plan, ordered by severity and then ₹ a month, with risk, downtime and the
100
+ script for each item, plus a "Manual fix: see report" list for checks with no fix template.
101
+ * `fixes/<check-id>/<resource-name>.sh`: one script per resource, with risk, downtime, before-steps,
102
+ rollback and verify lines in the header. **Every command is commented out**: a reviewer removes
103
+ the `# ` on purpose, after reading it.
104
+ * `fixes/PULL_REQUEST.md`: text to paste into your pull request.
105
+
106
+ Waived resources are skipped. A non-empty `--out` is refused unless you add `--force`, which first
107
+ removes only the old pack's `<check-id>/*.sh`, `README.md` and `PULL_REQUEST.md`. Fix templates (az CLI) exist for AZ-COST-001 to 004, AZ-NET-001 and
108
+ AZ-STG-001. A check adds one with an optional `remedy:` block in its YAML, and `{placeholders}` may
109
+ only use columns the check's query projects (plus `id`, `name` and `subscriptionId`).
110
+
111
+ Exit codes: `0` ran fine · `2` findings at or above `--fail-on` (default `critical`) · `1` error.
112
+
113
+ ### Framework mapping
114
+
115
+ Every check carries a `frameworks:` block that maps it to the Microsoft cloud security benchmark (MCSB) and to Well-Architected pillars and recommendations. Each finding shows a "Maps to" line, and the HTML and PDF reports add a per-control and per-pillar pass and fail summary. MCSB control IDs are from the Microsoft cloud security benchmark v2 (preview); the same IDs exist in v1, the default in Microsoft Defender for Cloud. Well-Architected IDs are Skyveda's mapping to Microsoft's published checklists. Skyveda maps to these frameworks; it does not certify compliance. `skyveda validate-checks` rejects malformed IDs.
116
+
117
+ ## Development
118
+
119
+ Requires [uv](https://docs.astral.sh/uv/). Python 3.12 is installed automatically.
120
+
121
+ ```bash
122
+ uv sync --all-extras
123
+ uv run ruff check && uv run ruff format --check
124
+ uv run mypy
125
+ uv run pytest # sockets are disabled: tests can never reach the cloud
126
+ ```
127
+
128
+ ## Contributing and security
129
+
130
+ See [CONTRIBUTING.md](CONTRIBUTING.md); every commit needs a `git commit -s` sign-off. Report
131
+ vulnerabilities by email, not in an issue: see [SECURITY.md](SECURITY.md).
132
+
133
+ ## Licence
134
+
135
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). The Skyveda™ name is not licensed with
136
+ the code: see [TRADEMARKS.md](TRADEMARKS.md).
137
+
138
+ Microsoft and Azure are trademarks of the Microsoft group of companies. Skyveda is not affiliated
139
+ with or endorsed by Microsoft.
@@ -0,0 +1,27 @@
1
+ # Security
2
+
3
+ Skyveda Scan is built to be read-only: it calls only read, list and get APIs, and runs with the
4
+ built-in Reader role. A way to make it change, create or delete anything in a cloud account is
5
+ the most serious kind of report we can receive.
6
+
7
+ ## Reporting a vulnerability
8
+
9
+ Email **skyvedahq@gmail.com** with "Security" in the subject. Please do not open a public issue.
10
+
11
+ Include the version (`skyveda --version`), what you did, and what happened. Do not send real
12
+ subscription IDs, tenant IDs, resource names, keys or customer data; describe them or replace
13
+ them with placeholders.
14
+
15
+ You will get a reply within 5 working days. We will agree a fix and a disclosure date with you,
16
+ and credit you in the release notes unless you prefer not to be named.
17
+
18
+ ## In scope
19
+
20
+ - any path by which the scanner writes to, or calls a non-read API on, a cloud account
21
+ - leaks of credentials, tokens or scan output
22
+ - the Cloud Shell bundle and its install script
23
+ - injection through scan data into the HTML or PDF report
24
+
25
+ ## Supported versions
26
+
27
+ Only the latest release receives fixes.
@@ -0,0 +1,22 @@
1
+ # Trademarks
2
+
3
+ The code in this repository is licensed under Apache 2.0. The name **Skyveda™** and any Skyveda
4
+ logo are not. Section 6 of the licence grants no right to use them.
5
+
6
+ You may:
7
+
8
+ - say that your work is based on, or works with, Skyveda Scan, in plain text;
9
+ - keep the name in the copyright and NOTICE lines, as the licence requires.
10
+
11
+ You may not, without written permission:
12
+
13
+ - call a fork, a product, a service, a domain or an account "Skyveda", or a name that could be
14
+ mistaken for it;
15
+ - suggest that Skyveda made, reviewed or endorses your work.
16
+
17
+ If you publish a modified version, give it a different name.
18
+
19
+ Microsoft and Azure are trademarks of the Microsoft group of companies. Skyveda is not affiliated
20
+ with or endorsed by Microsoft.
21
+
22
+ Questions: skyvedahq@gmail.com