infrahub-server 1.1.6__tar.gz → 1.2.0rc0__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 (1015) hide show
  1. infrahub_server-1.2.0rc0/PKG-INFO +136 -0
  2. infrahub_server-1.2.0rc0/README.md +75 -0
  3. infrahub_server-1.2.0rc0/backend/infrahub/api/artifact.py +106 -0
  4. infrahub_server-1.2.0rc0/backend/infrahub/api/dependencies.py +143 -0
  5. infrahub_server-1.2.0rc0/backend/infrahub/api/oauth2.py +146 -0
  6. infrahub_server-1.2.0rc0/backend/infrahub/api/oidc.py +215 -0
  7. infrahub_server-1.2.0rc0/backend/infrahub/api/query.py +198 -0
  8. infrahub_server-1.2.0rc0/backend/infrahub/api/schema.py +449 -0
  9. infrahub_server-1.2.0rc0/backend/infrahub/api/transformation.py +160 -0
  10. infrahub_server-1.2.0rc0/backend/infrahub/artifacts/models.py +25 -0
  11. infrahub_server-1.2.0rc0/backend/infrahub/artifacts/tasks.py +99 -0
  12. infrahub_server-1.2.0rc0/backend/infrahub/cli/__init__.py +56 -0
  13. infrahub_server-1.2.0rc0/backend/infrahub/cli/db.py +439 -0
  14. infrahub_server-1.2.0rc0/backend/infrahub/cli/events.py +43 -0
  15. infrahub_server-1.2.0rc0/backend/infrahub/cli/git_agent.py +160 -0
  16. infrahub_server-1.2.0rc0/backend/infrahub/cli/tasks.py +52 -0
  17. infrahub_server-1.2.0rc0/backend/infrahub/computed_attribute/tasks.py +820 -0
  18. infrahub_server-1.2.0rc0/backend/infrahub/computed_attribute/triggers.py +90 -0
  19. infrahub_server-1.2.0rc0/backend/infrahub/config.py +884 -0
  20. infrahub_server-1.2.0rc0/backend/infrahub/context.py +39 -0
  21. infrahub_server-1.2.0rc0/backend/infrahub/core/account.py +592 -0
  22. infrahub_server-1.2.0rc0/backend/infrahub/core/attribute.py +1247 -0
  23. infrahub_server-1.2.0rc0/backend/infrahub/core/branch/models.py +513 -0
  24. infrahub_server-1.2.0rc0/backend/infrahub/core/branch/tasks.py +362 -0
  25. infrahub_server-1.2.0rc0/backend/infrahub/core/changelog/diff.py +232 -0
  26. infrahub_server-1.2.0rc0/backend/infrahub/core/changelog/models.py +488 -0
  27. infrahub_server-1.2.0rc0/backend/infrahub/core/constants/__init__.py +334 -0
  28. infrahub_server-1.2.0rc0/backend/infrahub/core/constants/infrahubkind.py +70 -0
  29. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/combiner.py +446 -0
  30. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/coordinator.py +554 -0
  31. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/data_check_synchronizer.py +176 -0
  32. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/aggregated.py +16 -0
  33. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/cardinality_one.py +125 -0
  34. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/hierarchy.py +165 -0
  35. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/labels.py +216 -0
  36. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/path_identifier.py +64 -0
  37. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher/summary_counts.py +107 -0
  38. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/merger/merger.py +87 -0
  39. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/model/path.py +871 -0
  40. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/all_conflicts.py +67 -0
  41. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/artifact.py +211 -0
  42. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/delete_query.py +25 -0
  43. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/diff_get.py +165 -0
  44. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/diff_summary.py +106 -0
  45. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/field_specifiers.py +37 -0
  46. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/field_summary.py +79 -0
  47. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/filters.py +105 -0
  48. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/get_conflict_query.py +27 -0
  49. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/has_conflicts_query.py +69 -0
  50. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/merge.py +539 -0
  51. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/merge_tracking_id.py +25 -0
  52. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/roots_metadata.py +55 -0
  53. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/save.py +455 -0
  54. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/summary_counts_enricher.py +220 -0
  55. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/time_range_query.py +77 -0
  56. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query/update_conflict_query.py +37 -0
  57. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query_parser.py +799 -0
  58. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/repository/deserializer.py +384 -0
  59. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/repository/repository.py +458 -0
  60. infrahub_server-1.2.0rc0/backend/infrahub/core/diff/tasks.py +68 -0
  61. infrahub_server-1.2.0rc0/backend/infrahub/core/enums.py +17 -0
  62. infrahub_server-1.2.0rc0/backend/infrahub/core/integrity/object_conflict/conflict_recorder.py +133 -0
  63. infrahub_server-1.2.0rc0/backend/infrahub/core/ipam/reconciler.py +211 -0
  64. infrahub_server-1.2.0rc0/backend/infrahub/core/ipam/tasks.py +41 -0
  65. infrahub_server-1.2.0rc0/backend/infrahub/core/manager.py +1359 -0
  66. infrahub_server-1.2.0rc0/backend/infrahub/core/merge.py +236 -0
  67. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m001_add_version_to_graph.py +49 -0
  68. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m002_attribute_is_default.py +36 -0
  69. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m003_relationship_parent_optional.py +55 -0
  70. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m004_add_attr_documentation.py +48 -0
  71. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m005_add_rel_read_only.py +40 -0
  72. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m006_add_rel_on_delete.py +40 -0
  73. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m007_add_rel_allow_override.py +48 -0
  74. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m008_add_human_friendly_id.py +48 -0
  75. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m009_add_generate_profile_attr.py +40 -0
  76. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m010_add_generate_profile_attr_generic.py +40 -0
  77. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m011_remove_profile_relationship_schema.py +48 -0
  78. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m012_convert_account_generic.py +345 -0
  79. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m013_convert_git_password_credential.py +317 -0
  80. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m014_remove_index_attr_value.py +44 -0
  81. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m015_diff_format_update.py +36 -0
  82. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m016_diff_delete_bug_fix.py +36 -0
  83. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m017_add_core_profile.py +44 -0
  84. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/graph/m018_uniqueness_nulls.py +101 -0
  85. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/attribute_add.py +90 -0
  86. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/attribute_rename.py +187 -0
  87. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/delete_element_in_schema.py +176 -0
  88. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/node_duplicate.py +178 -0
  89. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/relationship_duplicate.py +176 -0
  90. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/query/schema_attribute_update.py +93 -0
  91. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/schema/node_attribute_remove.py +115 -0
  92. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/schema/node_remove.py +169 -0
  93. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/schema/tasks.py +113 -0
  94. infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/shared.py +189 -0
  95. infrahub_server-1.2.0rc0/backend/infrahub/core/models.py +585 -0
  96. infrahub_server-1.2.0rc0/backend/infrahub/core/node/__init__.py +880 -0
  97. infrahub_server-1.2.0rc0/backend/infrahub/core/node/base.py +82 -0
  98. infrahub_server-1.2.0rc0/backend/infrahub/core/node/constraints/grouped_uniqueness.py +188 -0
  99. infrahub_server-1.2.0rc0/backend/infrahub/core/node/delete_validator.py +210 -0
  100. infrahub_server-1.2.0rc0/backend/infrahub/core/node/ipam.py +62 -0
  101. infrahub_server-1.2.0rc0/backend/infrahub/core/node/permissions.py +66 -0
  102. infrahub_server-1.2.0rc0/backend/infrahub/core/node/resource_manager/ip_prefix_pool.py +115 -0
  103. infrahub_server-1.2.0rc0/backend/infrahub/core/node/standard.py +220 -0
  104. infrahub_server-1.2.0rc0/backend/infrahub/core/property.py +147 -0
  105. infrahub_server-1.2.0rc0/backend/infrahub/core/protocols.py +494 -0
  106. infrahub_server-1.2.0rc0/backend/infrahub/core/protocols_base.py +101 -0
  107. infrahub_server-1.2.0rc0/backend/infrahub/core/query/__init__.py +695 -0
  108. infrahub_server-1.2.0rc0/backend/infrahub/core/query/attribute.py +303 -0
  109. infrahub_server-1.2.0rc0/backend/infrahub/core/query/branch.py +152 -0
  110. infrahub_server-1.2.0rc0/backend/infrahub/core/query/delete.py +58 -0
  111. infrahub_server-1.2.0rc0/backend/infrahub/core/query/diff.py +720 -0
  112. infrahub_server-1.2.0rc0/backend/infrahub/core/query/ipam.py +635 -0
  113. infrahub_server-1.2.0rc0/backend/infrahub/core/query/node.py +1419 -0
  114. infrahub_server-1.2.0rc0/backend/infrahub/core/query/relationship.py +932 -0
  115. infrahub_server-1.2.0rc0/backend/infrahub/core/query/resource_manager.py +378 -0
  116. infrahub_server-1.2.0rc0/backend/infrahub/core/query/standard_node.py +155 -0
  117. infrahub_server-1.2.0rc0/backend/infrahub/core/query/task.py +97 -0
  118. infrahub_server-1.2.0rc0/backend/infrahub/core/query/task_log.py +33 -0
  119. infrahub_server-1.2.0rc0/backend/infrahub/core/query/utils.py +37 -0
  120. infrahub_server-1.2.0rc0/backend/infrahub/core/registry.py +226 -0
  121. infrahub_server-1.2.0rc0/backend/infrahub/core/relationship/constraints/count.py +88 -0
  122. infrahub_server-1.2.0rc0/backend/infrahub/core/relationship/constraints/peer_kind.py +64 -0
  123. infrahub_server-1.2.0rc0/backend/infrahub/core/relationship/model.py +1238 -0
  124. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/__init__.py +114 -0
  125. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/basenode_schema.py +495 -0
  126. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/definitions/core.py +2286 -0
  127. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/definitions/internal.py +915 -0
  128. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/generated/genericnode_schema.py +30 -0
  129. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/generated/node_schema.py +42 -0
  130. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/generic_schema.py +44 -0
  131. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/manager.py +735 -0
  132. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/node_schema.py +145 -0
  133. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/profile_schema.py +38 -0
  134. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/relationship_schema.py +222 -0
  135. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/schema_branch.py +1982 -0
  136. infrahub_server-1.2.0rc0/backend/infrahub/core/schema/template_schema.py +36 -0
  137. infrahub_server-1.2.0rc0/backend/infrahub/core/task/user_task.py +130 -0
  138. infrahub_server-1.2.0rc0/backend/infrahub/core/timestamp.py +34 -0
  139. infrahub_server-1.2.0rc0/backend/infrahub/core/utils.py +278 -0
  140. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/choices.py +104 -0
  141. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/enum.py +104 -0
  142. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/kind.py +111 -0
  143. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/length.py +99 -0
  144. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/optional.py +95 -0
  145. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/regex.py +99 -0
  146. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute/unique.py +124 -0
  147. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/checks_runner.py +37 -0
  148. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/node/generate_profile.py +90 -0
  149. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/node/hierarchy.py +181 -0
  150. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/query.py +54 -0
  151. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/relationship/count.py +196 -0
  152. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/relationship/optional.py +111 -0
  153. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/relationship/peer.py +132 -0
  154. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/tasks.py +83 -0
  155. infrahub_server-1.2.0rc0/backend/infrahub/core/validators/uniqueness/query.py +222 -0
  156. infrahub_server-1.2.0rc0/backend/infrahub/database/__init__.py +531 -0
  157. infrahub_server-1.2.0rc0/backend/infrahub/database/memgraph.py +59 -0
  158. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint/grouped/node_runner.py +24 -0
  159. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/combiner.py +8 -0
  160. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/conflicts_enricher.py +8 -0
  161. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/coordinator.py +26 -0
  162. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/deserializer.py +8 -0
  163. infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/enricher/summary_counts.py +8 -0
  164. infrahub_server-1.2.0rc0/backend/infrahub/events/branch_action.py +116 -0
  165. infrahub_server-1.2.0rc0/backend/infrahub/events/group_action.py +73 -0
  166. infrahub_server-1.2.0rc0/backend/infrahub/events/models.py +201 -0
  167. infrahub_server-1.2.0rc0/backend/infrahub/events/node_action.py +111 -0
  168. infrahub_server-1.2.0rc0/backend/infrahub/events/repository_action.py +37 -0
  169. infrahub_server-1.2.0rc0/backend/infrahub/events/schema_action.py +49 -0
  170. infrahub_server-1.2.0rc0/backend/infrahub/generators/tasks.py +211 -0
  171. infrahub_server-1.2.0rc0/backend/infrahub/git/base.py +922 -0
  172. infrahub_server-1.2.0rc0/backend/infrahub/git/constants.py +3 -0
  173. infrahub_server-1.2.0rc0/backend/infrahub/git/integrator.py +1318 -0
  174. infrahub_server-1.2.0rc0/backend/infrahub/git/repository.py +280 -0
  175. infrahub_server-1.2.0rc0/backend/infrahub/git/tasks.py +488 -0
  176. infrahub_server-1.2.0rc0/backend/infrahub/git_credential/helper.py +75 -0
  177. infrahub_server-1.2.0rc0/backend/infrahub/graphql/analyzer.py +621 -0
  178. infrahub_server-1.2.0rc0/backend/infrahub/graphql/app.py +538 -0
  179. infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker/anonymous_checker.py +30 -0
  180. infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker/default_branch_checker.py +50 -0
  181. infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker/merge_operation_checker.py +35 -0
  182. infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker/object_permission_checker.py +190 -0
  183. infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker/super_admin_checker.py +35 -0
  184. infrahub_server-1.2.0rc0/backend/infrahub/graphql/enums.py +28 -0
  185. infrahub_server-1.2.0rc0/backend/infrahub/graphql/initialization.py +123 -0
  186. infrahub_server-1.2.0rc0/backend/infrahub/graphql/loaders/node.py +82 -0
  187. infrahub_server-1.2.0rc0/backend/infrahub/graphql/manager.py +1038 -0
  188. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/account.py +171 -0
  189. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/artifact_definition.py +96 -0
  190. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/branch.py +272 -0
  191. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/computed_attribute.py +111 -0
  192. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/diff.py +98 -0
  193. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/diff_conflict.py +72 -0
  194. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/graphql_query.py +99 -0
  195. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/ipam.py +434 -0
  196. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/main.py +605 -0
  197. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/menu.py +100 -0
  198. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/proposed_change.py +256 -0
  199. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/relationship.py +365 -0
  200. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/repository.py +296 -0
  201. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/resource_manager.py +223 -0
  202. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/schema.py +325 -0
  203. infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/tasks.py +72 -0
  204. infrahub_server-1.2.0rc0/backend/infrahub/graphql/parser.py +213 -0
  205. infrahub_server-1.2.0rc0/backend/infrahub/graphql/permissions.py +36 -0
  206. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/account.py +162 -0
  207. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/branch.py +30 -0
  208. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/diff/tree.py +547 -0
  209. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/event.py +112 -0
  210. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/internal.py +26 -0
  211. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/ipam.py +121 -0
  212. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/relationship.py +83 -0
  213. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/resource_manager.py +346 -0
  214. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/search.py +152 -0
  215. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/status.py +69 -0
  216. infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/task.py +118 -0
  217. infrahub_server-1.2.0rc0/backend/infrahub/graphql/resolvers/resolver.py +432 -0
  218. infrahub_server-1.2.0rc0/backend/infrahub/graphql/resolvers/single_relationship.py +175 -0
  219. infrahub_server-1.2.0rc0/backend/infrahub/graphql/schema.py +109 -0
  220. infrahub_server-1.2.0rc0/backend/infrahub/graphql/subscription/__init__.py +37 -0
  221. infrahub_server-1.2.0rc0/backend/infrahub/graphql/subscription/events.py +48 -0
  222. infrahub_server-1.2.0rc0/backend/infrahub/graphql/subscription/graphql_query.py +58 -0
  223. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/branch.py +46 -0
  224. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/common.py +12 -0
  225. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/enums.py +12 -0
  226. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/event.py +100 -0
  227. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/interface.py +28 -0
  228. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/node.py +32 -0
  229. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/permission.py +42 -0
  230. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/relationship.py +18 -0
  231. infrahub_server-1.2.0rc0/backend/infrahub/graphql/types/standard_node.py +54 -0
  232. infrahub_server-1.2.0rc0/backend/infrahub/graphql/utils.py +106 -0
  233. infrahub_server-1.2.0rc0/backend/infrahub/groups/tasks.py +41 -0
  234. infrahub_server-1.2.0rc0/backend/infrahub/lock.py +261 -0
  235. infrahub_server-1.2.0rc0/backend/infrahub/menu/constants.py +11 -0
  236. infrahub_server-1.2.0rc0/backend/infrahub/menu/generator.py +148 -0
  237. infrahub_server-1.2.0rc0/backend/infrahub/menu/menu.py +376 -0
  238. infrahub_server-1.2.0rc0/backend/infrahub/menu/models.py +176 -0
  239. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/messages/__init__.py +82 -0
  240. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/messages/event_branch_merge.py +13 -0
  241. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/messages/request_proposedchange_pipeline.py +18 -0
  242. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/__init__.py +66 -0
  243. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/check/__init__.py +3 -0
  244. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/check/generator.py +155 -0
  245. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/check/repository.py +293 -0
  246. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/event/branch.py +61 -0
  247. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/event/schema.py +17 -0
  248. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/finalize/validator.py +83 -0
  249. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/git/file.py +34 -0
  250. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/git/repository.py +62 -0
  251. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/requests/__init__.py +11 -0
  252. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/requests/generator_definition.py +142 -0
  253. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/requests/proposed_change.py +599 -0
  254. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/requests/repository.py +133 -0
  255. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/operations/send/echo.py +13 -0
  256. infrahub_server-1.2.0rc0/backend/infrahub/message_bus/types.py +160 -0
  257. infrahub_server-1.2.0rc0/backend/infrahub/permissions/__init__.py +14 -0
  258. infrahub_server-1.2.0rc0/backend/infrahub/permissions/types.py +46 -0
  259. infrahub_server-1.2.0rc0/backend/infrahub/pools/prefix.py +38 -0
  260. infrahub_server-1.2.0rc0/backend/infrahub/prefect_server/app.py +18 -0
  261. infrahub_server-1.2.0rc0/backend/infrahub/prefect_server/database.py +20 -0
  262. infrahub_server-1.2.0rc0/backend/infrahub/prefect_server/events.py +28 -0
  263. infrahub_server-1.2.0rc0/backend/infrahub/prefect_server/models.py +46 -0
  264. infrahub_server-1.2.0rc0/backend/infrahub/proposed_change/models.py +42 -0
  265. infrahub_server-1.2.0rc0/backend/infrahub/proposed_change/tasks.py +633 -0
  266. infrahub_server-1.2.0rc0/backend/infrahub/pytest_plugin.py +159 -0
  267. infrahub_server-1.2.0rc0/backend/infrahub/server.py +222 -0
  268. infrahub_server-1.2.0rc0/backend/infrahub/services/__init__.py +192 -0
  269. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/cache/__init__.py +38 -0
  270. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/cache/nats.py +152 -0
  271. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/cache/redis.py +50 -0
  272. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/event/__init__.py +38 -0
  273. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/http/__init__.py +25 -0
  274. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/http/httpx.py +105 -0
  275. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/message_bus/__init__.py +62 -0
  276. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/message_bus/local.py +61 -0
  277. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/message_bus/nats.py +295 -0
  278. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/message_bus/rabbitmq.py +267 -0
  279. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/workflow/__init__.py +55 -0
  280. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/workflow/local.py +48 -0
  281. infrahub_server-1.2.0rc0/backend/infrahub/services/adapters/workflow/worker.py +83 -0
  282. infrahub_server-1.2.0rc0/backend/infrahub/services/component.py +151 -0
  283. infrahub_server-1.2.0rc0/backend/infrahub/services/scheduler.py +88 -0
  284. infrahub_server-1.2.0rc0/backend/infrahub/storage.py +57 -0
  285. infrahub_server-1.2.0rc0/backend/infrahub/task_manager/constants.py +15 -0
  286. infrahub_server-1.2.0rc0/backend/infrahub/task_manager/event.py +182 -0
  287. infrahub_server-1.2.0rc0/backend/infrahub/task_manager/models.py +189 -0
  288. infrahub_server-1.2.0rc0/backend/infrahub/task_manager/task.py +273 -0
  289. infrahub_server-1.2.0rc0/backend/infrahub/tasks/artifact.py +43 -0
  290. infrahub_server-1.2.0rc0/backend/infrahub/tasks/registry.py +69 -0
  291. infrahub_server-1.2.0rc0/backend/infrahub/tasks/telemetry.py +126 -0
  292. infrahub_server-1.2.0rc0/backend/infrahub/transformations/tasks.py +54 -0
  293. infrahub_server-1.2.0rc0/backend/infrahub/trigger/catalogue.py +15 -0
  294. infrahub_server-1.2.0rc0/backend/infrahub/trigger/constants.py +9 -0
  295. infrahub_server-1.2.0rc0/backend/infrahub/trigger/models.py +69 -0
  296. infrahub_server-1.2.0rc0/backend/infrahub/trigger/tasks.py +85 -0
  297. infrahub_server-1.2.0rc0/backend/infrahub/types.py +375 -0
  298. infrahub_server-1.2.0rc0/backend/infrahub/utils.py +75 -0
  299. infrahub_server-1.2.0rc0/backend/infrahub/webhook/constants.py +1 -0
  300. infrahub_server-1.2.0rc0/backend/infrahub/webhook/models.py +118 -0
  301. infrahub_server-1.2.0rc0/backend/infrahub/webhook/tasks.py +182 -0
  302. infrahub_server-1.2.0rc0/backend/infrahub/webhook/triggers.py +20 -0
  303. infrahub_server-1.2.0rc0/backend/infrahub/workers/infrahub_async.py +228 -0
  304. infrahub_server-1.2.0rc0/backend/infrahub/workers/utils.py +63 -0
  305. infrahub_server-1.2.0rc0/backend/infrahub/workflows/catalogue.py +433 -0
  306. infrahub_server-1.2.0rc0/backend/infrahub/workflows/initialization.py +71 -0
  307. infrahub_server-1.2.0rc0/backend/infrahub/workflows/models.py +78 -0
  308. infrahub_server-1.2.0rc0/backend/infrahub/workflows/utils.py +79 -0
  309. infrahub_server-1.2.0rc0/pyproject.toml +700 -0
  310. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/check.py +252 -0
  311. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/cli_commands.py +503 -0
  312. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/exceptions.py +8 -0
  313. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/exporter.py +49 -0
  314. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/generator.py +115 -0
  315. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/importer.py +54 -0
  316. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/menu.py +54 -0
  317. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/object.py +47 -0
  318. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/repository.py +167 -0
  319. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/schema.py +183 -0
  320. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/utils.py +217 -0
  321. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl/validate.py +112 -0
  322. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/exceptions.py +139 -0
  323. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/generator.py +150 -0
  324. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/node.py +2140 -0
  325. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/schema/__init__.py +696 -0
  326. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/schema/main.py +350 -0
  327. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/transfer/__init__.py +0 -0
  328. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/transfer/exporter/__init__.py +0 -0
  329. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/transfer/importer/__init__.py +0 -0
  330. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/utils.py +369 -0
  331. infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/yaml.py +106 -0
  332. infrahub_server-1.2.0rc0/python_testcontainers/infrahub_testcontainers/container.py +122 -0
  333. infrahub_server-1.2.0rc0/python_testcontainers/infrahub_testcontainers/docker-compose.test.yml +170 -0
  334. infrahub_server-1.2.0rc0/python_testcontainers/infrahub_testcontainers/haproxy.cfg +43 -0
  335. infrahub_server-1.2.0rc0/python_testcontainers/infrahub_testcontainers/helpers.py +148 -0
  336. infrahub_server-1.1.6/PKG-INFO +0 -102
  337. infrahub_server-1.1.6/README.md +0 -41
  338. infrahub_server-1.1.6/backend/infrahub/api/artifact.py +0 -94
  339. infrahub_server-1.1.6/backend/infrahub/api/dependencies.py +0 -135
  340. infrahub_server-1.1.6/backend/infrahub/api/oauth2.py +0 -147
  341. infrahub_server-1.1.6/backend/infrahub/api/oidc.py +0 -216
  342. infrahub_server-1.1.6/backend/infrahub/api/query.py +0 -187
  343. infrahub_server-1.1.6/backend/infrahub/api/schema.py +0 -423
  344. infrahub_server-1.1.6/backend/infrahub/api/transformation.py +0 -153
  345. infrahub_server-1.1.6/backend/infrahub/cli/__init__.py +0 -58
  346. infrahub_server-1.1.6/backend/infrahub/cli/db.py +0 -440
  347. infrahub_server-1.1.6/backend/infrahub/cli/events.py +0 -38
  348. infrahub_server-1.1.6/backend/infrahub/cli/git_agent.py +0 -158
  349. infrahub_server-1.1.6/backend/infrahub/cli/tasks.py +0 -54
  350. infrahub_server-1.1.6/backend/infrahub/computed_attribute/tasks.py +0 -774
  351. infrahub_server-1.1.6/backend/infrahub/config.py +0 -884
  352. infrahub_server-1.1.6/backend/infrahub/core/account.py +0 -595
  353. infrahub_server-1.1.6/backend/infrahub/core/attribute.py +0 -1215
  354. infrahub_server-1.1.6/backend/infrahub/core/branch/constants.py +0 -2
  355. infrahub_server-1.1.6/backend/infrahub/core/branch/models.py +0 -513
  356. infrahub_server-1.1.6/backend/infrahub/core/branch/tasks.py +0 -403
  357. infrahub_server-1.1.6/backend/infrahub/core/constants/__init__.py +0 -317
  358. infrahub_server-1.1.6/backend/infrahub/core/constants/infrahubkind.py +0 -69
  359. infrahub_server-1.1.6/backend/infrahub/core/diff/combiner.py +0 -442
  360. infrahub_server-1.1.6/backend/infrahub/core/diff/coordinator.py +0 -575
  361. infrahub_server-1.1.6/backend/infrahub/core/diff/data_check_synchronizer.py +0 -97
  362. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/aggregated.py +0 -16
  363. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/cardinality_one.py +0 -130
  364. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/hierarchy.py +0 -163
  365. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/labels.py +0 -206
  366. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/path_identifier.py +0 -70
  367. infrahub_server-1.1.6/backend/infrahub/core/diff/enricher/summary_counts.py +0 -105
  368. infrahub_server-1.1.6/backend/infrahub/core/diff/merger/merger.py +0 -83
  369. infrahub_server-1.1.6/backend/infrahub/core/diff/model/path.py +0 -853
  370. infrahub_server-1.1.6/backend/infrahub/core/diff/query/all_conflicts.py +0 -64
  371. infrahub_server-1.1.6/backend/infrahub/core/diff/query/artifact.py +0 -211
  372. infrahub_server-1.1.6/backend/infrahub/core/diff/query/delete_query.py +0 -25
  373. infrahub_server-1.1.6/backend/infrahub/core/diff/query/diff_get.py +0 -164
  374. infrahub_server-1.1.6/backend/infrahub/core/diff/query/diff_summary.py +0 -106
  375. infrahub_server-1.1.6/backend/infrahub/core/diff/query/drop_tracking_id.py +0 -25
  376. infrahub_server-1.1.6/backend/infrahub/core/diff/query/field_specifiers.py +0 -35
  377. infrahub_server-1.1.6/backend/infrahub/core/diff/query/field_summary.py +0 -78
  378. infrahub_server-1.1.6/backend/infrahub/core/diff/query/filters.py +0 -94
  379. infrahub_server-1.1.6/backend/infrahub/core/diff/query/get_conflict_query.py +0 -27
  380. infrahub_server-1.1.6/backend/infrahub/core/diff/query/has_conflicts_query.py +0 -66
  381. infrahub_server-1.1.6/backend/infrahub/core/diff/query/merge.py +0 -539
  382. infrahub_server-1.1.6/backend/infrahub/core/diff/query/roots_metadata.py +0 -48
  383. infrahub_server-1.1.6/backend/infrahub/core/diff/query/save.py +0 -370
  384. infrahub_server-1.1.6/backend/infrahub/core/diff/query/time_range_query.py +0 -76
  385. infrahub_server-1.1.6/backend/infrahub/core/diff/query/update_conflict_query.py +0 -37
  386. infrahub_server-1.1.6/backend/infrahub/core/diff/query_parser.py +0 -774
  387. infrahub_server-1.1.6/backend/infrahub/core/diff/repository/deserializer.py +0 -385
  388. infrahub_server-1.1.6/backend/infrahub/core/diff/repository/repository.py +0 -402
  389. infrahub_server-1.1.6/backend/infrahub/core/diff/tasks.py +0 -67
  390. infrahub_server-1.1.6/backend/infrahub/core/enums.py +0 -17
  391. infrahub_server-1.1.6/backend/infrahub/core/integrity/object_conflict/conflict_recorder.py +0 -133
  392. infrahub_server-1.1.6/backend/infrahub/core/ipam/reconciler.py +0 -211
  393. infrahub_server-1.1.6/backend/infrahub/core/ipam/tasks.py +0 -42
  394. infrahub_server-1.1.6/backend/infrahub/core/manager.py +0 -1354
  395. infrahub_server-1.1.6/backend/infrahub/core/merge.py +0 -233
  396. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m001_add_version_to_graph.py +0 -49
  397. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m002_attribute_is_default.py +0 -36
  398. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m003_relationship_parent_optional.py +0 -55
  399. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m004_add_attr_documentation.py +0 -48
  400. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m005_add_rel_read_only.py +0 -40
  401. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m006_add_rel_on_delete.py +0 -40
  402. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m007_add_rel_allow_override.py +0 -48
  403. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m008_add_human_friendly_id.py +0 -48
  404. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m009_add_generate_profile_attr.py +0 -40
  405. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m010_add_generate_profile_attr_generic.py +0 -40
  406. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m011_remove_profile_relationship_schema.py +0 -48
  407. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m012_convert_account_generic.py +0 -356
  408. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m013_convert_git_password_credential.py +0 -321
  409. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m014_remove_index_attr_value.py +0 -44
  410. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m015_diff_format_update.py +0 -36
  411. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m016_diff_delete_bug_fix.py +0 -36
  412. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m017_add_core_profile.py +0 -44
  413. infrahub_server-1.1.6/backend/infrahub/core/migrations/graph/m018_uniqueness_nulls.py +0 -101
  414. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/attribute_add.py +0 -90
  415. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/attribute_rename.py +0 -187
  416. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/delete_element_in_schema.py +0 -176
  417. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/node_duplicate.py +0 -178
  418. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/relationship_duplicate.py +0 -176
  419. infrahub_server-1.1.6/backend/infrahub/core/migrations/query/schema_attribute_update.py +0 -93
  420. infrahub_server-1.1.6/backend/infrahub/core/migrations/schema/node_attribute_remove.py +0 -115
  421. infrahub_server-1.1.6/backend/infrahub/core/migrations/schema/node_remove.py +0 -169
  422. infrahub_server-1.1.6/backend/infrahub/core/migrations/schema/tasks.py +0 -113
  423. infrahub_server-1.1.6/backend/infrahub/core/migrations/shared.py +0 -189
  424. infrahub_server-1.1.6/backend/infrahub/core/models.py +0 -586
  425. infrahub_server-1.1.6/backend/infrahub/core/node/__init__.py +0 -759
  426. infrahub_server-1.1.6/backend/infrahub/core/node/base.py +0 -82
  427. infrahub_server-1.1.6/backend/infrahub/core/node/constraints/grouped_uniqueness.py +0 -181
  428. infrahub_server-1.1.6/backend/infrahub/core/node/delete_validator.py +0 -210
  429. infrahub_server-1.1.6/backend/infrahub/core/node/ipam.py +0 -57
  430. infrahub_server-1.1.6/backend/infrahub/core/node/permissions.py +0 -62
  431. infrahub_server-1.1.6/backend/infrahub/core/node/resource_manager/ip_prefix_pool.py +0 -112
  432. infrahub_server-1.1.6/backend/infrahub/core/node/standard.py +0 -222
  433. infrahub_server-1.1.6/backend/infrahub/core/property.py +0 -147
  434. infrahub_server-1.1.6/backend/infrahub/core/protocols.py +0 -490
  435. infrahub_server-1.1.6/backend/infrahub/core/protocols_base.py +0 -99
  436. infrahub_server-1.1.6/backend/infrahub/core/query/__init__.py +0 -698
  437. infrahub_server-1.1.6/backend/infrahub/core/query/attribute.py +0 -303
  438. infrahub_server-1.1.6/backend/infrahub/core/query/branch.py +0 -152
  439. infrahub_server-1.1.6/backend/infrahub/core/query/delete.py +0 -58
  440. infrahub_server-1.1.6/backend/infrahub/core/query/diff.py +0 -682
  441. infrahub_server-1.1.6/backend/infrahub/core/query/ipam.py +0 -635
  442. infrahub_server-1.1.6/backend/infrahub/core/query/node.py +0 -1414
  443. infrahub_server-1.1.6/backend/infrahub/core/query/relationship.py +0 -933
  444. infrahub_server-1.1.6/backend/infrahub/core/query/resource_manager.py +0 -376
  445. infrahub_server-1.1.6/backend/infrahub/core/query/standard_node.py +0 -155
  446. infrahub_server-1.1.6/backend/infrahub/core/query/task.py +0 -97
  447. infrahub_server-1.1.6/backend/infrahub/core/query/task_log.py +0 -33
  448. infrahub_server-1.1.6/backend/infrahub/core/query/utils.py +0 -37
  449. infrahub_server-1.1.6/backend/infrahub/core/registry.py +0 -228
  450. infrahub_server-1.1.6/backend/infrahub/core/relationship/constraints/count.py +0 -88
  451. infrahub_server-1.1.6/backend/infrahub/core/relationship/constraints/peer_kind.py +0 -64
  452. infrahub_server-1.1.6/backend/infrahub/core/relationship/model.py +0 -1198
  453. infrahub_server-1.1.6/backend/infrahub/core/schema/__init__.py +0 -112
  454. infrahub_server-1.1.6/backend/infrahub/core/schema/basenode_schema.py +0 -497
  455. infrahub_server-1.1.6/backend/infrahub/core/schema/definitions/core.py +0 -2274
  456. infrahub_server-1.1.6/backend/infrahub/core/schema/definitions/internal.py +0 -899
  457. infrahub_server-1.1.6/backend/infrahub/core/schema/generated/genericnode_schema.py +0 -25
  458. infrahub_server-1.1.6/backend/infrahub/core/schema/generated/node_schema.py +0 -37
  459. infrahub_server-1.1.6/backend/infrahub/core/schema/generic_schema.py +0 -40
  460. infrahub_server-1.1.6/backend/infrahub/core/schema/manager.py +0 -732
  461. infrahub_server-1.1.6/backend/infrahub/core/schema/node_schema.py +0 -141
  462. infrahub_server-1.1.6/backend/infrahub/core/schema/profile_schema.py +0 -34
  463. infrahub_server-1.1.6/backend/infrahub/core/schema/relationship_schema.py +0 -222
  464. infrahub_server-1.1.6/backend/infrahub/core/schema/schema_branch.py +0 -1748
  465. infrahub_server-1.1.6/backend/infrahub/core/task/user_task.py +0 -128
  466. infrahub_server-1.1.6/backend/infrahub/core/timestamp.py +0 -34
  467. infrahub_server-1.1.6/backend/infrahub/core/utils.py +0 -277
  468. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/choices.py +0 -104
  469. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/enum.py +0 -104
  470. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/kind.py +0 -111
  471. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/length.py +0 -99
  472. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/optional.py +0 -95
  473. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/regex.py +0 -99
  474. infrahub_server-1.1.6/backend/infrahub/core/validators/attribute/unique.py +0 -124
  475. infrahub_server-1.1.6/backend/infrahub/core/validators/node/generate_profile.py +0 -90
  476. infrahub_server-1.1.6/backend/infrahub/core/validators/node/hierarchy.py +0 -181
  477. infrahub_server-1.1.6/backend/infrahub/core/validators/query.py +0 -54
  478. infrahub_server-1.1.6/backend/infrahub/core/validators/relationship/count.py +0 -196
  479. infrahub_server-1.1.6/backend/infrahub/core/validators/relationship/optional.py +0 -111
  480. infrahub_server-1.1.6/backend/infrahub/core/validators/relationship/peer.py +0 -132
  481. infrahub_server-1.1.6/backend/infrahub/core/validators/tasks.py +0 -81
  482. infrahub_server-1.1.6/backend/infrahub/core/validators/uniqueness/query.py +0 -219
  483. infrahub_server-1.1.6/backend/infrahub/database/__init__.py +0 -518
  484. infrahub_server-1.1.6/backend/infrahub/database/memgraph.py +0 -59
  485. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint/grouped/node_runner.py +0 -26
  486. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/combiner.py +0 -8
  487. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/conflicts_enricher.py +0 -8
  488. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/coordinator.py +0 -28
  489. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/deserializer.py +0 -8
  490. infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/enricher/summary_counts.py +0 -8
  491. infrahub_server-1.1.6/backend/infrahub/events/branch_action.py +0 -90
  492. infrahub_server-1.1.6/backend/infrahub/events/models.py +0 -93
  493. infrahub_server-1.1.6/backend/infrahub/events/node_action.py +0 -45
  494. infrahub_server-1.1.6/backend/infrahub/events/repository_action.py +0 -37
  495. infrahub_server-1.1.6/backend/infrahub/events/schema_action.py +0 -36
  496. infrahub_server-1.1.6/backend/infrahub/generators/tasks.py +0 -212
  497. infrahub_server-1.1.6/backend/infrahub/git/base.py +0 -924
  498. infrahub_server-1.1.6/backend/infrahub/git/constants.py +0 -4
  499. infrahub_server-1.1.6/backend/infrahub/git/integrator.py +0 -1317
  500. infrahub_server-1.1.6/backend/infrahub/git/repository.py +0 -281
  501. infrahub_server-1.1.6/backend/infrahub/git/tasks.py +0 -552
  502. infrahub_server-1.1.6/backend/infrahub/git_credential/helper.py +0 -76
  503. infrahub_server-1.1.6/backend/infrahub/graphql/analyzer.py +0 -60
  504. infrahub_server-1.1.6/backend/infrahub/graphql/app.py +0 -530
  505. infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker/anonymous_checker.py +0 -30
  506. infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker/default_branch_checker.py +0 -50
  507. infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker/merge_operation_checker.py +0 -35
  508. infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker/object_permission_checker.py +0 -197
  509. infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker/super_admin_checker.py +0 -35
  510. infrahub_server-1.1.6/backend/infrahub/graphql/enums.py +0 -28
  511. infrahub_server-1.1.6/backend/infrahub/graphql/initialization.py +0 -119
  512. infrahub_server-1.1.6/backend/infrahub/graphql/loaders/node.py +0 -82
  513. infrahub_server-1.1.6/backend/infrahub/graphql/manager.py +0 -1033
  514. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/account.py +0 -164
  515. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/artifact_definition.py +0 -92
  516. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/branch.py +0 -251
  517. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/computed_attribute.py +0 -105
  518. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/diff.py +0 -70
  519. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/diff_conflict.py +0 -71
  520. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/graphql_query.py +0 -91
  521. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/ipam.py +0 -432
  522. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/main.py +0 -452
  523. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/menu.py +0 -100
  524. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/proposed_change.py +0 -248
  525. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/relationship.py +0 -168
  526. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/repository.py +0 -290
  527. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/resource_manager.py +0 -223
  528. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/schema.py +0 -307
  529. infrahub_server-1.1.6/backend/infrahub/graphql/mutations/tasks.py +0 -66
  530. infrahub_server-1.1.6/backend/infrahub/graphql/parser.py +0 -213
  531. infrahub_server-1.1.6/backend/infrahub/graphql/permissions.py +0 -34
  532. infrahub_server-1.1.6/backend/infrahub/graphql/queries/account.py +0 -158
  533. infrahub_server-1.1.6/backend/infrahub/graphql/queries/branch.py +0 -28
  534. infrahub_server-1.1.6/backend/infrahub/graphql/queries/diff/tree.py +0 -541
  535. infrahub_server-1.1.6/backend/infrahub/graphql/queries/internal.py +0 -26
  536. infrahub_server-1.1.6/backend/infrahub/graphql/queries/ipam.py +0 -116
  537. infrahub_server-1.1.6/backend/infrahub/graphql/queries/relationship.py +0 -82
  538. infrahub_server-1.1.6/backend/infrahub/graphql/queries/resource_manager.py +0 -330
  539. infrahub_server-1.1.6/backend/infrahub/graphql/queries/search.py +0 -151
  540. infrahub_server-1.1.6/backend/infrahub/graphql/queries/status.py +0 -66
  541. infrahub_server-1.1.6/backend/infrahub/graphql/queries/task.py +0 -116
  542. infrahub_server-1.1.6/backend/infrahub/graphql/query.py +0 -52
  543. infrahub_server-1.1.6/backend/infrahub/graphql/resolvers/resolver.py +0 -406
  544. infrahub_server-1.1.6/backend/infrahub/graphql/resolvers/single_relationship.py +0 -169
  545. infrahub_server-1.1.6/backend/infrahub/graphql/schema.py +0 -107
  546. infrahub_server-1.1.6/backend/infrahub/graphql/subscription/__init__.py +0 -37
  547. infrahub_server-1.1.6/backend/infrahub/graphql/subscription/events.py +0 -48
  548. infrahub_server-1.1.6/backend/infrahub/graphql/subscription/graphql_query.py +0 -58
  549. infrahub_server-1.1.6/backend/infrahub/graphql/types/branch.py +0 -46
  550. infrahub_server-1.1.6/backend/infrahub/graphql/types/common.py +0 -7
  551. infrahub_server-1.1.6/backend/infrahub/graphql/types/enums.py +0 -10
  552. infrahub_server-1.1.6/backend/infrahub/graphql/types/interface.py +0 -28
  553. infrahub_server-1.1.6/backend/infrahub/graphql/types/node.py +0 -32
  554. infrahub_server-1.1.6/backend/infrahub/graphql/types/permission.py +0 -42
  555. infrahub_server-1.1.6/backend/infrahub/graphql/types/relationship.py +0 -18
  556. infrahub_server-1.1.6/backend/infrahub/graphql/types/standard_node.py +0 -56
  557. infrahub_server-1.1.6/backend/infrahub/graphql/utils.py +0 -260
  558. infrahub_server-1.1.6/backend/infrahub/groups/tasks.py +0 -42
  559. infrahub_server-1.1.6/backend/infrahub/lock.py +0 -261
  560. infrahub_server-1.1.6/backend/infrahub/menu/constants.py +0 -10
  561. infrahub_server-1.1.6/backend/infrahub/menu/generator.py +0 -137
  562. infrahub_server-1.1.6/backend/infrahub/menu/menu.py +0 -387
  563. infrahub_server-1.1.6/backend/infrahub/menu/models.py +0 -176
  564. infrahub_server-1.1.6/backend/infrahub/message_bus/messages/__init__.py +0 -86
  565. infrahub_server-1.1.6/backend/infrahub/message_bus/messages/check_artifact_create.py +0 -27
  566. infrahub_server-1.1.6/backend/infrahub/message_bus/messages/event_branch_merge.py +0 -10
  567. infrahub_server-1.1.6/backend/infrahub/message_bus/messages/request_artifactdefinition_check.py +0 -17
  568. infrahub_server-1.1.6/backend/infrahub/message_bus/messages/request_proposedchange_pipeline.py +0 -16
  569. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/__init__.py +0 -68
  570. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/check/__init__.py +0 -3
  571. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/check/artifact.py +0 -98
  572. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/check/generator.py +0 -157
  573. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/check/repository.py +0 -293
  574. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/event/branch.py +0 -57
  575. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/event/schema.py +0 -17
  576. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/finalize/validator.py +0 -83
  577. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/git/file.py +0 -34
  578. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/git/repository.py +0 -62
  579. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/requests/__init__.py +0 -13
  580. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/requests/artifact_definition.py +0 -148
  581. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/requests/generator_definition.py +0 -142
  582. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/requests/proposed_change.py +0 -584
  583. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/requests/repository.py +0 -133
  584. infrahub_server-1.1.6/backend/infrahub/message_bus/operations/send/echo.py +0 -13
  585. infrahub_server-1.1.6/backend/infrahub/message_bus/types.py +0 -160
  586. infrahub_server-1.1.6/backend/infrahub/permissions/__init__.py +0 -13
  587. infrahub_server-1.1.6/backend/infrahub/permissions/types.py +0 -20
  588. infrahub_server-1.1.6/backend/infrahub/pools/prefix.py +0 -174
  589. infrahub_server-1.1.6/backend/infrahub/proposed_change/models.py +0 -28
  590. infrahub_server-1.1.6/backend/infrahub/proposed_change/tasks.py +0 -495
  591. infrahub_server-1.1.6/backend/infrahub/pytest_plugin.py +0 -159
  592. infrahub_server-1.1.6/backend/infrahub/schema/constants.py +0 -1
  593. infrahub_server-1.1.6/backend/infrahub/schema/tasks.py +0 -76
  594. infrahub_server-1.1.6/backend/infrahub/server.py +0 -221
  595. infrahub_server-1.1.6/backend/infrahub/services/__init__.py +0 -107
  596. infrahub_server-1.1.6/backend/infrahub/services/adapters/cache/__init__.py +0 -36
  597. infrahub_server-1.1.6/backend/infrahub/services/adapters/cache/nats.py +0 -134
  598. infrahub_server-1.1.6/backend/infrahub/services/adapters/cache/redis.py +0 -54
  599. infrahub_server-1.1.6/backend/infrahub/services/adapters/database/__init__.py +0 -9
  600. infrahub_server-1.1.6/backend/infrahub/services/adapters/event/__init__.py +0 -46
  601. infrahub_server-1.1.6/backend/infrahub/services/adapters/http/__init__.py +0 -30
  602. infrahub_server-1.1.6/backend/infrahub/services/adapters/http/httpx.py +0 -98
  603. infrahub_server-1.1.6/backend/infrahub/services/adapters/message_bus/__init__.py +0 -45
  604. infrahub_server-1.1.6/backend/infrahub/services/adapters/message_bus/local.py +0 -59
  605. infrahub_server-1.1.6/backend/infrahub/services/adapters/message_bus/nats.py +0 -289
  606. infrahub_server-1.1.6/backend/infrahub/services/adapters/message_bus/rabbitmq.py +0 -254
  607. infrahub_server-1.1.6/backend/infrahub/services/adapters/workflow/__init__.py +0 -52
  608. infrahub_server-1.1.6/backend/infrahub/services/adapters/workflow/local.py +0 -27
  609. infrahub_server-1.1.6/backend/infrahub/services/adapters/workflow/worker.py +0 -67
  610. infrahub_server-1.1.6/backend/infrahub/services/component.py +0 -148
  611. infrahub_server-1.1.6/backend/infrahub/services/scheduler.py +0 -85
  612. infrahub_server-1.1.6/backend/infrahub/storage.py +0 -59
  613. infrahub_server-1.1.6/backend/infrahub/task_manager/constants.py +0 -15
  614. infrahub_server-1.1.6/backend/infrahub/task_manager/models.py +0 -65
  615. infrahub_server-1.1.6/backend/infrahub/task_manager/task.py +0 -273
  616. infrahub_server-1.1.6/backend/infrahub/tasks/artifact.py +0 -45
  617. infrahub_server-1.1.6/backend/infrahub/tasks/registry.py +0 -69
  618. infrahub_server-1.1.6/backend/infrahub/tasks/telemetry.py +0 -127
  619. infrahub_server-1.1.6/backend/infrahub/transformations/tasks.py +0 -56
  620. infrahub_server-1.1.6/backend/infrahub/types.py +0 -375
  621. infrahub_server-1.1.6/backend/infrahub/utils.py +0 -75
  622. infrahub_server-1.1.6/backend/infrahub/webhook/constants.py +0 -3
  623. infrahub_server-1.1.6/backend/infrahub/webhook/models.py +0 -112
  624. infrahub_server-1.1.6/backend/infrahub/webhook/tasks.py +0 -235
  625. infrahub_server-1.1.6/backend/infrahub/workers/infrahub_async.py +0 -217
  626. infrahub_server-1.1.6/backend/infrahub/workflows/catalogue.py +0 -457
  627. infrahub_server-1.1.6/backend/infrahub/workflows/initialization.py +0 -73
  628. infrahub_server-1.1.6/backend/infrahub/workflows/models.py +0 -80
  629. infrahub_server-1.1.6/backend/infrahub/workflows/utils.py +0 -79
  630. infrahub_server-1.1.6/pyproject.toml +0 -686
  631. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/_file.py +0 -13
  632. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/check.py +0 -252
  633. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/cli_commands.py +0 -502
  634. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/exceptions.py +0 -14
  635. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/exporter.py +0 -49
  636. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/generator.py +0 -115
  637. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/importer.py +0 -53
  638. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/menu.py +0 -54
  639. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/object.py +0 -47
  640. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/repository.py +0 -159
  641. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/schema.py +0 -183
  642. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/utils.py +0 -216
  643. infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl/validate.py +0 -111
  644. infrahub_server-1.1.6/python_sdk/infrahub_sdk/exceptions.py +0 -133
  645. infrahub_server-1.1.6/python_sdk/infrahub_sdk/generator.py +0 -147
  646. infrahub_server-1.1.6/python_sdk/infrahub_sdk/node.py +0 -2140
  647. infrahub_server-1.1.6/python_sdk/infrahub_sdk/schema/__init__.py +0 -684
  648. infrahub_server-1.1.6/python_sdk/infrahub_sdk/schema/main.py +0 -343
  649. infrahub_server-1.1.6/python_sdk/infrahub_sdk/utils.py +0 -359
  650. infrahub_server-1.1.6/python_sdk/infrahub_sdk/yaml.py +0 -107
  651. infrahub_server-1.1.6/python_testcontainers/infrahub_testcontainers/container.py +0 -114
  652. infrahub_server-1.1.6/python_testcontainers/infrahub_testcontainers/docker-compose.test.yml +0 -151
  653. infrahub_server-1.1.6/python_testcontainers/infrahub_testcontainers/helpers.py +0 -64
  654. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/LICENSE.txt +0 -0
  655. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/__init__.py +0 -0
  656. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/__init__.py +0 -0
  657. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/auth.py +0 -0
  658. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/diff/__init__.py +0 -0
  659. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/diff/diff.py +0 -0
  660. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/diff/validation_models.py +0 -0
  661. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/exception_handlers.py +0 -0
  662. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/exceptions.py +0 -0
  663. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/file.py +0 -0
  664. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/internal.py +0 -0
  665. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/menu.py +0 -0
  666. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/static/redoc.standalone.js +0 -0
  667. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/static/swagger-ui-bundle.js +0 -0
  668. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/static/swagger-ui.css +0 -0
  669. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/api/storage.py +0 -0
  670. {infrahub_server-1.1.6/backend/infrahub/computed_attribute → infrahub_server-1.2.0rc0/backend/infrahub/artifacts}/__init__.py +0 -0
  671. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/auth.py +0 -0
  672. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/cli/context.py +0 -0
  673. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/cli/server.py +0 -0
  674. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/components.py +0 -0
  675. {infrahub_server-1.1.6/backend/infrahub/core/constraint → infrahub_server-1.2.0rc0/backend/infrahub/computed_attribute}/__init__.py +0 -0
  676. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/computed_attribute/constants.py +0 -0
  677. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/computed_attribute/models.py +0 -0
  678. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/__init__.py +0 -0
  679. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/branch/__init__.py +0 -0
  680. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/branch/flow_models.py +0 -0
  681. {infrahub_server-1.1.6/backend/infrahub/core/constraint/node → infrahub_server-1.2.0rc0/backend/infrahub/core/changelog}/__init__.py +0 -0
  682. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/constants/database.py +0 -0
  683. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/constants/relationship_label.py +0 -0
  684. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/constants/schema.py +0 -0
  685. {infrahub_server-1.1.6/backend/infrahub/core/diff → infrahub_server-1.2.0rc0/backend/infrahub/core/constraint}/__init__.py +0 -0
  686. {infrahub_server-1.1.6/backend/infrahub/core/diff/artifacts → infrahub_server-1.2.0rc0/backend/infrahub/core/constraint/node}/__init__.py +0 -0
  687. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/constraint/node/runner.py +0 -0
  688. {infrahub_server-1.1.6/backend/infrahub/core/diff/enricher → infrahub_server-1.2.0rc0/backend/infrahub/core/diff}/__init__.py +0 -0
  689. {infrahub_server-1.1.6/backend/infrahub/core/diff/merger → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/artifacts}/__init__.py +0 -0
  690. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/artifacts/calculator.py +0 -0
  691. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/branch_differ.py +0 -0
  692. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/calculator.py +0 -0
  693. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/conflict_transferer.py +0 -0
  694. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/conflicts_enricher.py +0 -0
  695. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/conflicts_extractor.py +0 -0
  696. {infrahub_server-1.1.6/backend/infrahub/core/diff/model → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/enricher}/__init__.py +0 -0
  697. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/enricher/interface.py +0 -0
  698. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/exceptions.py +0 -0
  699. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/ipam_diff_parser.py +0 -0
  700. {infrahub_server-1.1.6/backend/infrahub/core/diff/query → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/merger}/__init__.py +0 -0
  701. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/merger/model.py +0 -0
  702. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/merger/serializer.py +0 -0
  703. {infrahub_server-1.1.6/backend/infrahub/core/diff/repository → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/model}/__init__.py +0 -0
  704. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/model/diff.py +0 -0
  705. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/models.py +0 -0
  706. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/diff/payload_builder.py +0 -0
  707. {infrahub_server-1.1.6/backend/infrahub/core/integrity → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/query}/__init__.py +0 -0
  708. {infrahub_server-1.1.6/backend/infrahub/core/integrity/object_conflict → infrahub_server-1.2.0rc0/backend/infrahub/core/diff/repository}/__init__.py +0 -0
  709. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/graph/__init__.py +0 -0
  710. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/graph/constraints.py +0 -0
  711. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/graph/index.py +0 -0
  712. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/graph/schema.py +0 -0
  713. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/initialization.py +0 -0
  714. {infrahub_server-1.1.6/backend/infrahub/core/ipam → infrahub_server-1.2.0rc0/backend/infrahub/core/integrity}/__init__.py +0 -0
  715. {infrahub_server-1.1.6/backend/infrahub/core/migrations/schema → infrahub_server-1.2.0rc0/backend/infrahub/core/integrity/object_conflict}/__init__.py +0 -0
  716. {infrahub_server-1.1.6/backend/infrahub/core/node/constraints → infrahub_server-1.2.0rc0/backend/infrahub/core/ipam}/__init__.py +0 -0
  717. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/ipam/constants.py +0 -0
  718. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/ipam/kinds_getter.py +0 -0
  719. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/ipam/model.py +0 -0
  720. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/ipam/size.py +0 -0
  721. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/ipam/utilization.py +0 -0
  722. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/__init__.py +0 -0
  723. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/graph/__init__.py +0 -0
  724. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/query/__init__.py +0 -0
  725. {infrahub_server-1.1.6/backend/infrahub/core/node/resource_manager → infrahub_server-1.2.0rc0/backend/infrahub/core/migrations/schema}/__init__.py +0 -0
  726. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/schema/attribute_name_update.py +0 -0
  727. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/schema/models.py +0 -0
  728. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/schema/node_attribute_add.py +0 -0
  729. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/schema/node_kind_update.py +0 -0
  730. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/migrations/schema/placeholder_dummy.py +0 -0
  731. {infrahub_server-1.1.6/backend/infrahub/core/relationship → infrahub_server-1.2.0rc0/backend/infrahub/core/node}/constraints/__init__.py +0 -0
  732. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/node/constraints/attribute_uniqueness.py +0 -0
  733. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/node/constraints/interface.py +0 -0
  734. {infrahub_server-1.1.6/backend/infrahub/core/schema/definitions → infrahub_server-1.2.0rc0/backend/infrahub/core/node/resource_manager}/__init__.py +0 -0
  735. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/node/resource_manager/ip_address_pool.py +0 -0
  736. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/node/resource_manager/number_pool.py +0 -0
  737. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/path.py +0 -0
  738. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/query/subquery.py +0 -0
  739. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/relationship/__init__.py +0 -0
  740. {infrahub_server-1.1.6/backend/infrahub/core/schema/generated → infrahub_server-1.2.0rc0/backend/infrahub/core/relationship/constraints}/__init__.py +0 -0
  741. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/relationship/constraints/interface.py +0 -0
  742. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/relationship/constraints/profiles_kind.py +0 -0
  743. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/root.py +0 -0
  744. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/attribute_schema.py +0 -0
  745. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/computed_attribute.py +0 -0
  746. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/constants.py +0 -0
  747. {infrahub_server-1.1.6/backend/infrahub/core/validators/attribute → infrahub_server-1.2.0rc0/backend/infrahub/core/schema/definitions}/__init__.py +0 -0
  748. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/definitions/deprecated.py +0 -0
  749. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/dropdown.py +0 -0
  750. {infrahub_server-1.1.6/backend/infrahub/core/validators/models → infrahub_server-1.2.0rc0/backend/infrahub/core/schema/generated}/__init__.py +0 -0
  751. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/generated/attribute_schema.py +0 -0
  752. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/generated/base_node_schema.py +0 -0
  753. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/generated/relationship_schema.py +0 -0
  754. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/schema/schema_branch_computed.py +0 -0
  755. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/task/__init__.py +0 -0
  756. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/task/task.py +0 -0
  757. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/task/task_log.py +0 -0
  758. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/__init__.py +0 -0
  759. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/aggregated_checker.py +0 -0
  760. {infrahub_server-1.1.6/backend/infrahub/core/validators/node → infrahub_server-1.2.0rc0/backend/infrahub/core/validators/attribute}/__init__.py +0 -0
  761. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/determiner.py +0 -0
  762. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/interface.py +0 -0
  763. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/model.py +0 -0
  764. {infrahub_server-1.1.6/backend/infrahub/core/validators/relationship → infrahub_server-1.2.0rc0/backend/infrahub/core/validators/models}/__init__.py +0 -0
  765. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/models/validate_migration.py +0 -0
  766. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/models/violation.py +0 -0
  767. {infrahub_server-1.1.6/backend/infrahub/core/validators/uniqueness → infrahub_server-1.2.0rc0/backend/infrahub/core/validators/node}/__init__.py +0 -0
  768. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/node/attribute.py +0 -0
  769. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/node/inherit_from.py +0 -0
  770. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/node/relationship.py +0 -0
  771. {infrahub_server-1.1.6/backend/infrahub/dependencies → infrahub_server-1.2.0rc0/backend/infrahub/core/validators/relationship}/__init__.py +0 -0
  772. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/shared.py +0 -0
  773. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint → infrahub_server-1.2.0rc0/backend/infrahub/core/validators/uniqueness}/__init__.py +0 -0
  774. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/uniqueness/checker.py +0 -0
  775. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/uniqueness/index.py +0 -0
  776. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/core/validators/uniqueness/model.py +0 -0
  777. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/database/constants.py +0 -0
  778. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/database/index.py +0 -0
  779. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/database/manager.py +0 -0
  780. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/database/metrics.py +0 -0
  781. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/database/neo4j.py +0 -0
  782. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint/grouped → infrahub_server-1.2.0rc0/backend/infrahub/dependencies}/__init__.py +0 -0
  783. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint/node → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint}/__init__.py +0 -0
  784. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint/relationship_manager → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint/grouped}/__init__.py +0 -0
  785. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/constraint/schema → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint/node}/__init__.py +0 -0
  786. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/node/grouped_uniqueness.py +0 -0
  787. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/node/uniqueness.py +0 -0
  788. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint/relationship_manager}/__init__.py +0 -0
  789. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/relationship_manager/count.py +0 -0
  790. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/relationship_manager/peer_kind.py +0 -0
  791. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/relationship_manager/profiles_kind.py +0 -0
  792. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/diff/enricher → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/constraint/schema}/__init__.py +0 -0
  793. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/aggregated.py +0 -0
  794. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_choices.py +0 -0
  795. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_enum.py +0 -0
  796. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_kind.py +0 -0
  797. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_length.py +0 -0
  798. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_optional.py +0 -0
  799. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_regex.py +0 -0
  800. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/attribute_uniqueness.py +0 -0
  801. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/generate_profile.py +0 -0
  802. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/inherit_from.py +0 -0
  803. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/node_attribute.py +0 -0
  804. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/node_relationship.py +0 -0
  805. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/relationship_count.py +0 -0
  806. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/relationship_optional.py +0 -0
  807. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/constraint/schema/uniqueness.py +0 -0
  808. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/ip → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff}/__init__.py +0 -0
  809. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/calculator.py +0 -0
  810. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/conflict_transferer.py +0 -0
  811. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/conflicts_extractor.py +0 -0
  812. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/data_check_conflict_recorder.py +0 -0
  813. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/data_check_synchronizer.py +0 -0
  814. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/diff_merger.py +0 -0
  815. {infrahub_server-1.1.6/backend/infrahub/dependencies/builder/node → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/diff/enricher}/__init__.py +0 -0
  816. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/enricher/aggregated.py +0 -0
  817. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/enricher/cardinality_one.py +0 -0
  818. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/enricher/hierarchy.py +0 -0
  819. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/enricher/labels.py +0 -0
  820. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/enricher/path_identifier.py +0 -0
  821. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/ipam_diff_parser.py +0 -0
  822. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/diff/repository.py +0 -0
  823. {infrahub_server-1.1.6/backend/infrahub/dependencies/component → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/ip}/__init__.py +0 -0
  824. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/ip/kinds_getter.py +0 -0
  825. {infrahub_server-1.1.6/backend/infrahub/generators → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/builder/node}/__init__.py +0 -0
  826. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/builder/node/delete_validator.py +0 -0
  827. {infrahub_server-1.1.6/backend/infrahub/git_credential → infrahub_server-1.2.0rc0/backend/infrahub/dependencies/component}/__init__.py +0 -0
  828. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/component/exceptions.py +0 -0
  829. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/component/registry.py +0 -0
  830. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/interface.py +0 -0
  831. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/dependencies/registry.py +0 -0
  832. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/events/__init__.py +0 -0
  833. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/events/constants.py +0 -0
  834. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/exceptions.py +0 -0
  835. {infrahub_server-1.1.6/backend/infrahub/graphql → infrahub_server-1.2.0rc0/backend/infrahub/generators}/__init__.py +0 -0
  836. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/generators/models.py +0 -0
  837. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/git/__init__.py +0 -0
  838. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/git/directory.py +0 -0
  839. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/git/models.py +0 -0
  840. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/git/worktree.py +0 -0
  841. {infrahub_server-1.1.6/backend/infrahub/graphql/api → infrahub_server-1.2.0rc0/backend/infrahub/git_credential}/__init__.py +0 -0
  842. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/git_credential/askpass.py +0 -0
  843. {infrahub_server-1.1.6/backend/infrahub/graphql/auth → infrahub_server-1.2.0rc0/backend/infrahub/graphql}/__init__.py +0 -0
  844. {infrahub_server-1.1.6/backend/infrahub/graphql/auth/query_permission_checker → infrahub_server-1.2.0rc0/backend/infrahub/graphql/api}/__init__.py +0 -0
  845. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/api/dependencies.py +0 -0
  846. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/api/endpoints.py +0 -0
  847. {infrahub_server-1.1.6/backend/infrahub/graphql/loaders → infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth}/__init__.py +0 -0
  848. {infrahub_server-1.1.6/backend/infrahub/graphql/mutations → infrahub_server-1.2.0rc0/backend/infrahub/graphql/auth/query_permission_checker}/__init__.py +0 -0
  849. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/auth/query_permission_checker/checker.py +0 -0
  850. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/auth/query_permission_checker/interface.py +0 -0
  851. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/constants.py +0 -0
  852. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/directives.py +0 -0
  853. {infrahub_server-1.1.6/backend/infrahub/graphql/mutations/node_getter → infrahub_server-1.2.0rc0/backend/infrahub/graphql/loaders}/__init__.py +0 -0
  854. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/metrics.py +0 -0
  855. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/models.py +0 -0
  856. {infrahub_server-1.1.6/backend/infrahub/graphql/queries/diff → infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations}/__init__.py +0 -0
  857. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/attribute.py +0 -0
  858. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/models.py +0 -0
  859. {infrahub_server-1.1.6/backend/infrahub/graphql/resolvers → infrahub_server-1.2.0rc0/backend/infrahub/graphql/mutations/node_getter}/__init__.py +0 -0
  860. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/node_getter/by_default_filter.py +0 -0
  861. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/node_getter/by_hfid.py +0 -0
  862. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/node_getter/by_id.py +0 -0
  863. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/mutations/node_getter/interface.py +0 -0
  864. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/queries/__init__.py +0 -0
  865. {infrahub_server-1.1.6/backend/infrahub/groups → infrahub_server-1.2.0rc0/backend/infrahub/graphql/queries/diff}/__init__.py +0 -0
  866. {infrahub_server-1.1.6/backend/infrahub/menu → infrahub_server-1.2.0rc0/backend/infrahub/graphql/resolvers}/__init__.py +0 -0
  867. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/types/__init__.py +0 -0
  868. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/types/attribute.py +0 -0
  869. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/types/task.py +0 -0
  870. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/graphql/types/task_log.py +0 -0
  871. {infrahub_server-1.1.6/backend/infrahub/message_bus/messages/proposed_change → infrahub_server-1.2.0rc0/backend/infrahub/groups}/__init__.py +0 -0
  872. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/groups/models.py +0 -0
  873. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/helpers.py +0 -0
  874. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/log.py +0 -0
  875. {infrahub_server-1.1.6/backend/infrahub/pools → infrahub_server-1.2.0rc0/backend/infrahub/menu}/__init__.py +0 -0
  876. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/menu/utils.py +0 -0
  877. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/__init__.py +0 -0
  878. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/check_generator_run.py +0 -0
  879. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/check_repository_checkdefinition.py +0 -0
  880. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/check_repository_mergeconflicts.py +0 -0
  881. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/check_repository_usercheck.py +0 -0
  882. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_branch_create.py +0 -0
  883. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_branch_delete.py +0 -0
  884. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_branch_rebased.py +0 -0
  885. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_node_mutated.py +0 -0
  886. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_schema_update.py +0 -0
  887. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/event_worker_newprimaryapi.py +0 -0
  888. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/finalize_validator_execution.py +0 -0
  889. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/git_file_get.py +0 -0
  890. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/git_repository_connectivity.py +0 -0
  891. {infrahub_server-1.1.6/backend/infrahub → infrahub_server-1.2.0rc0/backend/infrahub/message_bus/messages}/proposed_change/__init__.py +0 -0
  892. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/proposed_change/base_with_diff.py +0 -0
  893. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/proposed_change/request_proposedchange_refreshartifacts.py +0 -0
  894. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/refresh_git_fetch.py +0 -0
  895. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/refresh_registry_branches.py +0 -0
  896. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/refresh_registry_rebasedbranch.py +0 -0
  897. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/request_generatordefinition_check.py +0 -0
  898. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/request_repository_checks.py +0 -0
  899. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/request_repository_userchecks.py +0 -0
  900. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/messages/send_echo_request.py +0 -0
  901. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/event/__init__.py +0 -0
  902. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/event/node.py +0 -0
  903. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/event/worker.py +0 -0
  904. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/finalize/__init__.py +0 -0
  905. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/git/__init__.py +0 -0
  906. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/refresh/__init__.py +0 -0
  907. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/refresh/registry.py +0 -0
  908. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/message_bus/operations/send/__init__.py +0 -0
  909. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/middleware.py +0 -0
  910. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/models.py +0 -0
  911. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/permissions/backend.py +0 -0
  912. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/permissions/constants.py +0 -0
  913. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/permissions/local_backend.py +0 -0
  914. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/permissions/manager.py +0 -0
  915. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/permissions/report.py +0 -0
  916. {infrahub_server-1.1.6/backend/infrahub/schema → infrahub_server-1.2.0rc0/backend/infrahub/pools}/__init__.py +0 -0
  917. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/pools/address.py +0 -0
  918. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/pools/number.py +0 -0
  919. {infrahub_server-1.1.6/backend/infrahub/services/adapters → infrahub_server-1.2.0rc0/backend/infrahub/prefect_server}/__init__.py +0 -0
  920. {infrahub_server-1.1.6/backend/infrahub/support → infrahub_server-1.2.0rc0/backend/infrahub/proposed_change}/__init__.py +0 -0
  921. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/proposed_change/constants.py +0 -0
  922. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/serve/__init__.py +0 -0
  923. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/serve/gunicorn_config.py +0 -0
  924. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/serve/log.py +0 -0
  925. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/serve/worker.py +0 -0
  926. {infrahub_server-1.1.6/backend/infrahub/task_manager → infrahub_server-1.2.0rc0/backend/infrahub/services/adapters}/__init__.py +0 -0
  927. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/services/protocols.py +0 -0
  928. {infrahub_server-1.1.6/backend/infrahub/tasks → infrahub_server-1.2.0rc0/backend/infrahub/support}/__init__.py +0 -0
  929. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/support/macro.py +0 -0
  930. {infrahub_server-1.1.6/backend/infrahub/transformations → infrahub_server-1.2.0rc0/backend/infrahub/task_manager}/__init__.py +0 -0
  931. {infrahub_server-1.1.6/backend/infrahub/webhook → infrahub_server-1.2.0rc0/backend/infrahub/tasks}/__init__.py +0 -0
  932. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/tasks/check.py +0 -0
  933. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/tasks/dummy.py +0 -0
  934. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/tasks/keepalive.py +0 -0
  935. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/tasks/recurring.py +0 -0
  936. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/trace.py +0 -0
  937. {infrahub_server-1.1.6/backend/infrahub/workers → infrahub_server-1.2.0rc0/backend/infrahub/transformations}/__init__.py +0 -0
  938. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/transformations/constants.py +0 -0
  939. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/transformations/models.py +0 -0
  940. {infrahub_server-1.1.6/backend/infrahub/workflows → infrahub_server-1.2.0rc0/backend/infrahub/trigger}/__init__.py +0 -0
  941. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/visuals.py +0 -0
  942. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/ctl → infrahub_server-1.2.0rc0/backend/infrahub/webhook}/__init__.py +0 -0
  943. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/worker.py +0 -0
  944. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/pytest_plugin → infrahub_server-1.2.0rc0/backend/infrahub/workers}/__init__.py +0 -0
  945. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/spec → infrahub_server-1.2.0rc0/backend/infrahub/workflows}/__init__.py +0 -0
  946. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/backend/infrahub/workflows/constants.py +0 -0
  947. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/__init__.py +0 -0
  948. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/_importer.py +0 -0
  949. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/analyzer.py +0 -0
  950. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/async_typer.py +0 -0
  951. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/batch.py +0 -0
  952. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/branch.py +0 -0
  953. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/checks.py +0 -0
  954. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/client.py +0 -0
  955. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/code_generator.py +0 -0
  956. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/config.py +0 -0
  957. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/constants.py +0 -0
  958. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/testing → infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/ctl}/__init__.py +0 -0
  959. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/branch.py +0 -0
  960. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/cli.py +0 -0
  961. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/client.py +0 -0
  962. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/config.py +0 -0
  963. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/constants.py +0 -0
  964. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/parameters.py +0 -0
  965. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/render.py +0 -0
  966. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/ctl/transform.py +0 -0
  967. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/data.py +0 -0
  968. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/diff.py +0 -0
  969. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/graphql.py +0 -0
  970. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/groups.py +0 -0
  971. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/jinja2.py +0 -0
  972. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/object_store.py +0 -0
  973. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/playback.py +0 -0
  974. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/protocols.py +0 -0
  975. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/protocols_base.py +0 -0
  976. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/testing/schemas → infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/pytest_plugin}/__init__.py +0 -0
  977. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/exceptions.py +0 -0
  978. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/__init__.py +0 -0
  979. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/base.py +0 -0
  980. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/check.py +0 -0
  981. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/graphql_query.py +0 -0
  982. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/jinja2_transform.py +0 -0
  983. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/items/python_transform.py +0 -0
  984. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/loader.py +0 -0
  985. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/models.py +0 -0
  986. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/plugin.py +0 -0
  987. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/pytest_plugin/utils.py +0 -0
  988. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/queries.py +0 -0
  989. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/query_groups.py +0 -0
  990. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/recorder.py +0 -0
  991. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/repository.py +0 -0
  992. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/schema/repository.py +0 -0
  993. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/transfer → infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/spec}/__init__.py +0 -0
  994. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/spec/menu.py +0 -0
  995. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/spec/object.py +0 -0
  996. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/store.py +0 -0
  997. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/transfer/exporter → infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/testing}/__init__.py +0 -0
  998. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/testing/docker.py +0 -0
  999. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/testing/repository.py +0 -0
  1000. {infrahub_server-1.1.6/python_sdk/infrahub_sdk/transfer/importer → infrahub_server-1.2.0rc0/python_sdk/infrahub_sdk/testing/schemas}/__init__.py +0 -0
  1001. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/testing/schemas/animal.py +0 -0
  1002. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/testing/schemas/car_person.py +0 -0
  1003. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/timestamp.py +0 -0
  1004. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/topological_sort.py +0 -0
  1005. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/constants.py +0 -0
  1006. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/exceptions.py +0 -0
  1007. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/exporter/interface.py +0 -0
  1008. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/exporter/json.py +0 -0
  1009. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/importer/interface.py +0 -0
  1010. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/importer/json.py +0 -0
  1011. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transfer/schema_sorter.py +0 -0
  1012. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/transforms.py +0 -0
  1013. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/types.py +0 -0
  1014. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_sdk/infrahub_sdk/uuidt.py +0 -0
  1015. {infrahub_server-1.1.6 → infrahub_server-1.2.0rc0}/python_testcontainers/infrahub_testcontainers/__init__.py +0 -0
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.1
2
+ Name: infrahub-server
3
+ Version: 1.2.0rc0
4
+ Summary: Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run.
5
+ Home-page: https://opsmill.com
6
+ License: AGPL-3.0-only
7
+ Author: OpsMill
8
+ Author-email: info@opsmill.com
9
+ Requires-Python: >=3.10,<3.13
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Dist: Jinja2 (>=3,<4)
17
+ Requires-Dist: aio-pika (>=9.4,<9.5)
18
+ Requires-Dist: aiodataloader (==0.4.0)
19
+ Requires-Dist: asgi-correlation-id (==4.2.0)
20
+ Requires-Dist: authlib (==1.3.2)
21
+ Requires-Dist: bcrypt (>=4.1,<4.2)
22
+ Requires-Dist: boto3 (==1.34.129)
23
+ Requires-Dist: dulwich (>=0.22.7,<0.23.0)
24
+ Requires-Dist: email-validator (>=2.1,<2.2)
25
+ Requires-Dist: fastapi (>=0.115,<0.116)
26
+ Requires-Dist: fastapi-storages (>=0.3,<0.4)
27
+ Requires-Dist: gitpython (>=3,<4)
28
+ Requires-Dist: graphene (>=3.4,<3.5)
29
+ Requires-Dist: gunicorn (>=23.0.0,<24.0.0)
30
+ Requires-Dist: lunr (>=0.7.0.post1,<0.8.0)
31
+ Requires-Dist: nats-py (>=2.7.2,<3.0.0)
32
+ Requires-Dist: neo4j (>=5.27,<5.28)
33
+ Requires-Dist: neo4j-rust-ext (>=5.27.0.0,<6.0.0.0)
34
+ Requires-Dist: netaddr (==1.3.0)
35
+ Requires-Dist: numpy (>=1.24.2,<2.0.0) ; python_version >= "3.9" and python_version < "3.12"
36
+ Requires-Dist: numpy (>=1.26.2,<2.0.0) ; python_version >= "3.12"
37
+ Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (==1.28.1)
38
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http (==1.28.1)
39
+ Requires-Dist: opentelemetry-instrumentation-aio-pika (==0.49b1)
40
+ Requires-Dist: opentelemetry-instrumentation-fastapi (==0.49b1)
41
+ Requires-Dist: prefect (==3.1.14)
42
+ Requires-Dist: pyarrow (>=14,<15)
43
+ Requires-Dist: pydantic (>=2.9,<2.10)
44
+ Requires-Dist: pydantic-settings (>=2.7,<2.8)
45
+ Requires-Dist: pyjwt (>=2.8,<2.9)
46
+ Requires-Dist: pytest (>=7.4,<7.5)
47
+ Requires-Dist: python-multipart (==0.0.18)
48
+ Requires-Dist: pyyaml (>=6,<7)
49
+ Requires-Dist: redis[hiredis] (>=5.0.0,<6.0.0)
50
+ Requires-Dist: rich (>=13,<14)
51
+ Requires-Dist: starlette-exporter (>=0.23,<0.24)
52
+ Requires-Dist: structlog (==24.1.0)
53
+ Requires-Dist: toml (>=0.10,<0.11)
54
+ Requires-Dist: typer (==0.12.5)
55
+ Requires-Dist: ujson (>=5,<6)
56
+ Requires-Dist: uvicorn[standard] (>=0.32,<0.33)
57
+ Project-URL: Documentation, https://docs.infrahub.app/
58
+ Project-URL: Repository, https://github.com/opsmill/infrahub
59
+ Description-Content-Type: text/markdown
60
+
61
+ <h1 align="center">
62
+ <a href=""><img src="docs/static/img/infrahub-hori.svg" alt="Infrahub" width="350"></a>
63
+ </h1>
64
+ <h3 align="center">Simplify Infrastructure Automation</h2>
65
+
66
+ <p align="center">
67
+ <a href="https://www.linkedin.com/company/opsmill">
68
+ <img src="https://img.shields.io/badge/linkedin-blue?logo=linkedin"/>
69
+ </a>
70
+ <a href="https://discord.gg/opsmill">
71
+ <img src="https://img.shields.io/badge/Discord-7289DA?&logo=discord&logoColor=white"/>
72
+ </a>
73
+ </p>
74
+
75
+ Infrahub from [OpsMill](https://opsmill.com) is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run. Infrahub offers a central hub to manage the data, templates and playbooks that powers your infrastructure by combining the version control and branch management capabilities similar to Git with the flexible data model and UI of a graph database.
76
+
77
+ If you just want to try Infrahub out, you can use our [Always-On Sandbox](https://demo.infrahub.app/) to get started.
78
+
79
+ ![infrahub screenshot](docs/docs/media/infrahub-readme.gif)
80
+
81
+ ## Why Use Infrahub?
82
+
83
+ **Unified Source of Truth** - Infrahub is a single source of truth for all your infrastructure and network data. It provides a unified view of your infrastructure, allowing you to manage your infrastructure in a more efficient and effective way. Infrahub allows unidirectional and bi-directional [data synchronization](https://docs.infrahub.app/sync/sync/) between other internal systems and Infrahub. The data can be accessed via WebUI, API and SDK, along with SSO and RBAC for access control.
84
+
85
+ **Flexible Schema** - Infrahub provides a flexible schema for your infrastructure data and related business information, allowing you to define your own data model and customize it to your needs. Get started quickly with our [schema library](https://github.com/opsmill/schema-library) or build your own.
86
+
87
+ **Version Control** - Infrahub provides a version control system for your infrastructure data, allowing you to track changes and revert to previous versions if needed. Immutable history of all changes to the data and artifacts is maintained, allowing you to audit and review changes to your infrastructure.
88
+
89
+ **CI Pipeline and Validation** - Infrahub provides a CI pipeline and validation system for your infrastructure data, allowing you to ensure that your infrastructure is always in a valid state. Infrahub was designed with infrastructure-as-code workflows in mind, removing fragility and complexity of combining together multiple tools and projects to achieve the same goal.
90
+
91
+ ## Infrahub Use Cases
92
+
93
+ **Service Catalog** - Infrahub acts as the underlying system to provide infrastructure-as-a-service, allowing you to manage your services and lifecycle them as the services evolve.
94
+
95
+ **Infrastructure Automation** - Provide infrastructure and network automation workflows with Infrahub rendering configurations and artifacts via Jinja2 and python,then passing to deployment tools such as [Nornir](https://www.opsmill.com/simplifying-network-automation-workflows-with-infrahub-nornir-and-jinja2/), [Ansible](https://docs.infrahub.app/ansible/ansible/), Terraform, or vendor-specific tools.
96
+
97
+ **Inventory Management** - Infrahub serves as a centralized inventory system for your infrastructure, allowing you to manage your inventory and track changes to your infrastructure. It provides a WebUI and API for other teams to self-service the information needed to allow the organization to operate.
98
+
99
+ **DCIM and IPAM** - Infrahub provides centralized DCIM and IPAM systems for your infrastructure, capable of handling complex cases such as overlapping IP addresses and VLANs, automation-friendly, branch-aware allocation of resources via Infrahub's [Resource Manager](https://docs.infrahub.app/python-sdk/guides/resource-manager), and more.
100
+
101
+ ## Quick Start
102
+
103
+ [Always-On Sandbox](https://demo.infrahub.app/) - Instantly login to the UI of a demo environment of Infrahub with sample data pre-loaded.
104
+
105
+ [Getting Started Environment & Tutorial](https://opsmill.instruqt.com/pages/labs) - It spins up an instance of Infrahub on our cloud, provides a browser, terminal, code editor and walks you through the basic concepts:
106
+
107
+ - Branching and version control
108
+ - Flexible schema
109
+ - Unified storage
110
+
111
+ For longer term tests, you can deploy a local instance of Infrahub by referring to our guide: [Installing Infrahub](https://docs.infrahub.app/guides/installation)
112
+
113
+ ## Documentation
114
+
115
+ If you'd like to learn more about Infrahub, please refer to the following resources:
116
+
117
+ - [Infrahub Overview](https://docs.infrahub.app/overview/)
118
+ - [Infrahub Documentation](https://docs.infrahub.app/)
119
+ - [FAQ](https://docs.infrahub.app/faq/)
120
+
121
+ ## Support and Community
122
+
123
+ If you need help, support for the community version of Infrahub is provided on [![Join our Discord server](https://img.shields.io/badge/Discord-7289DA?logo=discord&logoColor=white)](https://discord.gg/opsmill) or via [filing an issue on GitHub](https://github.com/opsmill/infrahub/issues).
124
+
125
+ ## Contributing
126
+
127
+ To help our community with the creation of contributions, please view our [CONTRIBUTING](./CONTRIBUTING.md) page.
128
+
129
+ <a href="https://github.com/opsmill/infrahub/graphs/contributors">
130
+ <img src="https://contrib.rocks/image?repo=opsmill/infrahub" />
131
+ </a>
132
+
133
+ ## Security
134
+
135
+ [View our SECURITY](https://github.com/opsmill/infrahub?tab=security-ov-file) policy to find the latest information.
136
+
@@ -0,0 +1,75 @@
1
+ <h1 align="center">
2
+ <a href=""><img src="docs/static/img/infrahub-hori.svg" alt="Infrahub" width="350"></a>
3
+ </h1>
4
+ <h3 align="center">Simplify Infrastructure Automation</h2>
5
+
6
+ <p align="center">
7
+ <a href="https://www.linkedin.com/company/opsmill">
8
+ <img src="https://img.shields.io/badge/linkedin-blue?logo=linkedin"/>
9
+ </a>
10
+ <a href="https://discord.gg/opsmill">
11
+ <img src="https://img.shields.io/badge/Discord-7289DA?&logo=discord&logoColor=white"/>
12
+ </a>
13
+ </p>
14
+
15
+ Infrahub from [OpsMill](https://opsmill.com) is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run. Infrahub offers a central hub to manage the data, templates and playbooks that powers your infrastructure by combining the version control and branch management capabilities similar to Git with the flexible data model and UI of a graph database.
16
+
17
+ If you just want to try Infrahub out, you can use our [Always-On Sandbox](https://demo.infrahub.app/) to get started.
18
+
19
+ ![infrahub screenshot](docs/docs/media/infrahub-readme.gif)
20
+
21
+ ## Why Use Infrahub?
22
+
23
+ **Unified Source of Truth** - Infrahub is a single source of truth for all your infrastructure and network data. It provides a unified view of your infrastructure, allowing you to manage your infrastructure in a more efficient and effective way. Infrahub allows unidirectional and bi-directional [data synchronization](https://docs.infrahub.app/sync/sync/) between other internal systems and Infrahub. The data can be accessed via WebUI, API and SDK, along with SSO and RBAC for access control.
24
+
25
+ **Flexible Schema** - Infrahub provides a flexible schema for your infrastructure data and related business information, allowing you to define your own data model and customize it to your needs. Get started quickly with our [schema library](https://github.com/opsmill/schema-library) or build your own.
26
+
27
+ **Version Control** - Infrahub provides a version control system for your infrastructure data, allowing you to track changes and revert to previous versions if needed. Immutable history of all changes to the data and artifacts is maintained, allowing you to audit and review changes to your infrastructure.
28
+
29
+ **CI Pipeline and Validation** - Infrahub provides a CI pipeline and validation system for your infrastructure data, allowing you to ensure that your infrastructure is always in a valid state. Infrahub was designed with infrastructure-as-code workflows in mind, removing fragility and complexity of combining together multiple tools and projects to achieve the same goal.
30
+
31
+ ## Infrahub Use Cases
32
+
33
+ **Service Catalog** - Infrahub acts as the underlying system to provide infrastructure-as-a-service, allowing you to manage your services and lifecycle them as the services evolve.
34
+
35
+ **Infrastructure Automation** - Provide infrastructure and network automation workflows with Infrahub rendering configurations and artifacts via Jinja2 and python,then passing to deployment tools such as [Nornir](https://www.opsmill.com/simplifying-network-automation-workflows-with-infrahub-nornir-and-jinja2/), [Ansible](https://docs.infrahub.app/ansible/ansible/), Terraform, or vendor-specific tools.
36
+
37
+ **Inventory Management** - Infrahub serves as a centralized inventory system for your infrastructure, allowing you to manage your inventory and track changes to your infrastructure. It provides a WebUI and API for other teams to self-service the information needed to allow the organization to operate.
38
+
39
+ **DCIM and IPAM** - Infrahub provides centralized DCIM and IPAM systems for your infrastructure, capable of handling complex cases such as overlapping IP addresses and VLANs, automation-friendly, branch-aware allocation of resources via Infrahub's [Resource Manager](https://docs.infrahub.app/python-sdk/guides/resource-manager), and more.
40
+
41
+ ## Quick Start
42
+
43
+ [Always-On Sandbox](https://demo.infrahub.app/) - Instantly login to the UI of a demo environment of Infrahub with sample data pre-loaded.
44
+
45
+ [Getting Started Environment & Tutorial](https://opsmill.instruqt.com/pages/labs) - It spins up an instance of Infrahub on our cloud, provides a browser, terminal, code editor and walks you through the basic concepts:
46
+
47
+ - Branching and version control
48
+ - Flexible schema
49
+ - Unified storage
50
+
51
+ For longer term tests, you can deploy a local instance of Infrahub by referring to our guide: [Installing Infrahub](https://docs.infrahub.app/guides/installation)
52
+
53
+ ## Documentation
54
+
55
+ If you'd like to learn more about Infrahub, please refer to the following resources:
56
+
57
+ - [Infrahub Overview](https://docs.infrahub.app/overview/)
58
+ - [Infrahub Documentation](https://docs.infrahub.app/)
59
+ - [FAQ](https://docs.infrahub.app/faq/)
60
+
61
+ ## Support and Community
62
+
63
+ If you need help, support for the community version of Infrahub is provided on [![Join our Discord server](https://img.shields.io/badge/Discord-7289DA?logo=discord&logoColor=white)](https://discord.gg/opsmill) or via [filing an issue on GitHub](https://github.com/opsmill/infrahub/issues).
64
+
65
+ ## Contributing
66
+
67
+ To help our community with the creation of contributions, please view our [CONTRIBUTING](./CONTRIBUTING.md) page.
68
+
69
+ <a href="https://github.com/opsmill/infrahub/graphs/contributors">
70
+ <img src="https://contrib.rocks/image?repo=opsmill/infrahub" />
71
+ </a>
72
+
73
+ ## Security
74
+
75
+ [View our SECURITY](https://github.com/opsmill/infrahub?tab=security-ov-file) policy to find the latest information.
@@ -0,0 +1,106 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from fastapi import APIRouter, Body, Depends, Request, Response
6
+ from pydantic import BaseModel, Field
7
+
8
+ from infrahub.api.dependencies import (
9
+ BranchParams,
10
+ get_branch_params,
11
+ get_context,
12
+ get_current_user,
13
+ get_db,
14
+ get_permission_manager,
15
+ )
16
+ from infrahub.core import registry
17
+ from infrahub.core.account import ObjectPermission
18
+ from infrahub.core.constants import GLOBAL_BRANCH_NAME, InfrahubKind, PermissionAction
19
+ from infrahub.core.protocols import CoreArtifactDefinition
20
+ from infrahub.database import InfrahubDatabase # noqa: TC001
21
+ from infrahub.exceptions import NodeNotFoundError
22
+ from infrahub.git.models import RequestArtifactDefinitionGenerate
23
+ from infrahub.log import get_logger
24
+ from infrahub.permissions.constants import PermissionDecisionFlag
25
+ from infrahub.workflows.catalogue import REQUEST_ARTIFACT_DEFINITION_GENERATE
26
+
27
+ if TYPE_CHECKING:
28
+ from infrahub.auth import AccountSession
29
+ from infrahub.context import InfrahubContext
30
+ from infrahub.permissions import PermissionManager
31
+ from infrahub.services import InfrahubServices
32
+
33
+ log = get_logger()
34
+ router = APIRouter(prefix="/artifact")
35
+
36
+
37
+ class ArtifactGeneratePayload(BaseModel):
38
+ nodes: list[str] = Field(default_factory=list)
39
+
40
+
41
+ class ArtifactGenerateResponse(BaseModel):
42
+ nodes: list[str]
43
+
44
+
45
+ @router.get("/{artifact_id:str}")
46
+ async def get_artifact(
47
+ artifact_id: str,
48
+ db: InfrahubDatabase = Depends(get_db),
49
+ branch_params: BranchParams = Depends(get_branch_params),
50
+ _: AccountSession = Depends(get_current_user),
51
+ ) -> Response:
52
+ artifact = await registry.manager.get_one(db=db, id=artifact_id, branch=branch_params.branch, at=branch_params.at)
53
+ if not artifact:
54
+ raise NodeNotFoundError(
55
+ branch_name=branch_params.branch.name, node_type=InfrahubKind.ARTIFACT, identifier=artifact_id
56
+ )
57
+
58
+ return Response(
59
+ content=registry.storage.retrieve(identifier=artifact.storage_id.value),
60
+ headers={"Content-Type": artifact.content_type.value.value},
61
+ )
62
+
63
+
64
+ @router.post("/generate/{artifact_definition_id:str}")
65
+ async def generate_artifact(
66
+ request: Request,
67
+ artifact_definition_id: str,
68
+ payload: ArtifactGeneratePayload = Body(
69
+ ArtifactGeneratePayload(), # noqa: B008
70
+ description="Payload of the request, can be used to limit the scope of the query to a specific list of hosts",
71
+ ),
72
+ db: InfrahubDatabase = Depends(get_db),
73
+ branch_params: BranchParams = Depends(get_branch_params),
74
+ permission_manager: PermissionManager = Depends(get_permission_manager),
75
+ context: InfrahubContext = Depends(get_context),
76
+ ) -> None:
77
+ permission_decision = (
78
+ PermissionDecisionFlag.ALLOW_DEFAULT
79
+ if branch_params.branch.name in (GLOBAL_BRANCH_NAME, registry.default_branch)
80
+ else PermissionDecisionFlag.ALLOW_OTHER
81
+ )
82
+ permissions = [
83
+ ObjectPermission(namespace="Core", name="Artifact", action=action.value, decision=permission_decision)
84
+ for action in (PermissionAction.CREATE, PermissionAction.UPDATE)
85
+ ]
86
+ permission_manager.raise_for_permissions(permissions=permissions)
87
+
88
+ # Verify that the artifact definition exists for the requested branch
89
+ artifact_definition = await registry.manager.get_one_by_id_or_default_filter(
90
+ db=db,
91
+ id=artifact_definition_id,
92
+ kind=CoreArtifactDefinition,
93
+ branch=branch_params.branch,
94
+ )
95
+
96
+ service: InfrahubServices = request.app.state.service
97
+ model = RequestArtifactDefinitionGenerate(
98
+ artifact_definition_id=artifact_definition.id,
99
+ artifact_definition_name=artifact_definition.name.value,
100
+ branch=branch_params.branch.name,
101
+ limit=payload.nodes,
102
+ )
103
+
104
+ await service.workflow.submit_workflow(
105
+ workflow=REQUEST_ARTIFACT_DEFINITION_GENERATE, context=context, parameters={"model": model}
106
+ )
@@ -0,0 +1,143 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING, AsyncIterator, Optional
4
+
5
+ from fastapi import Depends, Query, Request
6
+ from fastapi.security import APIKeyHeader, HTTPAuthorizationCredentials, HTTPBearer
7
+ from pydantic import BaseModel, ConfigDict
8
+
9
+ from infrahub import config
10
+ from infrahub.auth import AccountSession, authentication_token, validate_jwt_access_token, validate_jwt_refresh_token
11
+ from infrahub.context import InfrahubContext
12
+ from infrahub.core.branch import Branch # noqa: TC001
13
+ from infrahub.core.registry import registry
14
+ from infrahub.core.timestamp import Timestamp
15
+ from infrahub.database import InfrahubDatabase # noqa: TC001
16
+ from infrahub.exceptions import AuthorizationError
17
+ from infrahub.permissions import PermissionManager
18
+
19
+ if TYPE_CHECKING:
20
+ from neo4j import AsyncSession
21
+
22
+ from infrahub.models import RefreshTokenData
23
+
24
+ jwt_scheme = HTTPBearer(auto_error=False)
25
+ api_key_scheme = APIKeyHeader(name="X-INFRAHUB-KEY", auto_error=False)
26
+
27
+
28
+ async def cookie_auth_scheme(request: Request) -> Optional[str]:
29
+ return request.cookies.get("access_token") # Replace with the actual name of your JWT cookie
30
+
31
+
32
+ class BranchParams(BaseModel):
33
+ branch: Branch
34
+ at: Timestamp
35
+
36
+ model_config = ConfigDict(arbitrary_types_allowed=True)
37
+
38
+
39
+ async def get_session(request: Request) -> AsyncIterator[AsyncSession]:
40
+ session = request.app.state.db.session(database=config.SETTINGS.database.database_name)
41
+ try:
42
+ yield session
43
+ finally:
44
+ await session.close()
45
+
46
+
47
+ async def get_db(request: Request) -> InfrahubDatabase:
48
+ return request.app.state.db.start_session()
49
+
50
+
51
+ async def get_access_token(
52
+ request: Request, jwt_header: HTTPAuthorizationCredentials = Depends(jwt_scheme)
53
+ ) -> AccountSession:
54
+ if jwt_header:
55
+ return await validate_jwt_access_token(token=jwt_header.credentials)
56
+ if token := request.cookies.get("access_token"):
57
+ return await validate_jwt_access_token(token=token)
58
+
59
+ raise AuthorizationError("A JWT access token is required to perform this operation.")
60
+
61
+
62
+ async def get_refresh_token(
63
+ request: Request,
64
+ db: InfrahubDatabase = Depends(get_db),
65
+ jwt_header: Optional[HTTPAuthorizationCredentials] = Depends(jwt_scheme),
66
+ ) -> RefreshTokenData:
67
+ token = None
68
+
69
+ # Check for token in header
70
+ if jwt_header:
71
+ token = jwt_header.credentials
72
+
73
+ # If no auth header, try to get the token from the cookie
74
+ if not token:
75
+ token = request.cookies.get("refresh_token")
76
+
77
+ # If still no token, raise an error
78
+ if not token:
79
+ raise AuthorizationError("A JWT refresh token is required to perform this operation.")
80
+
81
+ return await validate_jwt_refresh_token(db=db, token=token)
82
+
83
+
84
+ async def get_branch_params(
85
+ db: InfrahubDatabase = Depends(get_db),
86
+ branch_name: Optional[str] = Query(None, alias="branch", description="Name of the branch to use for the query"),
87
+ at: Optional[str] = Query(None, description="Time to use for the query, in absolute or relative format"),
88
+ ) -> BranchParams:
89
+ branch = await registry.get_branch(db=db, branch=branch_name)
90
+
91
+ return BranchParams(branch=branch, at=Timestamp(at))
92
+
93
+
94
+ async def get_branch_dep(
95
+ db: InfrahubDatabase = Depends(get_db),
96
+ branch_name: Optional[str] = Query(None, alias="branch", description="Name of the branch to use for the query"),
97
+ ) -> Branch:
98
+ return await registry.get_branch(db=db, branch=branch_name)
99
+
100
+
101
+ async def get_current_user(
102
+ request: Request,
103
+ jwt_header: HTTPAuthorizationCredentials = Depends(jwt_scheme),
104
+ db: InfrahubDatabase = Depends(get_db),
105
+ api_key: str = Depends(api_key_scheme),
106
+ ) -> AccountSession:
107
+ """Return current user"""
108
+ jwt_token = None
109
+ if jwt_header:
110
+ jwt_token = jwt_header.credentials
111
+
112
+ if not jwt_token:
113
+ jwt_token = request.cookies.get("access_token")
114
+
115
+ account_session = await authentication_token(db=db, jwt_token=jwt_token, api_key=api_key)
116
+
117
+ if (
118
+ account_session.authenticated
119
+ or request.url.path.startswith("/graphql")
120
+ or (config.SETTINGS.main.allow_anonymous_access and request.method.lower() in ["get", "options"])
121
+ ):
122
+ return account_session
123
+
124
+ raise AuthorizationError("Authentication is required")
125
+
126
+
127
+ async def get_permission_manager(
128
+ db: InfrahubDatabase = Depends(get_db),
129
+ branch_params: BranchParams = Depends(get_branch_params),
130
+ account_session: AccountSession = Depends(get_current_user),
131
+ ) -> PermissionManager:
132
+ """Return a `PermissionManager` for an account session based on a branch."""
133
+ permission_manager = PermissionManager(account_session=account_session)
134
+ await permission_manager.load_permissions(db=db, branch=branch_params.branch)
135
+
136
+ return permission_manager
137
+
138
+
139
+ async def get_context(
140
+ branch: Branch = Depends(get_branch_dep),
141
+ account_session: AccountSession = Depends(get_current_user),
142
+ ) -> InfrahubContext:
143
+ return InfrahubContext.init(branch=branch, account=account_session)
@@ -0,0 +1,146 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+ from urllib.parse import urljoin
5
+
6
+ import ujson
7
+ from authlib.integrations.httpx_client import AsyncOAuth2Client
8
+ from fastapi import APIRouter, Depends, Request, Response
9
+ from fastapi.responses import JSONResponse, RedirectResponse
10
+ from opentelemetry import trace
11
+
12
+ from infrahub import config, models
13
+ from infrahub.api.dependencies import get_db
14
+ from infrahub.auth import signin_sso_account
15
+ from infrahub.exceptions import GatewayError, ProcessingError
16
+ from infrahub.log import get_logger
17
+ from infrahub.message_bus.types import KVTTL
18
+
19
+ if TYPE_CHECKING:
20
+ import httpx
21
+
22
+ from infrahub.database import InfrahubDatabase
23
+ from infrahub.services import InfrahubServices
24
+
25
+
26
+ log = get_logger()
27
+ router = APIRouter(prefix="/oauth2")
28
+
29
+
30
+ def _get_redirect_url(request: Request, provider_name: str) -> str:
31
+ """Return public redirect URL."""
32
+ base_url = config.SETTINGS.main.public_url or str(request.base_url)
33
+ return urljoin(base_url, f"auth/oauth2/{provider_name}/callback")
34
+
35
+
36
+ @router.get("/{provider_name:str}/authorize")
37
+ async def authorize(request: Request, provider_name: str, final_url: str | None = None) -> Response:
38
+ provider = config.SETTINGS.security.get_oauth2_provider(provider=provider_name)
39
+
40
+ with trace.get_tracer(__name__).start_as_current_span("sso_oauth2_client_configuration") as span:
41
+ span.set_attribute("provider_name", provider_name)
42
+ span.set_attribute("scopes", provider.scopes)
43
+
44
+ client = AsyncOAuth2Client(
45
+ client_id=provider.client_id,
46
+ client_secret=provider.client_secret,
47
+ scope=provider.scopes,
48
+ )
49
+
50
+ redirect_uri = _get_redirect_url(request=request, provider_name=provider_name)
51
+ final_url = final_url or config.SETTINGS.main.public_url or str(request.base_url)
52
+
53
+ authorization_uri, state = client.create_authorization_url(
54
+ url=provider.authorization_url, redirect_uri=redirect_uri, scope=provider.scopes, final_url=final_url
55
+ )
56
+
57
+ service: InfrahubServices = request.app.state.service
58
+
59
+ await service.cache.set(
60
+ key=f"security:oauth2:provider:{provider_name}:state:{state}", value=final_url, expires=KVTTL.TWO_HOURS
61
+ )
62
+
63
+ if config.SETTINGS.dev.frontend_redirect_sso:
64
+ return JSONResponse(content={"url": authorization_uri})
65
+
66
+ return RedirectResponse(url=authorization_uri)
67
+
68
+
69
+ @router.get("/{provider_name:str}/token")
70
+ async def token(
71
+ request: Request,
72
+ response: Response,
73
+ provider_name: str,
74
+ state: str,
75
+ code: str,
76
+ db: InfrahubDatabase = Depends(get_db),
77
+ ) -> models.UserTokenWithUrl:
78
+ provider = config.SETTINGS.security.get_oauth2_provider(provider=provider_name)
79
+
80
+ service: InfrahubServices = request.app.state.service
81
+
82
+ cache_key = f"security:oauth2:provider:{provider_name}:state:{state}"
83
+ stored_final_url = await service.cache.get(key=cache_key)
84
+ await service.cache.delete(key=cache_key)
85
+
86
+ if not stored_final_url:
87
+ raise ProcessingError(message="Invalid 'state' parameter")
88
+
89
+ token_data = {
90
+ "code": code,
91
+ "client_id": provider.client_id,
92
+ "client_secret": provider.client_secret,
93
+ "redirect_uri": _get_redirect_url(request=request, provider_name=provider_name),
94
+ "grant_type": "authorization_code",
95
+ }
96
+
97
+ token_response = await service.http.post(provider.token_url, data=token_data)
98
+ _validate_response(response=token_response)
99
+
100
+ with trace.get_tracer(__name__).start_as_current_span("sso_token_request") as span:
101
+ span.set_attribute("token_request_data", ujson.dumps(token_response.json()))
102
+ payload = token_response.json()
103
+
104
+ headers = {"Authorization": f"{payload.get('token_type')} {payload.get('access_token')}"}
105
+ if provider.userinfo_method == config.UserInfoMethod.GET:
106
+ userinfo_response = await service.http.get(provider.userinfo_url, headers=headers)
107
+ else:
108
+ userinfo_response = await service.http.post(provider.userinfo_url, headers=headers)
109
+
110
+ _validate_response(response=userinfo_response)
111
+ user_info = userinfo_response.json()
112
+ sso_groups = user_info.get("groups", [])
113
+ if not sso_groups and config.SETTINGS.security.sso_user_default_group:
114
+ sso_groups = [config.SETTINGS.security.sso_user_default_group]
115
+
116
+ with trace.get_tracer(__name__).start_as_current_span("signin_sso_account") as span:
117
+ span.set_attribute("account_name", ujson.dumps(userinfo_response.json()))
118
+ span.set_attribute("sso_groups", sso_groups)
119
+ user_token = await signin_sso_account(db=db, account_name=user_info["name"], sso_groups=sso_groups)
120
+
121
+ response.set_cookie(
122
+ "access_token", user_token.access_token, httponly=True, max_age=config.SETTINGS.security.access_token_lifetime
123
+ )
124
+ response.set_cookie(
125
+ "refresh_token",
126
+ user_token.refresh_token,
127
+ httponly=True,
128
+ max_age=config.SETTINGS.security.refresh_token_lifetime,
129
+ )
130
+
131
+ return models.UserTokenWithUrl(
132
+ access_token=user_token.access_token, refresh_token=user_token.refresh_token, final_url=stored_final_url
133
+ )
134
+
135
+
136
+ def _validate_response(response: httpx.Response) -> None:
137
+ if 200 <= response.status_code <= 299:
138
+ return
139
+
140
+ log.error(
141
+ "Invalid response from the OAuth provider",
142
+ url=response.url,
143
+ status_code=response.status_code,
144
+ body=response.json(),
145
+ )
146
+ raise GatewayError(message="Invalid response from Authentication provider")