Commit 5024cc3
Use
<!-- The PR description should answer 2 important questions: -->
### What
Part of implementing [authorization
rules](#10237).
This pull request introduces the internals to allow type permissions to
be defined with allow / deny fields and `Condition`s that match on
session variables and literal values.
We resolve into the new auth types and use them internally for all
execution. We keep the old ones as they are used by `graphql` and
`jsonapi` schema generation.
There is no way to create clever permissions yet, these will follow.
V3_GIT_ORIGIN_REV_ID: 6212eb1cf1d94b13e24f42c6ede60ce5a1b02e58Condition internally for permissions (#1954)1 parent ff08e4d commit 5024cc3
File tree
109 files changed
+4240
-1168
lines changed- v3
- crates
- auth
- authorization-rules
- src
- hasura-authn-core/src
- graphql
- ir/src
- plan
- schema/src
- types
- jsonapi/src/catalog
- metadata-resolve
- src
- stages
- object_relationships
- roles
- type_permissions
- types
- tests/passing
- aggregate_boolean_expressions
- object
- missing_graphqlconfig_aggregate_warning
- missing_graphqlconfig_logical_operators_warning
- partial_supergraph
- simple
- scalar
- missing_graphqlconfig_aggregate_warning
- missing_graphqlconfig_logical_operators_warning
- simple
- aggregate_expressions
- missing_aggregate_graphql_config
- missing_filter_input_field_name_in_graphql_config
- nested_recursive_object
- relationship
- root_field
- warning_for_model_filter_input_type_without_aggregate_expression
- boolean_expression_type
- basic_with_scalar_logical_operators
- basic
- conflicting_names_warnings
- nested_object
- nested_recursive_object
- nested_scalar_array
- no_graphql
- partial_supergraph
- range
- regression
- relationship_with_model_argument_mapping_target
- scalar_validation_issues
- string_operator_issues
- two_data_sources
- command_permissions
- input_type_permissions
- nullable_predicate_args_can_be_preset
- predicate_args_can_be_preset
- commands
- functions
- all_args_are_set_including_connector_link_presets
- issue_when_not_all_arguments_defined
- issue_when_types_not_compatible_in_argument_mapping
- procedures
- all_args_are_set_including_connector_link_presets
- issue_when_not_all_arguments_defined
- issue_when_relationship_is_defined
- issue_when_types_not_compatible_in_argument_mapping
- conflicting_type_names_warnings
- scalar_and_boolean_exp
- scalar_and_object
- data_connector_link/invalid_ndc_v01_capabilities_version_passing_with_issue
- glossary
- with_warnings
- missing_subgraph_when_ignoring_unknown_subgraphs
- model_permissions
- nullable_predicate_args_can_be_preset
- predicate_args_can_be_preset
- models
- all_args_are_set_including_connector_link_presets
- issue_when_not_all_arguments_defined
- issue_when_types_not_compatible_in_argument_mapping
- object_types
- recursive_types_issues
- type_mapping_field_type_issues
- with_boolean_expression_inside
- order_by_expressions
- conflicting_names_warnings
- model_v1_upgrade
- model_v2_no_order_by
- model_v2_with_order_by
- nested_recursive_object
- nested
- relationships
- model_argument_target_type_nullable
- model_argument_target_type
- scalar_types/scalar_extraction_function_duplicated
- simple
- subgraph_valid_name
- supergraph
- config_object_in_subgraph
- missing
- no_subgraphs
- present
- open-dds
- src
- plan-types/src
- execution_plan
- plan
- src
- query
- utils/all-or-list/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
109 files changed
+4240
-1168
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments