infrahub-server 1.1.2__tar.gz → 1.1.4__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 (681) hide show
  1. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/PKG-INFO +2 -1
  2. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/__init__.py +13 -5
  3. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/artifact.py +2 -1
  4. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/auth.py +7 -1
  5. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/diff.py +13 -7
  6. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/file.py +3 -3
  7. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/internal.py +19 -6
  8. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/oauth2.py +22 -7
  9. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/oidc.py +23 -7
  10. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/schema.py +39 -20
  11. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/storage.py +8 -8
  12. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/transformation.py +3 -2
  13. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/auth.py +1 -24
  14. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/__init__.py +1 -1
  15. infrahub_server-1.1.4/backend/infrahub/cli/context.py +15 -0
  16. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/db.py +6 -6
  17. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/git_agent.py +1 -1
  18. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/config.py +1 -2
  19. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/attribute.py +22 -0
  20. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/__init__.py +5 -0
  21. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/calculator.py +14 -0
  22. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/combiner.py +5 -2
  23. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflicts_enricher.py +2 -2
  24. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/coordinator.py +11 -1
  25. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/cardinality_one.py +3 -3
  26. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/hierarchy.py +2 -1
  27. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/merger.py +10 -0
  28. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/serializer.py +5 -29
  29. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/path.py +3 -1
  30. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query_parser.py +26 -11
  31. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/repository.py +4 -4
  32. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/utilization.py +6 -1
  33. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/merge.py +5 -0
  34. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/attribute_add.py +5 -5
  35. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/diff.py +32 -19
  36. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/ipam.py +30 -22
  37. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/node.py +4 -0
  38. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/__init__.py +5 -0
  39. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/kind.py +1 -1
  40. infrahub_server-1.1.4/backend/infrahub/core/validators/models/violation.py +9 -0
  41. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/tasks.py +4 -1
  42. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/aggregated.py +2 -0
  43. infrahub_server-1.1.4/backend/infrahub/dependencies/builder/constraint/schema/attribute_kind.py +8 -0
  44. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/endpoints.py +12 -3
  45. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/account.py +4 -4
  46. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/main.py +5 -16
  47. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/resource_manager.py +3 -3
  48. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/resource_manager.py +21 -10
  49. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/task.py +5 -1
  50. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/pyproject.toml +7 -1
  51. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/analyzer.py +1 -1
  52. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/checks.py +4 -4
  53. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/client.py +26 -16
  54. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/generator.py +3 -3
  55. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/node.py +2 -2
  56. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/base.py +0 -5
  57. infrahub_server-1.1.4/python_sdk/infrahub_sdk/repository.py +33 -0
  58. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/repository.py +14 -8
  59. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transforms.py +3 -3
  60. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/utils.py +8 -3
  61. infrahub_server-1.1.2/backend/infrahub/cli/context.py +0 -18
  62. infrahub_server-1.1.2/backend/infrahub/core/validators/models/violation.py +0 -22
  63. infrahub_server-1.1.2/python_sdk/infrahub_sdk/task_report.py +0 -208
  64. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/LICENSE.txt +0 -0
  65. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/README.md +0 -0
  66. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/__init__.py +0 -0
  67. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/dependencies.py +0 -0
  68. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/__init__.py +0 -0
  69. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/validation_models.py +0 -0
  70. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/exception_handlers.py +0 -0
  71. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/exceptions.py +0 -0
  72. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/menu.py +0 -0
  73. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/query.py +0 -0
  74. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/redoc.standalone.js +0 -0
  75. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/swagger-ui-bundle.js +0 -0
  76. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/swagger-ui.css +0 -0
  77. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/events.py +0 -0
  78. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/server.py +0 -0
  79. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/tasks.py +0 -0
  80. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/components.py +0 -0
  81. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/__init__.py +0 -0
  82. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/constants.py +0 -0
  83. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/models.py +0 -0
  84. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/tasks.py +0 -0
  85. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/__init__.py +0 -0
  86. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/account.py +0 -0
  87. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/__init__.py +0 -0
  88. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/constants.py +0 -0
  89. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/flow_models.py +0 -0
  90. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/models.py +0 -0
  91. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/tasks.py +0 -0
  92. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/database.py +0 -0
  93. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/infrahubkind.py +0 -0
  94. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/relationship_label.py +0 -0
  95. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/schema.py +0 -0
  96. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/__init__.py +0 -0
  97. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/node/__init__.py +0 -0
  98. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/node/runner.py +0 -0
  99. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/__init__.py +0 -0
  100. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/artifacts/__init__.py +0 -0
  101. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/artifacts/calculator.py +0 -0
  102. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/branch_differ.py +0 -0
  103. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflict_transferer.py +0 -0
  104. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflicts_extractor.py +0 -0
  105. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/data_check_synchronizer.py +0 -0
  106. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/__init__.py +0 -0
  107. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/aggregated.py +0 -0
  108. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/interface.py +0 -0
  109. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/labels.py +0 -0
  110. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/path_identifier.py +0 -0
  111. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/summary_counts.py +0 -0
  112. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/exceptions.py +0 -0
  113. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/ipam_diff_parser.py +0 -0
  114. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/__init__.py +0 -0
  115. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/model.py +0 -0
  116. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/__init__.py +0 -0
  117. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/diff.py +0 -0
  118. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/models.py +0 -0
  119. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/payload_builder.py +0 -0
  120. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/__init__.py +0 -0
  121. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/artifact.py +0 -0
  122. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/delete_query.py +0 -0
  123. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/diff_get.py +0 -0
  124. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/diff_summary.py +0 -0
  125. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/drop_tracking_id.py +0 -0
  126. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/field_specifiers.py +0 -0
  127. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/field_summary.py +0 -0
  128. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/filters.py +0 -0
  129. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/get_conflict_query.py +0 -0
  130. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/has_conflicts_query.py +0 -0
  131. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/merge.py +0 -0
  132. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/roots_metadata.py +0 -0
  133. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/save.py +0 -0
  134. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/time_range_query.py +0 -0
  135. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/update_conflict_query.py +0 -0
  136. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/__init__.py +0 -0
  137. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/deserializer.py +0 -0
  138. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/tasks.py +0 -0
  139. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/enums.py +0 -0
  140. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/__init__.py +0 -0
  141. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/constraints.py +0 -0
  142. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/index.py +0 -0
  143. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/schema.py +0 -0
  144. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/initialization.py +0 -0
  145. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/__init__.py +0 -0
  146. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/object_conflict/__init__.py +0 -0
  147. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/object_conflict/conflict_recorder.py +0 -0
  148. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/__init__.py +0 -0
  149. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/constants.py +0 -0
  150. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/kinds_getter.py +0 -0
  151. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/model.py +0 -0
  152. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/reconciler.py +0 -0
  153. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/size.py +0 -0
  154. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/tasks.py +0 -0
  155. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/manager.py +0 -0
  156. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/__init__.py +0 -0
  157. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/__init__.py +0 -0
  158. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m001_add_version_to_graph.py +0 -0
  159. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m002_attribute_is_default.py +0 -0
  160. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m003_relationship_parent_optional.py +0 -0
  161. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m004_add_attr_documentation.py +0 -0
  162. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m005_add_rel_read_only.py +0 -0
  163. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m006_add_rel_on_delete.py +0 -0
  164. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m007_add_rel_allow_override.py +0 -0
  165. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m008_add_human_friendly_id.py +0 -0
  166. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m009_add_generate_profile_attr.py +0 -0
  167. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m010_add_generate_profile_attr_generic.py +0 -0
  168. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m011_remove_profile_relationship_schema.py +0 -0
  169. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m012_convert_account_generic.py +0 -0
  170. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m013_convert_git_password_credential.py +0 -0
  171. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m014_remove_index_attr_value.py +0 -0
  172. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m015_diff_format_update.py +0 -0
  173. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m016_diff_delete_bug_fix.py +0 -0
  174. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m017_add_core_profile.py +0 -0
  175. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m018_uniqueness_nulls.py +0 -0
  176. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/__init__.py +0 -0
  177. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/attribute_rename.py +0 -0
  178. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/delete_element_in_schema.py +0 -0
  179. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/node_duplicate.py +0 -0
  180. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/relationship_duplicate.py +0 -0
  181. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/schema_attribute_update.py +0 -0
  182. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/__init__.py +0 -0
  183. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/attribute_name_update.py +0 -0
  184. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/models.py +0 -0
  185. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_attribute_add.py +0 -0
  186. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_attribute_remove.py +0 -0
  187. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_kind_update.py +0 -0
  188. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_remove.py +0 -0
  189. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/placeholder_dummy.py +0 -0
  190. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/tasks.py +0 -0
  191. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/shared.py +0 -0
  192. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/models.py +0 -0
  193. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/__init__.py +0 -0
  194. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/base.py +0 -0
  195. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/__init__.py +0 -0
  196. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/attribute_uniqueness.py +0 -0
  197. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/grouped_uniqueness.py +0 -0
  198. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/interface.py +0 -0
  199. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/delete_validator.py +0 -0
  200. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/ipam.py +0 -0
  201. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/permissions.py +0 -0
  202. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/__init__.py +0 -0
  203. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/ip_address_pool.py +0 -0
  204. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/ip_prefix_pool.py +0 -0
  205. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/number_pool.py +0 -0
  206. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/standard.py +0 -0
  207. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/path.py +0 -0
  208. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/property.py +0 -0
  209. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/protocols.py +0 -0
  210. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/protocols_base.py +0 -0
  211. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/__init__.py +0 -0
  212. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/attribute.py +0 -0
  213. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/branch.py +0 -0
  214. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/delete.py +0 -0
  215. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/relationship.py +0 -0
  216. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/resource_manager.py +0 -0
  217. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/standard_node.py +0 -0
  218. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/subquery.py +0 -0
  219. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/task.py +0 -0
  220. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/task_log.py +0 -0
  221. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/utils.py +0 -0
  222. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/registry.py +0 -0
  223. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/__init__.py +0 -0
  224. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/__init__.py +0 -0
  225. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/count.py +0 -0
  226. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/interface.py +0 -0
  227. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/peer_kind.py +0 -0
  228. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/profiles_kind.py +0 -0
  229. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/model.py +0 -0
  230. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/root.py +0 -0
  231. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/attribute_schema.py +0 -0
  232. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/basenode_schema.py +0 -0
  233. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/computed_attribute.py +0 -0
  234. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/constants.py +0 -0
  235. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/__init__.py +0 -0
  236. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/core.py +0 -0
  237. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/deprecated.py +0 -0
  238. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/internal.py +0 -0
  239. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/dropdown.py +0 -0
  240. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/__init__.py +0 -0
  241. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/attribute_schema.py +0 -0
  242. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/base_node_schema.py +0 -0
  243. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/genericnode_schema.py +0 -0
  244. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/node_schema.py +0 -0
  245. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/relationship_schema.py +0 -0
  246. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generic_schema.py +0 -0
  247. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/manager.py +0 -0
  248. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/node_schema.py +0 -0
  249. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/profile_schema.py +0 -0
  250. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/relationship_schema.py +0 -0
  251. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/schema_branch.py +0 -0
  252. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/schema_branch_computed.py +0 -0
  253. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/__init__.py +0 -0
  254. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/task.py +0 -0
  255. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/task_log.py +0 -0
  256. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/user_task.py +0 -0
  257. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/timestamp.py +0 -0
  258. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/utils.py +0 -0
  259. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/__init__.py +0 -0
  260. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/aggregated_checker.py +0 -0
  261. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/__init__.py +0 -0
  262. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/choices.py +0 -0
  263. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/enum.py +0 -0
  264. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/length.py +0 -0
  265. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/optional.py +0 -0
  266. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/regex.py +0 -0
  267. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/unique.py +0 -0
  268. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/determiner.py +0 -0
  269. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/interface.py +0 -0
  270. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/model.py +0 -0
  271. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/models/__init__.py +0 -0
  272. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/models/validate_migration.py +0 -0
  273. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/__init__.py +0 -0
  274. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/attribute.py +0 -0
  275. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/generate_profile.py +0 -0
  276. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/hierarchy.py +0 -0
  277. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/inherit_from.py +0 -0
  278. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/relationship.py +0 -0
  279. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/query.py +0 -0
  280. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/__init__.py +0 -0
  281. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/count.py +0 -0
  282. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/optional.py +0 -0
  283. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/peer.py +0 -0
  284. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/shared.py +0 -0
  285. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/__init__.py +0 -0
  286. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/checker.py +0 -0
  287. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/index.py +0 -0
  288. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/model.py +0 -0
  289. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/query.py +0 -0
  290. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/__init__.py +0 -0
  291. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/constants.py +0 -0
  292. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/index.py +0 -0
  293. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/manager.py +0 -0
  294. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/memgraph.py +0 -0
  295. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/metrics.py +0 -0
  296. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/neo4j.py +0 -0
  297. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/__init__.py +0 -0
  298. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/__init__.py +0 -0
  299. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/grouped/__init__.py +0 -0
  300. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/grouped/node_runner.py +0 -0
  301. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/__init__.py +0 -0
  302. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/grouped_uniqueness.py +0 -0
  303. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/uniqueness.py +0 -0
  304. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/__init__.py +0 -0
  305. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/count.py +0 -0
  306. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/peer_kind.py +0 -0
  307. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/profiles_kind.py +0 -0
  308. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/__init__.py +0 -0
  309. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_choices.py +0 -0
  310. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_enum.py +0 -0
  311. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_length.py +0 -0
  312. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_optional.py +0 -0
  313. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_regex.py +0 -0
  314. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_uniqueness.py +0 -0
  315. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/generate_profile.py +0 -0
  316. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/inherit_from.py +0 -0
  317. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/node_attribute.py +0 -0
  318. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/node_relationship.py +0 -0
  319. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/relationship_count.py +0 -0
  320. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/relationship_optional.py +0 -0
  321. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/uniqueness.py +0 -0
  322. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/__init__.py +0 -0
  323. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/calculator.py +0 -0
  324. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/combiner.py +0 -0
  325. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflict_transferer.py +0 -0
  326. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflicts_enricher.py +0 -0
  327. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflicts_extractor.py +0 -0
  328. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/coordinator.py +0 -0
  329. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/data_check_conflict_recorder.py +0 -0
  330. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/data_check_synchronizer.py +0 -0
  331. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/deserializer.py +0 -0
  332. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/diff_merger.py +0 -0
  333. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/__init__.py +0 -0
  334. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/aggregated.py +0 -0
  335. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/cardinality_one.py +0 -0
  336. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/hierarchy.py +0 -0
  337. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/labels.py +0 -0
  338. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/path_identifier.py +0 -0
  339. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/summary_counts.py +0 -0
  340. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/ipam_diff_parser.py +0 -0
  341. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/repository.py +0 -0
  342. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/ip/__init__.py +0 -0
  343. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/ip/kinds_getter.py +0 -0
  344. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/node/__init__.py +0 -0
  345. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/node/delete_validator.py +0 -0
  346. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/__init__.py +0 -0
  347. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/exceptions.py +0 -0
  348. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/registry.py +0 -0
  349. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/interface.py +0 -0
  350. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/registry.py +0 -0
  351. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/__init__.py +0 -0
  352. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/branch_action.py +0 -0
  353. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/constants.py +0 -0
  354. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/models.py +0 -0
  355. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/node_action.py +0 -0
  356. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/repository_action.py +0 -0
  357. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/schema_action.py +0 -0
  358. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/exceptions.py +0 -0
  359. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/__init__.py +0 -0
  360. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/models.py +0 -0
  361. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/tasks.py +0 -0
  362. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/__init__.py +0 -0
  363. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/base.py +0 -0
  364. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/constants.py +0 -0
  365. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/directory.py +0 -0
  366. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/integrator.py +0 -0
  367. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/models.py +0 -0
  368. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/repository.py +0 -0
  369. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/tasks.py +0 -0
  370. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/worktree.py +0 -0
  371. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/__init__.py +0 -0
  372. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/askpass.py +0 -0
  373. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/helper.py +0 -0
  374. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/__init__.py +0 -0
  375. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/analyzer.py +0 -0
  376. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/__init__.py +0 -0
  377. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/dependencies.py +0 -0
  378. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/app.py +0 -0
  379. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/__init__.py +0 -0
  380. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/__init__.py +0 -0
  381. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/anonymous_checker.py +0 -0
  382. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/checker.py +0 -0
  383. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/default_branch_checker.py +0 -0
  384. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/interface.py +0 -0
  385. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/merge_operation_checker.py +0 -0
  386. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/object_permission_checker.py +0 -0
  387. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/super_admin_checker.py +0 -0
  388. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/constants.py +0 -0
  389. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/directives.py +0 -0
  390. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/enums.py +0 -0
  391. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/initialization.py +0 -0
  392. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/loaders/__init__.py +0 -0
  393. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/loaders/node.py +0 -0
  394. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/manager.py +0 -0
  395. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/metrics.py +0 -0
  396. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/models.py +0 -0
  397. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/__init__.py +0 -0
  398. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/artifact_definition.py +0 -0
  399. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/attribute.py +0 -0
  400. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/branch.py +0 -0
  401. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/computed_attribute.py +0 -0
  402. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/diff.py +0 -0
  403. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/diff_conflict.py +0 -0
  404. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/graphql_query.py +0 -0
  405. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/ipam.py +0 -0
  406. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/menu.py +0 -0
  407. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/models.py +0 -0
  408. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/__init__.py +0 -0
  409. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_default_filter.py +0 -0
  410. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_hfid.py +0 -0
  411. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_id.py +0 -0
  412. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/interface.py +0 -0
  413. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/proposed_change.py +0 -0
  414. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/relationship.py +0 -0
  415. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/repository.py +0 -0
  416. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/schema.py +0 -0
  417. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/tasks.py +0 -0
  418. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/parser.py +0 -0
  419. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/permissions.py +0 -0
  420. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/__init__.py +0 -0
  421. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/account.py +0 -0
  422. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/branch.py +0 -0
  423. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/diff/__init__.py +0 -0
  424. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/diff/tree.py +0 -0
  425. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/internal.py +0 -0
  426. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/ipam.py +0 -0
  427. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/relationship.py +0 -0
  428. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/search.py +0 -0
  429. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/status.py +0 -0
  430. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/task.py +0 -0
  431. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/query.py +0 -0
  432. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/__init__.py +0 -0
  433. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/resolver.py +0 -0
  434. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/single_relationship.py +0 -0
  435. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/schema.py +0 -0
  436. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/__init__.py +0 -0
  437. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/events.py +0 -0
  438. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/graphql_query.py +0 -0
  439. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/__init__.py +0 -0
  440. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/attribute.py +0 -0
  441. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/branch.py +0 -0
  442. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/common.py +0 -0
  443. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/enums.py +0 -0
  444. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/interface.py +0 -0
  445. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/node.py +0 -0
  446. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/permission.py +0 -0
  447. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/relationship.py +0 -0
  448. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/standard_node.py +0 -0
  449. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/task.py +0 -0
  450. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/task_log.py +0 -0
  451. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/utils.py +0 -0
  452. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/__init__.py +0 -0
  453. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/models.py +0 -0
  454. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/tasks.py +0 -0
  455. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/helpers.py +0 -0
  456. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/lock.py +0 -0
  457. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/log.py +0 -0
  458. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/__init__.py +0 -0
  459. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/constants.py +0 -0
  460. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/generator.py +0 -0
  461. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/menu.py +0 -0
  462. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/models.py +0 -0
  463. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/utils.py +0 -0
  464. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/__init__.py +0 -0
  465. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/__init__.py +0 -0
  466. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_artifact_create.py +0 -0
  467. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_generator_run.py +0 -0
  468. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_checkdefinition.py +0 -0
  469. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_mergeconflicts.py +0 -0
  470. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_usercheck.py +0 -0
  471. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_create.py +0 -0
  472. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_delete.py +0 -0
  473. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_merge.py +0 -0
  474. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_rebased.py +0 -0
  475. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_node_mutated.py +0 -0
  476. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_schema_update.py +0 -0
  477. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_worker_newprimaryapi.py +0 -0
  478. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/finalize_validator_execution.py +0 -0
  479. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/git_file_get.py +0 -0
  480. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/git_repository_connectivity.py +0 -0
  481. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/__init__.py +0 -0
  482. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/base_with_diff.py +0 -0
  483. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/request_proposedchange_refreshartifacts.py +0 -0
  484. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_git_fetch.py +0 -0
  485. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_registry_branches.py +0 -0
  486. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_registry_rebasedbranch.py +0 -0
  487. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_artifactdefinition_check.py +0 -0
  488. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_generatordefinition_check.py +0 -0
  489. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_proposedchange_pipeline.py +0 -0
  490. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_repository_checks.py +0 -0
  491. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_repository_userchecks.py +0 -0
  492. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/send_echo_request.py +0 -0
  493. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/__init__.py +0 -0
  494. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/__init__.py +0 -0
  495. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/artifact.py +0 -0
  496. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/generator.py +0 -0
  497. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/repository.py +0 -0
  498. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/__init__.py +0 -0
  499. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/branch.py +0 -0
  500. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/node.py +0 -0
  501. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/schema.py +0 -0
  502. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/worker.py +0 -0
  503. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/finalize/__init__.py +0 -0
  504. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/finalize/validator.py +0 -0
  505. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/__init__.py +0 -0
  506. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/file.py +0 -0
  507. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/repository.py +0 -0
  508. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/refresh/__init__.py +0 -0
  509. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/refresh/registry.py +0 -0
  510. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/__init__.py +0 -0
  511. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/artifact_definition.py +0 -0
  512. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/generator_definition.py +0 -0
  513. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/proposed_change.py +0 -0
  514. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/repository.py +0 -0
  515. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/send/__init__.py +0 -0
  516. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/send/echo.py +0 -0
  517. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/types.py +0 -0
  518. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/middleware.py +0 -0
  519. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/models.py +0 -0
  520. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/__init__.py +0 -0
  521. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/backend.py +0 -0
  522. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/constants.py +0 -0
  523. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/local_backend.py +0 -0
  524. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/manager.py +0 -0
  525. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/report.py +0 -0
  526. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/types.py +0 -0
  527. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/__init__.py +0 -0
  528. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/address.py +0 -0
  529. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/number.py +0 -0
  530. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/prefix.py +0 -0
  531. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/__init__.py +0 -0
  532. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/constants.py +0 -0
  533. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/models.py +0 -0
  534. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/tasks.py +0 -0
  535. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pytest_plugin.py +0 -0
  536. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/__init__.py +0 -0
  537. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/constants.py +0 -0
  538. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/tasks.py +0 -0
  539. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/__init__.py +0 -0
  540. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/gunicorn_config.py +0 -0
  541. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/log.py +0 -0
  542. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/worker.py +0 -0
  543. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/server.py +0 -0
  544. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/__init__.py +0 -0
  545. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/__init__.py +0 -0
  546. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/__init__.py +0 -0
  547. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/nats.py +0 -0
  548. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/redis.py +0 -0
  549. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/database/__init__.py +0 -0
  550. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/event/__init__.py +0 -0
  551. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/http/__init__.py +0 -0
  552. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/http/httpx.py +0 -0
  553. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/__init__.py +0 -0
  554. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/local.py +0 -0
  555. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/nats.py +0 -0
  556. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/rabbitmq.py +0 -0
  557. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/__init__.py +0 -0
  558. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/local.py +0 -0
  559. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/worker.py +0 -0
  560. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/component.py +0 -0
  561. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/protocols.py +0 -0
  562. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/scheduler.py +0 -0
  563. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/storage.py +0 -0
  564. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/support/__init__.py +0 -0
  565. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/support/macro.py +0 -0
  566. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/__init__.py +0 -0
  567. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/constants.py +0 -0
  568. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/models.py +0 -0
  569. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/__init__.py +0 -0
  570. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/artifact.py +0 -0
  571. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/check.py +0 -0
  572. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/dummy.py +0 -0
  573. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/keepalive.py +0 -0
  574. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/recurring.py +0 -0
  575. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/registry.py +0 -0
  576. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/telemetry.py +0 -0
  577. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/trace.py +0 -0
  578. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/__init__.py +0 -0
  579. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/models.py +0 -0
  580. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/tasks.py +0 -0
  581. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/types.py +0 -0
  582. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/utils.py +0 -0
  583. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/visuals.py +0 -0
  584. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/__init__.py +0 -0
  585. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/constants.py +0 -0
  586. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/models.py +0 -0
  587. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/tasks.py +0 -0
  588. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/worker.py +0 -0
  589. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workers/__init__.py +0 -0
  590. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workers/infrahub_async.py +0 -0
  591. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/__init__.py +0 -0
  592. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/catalogue.py +0 -0
  593. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/constants.py +0 -0
  594. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/initialization.py +0 -0
  595. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/models.py +0 -0
  596. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/utils.py +0 -0
  597. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/__init__.py +0 -0
  598. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/_importer.py +0 -0
  599. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/async_typer.py +0 -0
  600. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/batch.py +0 -0
  601. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/branch.py +0 -0
  602. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/code_generator.py +0 -0
  603. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/config.py +0 -0
  604. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/constants.py +0 -0
  605. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/__init__.py +0 -0
  606. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/_file.py +0 -0
  607. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/branch.py +0 -0
  608. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/check.py +0 -0
  609. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/cli.py +0 -0
  610. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/cli_commands.py +0 -0
  611. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/client.py +0 -0
  612. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/config.py +0 -0
  613. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/constants.py +0 -0
  614. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/exceptions.py +0 -0
  615. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/exporter.py +0 -0
  616. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/generator.py +0 -0
  617. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/importer.py +0 -0
  618. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/menu.py +0 -0
  619. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/object.py +0 -0
  620. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/parameters.py +0 -0
  621. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/render.py +0 -0
  622. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/repository.py +0 -0
  623. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/schema.py +0 -0
  624. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/transform.py +0 -0
  625. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/utils.py +0 -0
  626. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/validate.py +0 -0
  627. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/data.py +0 -0
  628. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/diff.py +0 -0
  629. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/exceptions.py +0 -0
  630. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/graphql.py +0 -0
  631. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/groups.py +0 -0
  632. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/jinja2.py +0 -0
  633. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/object_store.py +0 -0
  634. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/playback.py +0 -0
  635. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/protocols.py +0 -0
  636. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/protocols_base.py +0 -0
  637. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/__init__.py +0 -0
  638. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/exceptions.py +0 -0
  639. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/__init__.py +0 -0
  640. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/check.py +0 -0
  641. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/graphql_query.py +0 -0
  642. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/jinja2_transform.py +0 -0
  643. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/python_transform.py +0 -0
  644. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/loader.py +0 -0
  645. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/models.py +0 -0
  646. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/plugin.py +0 -0
  647. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/utils.py +0 -0
  648. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/queries.py +0 -0
  649. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/query_groups.py +0 -0
  650. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/recorder.py +0 -0
  651. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/__init__.py +0 -0
  652. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/main.py +0 -0
  653. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/repository.py +0 -0
  654. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/__init__.py +0 -0
  655. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/menu.py +0 -0
  656. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/object.py +0 -0
  657. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/store.py +0 -0
  658. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/__init__.py +0 -0
  659. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/docker.py +0 -0
  660. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/__init__.py +0 -0
  661. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/animal.py +0 -0
  662. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/car_person.py +0 -0
  663. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/timestamp.py +0 -0
  664. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/topological_sort.py +0 -0
  665. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/__init__.py +0 -0
  666. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/constants.py +0 -0
  667. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exceptions.py +0 -0
  668. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/__init__.py +0 -0
  669. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/interface.py +0 -0
  670. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/json.py +0 -0
  671. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/__init__.py +0 -0
  672. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/interface.py +0 -0
  673. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/json.py +0 -0
  674. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/schema_sorter.py +0 -0
  675. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/types.py +0 -0
  676. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/uuidt.py +0 -0
  677. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/yaml.py +0 -0
  678. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/__init__.py +0 -0
  679. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/container.py +0 -0
  680. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/docker-compose.test.yml +0 -0
  681. {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/helpers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: infrahub-server
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
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
5
  Home-page: https://opsmill.com
6
6
  License: AGPL-3.0-only
@@ -20,6 +20,7 @@ Requires-Dist: asgi-correlation-id (==4.2.0)
20
20
  Requires-Dist: authlib (==1.3.2)
21
21
  Requires-Dist: bcrypt (>=4.1,<4.2)
22
22
  Requires-Dist: boto3 (==1.34.129)
23
+ Requires-Dist: dulwich (>=0.22.7,<0.23.0)
23
24
  Requires-Dist: email-validator (>=2.1,<2.2)
24
25
  Requires-Dist: fastapi (>=0.115,<0.116)
25
26
  Requires-Dist: fastapi-storages (>=0.3,<0.4)
@@ -1,11 +1,13 @@
1
- from typing import NoReturn
1
+ from __future__ import annotations
2
2
 
3
- from fastapi import APIRouter
3
+ from typing import TYPE_CHECKING, NoReturn
4
+
5
+ from fastapi import APIRouter, Depends
4
6
  from fastapi.openapi.docs import (
5
7
  get_redoc_html,
6
8
  get_swagger_ui_html,
7
9
  )
8
- from starlette.responses import HTMLResponse
10
+ from starlette.responses import HTMLResponse # noqa: TC002
9
11
 
10
12
  from infrahub.api import (
11
13
  artifact,
@@ -21,8 +23,12 @@ from infrahub.api import (
21
23
  storage,
22
24
  transformation,
23
25
  )
26
+ from infrahub.api.dependencies import get_current_user
24
27
  from infrahub.exceptions import ResourceNotFoundError
25
28
 
29
+ if TYPE_CHECKING:
30
+ from infrahub.auth import AccountSession
31
+
26
32
  router = APIRouter(prefix="/api")
27
33
 
28
34
  router.include_router(artifact.router)
@@ -40,7 +46,9 @@ router.include_router(transformation.router)
40
46
 
41
47
 
42
48
  @router.get("/docs", include_in_schema=False)
43
- async def custom_swagger_ui_html() -> HTMLResponse:
49
+ async def custom_swagger_ui_html(
50
+ _: AccountSession = Depends(get_current_user),
51
+ ) -> HTMLResponse:
44
52
  return get_swagger_ui_html(
45
53
  openapi_url="/api/openapi.json",
46
54
  title="Infrahub - Swagger UI",
@@ -50,7 +58,7 @@ async def custom_swagger_ui_html() -> HTMLResponse:
50
58
 
51
59
 
52
60
  @router.get("/redoc", include_in_schema=False)
53
- async def redoc_html() -> HTMLResponse:
61
+ async def redoc_html(_: AccountSession = Depends(get_current_user)) -> HTMLResponse:
54
62
  return get_redoc_html(
55
63
  openapi_url="/api/openapi.json",
56
64
  title="Infrahub - ReDoc",
@@ -18,6 +18,7 @@ from infrahub.permissions.constants import PermissionDecisionFlag
18
18
  from infrahub.workflows.catalogue import REQUEST_ARTIFACT_DEFINITION_GENERATE
19
19
 
20
20
  if TYPE_CHECKING:
21
+ from infrahub.auth import AccountSession
21
22
  from infrahub.permissions import PermissionManager
22
23
 
23
24
  log = get_logger()
@@ -37,7 +38,7 @@ async def get_artifact(
37
38
  artifact_id: str,
38
39
  db: InfrahubDatabase = Depends(get_db),
39
40
  branch_params: BranchParams = Depends(get_branch_params),
40
- _: str = Depends(get_current_user),
41
+ _: AccountSession = Depends(get_current_user),
41
42
  ) -> Response:
42
43
  artifact = await registry.manager.get_one(db=db, id=artifact_id, branch=branch_params.branch, at=branch_params.at)
43
44
  if not artifact:
@@ -1,3 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
1
5
  from fastapi import APIRouter, Depends, Response
2
6
 
3
7
  from infrahub import config, models
@@ -8,7 +12,9 @@ from infrahub.auth import (
8
12
  create_fresh_access_token,
9
13
  invalidate_refresh_token,
10
14
  )
11
- from infrahub.database import InfrahubDatabase
15
+
16
+ if TYPE_CHECKING:
17
+ from infrahub.database import InfrahubDatabase
12
18
 
13
19
  router = APIRouter(prefix="/auth")
14
20
 
@@ -1,13 +1,12 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from collections import defaultdict
4
- from typing import TYPE_CHECKING, Optional
4
+ from typing import TYPE_CHECKING
5
5
 
6
6
  from fastapi import APIRouter, Depends, Request
7
7
 
8
8
  from infrahub.api.dependencies import get_branch_dep, get_current_user, get_db
9
9
  from infrahub.core import registry
10
- from infrahub.core.branch import Branch # noqa: TC001
11
10
  from infrahub.core.diff.artifacts.calculator import ArtifactDiffCalculator
12
11
  from infrahub.core.diff.branch_differ import BranchDiffer
13
12
  from infrahub.core.diff.model.diff import (
@@ -15,9 +14,11 @@ from infrahub.core.diff.model.diff import (
15
14
  BranchDiffFile,
16
15
  BranchDiffRepository,
17
16
  )
18
- from infrahub.database import InfrahubDatabase # noqa: TC001
19
17
 
20
18
  if TYPE_CHECKING:
19
+ from infrahub.auth import AccountSession
20
+ from infrahub.core.branch import Branch
21
+ from infrahub.database import InfrahubDatabase
21
22
  from infrahub.services import InfrahubServices
22
23
 
23
24
 
@@ -29,17 +30,22 @@ async def get_diff_files(
29
30
  request: Request,
30
31
  db: InfrahubDatabase = Depends(get_db),
31
32
  branch: Branch = Depends(get_branch_dep),
32
- time_from: Optional[str] = None,
33
- time_to: Optional[str] = None,
33
+ time_from: str | None = None,
34
+ time_to: str | None = None,
34
35
  branch_only: bool = True,
35
- _: str = Depends(get_current_user),
36
+ _: AccountSession = Depends(get_current_user),
36
37
  ) -> dict[str, dict[str, BranchDiffRepository]]:
37
38
  response: dict[str, dict[str, BranchDiffRepository]] = defaultdict(dict)
38
39
  service: InfrahubServices = request.app.state.service
39
40
 
40
41
  # Query the Diff for all files and repository from the database
41
42
  diff = await BranchDiffer.init(
42
- db=db, branch=branch, diff_from=time_from, diff_to=time_to, branch_only=branch_only, service=service
43
+ db=db,
44
+ branch=branch,
45
+ diff_from=time_from,
46
+ diff_to=time_to,
47
+ branch_only=branch_only,
48
+ service=service,
43
49
  )
44
50
  diff_files = await diff.get_files()
45
51
 
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import TYPE_CHECKING, Optional, Union
3
+ from typing import TYPE_CHECKING
4
4
 
5
5
  from fastapi import APIRouter, Depends, Request
6
6
  from starlette.responses import PlainTextResponse
@@ -27,13 +27,13 @@ async def get_file(
27
27
  file_path: str,
28
28
  branch_params: BranchParams = Depends(get_branch_params),
29
29
  db: InfrahubDatabase = Depends(get_db),
30
- commit: Optional[str] = None,
30
+ commit: str | None = None,
31
31
  _: str = Depends(get_current_user),
32
32
  ) -> PlainTextResponse:
33
33
  """Retrieve a file from a git repository."""
34
34
  service: InfrahubServices = request.app.state.service
35
35
 
36
- repo: Union[CoreRepository, CoreReadOnlyRepository] = await NodeManager.get_one_by_id_or_default_filter(
36
+ repo: CoreRepository | CoreReadOnlyRepository = await NodeManager.get_one_by_id_or_default_filter(
37
37
  db=db,
38
38
  id=repository_id,
39
39
  kind=InfrahubKind.GENERICREPOSITORY,
@@ -1,16 +1,27 @@
1
+ from __future__ import annotations
2
+
1
3
  import re
2
- from typing import Optional
4
+ from typing import TYPE_CHECKING
3
5
 
4
6
  import ujson
5
- from fastapi import APIRouter, Request
7
+ from fastapi import APIRouter, Depends, Request
6
8
  from lunr.index import Index
7
9
  from pydantic import BaseModel
8
10
 
9
11
  from infrahub import config
10
- from infrahub.config import AnalyticsSettings, ExperimentalFeaturesSettings, LoggingSettings, MainSettings
12
+ from infrahub.api.dependencies import get_current_user
13
+ from infrahub.config import ( # noqa: TC001
14
+ AnalyticsSettings,
15
+ ExperimentalFeaturesSettings,
16
+ LoggingSettings,
17
+ MainSettings,
18
+ )
11
19
  from infrahub.core import registry
12
20
  from infrahub.exceptions import NodeNotFoundError
13
21
 
22
+ if TYPE_CHECKING:
23
+ from infrahub.auth import AccountSession
24
+
14
25
  router = APIRouter()
15
26
 
16
27
 
@@ -39,7 +50,7 @@ async def get_config() -> ConfigAPI:
39
50
 
40
51
 
41
52
  @router.get("/info")
42
- async def get_info(request: Request) -> InfoAPI:
53
+ async def get_info(request: Request, _: AccountSession = Depends(get_current_user)) -> InfoAPI:
43
54
  return InfoAPI(deployment_id=str(registry.id), version=request.app.version)
44
55
 
45
56
 
@@ -47,7 +58,7 @@ class SearchDocs:
47
58
  def __init__(self) -> None:
48
59
  self._title_documents: list[dict] = []
49
60
  self._heading_documents: list[dict] = []
50
- self._heading_index: Optional[Index] = None
61
+ self._heading_index: Index | None = None
51
62
 
52
63
  def _load_json(self) -> None:
53
64
  """
@@ -142,7 +153,9 @@ class SearchResultAPI(BaseModel):
142
153
 
143
154
 
144
155
  @router.get("/search/docs", include_in_schema=False)
145
- async def search_docs(query: str, limit: Optional[int] = None) -> list[SearchResultAPI]:
156
+ async def search_docs(
157
+ query: str, limit: int | None = None, _: AccountSession = Depends(get_current_user)
158
+ ) -> list[SearchResultAPI]:
146
159
  smart_query = smart_queries(query)
147
160
  search_results = search_docs_loader.heading_index.search(smart_query)
148
161
  heading_results = [
@@ -3,9 +3,11 @@ from __future__ import annotations
3
3
  from typing import TYPE_CHECKING
4
4
  from urllib.parse import urljoin
5
5
 
6
+ import ujson
6
7
  from authlib.integrations.httpx_client import AsyncOAuth2Client
7
8
  from fastapi import APIRouter, Depends, Request, Response
8
9
  from fastapi.responses import JSONResponse, RedirectResponse
10
+ from opentelemetry import trace
9
11
 
10
12
  from infrahub import config, models
11
13
  from infrahub.api.dependencies import get_db
@@ -20,6 +22,8 @@ if TYPE_CHECKING:
20
22
  from infrahub.database import InfrahubDatabase
21
23
  from infrahub.services import InfrahubServices
22
24
 
25
+ # pylint: disable=R0801
26
+
23
27
  log = get_logger()
24
28
  router = APIRouter(prefix="/oauth2")
25
29
 
@@ -33,11 +37,16 @@ def _get_redirect_url(request: Request, provider_name: str) -> str:
33
37
  @router.get("/{provider_name:str}/authorize")
34
38
  async def authorize(request: Request, provider_name: str, final_url: str | None = None) -> Response:
35
39
  provider = config.SETTINGS.security.get_oauth2_provider(provider=provider_name)
36
- client = AsyncOAuth2Client(
37
- client_id=provider.client_id,
38
- client_secret=provider.client_secret,
39
- scope=provider.scopes,
40
- )
40
+
41
+ with trace.get_tracer(__name__).start_as_current_span("sso_oauth2_client_configuration") as span:
42
+ span.set_attribute("provider_name", provider_name)
43
+ span.set_attribute("scopes", provider.scopes)
44
+
45
+ client = AsyncOAuth2Client(
46
+ client_id=provider.client_id,
47
+ client_secret=provider.client_secret,
48
+ scope=provider.scopes,
49
+ )
41
50
 
42
51
  redirect_uri = _get_redirect_url(request=request, provider_name=provider_name)
43
52
  final_url = final_url or config.SETTINGS.main.public_url or str(request.base_url)
@@ -88,7 +97,10 @@ async def token(
88
97
 
89
98
  token_response = await service.http.post(provider.token_url, data=token_data)
90
99
  _validate_response(response=token_response)
91
- payload = token_response.json()
100
+
101
+ with trace.get_tracer(__name__).start_as_current_span("sso_token_request") as span:
102
+ span.set_attribute("token_request_data", ujson.dumps(token_response.json()))
103
+ payload = token_response.json()
92
104
 
93
105
  headers = {"Authorization": f"{payload.get('token_type')} {payload.get('access_token')}"}
94
106
  if provider.userinfo_method == config.UserInfoMethod.GET:
@@ -102,7 +114,10 @@ async def token(
102
114
  if not sso_groups and config.SETTINGS.security.sso_user_default_group:
103
115
  sso_groups = [config.SETTINGS.security.sso_user_default_group]
104
116
 
105
- user_token = await signin_sso_account(db=db, account_name=user_info["name"], sso_groups=sso_groups)
117
+ with trace.get_tracer(__name__).start_as_current_span("signin_sso_account") as span:
118
+ span.set_attribute("account_name", ujson.dumps(userinfo_response.json()))
119
+ span.set_attribute("sso_groups", sso_groups)
120
+ user_token = await signin_sso_account(db=db, account_name=user_info["name"], sso_groups=sso_groups)
106
121
 
107
122
  response.set_cookie(
108
123
  "access_token", user_token.access_token, httponly=True, max_age=config.SETTINGS.security.access_token_lifetime
@@ -3,9 +3,11 @@ from __future__ import annotations
3
3
  from typing import TYPE_CHECKING
4
4
  from urllib.parse import urljoin
5
5
 
6
+ import ujson
6
7
  from authlib.integrations.httpx_client import AsyncOAuth2Client
7
8
  from fastapi import APIRouter, Depends, Request, Response
8
9
  from fastapi.responses import JSONResponse, RedirectResponse
10
+ from opentelemetry import trace
9
11
  from pydantic import BaseModel, HttpUrl
10
12
 
11
13
  from infrahub import config, models
@@ -21,6 +23,8 @@ if TYPE_CHECKING:
21
23
  from infrahub.database import InfrahubDatabase
22
24
  from infrahub.services import InfrahubServices
23
25
 
26
+ # pylint: disable=R0801
27
+
24
28
  log = get_logger()
25
29
  router = APIRouter(prefix="/oidc")
26
30
 
@@ -68,11 +72,16 @@ async def authorize(request: Request, provider_name: str, final_url: str | None
68
72
  _validate_response(response=response)
69
73
  oidc_config = OIDCDiscoveryConfig(**response.json())
70
74
 
71
- client = AsyncOAuth2Client(
72
- client_id=provider.client_id,
73
- client_secret=provider.client_secret,
74
- scope=provider.scopes,
75
- )
75
+ with trace.get_tracer(__name__).start_as_current_span("sso_oauth2_client_configuration") as span:
76
+ span.set_attribute("provider_name", provider_name)
77
+ span.set_attribute("scopes", provider.scopes)
78
+ span.set_attribute("discovery_url", provider.discovery_url)
79
+
80
+ client = AsyncOAuth2Client(
81
+ client_id=provider.client_id,
82
+ client_secret=provider.client_secret,
83
+ scope=provider.scopes,
84
+ )
76
85
 
77
86
  redirect_uri = _get_redirect_url(request=request, provider_name=provider_name)
78
87
  final_url = final_url or config.SETTINGS.main.public_url or str(request.base_url)
@@ -126,7 +135,10 @@ async def token(
126
135
 
127
136
  token_response = await service.http.post(str(oidc_config.token_endpoint), data=token_data)
128
137
  _validate_response(response=token_response)
129
- payload = token_response.json()
138
+
139
+ with trace.get_tracer(__name__).start_as_current_span("sso_token_request") as span:
140
+ span.set_attribute("token_request_data", ujson.dumps(token_response.json()))
141
+ payload = token_response.json()
130
142
 
131
143
  headers = {"Authorization": f"{payload.get('token_type')} {payload.get('access_token')}"}
132
144
 
@@ -138,10 +150,14 @@ async def token(
138
150
  _validate_response(response=userinfo_response)
139
151
  user_info = userinfo_response.json()
140
152
  sso_groups = user_info.get("groups", [])
153
+
141
154
  if not sso_groups and config.SETTINGS.security.sso_user_default_group:
142
155
  sso_groups = [config.SETTINGS.security.sso_user_default_group]
143
156
 
144
- user_token = await signin_sso_account(db=db, account_name=user_info["name"], sso_groups=sso_groups)
157
+ with trace.get_tracer(__name__).start_as_current_span("signin_sso_account") as span:
158
+ span.set_attribute("account_name", ujson.dumps(userinfo_response.json()))
159
+ span.set_attribute("sso_groups", sso_groups)
160
+ user_token = await signin_sso_account(db=db, account_name=user_info["name"], sso_groups=sso_groups)
145
161
 
146
162
  response.set_cookie(
147
163
  "access_token", user_token.access_token, httponly=True, max_age=config.SETTINGS.security.access_token_lifetime
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import TYPE_CHECKING, Any, Optional, Union
3
+ from typing import TYPE_CHECKING, Any, Sequence
4
4
 
5
5
  from fastapi import APIRouter, Depends, Query, Request
6
6
  from pydantic import (
@@ -72,17 +72,17 @@ class APISchemaMixin:
72
72
 
73
73
 
74
74
  class APINodeSchema(NodeSchema, APISchemaMixin):
75
- api_kind: Optional[str] = Field(default=None, alias="kind", validate_default=True)
75
+ api_kind: str | None = Field(default=None, alias="kind", validate_default=True)
76
76
  hash: str
77
77
 
78
78
 
79
79
  class APIGenericSchema(GenericSchema, APISchemaMixin):
80
- api_kind: Optional[str] = Field(default=None, alias="kind", validate_default=True)
80
+ api_kind: str | None = Field(default=None, alias="kind", validate_default=True)
81
81
  hash: str
82
82
 
83
83
 
84
84
  class APIProfileSchema(ProfileSchema, APISchemaMixin):
85
- api_kind: Optional[str] = Field(default=None, alias="kind", validate_default=True)
85
+ api_kind: str | None = Field(default=None, alias="kind", validate_default=True)
86
86
  hash: str
87
87
 
88
88
 
@@ -103,16 +103,16 @@ class SchemasLoadAPI(BaseModel):
103
103
 
104
104
 
105
105
  class JSONSchema(BaseModel):
106
- title: Optional[str] = Field(None, description="Title of the schema")
107
- description: Optional[str] = Field(None, description="Description of the schema")
106
+ title: str | None = Field(None, description="Title of the schema")
107
+ description: str | None = Field(None, description="Description of the schema")
108
108
  type: str = Field(..., description="Type of the schema element (e.g., 'object', 'array', 'string')")
109
- properties: Optional[dict[str, Any]] = Field(None, description="Properties of the object if type is 'object'")
110
- items: Optional[Union[dict[str, Any], list[dict[str, Any]]]] = Field(
109
+ properties: dict[str, Any] | None = Field(None, description="Properties of the object if type is 'object'")
110
+ items: dict[str, Any] | list[dict[str, Any]] | None = Field(
111
111
  None, description="Items of the array if type is 'array'"
112
112
  )
113
- required: Optional[list[str]] = Field(None, description="List of required properties if type is 'object'")
114
- schema_spec: Optional[str] = Field(None, alias="$schema", description="Schema version identifier")
115
- additional_properties: Optional[Union[bool, dict[str, Any]]] = Field(
113
+ required: list[str] | None = Field(None, description="List of required properties if type is 'object'")
114
+ schema_spec: str | None = Field(None, alias="$schema", description="Schema version identifier")
115
+ additional_properties: bool | dict[str, Any] | None = Field(
116
116
  None, description="Specifies whether additional properties are allowed", alias="additionalProperties"
117
117
  )
118
118
 
@@ -128,13 +128,26 @@ class SchemaUpdate(BaseModel):
128
128
  return self.hash != self.previous_hash
129
129
 
130
130
 
131
+ def _merge_candidate_schemas(schemas: Sequence[SchemaRoot]) -> SchemaRoot:
132
+ """Merge multiple schemas into one suitable to be loaded."""
133
+ if not schemas:
134
+ raise ValueError("Cannot merge an empty list of schemas")
135
+
136
+ merged = schemas[0]
137
+ for schema in schemas[1:]:
138
+ merged = merged.merge(schema=schema)
139
+
140
+ return merged
141
+
142
+
131
143
  def evaluate_candidate_schemas(
132
144
  branch_schema: SchemaBranch, schemas_to_evaluate: SchemasLoadAPI
133
145
  ) -> tuple[SchemaBranch, SchemaUpdateValidationResult]:
134
146
  candidate_schema = branch_schema.duplicate()
147
+ schema = _merge_candidate_schemas(schemas=schemas_to_evaluate.schemas)
148
+
135
149
  try:
136
- for schema in schemas_to_evaluate.schemas:
137
- candidate_schema.load_schema(schema=schema)
150
+ candidate_schema.load_schema(schema=schema)
138
151
  candidate_schema.process()
139
152
 
140
153
  schema_diff = branch_schema.diff(other=candidate_schema)
@@ -152,7 +165,9 @@ def evaluate_candidate_schemas(
152
165
 
153
166
  @router.get("")
154
167
  async def get_schema(
155
- branch: Branch = Depends(get_branch_dep), namespaces: Union[list[str], None] = Query(default=None)
168
+ branch: Branch = Depends(get_branch_dep),
169
+ namespaces: list[str] | None = Query(default=None),
170
+ _: AccountSession = Depends(get_current_user),
156
171
  ) -> SchemaReadAPI:
157
172
  log.debug("schema_request", branch=branch.name)
158
173
  schema_branch = registry.schema.get_schema_branch(name=branch.name)
@@ -180,7 +195,9 @@ async def get_schema(
180
195
 
181
196
 
182
197
  @router.get("/summary")
183
- async def get_schema_summary(branch: Branch = Depends(get_branch_dep)) -> SchemaBranchHash:
198
+ async def get_schema_summary(
199
+ branch: Branch = Depends(get_branch_dep), _: AccountSession = Depends(get_current_user)
200
+ ) -> SchemaBranchHash:
184
201
  log.debug("schema_summary_request", branch=branch.name)
185
202
  schema_branch = registry.schema.get_schema_branch(name=branch.name)
186
203
  return schema_branch.get_hash_full()
@@ -188,13 +205,13 @@ async def get_schema_summary(branch: Branch = Depends(get_branch_dep)) -> Schema
188
205
 
189
206
  @router.get("/{schema_kind}")
190
207
  async def get_schema_by_kind(
191
- schema_kind: str, branch: Branch = Depends(get_branch_dep)
192
- ) -> Union[APIProfileSchema, APINodeSchema, APIGenericSchema]:
208
+ schema_kind: str, branch: Branch = Depends(get_branch_dep), _: AccountSession = Depends(get_current_user)
209
+ ) -> APIProfileSchema | APINodeSchema | APIGenericSchema:
193
210
  log.debug("schema_kind_request", branch=branch.name)
194
211
 
195
212
  schema = registry.schema.get(name=schema_kind, branch=branch, duplicate=False)
196
213
 
197
- api_schema: dict[str, type[Union[APIProfileSchema, APINodeSchema, APIGenericSchema]]] = {
214
+ api_schema: dict[str, type[APIProfileSchema | APINodeSchema | APIGenericSchema]] = {
198
215
  "profile": APIProfileSchema,
199
216
  "node": APINodeSchema,
200
217
  "generic": APIGenericSchema,
@@ -212,7 +229,9 @@ async def get_schema_by_kind(
212
229
 
213
230
 
214
231
  @router.get("/json_schema/{schema_kind}")
215
- async def get_json_schema_by_kind(schema_kind: str, branch: Branch = Depends(get_branch_dep)) -> JSONSchema:
232
+ async def get_json_schema_by_kind(
233
+ schema_kind: str, branch: Branch = Depends(get_branch_dep), _: AccountSession = Depends(get_current_user)
234
+ ) -> JSONSchema:
216
235
  log.debug("json_schema_kind_request", branch=branch.name)
217
236
 
218
237
  fields: dict[str, Any] = {}
@@ -368,7 +387,7 @@ async def check_schema(
368
387
  request: Request,
369
388
  schemas: SchemasLoadAPI,
370
389
  branch: Branch = Depends(get_branch_dep),
371
- _: Any = Depends(get_current_user),
390
+ _: AccountSession = Depends(get_current_user),
372
391
  ) -> JSONResponse:
373
392
  service: InfrahubServices = request.app.state.service
374
393
  log.info("schema_check_request", branch=branch.name)
@@ -1,4 +1,7 @@
1
+ from __future__ import annotations
2
+
1
3
  import hashlib
4
+ from typing import TYPE_CHECKING
2
5
 
3
6
  from fastapi import APIRouter, Depends, File, Response, UploadFile
4
7
  from infrahub_sdk.uuidt import UUIDT
@@ -8,6 +11,9 @@ from infrahub.api.dependencies import get_current_user
8
11
  from infrahub.core import registry
9
12
  from infrahub.log import get_logger
10
13
 
14
+ if TYPE_CHECKING:
15
+ from infrahub.auth import AccountSession
16
+
11
17
  log = get_logger()
12
18
  router = APIRouter(prefix="/storage")
13
19
 
@@ -22,10 +28,7 @@ class UploadContentPayload(BaseModel):
22
28
 
23
29
 
24
30
  @router.get("/object/{identifier:str}")
25
- def get_file(
26
- identifier: str,
27
- _: str = Depends(get_current_user),
28
- ) -> Response:
31
+ def get_file(identifier: str, _: AccountSession = Depends(get_current_user)) -> Response:
29
32
  content = registry.storage.retrieve(identifier=identifier)
30
33
  return Response(content=content)
31
34
 
@@ -48,10 +51,7 @@ def upload_content(
48
51
 
49
52
 
50
53
  @router.post("/upload/file")
51
- def upload_file(
52
- file: UploadFile = File(...),
53
- _: str = Depends(get_current_user),
54
- ) -> UploadResponse:
54
+ def upload_file(file: UploadFile = File(...), _: AccountSession = Depends(get_current_user)) -> UploadResponse:
55
55
  # TODO need to optimized how we read the content of the file, especially if the file is really large
56
56
  # Check this discussion for more details
57
57
  # https://stackoverflow.com/questions/63048825/how-to-upload-file-using-fastapi
@@ -27,6 +27,7 @@ from infrahub.transformations.models import TransformJinjaTemplateData, Transfor
27
27
  from infrahub.workflows.catalogue import TRANSFORM_JINJA2_RENDER, TRANSFORM_PYTHON_RENDER
28
28
 
29
29
  if TYPE_CHECKING:
30
+ from infrahub.auth import AccountSession
30
31
  from infrahub.services import InfrahubServices
31
32
 
32
33
  router = APIRouter()
@@ -38,7 +39,7 @@ async def transform_python(
38
39
  transform_id: str,
39
40
  db: InfrahubDatabase = Depends(get_db),
40
41
  branch_params: BranchParams = Depends(get_branch_params),
41
- _: str = Depends(get_current_user),
42
+ _: AccountSession = Depends(get_current_user),
42
43
  ) -> JSONResponse:
43
44
  params = {key: value for key, value in request.query_params.items() if key not in ["branch", "at"]}
44
45
 
@@ -97,7 +98,7 @@ async def transform_jinja2(
97
98
  transform_id: str = Path(description="ID or Name of the Jinja2 Transform to render"),
98
99
  db: InfrahubDatabase = Depends(get_db),
99
100
  branch_params: BranchParams = Depends(get_branch_params),
100
- _: str = Depends(get_current_user),
101
+ _: AccountSession = Depends(get_current_user),
101
102
  ) -> PlainTextResponse:
102
103
  params = {key: value for key, value in request.query_params.items() if key not in ["branch", "at"]}
103
104
 
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import uuid
4
4
  from datetime import datetime, timedelta, timezone
5
5
  from enum import Enum
6
- from typing import TYPE_CHECKING, Callable
6
+ from typing import TYPE_CHECKING
7
7
 
8
8
  import bcrypt
9
9
  import jwt
@@ -233,29 +233,6 @@ async def validate_api_key(db: InfrahubDatabase, token: str) -> AccountSession:
233
233
  return AccountSession(account_id=account_id, auth_type=AuthType.API)
234
234
 
235
235
 
236
- def _validate_update_account(account_session: AccountSession, node_id: str, fields: list[str]) -> None:
237
- if account_session.account_id != node_id:
238
- # A regular account is not allowed to modify another account
239
- raise PermissionError("You are not allowed to modify this account")
240
-
241
- allowed_fields = ["description", "label", "password"]
242
- for field in fields:
243
- if field not in allowed_fields:
244
- raise PermissionError(f"You are not allowed to modify '{field}'")
245
-
246
-
247
- def validate_mutation_permissions_update_node(
248
- operation: str, node_id: str, account_session: AccountSession, fields: list[str]
249
- ) -> None:
250
- validation_map: dict[str, Callable[[AccountSession, str, list[str]], None]] = {
251
- f"{InfrahubKind.ACCOUNT}Update": _validate_update_account,
252
- f"{InfrahubKind.ACCOUNT}Upsert": _validate_update_account,
253
- }
254
-
255
- if validator := validation_map.get(operation):
256
- validator(account_session, node_id, fields)
257
-
258
-
259
236
  async def invalidate_refresh_token(db: InfrahubDatabase, token_id: str) -> None:
260
237
  refresh_token = await NodeManager.get_one(id=token_id, db=db)
261
238
  if refresh_token:
@@ -20,7 +20,7 @@ app = typer.Typer(name="Infrahub CLI", pretty_exceptions_enable=False)
20
20
  @app.callback()
21
21
  def common(ctx: typer.Context) -> None:
22
22
  """Infrahub CLI"""
23
- ctx.obj = CliContext(database_class=InfrahubDatabase)
23
+ ctx.obj = CliContext()
24
24
 
25
25
 
26
26
  app.add_typer(server_app, name="server")
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+
5
+ from infrahub.database import InfrahubDatabase, get_db
6
+
7
+
8
+ @dataclass
9
+ class CliContext:
10
+ application: str = "infrahub.server:app"
11
+
12
+ # This method is inherited for Infrahub Enterprise.
13
+ @staticmethod
14
+ async def init_db(retry: int) -> InfrahubDatabase:
15
+ return InfrahubDatabase(driver=await get_db(retry=retry))