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.
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/PKG-INFO +2 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/__init__.py +13 -5
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/artifact.py +2 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/auth.py +7 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/diff.py +13 -7
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/file.py +3 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/internal.py +19 -6
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/oauth2.py +22 -7
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/oidc.py +23 -7
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/schema.py +39 -20
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/storage.py +8 -8
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/transformation.py +3 -2
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/auth.py +1 -24
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/__init__.py +1 -1
- infrahub_server-1.1.4/backend/infrahub/cli/context.py +15 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/db.py +6 -6
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/git_agent.py +1 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/config.py +1 -2
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/attribute.py +22 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/__init__.py +5 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/calculator.py +14 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/combiner.py +5 -2
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflicts_enricher.py +2 -2
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/coordinator.py +11 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/cardinality_one.py +3 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/hierarchy.py +2 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/merger.py +10 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/serializer.py +5 -29
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/path.py +3 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query_parser.py +26 -11
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/repository.py +4 -4
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/utilization.py +6 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/merge.py +5 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/attribute_add.py +5 -5
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/diff.py +32 -19
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/ipam.py +30 -22
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/node.py +4 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/__init__.py +5 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/kind.py +1 -1
- infrahub_server-1.1.4/backend/infrahub/core/validators/models/violation.py +9 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/tasks.py +4 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/aggregated.py +2 -0
- infrahub_server-1.1.4/backend/infrahub/dependencies/builder/constraint/schema/attribute_kind.py +8 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/endpoints.py +12 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/account.py +4 -4
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/main.py +5 -16
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/resource_manager.py +3 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/resource_manager.py +21 -10
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/task.py +5 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/pyproject.toml +7 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/analyzer.py +1 -1
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/checks.py +4 -4
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/client.py +26 -16
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/generator.py +3 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/node.py +2 -2
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/base.py +0 -5
- infrahub_server-1.1.4/python_sdk/infrahub_sdk/repository.py +33 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/repository.py +14 -8
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transforms.py +3 -3
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/utils.py +8 -3
- infrahub_server-1.1.2/backend/infrahub/cli/context.py +0 -18
- infrahub_server-1.1.2/backend/infrahub/core/validators/models/violation.py +0 -22
- infrahub_server-1.1.2/python_sdk/infrahub_sdk/task_report.py +0 -208
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/LICENSE.txt +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/README.md +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/dependencies.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/diff/validation_models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/exception_handlers.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/menu.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/redoc.standalone.js +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/swagger-ui-bundle.js +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/api/static/swagger-ui.css +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/events.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/server.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/cli/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/components.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/computed_attribute/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/account.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/flow_models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/branch/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/database.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/infrahubkind.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/relationship_label.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constants/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/node/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/constraint/node/runner.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/artifacts/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/artifacts/calculator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/branch_differ.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflict_transferer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/conflicts_extractor.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/data_check_synchronizer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/aggregated.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/labels.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/path_identifier.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/enricher/summary_counts.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/ipam_diff_parser.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/merger/model.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/model/diff.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/payload_builder.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/artifact.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/delete_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/diff_get.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/diff_summary.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/drop_tracking_id.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/field_specifiers.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/field_summary.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/filters.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/get_conflict_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/has_conflicts_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/merge.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/roots_metadata.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/save.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/time_range_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/query/update_conflict_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/repository/deserializer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/diff/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/enums.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/constraints.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/index.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/graph/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/initialization.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/object_conflict/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/integrity/object_conflict/conflict_recorder.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/kinds_getter.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/model.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/reconciler.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/size.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/ipam/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m001_add_version_to_graph.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m002_attribute_is_default.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m003_relationship_parent_optional.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m004_add_attr_documentation.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m005_add_rel_read_only.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m006_add_rel_on_delete.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m007_add_rel_allow_override.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m008_add_human_friendly_id.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m009_add_generate_profile_attr.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m010_add_generate_profile_attr_generic.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m011_remove_profile_relationship_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m012_convert_account_generic.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m013_convert_git_password_credential.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m014_remove_index_attr_value.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m015_diff_format_update.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m016_diff_delete_bug_fix.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m017_add_core_profile.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/graph/m018_uniqueness_nulls.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/attribute_rename.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/delete_element_in_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/node_duplicate.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/relationship_duplicate.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/query/schema_attribute_update.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/attribute_name_update.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_attribute_add.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_attribute_remove.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_kind_update.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/node_remove.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/placeholder_dummy.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/schema/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/migrations/shared.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/base.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/attribute_uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/grouped_uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/constraints/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/delete_validator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/ipam.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/permissions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/ip_address_pool.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/ip_prefix_pool.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/resource_manager/number_pool.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/node/standard.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/path.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/property.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/protocols.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/protocols_base.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/delete.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/resource_manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/standard_node.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/subquery.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/task.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/task_log.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/query/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/registry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/count.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/peer_kind.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/constraints/profiles_kind.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/relationship/model.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/root.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/attribute_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/basenode_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/computed_attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/core.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/deprecated.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/definitions/internal.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/dropdown.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/attribute_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/base_node_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/genericnode_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/node_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generated/relationship_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/generic_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/node_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/profile_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/relationship_schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/schema_branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/schema/schema_branch_computed.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/task.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/task_log.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/task/user_task.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/timestamp.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/aggregated_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/choices.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/enum.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/length.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/optional.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/regex.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/attribute/unique.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/determiner.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/model.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/models/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/models/validate_migration.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/generate_profile.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/hierarchy.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/inherit_from.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/node/relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/count.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/optional.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/relationship/peer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/shared.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/index.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/model.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/core/validators/uniqueness/query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/index.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/memgraph.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/metrics.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/database/neo4j.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/grouped/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/grouped/node_runner.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/grouped_uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/node/uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/count.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/peer_kind.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/relationship_manager/profiles_kind.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_choices.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_enum.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_length.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_optional.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_regex.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/attribute_uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/generate_profile.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/inherit_from.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/node_attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/node_relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/relationship_count.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/relationship_optional.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/constraint/schema/uniqueness.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/calculator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/combiner.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflict_transferer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflicts_enricher.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/conflicts_extractor.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/coordinator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/data_check_conflict_recorder.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/data_check_synchronizer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/deserializer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/diff_merger.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/aggregated.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/cardinality_one.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/hierarchy.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/labels.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/path_identifier.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/enricher/summary_counts.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/ipam_diff_parser.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/diff/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/ip/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/ip/kinds_getter.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/node/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/builder/node/delete_validator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/component/registry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/dependencies/registry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/branch_action.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/node_action.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/repository_action.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/events/schema_action.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/generators/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/base.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/directory.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/integrator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git/worktree.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/askpass.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/git_credential/helper.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/analyzer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/api/dependencies.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/app.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/anonymous_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/default_branch_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/merge_operation_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/object_permission_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/auth/query_permission_checker/super_admin_checker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/directives.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/enums.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/initialization.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/loaders/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/loaders/node.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/metrics.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/artifact_definition.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/computed_attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/diff.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/diff_conflict.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/graphql_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/ipam.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/menu.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_default_filter.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_hfid.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/by_id.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/node_getter/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/proposed_change.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/mutations/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/parser.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/permissions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/account.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/diff/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/diff/tree.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/internal.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/ipam.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/search.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/status.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/queries/task.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/resolver.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/resolvers/single_relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/events.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/subscription/graphql_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/attribute.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/common.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/enums.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/node.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/permission.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/relationship.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/standard_node.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/task.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/types/task_log.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/graphql/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/groups/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/helpers.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/lock.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/log.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/generator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/menu.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/menu/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_artifact_create.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_generator_run.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_checkdefinition.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_mergeconflicts.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/check_repository_usercheck.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_create.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_delete.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_merge.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_branch_rebased.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_node_mutated.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_schema_update.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/event_worker_newprimaryapi.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/finalize_validator_execution.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/git_file_get.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/git_repository_connectivity.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/base_with_diff.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/proposed_change/request_proposedchange_refreshartifacts.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_git_fetch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_registry_branches.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/refresh_registry_rebasedbranch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_artifactdefinition_check.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_generatordefinition_check.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_proposedchange_pipeline.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_repository_checks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/request_repository_userchecks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/messages/send_echo_request.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/artifact.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/generator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/check/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/node.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/event/worker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/finalize/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/finalize/validator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/file.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/git/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/refresh/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/refresh/registry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/artifact_definition.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/generator_definition.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/proposed_change.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/requests/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/send/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/operations/send/echo.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/message_bus/types.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/middleware.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/backend.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/local_backend.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/manager.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/report.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/permissions/types.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/address.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/number.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pools/prefix.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/proposed_change/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/pytest_plugin.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/schema/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/gunicorn_config.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/log.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/serve/worker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/server.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/nats.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/cache/redis.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/database/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/event/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/http/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/http/httpx.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/local.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/nats.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/message_bus/rabbitmq.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/local.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/adapters/workflow/worker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/component.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/protocols.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/services/scheduler.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/storage.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/support/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/support/macro.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/task_manager/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/artifact.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/check.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/dummy.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/keepalive.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/recurring.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/registry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/tasks/telemetry.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/trace.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/transformations/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/types.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/visuals.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/webhook/tasks.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/worker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workers/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workers/infrahub_async.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/catalogue.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/initialization.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/backend/infrahub/workflows/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/_importer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/async_typer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/batch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/code_generator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/config.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/_file.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/branch.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/check.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/cli.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/cli_commands.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/client.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/config.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/exporter.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/generator.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/importer.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/menu.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/object.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/parameters.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/render.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/schema.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/transform.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/ctl/validate.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/data.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/diff.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/graphql.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/groups.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/jinja2.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/object_store.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/playback.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/protocols.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/protocols_base.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/check.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/graphql_query.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/jinja2_transform.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/items/python_transform.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/loader.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/models.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/plugin.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/pytest_plugin/utils.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/queries.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/query_groups.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/recorder.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/main.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/schema/repository.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/menu.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/spec/object.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/store.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/docker.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/animal.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/testing/schemas/car_person.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/timestamp.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/topological_sort.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/constants.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exceptions.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/exporter/json.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/interface.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/importer/json.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/transfer/schema_sorter.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/types.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/uuidt.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_sdk/infrahub_sdk/yaml.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/__init__.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/container.py +0 -0
- {infrahub_server-1.1.2 → infrahub_server-1.1.4}/python_testcontainers/infrahub_testcontainers/docker-compose.test.yml +0 -0
- {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.
|
|
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
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
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(
|
|
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
|
-
_:
|
|
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
|
-
|
|
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
|
|
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:
|
|
33
|
-
time_to:
|
|
33
|
+
time_from: str | None = None,
|
|
34
|
+
time_to: str | None = None,
|
|
34
35
|
branch_only: bool = True,
|
|
35
|
-
_:
|
|
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,
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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.
|
|
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:
|
|
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(
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
107
|
-
description:
|
|
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:
|
|
110
|
-
items:
|
|
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:
|
|
114
|
-
schema_spec:
|
|
115
|
-
additional_properties:
|
|
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
|
-
|
|
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),
|
|
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(
|
|
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
|
-
) ->
|
|
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[
|
|
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(
|
|
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
|
-
_:
|
|
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
|
-
_:
|
|
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
|
-
_:
|
|
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
|
|
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(
|
|
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))
|