Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update dependency google.protobuf to v3.27.2 #141

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: v1
version: v2
managed:
enabled: false
plugins:
- plugin: buf.build/protocolbuffers/csharp:v23.1
- remote: buf.build/protocolbuffers/csharp:v27.2
opt:
- base_namespace=
- file_extension=.g.cs
out: ./src/Sdk

- plugin: buf.build/grpc/csharp:v1.55.0
- remote: buf.build/grpc/csharp:v1.65.0
out: ./src/Sdk
23 changes: 0 additions & 23 deletions buf.lock

This file was deleted.

5 changes: 0 additions & 5 deletions buf.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Task("Clean")
Task("Generate")
.Does(() =>
{
StartProcess("buf", new ProcessSettings{Arguments = "generate proto"});
StartProcess("buf", new ProcessSettings{Arguments = "generate protos"});
});

Task("Build")
Expand Down
5 changes: 2 additions & 3 deletions fetch_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ TMP_PROTO_DIR="$(mktemp -d -t cerbos-XXXXX)"

trap 'rm -rf "$TMP_PROTO_DIR"' EXIT

buf mod update
buf export "$CERBOS_MODULE" -o "$TMP_PROTO_DIR"

rm -rf proto
mv "$TMP_PROTO_DIR" proto
rm -rf protos
mv "$TMP_PROTO_DIR" protos
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ message PlanResourcesInput {
(buf.validate.field).string = {pattern: "^[[:word:]]*$"},
(google.api.field_behavior) = OPTIONAL,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "The policy version to use to evaluate this request. If not specified, will default to the server-configured default version.",
description: "The policy version to use to evaluate this request. If not specified, will default to the server-configured default version."
pattern: "^[[:word:]]*$"
example: "\"default\""
}
Expand Down Expand Up @@ -135,9 +135,9 @@ message CheckInput {
];
repeated string actions = 4 [
(buf.validate.field).repeated = {
unique: true,
items {
string {min_len: 1}
unique: true
items: {
string: {min_len: 1}
}
},
(google.api.field_behavior) = REQUIRED
Expand Down Expand Up @@ -177,8 +177,8 @@ message Resource {
(buf.validate.field).string = {min_len: 1},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Name of the resource kind being accessed.",
example: "\"album:photo\"",
description: "Name of the resource kind being accessed."
example: "\"album:photo\""
}
];
string policy_version = 2 [
Expand Down Expand Up @@ -244,10 +244,10 @@ message Principal {
];
repeated string roles = 3 [
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
items {
string {min_len: 1}
unique: true
min_items: 1
items: {
string: {min_len: 1}
}
},
(buf.validate.field).required = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ message ResourcePolicy {
(buf.validate.field).string = {pattern: "^[[:word:]]+$"}
];
repeated string import_derived_roles = 3 [(buf.validate.field).repeated = {
unique: true,
items {
string {pattern: "^[[:word:]\\-\\.]+$"}
unique: true
items: {
string: {pattern: "^[[:word:]\\-\\.]+$"}
}
}];
repeated ResourceRule rules = 4;
Expand All @@ -72,24 +72,24 @@ message ResourcePolicy {
message ResourceRule {
repeated string actions = 1 [
(buf.validate.field).repeated = {
min_items: 1,
unique: true,
items {
string {min_len: 1}
min_items: 1
unique: true
items: {
string: {min_len: 1}
}
},
(buf.validate.field).required = true
];
repeated string derived_roles = 2 [(buf.validate.field).repeated = {
unique: true,
items {
string {pattern: "^[[:word:]\\-\\.]+$"}
unique: true
items: {
string: {pattern: "^[[:word:]\\-\\.]+$"}
}
}];
repeated string roles = 3 [(buf.validate.field).repeated = {
unique: true,
items {
string {min_len: 1}
unique: true
items: {
string: {min_len: 1}
}
}];
Condition condition = 4;
Expand Down Expand Up @@ -154,7 +154,7 @@ message DerivedRoles {
string name = 1 [
(buf.validate.field).required = true,
(buf.validate.field).string = {
pattern: "^[[:word:]\\-\\.]+$",
pattern: "^[[:word:]\\-\\.]+$"
min_len: 1
}
];
Expand All @@ -172,10 +172,10 @@ message RoleDef {
];
repeated string parent_roles = 2 [
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
items {
string {min_len: 1}
unique: true
min_items: 1
items: {
string: {min_len: 1}
}
},
(buf.validate.field).required = true
Expand All @@ -187,7 +187,7 @@ message ExportVariables {
string name = 1 [
(buf.validate.field).required = true,
(buf.validate.field).string = {
pattern: "^[[:word:]\\-\\.]+$",
pattern: "^[[:word:]\\-\\.]+$"
min_len: 1
}
];
Expand All @@ -196,9 +196,9 @@ message ExportVariables {

message Variables {
repeated string import = 1 [(buf.validate.field).repeated = {
unique: true,
items {
string {pattern: "^[[:word:]\\-\\.]+$"}
unique: true
items: {
string: {pattern: "^[[:word:]\\-\\.]+$"}
}
}];
map<string, string> local = 2;
Expand Down Expand Up @@ -243,10 +243,10 @@ message Schemas {
message IgnoreWhen {
repeated string actions = 1 [
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
items {
string {min_len: 1}
unique: true
min_items: 1
items: {
string: {min_len: 1}
}
},
(buf.validate.field).required = true
Expand Down Expand Up @@ -311,8 +311,8 @@ message TestTable {
message Input {
repeated string principals = 1 [
(buf.validate.field).repeated = {
min_items: 1,
unique: true,
min_items: 1
unique: true
items: {
string: {min_len: 1}
}
Expand All @@ -321,8 +321,8 @@ message TestTable {
];
repeated string resources = 2 [
(buf.validate.field).repeated = {
min_items: 1,
unique: true,
min_items: 1
unique: true
items: {
string: {min_len: 1}
}
Expand All @@ -331,8 +331,8 @@ message TestTable {
];
repeated string actions = 3 [
(buf.validate.field).repeated = {
min_items: 1,
unique: true,
min_items: 1
unique: true
items: {
string: {min_len: 1}
}
Expand Down Expand Up @@ -364,10 +364,10 @@ message TestTable {
];
map<string, cerbos.effect.v1.Effect> actions = 3 [
(buf.validate.field).map = {
min_pairs: 1,
min_pairs: 1
keys: {
string: {min_len: 1}
},
}
values: {
enum: {
in: [
Expand Down Expand Up @@ -424,10 +424,10 @@ message Test {
cerbos.engine.v1.CheckInput input = 5 [(buf.validate.field).required = true];
map<string, cerbos.effect.v1.Effect> expected = 6 [
(buf.validate.field).map = {
min_pairs: 1,
min_pairs: 1
keys: {
string: {min_len: 1}
},
}
values: {
enum: {
in: [
Expand Down
Loading
Loading