Skip to content

Commit

Permalink
feat(policy object selectors): adds initial selector protos, moves po…
Browse files Browse the repository at this point in the history
…licy object type messages to top-level to avoid circular imports, and provides subject mappings in response to GetAttributeValuesByFqns (#372)

* WIP

* move policy object types into top level proto file within policy to avoid circular import issues when adding selection potential to rebuild the tree when getting/listing

* remove unused import

* consume gencode from proto types being moved

* rebuild after removing extraneous proto imports

* spacing

* rename to objects.proto

* add value selector to get by fqns request

* add selector to fqns protos and clean up naming

* consume new types with the selector for the FQNs request and make it required in the proto

* checkpoint with FromSelect consuming the subjectMappings select builder and being overwritten

* make sure Value proto supports multiple subject mappings

* provide subject mappings back with the values in the get by fqns rpc

* remove unused import

* checkpoint: returning subject mappings and values only that match the FQN, not remaining values _without_ subject mappings, which is desired behavior

* improve tests

* supply subject mappings when getting values/attributes by fqn

* dedupe subject mappings

* remove TODO
  • Loading branch information
tech-guru42 committed Mar 12, 2024
1 parent 250af28 commit 5d90ffd
Show file tree
Hide file tree
Showing 172 changed files with 20,987 additions and 12,348 deletions.
4,681 changes: 2,520 additions & 2,161 deletions docs/grpc/index.html

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions docs/openapi/authorization/authorization.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,14 @@
],
"default": "DECISION_UNSPECIFIED"
},
"authorizationAction": {
"type": "object",
"properties": {
"standard": {
"$ref": "#/definitions/ActionStandardAction"
},
"custom": {
"type": "string"
}
},
"title": "An action an entity can take"
},
"authorizationDecisionRequest": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/authorizationAction"
"$ref": "#/definitions/policyAction"
}
},
"entityChains": {
Expand Down Expand Up @@ -145,7 +133,7 @@
"title": "ephemeral resource attributes id from the request"
},
"action": {
"$ref": "#/definitions/authorizationAction",
"$ref": "#/definitions/policyAction",
"title": "Action of the decision response"
},
"decision": {
Expand Down Expand Up @@ -269,6 +257,18 @@
},
"title": "A logical bucket of attributes belonging to a \"Resource\""
},
"policyAction": {
"type": "object",
"properties": {
"standard": {
"$ref": "#/definitions/ActionStandardAction"
},
"custom": {
"type": "string"
}
},
"title": "An action an entity can take"
},
"protobufAny": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 5d90ffd

Please sign in to comment.