Skip to content

Commit

Permalink
chore(deps): bump go.einride.tech/sage from 0.282.0 to 0.291.0 in /.sage
Browse files Browse the repository at this point in the history
Bumps [go.einride.tech/sage](https://github.com/einride/sage) from 0.282.0 to 0.291.0.
- [Release notes](https://github.com/einride/sage/releases)
- [Commits](einride/sage@v0.282.0...v0.291.0)

---
updated-dependencies:
- dependency-name: go.einride.tech/sage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and alethenorio committed Jul 10, 2024
1 parent 5c67054 commit 0f9f5a3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .sage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module sage

go 1.17

require go.einride.tech/sage v0.282.0
require go.einride.tech/sage v0.291.0
4 changes: 2 additions & 2 deletions .sage/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
go.einride.tech/sage v0.282.0 h1:HZiO/GNtryFydEtib30zakayzeyIHqNVDny66WqGDuo=
go.einride.tech/sage v0.282.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.291.0 h1:3/t6/jVe5SDMpDeKywRAkfmJMqdvW6wiNOYty+iTiJ0=
go.einride.tech/sage v0.291.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
73 changes: 37 additions & 36 deletions proto/einride/iam/example/v1/freight_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ service FreightService {
option (google.api.method_signature) = "name";
option (einride.iam.v1.method_authorization) = {
permission: "freight.shippers.get"
before {
before: {
expression: "test(caller, request.name)"
description: "The caller must have permission to get the shipper."
}
Expand All @@ -60,7 +60,7 @@ service FreightService {
option (google.api.http) = {get: "/v1/shippers"};
option (einride.iam.v1.method_authorization) = {
permission: "freight.shippers.list"
before {
before: {
expression: "test(caller, '/')"
description: "The caller must have permission to list all shippers."
}
Expand Down Expand Up @@ -236,7 +236,7 @@ service FreightService {
option (google.api.method_signature) = "name";
option (einride.iam.v1.method_authorization) = {
permission: "freight.shipments.get"
after {
after: {
expression: "test_any(caller, [request.name, response.origin_site, response.destination_site])"
description:
"The caller must have permission to get the shipment"
Expand Down Expand Up @@ -270,7 +270,7 @@ service FreightService {
option (google.api.method_signature) = "parent,shipment,shipment_id";
option (einride.iam.v1.method_authorization) = {
permission: "freight.shipments.create"
before {
before: {
expression: "test_any(caller, [request.parent, request.shipment.origin_site, request.shipment.destination_site])"
description:
"The caller must have permission to create shipments under the parent shipper"
Expand Down Expand Up @@ -303,7 +303,7 @@ service FreightService {
option (google.api.method_signature) = "name";
option (einride.iam.v1.method_authorization) = {
permission: "freight.shipments.delete"
before {
before: {
expression: "test(caller, request.name)"
description: "The caller must have permission to delete the shipment."
}
Expand All @@ -328,8 +328,8 @@ service FreightService {
}

option (einride.iam.v1.long_running_operations_authorization) = {
operation_permissions {
operation {type: "iam-example.einride.tech/ShipperOperation"}
operation_permissions: {
operation: {type: "iam-example.einride.tech/ShipperOperation"}
list: "freight.shipperOperations.list"
get: "freight.shipperOperations.get"
cancel: "freight.shipperOperations.cancel"
Expand All @@ -340,13 +340,13 @@ service FreightService {
};

option (einride.iam.v1.predefined_roles) = {
role {
role: {
name: "roles/freight.admin"
title: "Freight Admin"
description: "Full admin permissions to freight."
included_permissions: "freight.*"
}
role {
role: {
name: "roles/freight.editor"
title: "Freight Editor"
description: "Edit permissions to freight."
Expand All @@ -363,7 +363,7 @@ service FreightService {
included_permissions: "freight.shipments.update"
included_permissions: "freight.shipments.delete"
}
role {
role: {
name: "roles/freight.viewer"
title: "Freight Viewer"
description: "View permissions to freight."
Expand All @@ -377,40 +377,41 @@ service FreightService {
};

// Sets the access control policy on the specified shipper, site or shipment.
// (-- api-linter: core::0136::response-message-name=disabled --)
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
option (google.api.http) = {
post: "/v1/{resource=shippers/*}:setIamPolicy"
body: "*"
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/sites/*}:setIamPolicy"
body: "*"
}
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/shipments/*}:setIamPolicy"
body: "*"
}
};
option (google.api.method_signature) = "resource,policy";
option (einride.iam.v1.method_authorization) = {
resource_permissions {
resource_permission {
resource {type: "/"}
resource_permissions: {
resource_permission: {
resource: {type: "/"}
permission: "freight.root.setIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Shipper"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Shipper"}
permission: "freight.shippers.setIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Site"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Site"}
permission: "freight.sites.setIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Shipment"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Shipment"}
permission: "freight.shipments.setIamPolicy"
}
}
before {
before: {
expression: "test(caller, request.resource)"
description: "The caller must have permission to get the resource's IAM policy."
}
Expand All @@ -425,36 +426,36 @@ service FreightService {
option (google.api.http) = {
post: "/v1/{resource=shippers/*}:getIamPolicy"
body: "*"
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/sites/*}:getIamPolicy"
body: "*"
}
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/shipments/*}:getIamPolicy"
body: "*"
}
};
option (google.api.method_signature) = "resource";
option (einride.iam.v1.method_authorization) = {
resource_permissions {
resource_permission {
resource {type: "/"}
resource_permissions: {
resource_permission: {
resource: {type: "/"}
permission: "freight.root.getIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Shipper"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Shipper"}
permission: "freight.shippers.getIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Site"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Site"}
permission: "freight.sites.getIamPolicy"
}
resource_permission {
resource {type: "iam-example.einride.tech/Shipment"}
resource_permission: {
resource: {type: "iam-example.einride.tech/Shipment"}
permission: "freight.shipments.getIamPolicy"
}
}
before {
before: {
expression: "test(caller, request.resource)"
description: "The caller must have permission to get the resource's IAM policy."
}
Expand All @@ -471,11 +472,11 @@ service FreightService {
option (google.api.http) = {
post: "/v1/{resource=shippers/*}:testIamPermissions"
body: "*"
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/sites/*}:testIamPermissions"
body: "*"
}
additional_bindings {
additional_bindings: {
post: "/v1/{resource=shippers/*/shipments/*}:testIamPermissions"
body: "*"
}
Expand Down
2 changes: 2 additions & 0 deletions proto/gen/einride/iam/example/v1/freight_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f9f5a3

Please sign in to comment.