Skip to content

Commit ae50f8c

Browse files
renovate[bot]oguzhand95
authored andcommitted
chore(deps): Update .net deps
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Oğuzhan Durgun <[email protected]>
1 parent f2df05d commit ae50f8c

File tree

7 files changed

+582
-92
lines changed

7 files changed

+582
-92
lines changed

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ deps:
99
- remote: buf.build
1010
owner: cerbos
1111
repository: cerbos-api
12-
commit: df180e07d6154eb8a2d7801459003b9f
13-
digest: shake256:b2712ba97cdbf03c5111261ed409b5d77cf0c9aa2336cfb6a4f78a22f75598e3ff30efba74429cb91ef1edad3eed653f1a4a1f2741671d434846ef6db4faeb05
12+
commit: e27328ec963d4f538a5c970aeec688b8
13+
digest: shake256:71ab15742b3a474818482b0104f9b7377d7e722f2ad0a149db42abf257ed88c6043f9763ec651bfe6836b56f834bce54c52399c9f77ac77fe161d510d63e341b
1414
- remote: buf.build
1515
owner: googleapis
1616
repository: googleapis

proto/cerbos/request/v1/request.proto

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,14 @@ message AddOrUpdatePolicyRequest {
445445
repeated cerbos.policy.v1.Policy policies = 1 [
446446
(buf.validate.field).repeated = {
447447
min_items: 1,
448-
max_items: 10
448+
max_items: 100
449449
},
450450
(buf.validate.field).required = true,
451451
(google.api.field_behavior) = REQUIRED,
452452
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
453453
description: "List of policies."
454454
min_items: 1
455-
max_items: 10
455+
max_items: 100
456456
}
457457
];
458458
}
@@ -554,6 +554,19 @@ message ListPoliciesRequest {
554554
(google.api.field_behavior) = OPTIONAL,
555555
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Filter policies by version with regexp"}
556556
];
557+
repeated string policy_id = 5 [
558+
(google.api.field_behavior) = OPTIONAL,
559+
(buf.validate.field).repeated = {
560+
max_items: 25,
561+
items {
562+
string {min_len: 1}
563+
}
564+
},
565+
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
566+
description: "For blob, disk, git stores use file name (<filename>.yaml). For mysql, postgres, sqlite3 use id (<kind>.<name>.<version>) of the policy"
567+
example: "\"principal.sarah.vdefault\""
568+
}
569+
];
557570
}
558571

559572
message GetPolicyRequest {
@@ -565,12 +578,8 @@ message GetPolicyRequest {
565578
(buf.validate.field).repeated = {
566579
unique: true,
567580
min_items: 1,
568-
max_items: 25,
569581
items {
570-
string {
571-
min_len: 1,
572-
max_len: 1280
573-
}
582+
string {min_len: 1}
574583
}
575584
},
576585
(buf.validate.field).required = true,
@@ -590,12 +599,8 @@ message DisablePolicyRequest {
590599
(buf.validate.field).repeated = {
591600
unique: true,
592601
min_items: 1,
593-
max_items: 25,
594602
items {
595-
string {
596-
min_len: 1,
597-
max_len: 1280
598-
}
603+
string {min_len: 1}
599604
}
600605
},
601606
(buf.validate.field).required = true,
@@ -615,12 +620,8 @@ message EnablePolicyRequest {
615620
(buf.validate.field).repeated = {
616621
unique: true,
617622
min_items: 1,
618-
max_items: 25,
619623
items {
620-
string {
621-
min_len: 1,
622-
max_len: 1280
623-
}
624+
string {min_len: 1}
624625
}
625626
},
626627
(buf.validate.field).required = true,
@@ -651,6 +652,19 @@ message InspectPoliciesRequest {
651652
(google.api.field_behavior) = OPTIONAL,
652653
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Filter policies by version with regexp"}
653654
];
655+
repeated string policy_id = 5 [
656+
(google.api.field_behavior) = OPTIONAL,
657+
(buf.validate.field).repeated = {
658+
max_items: 25,
659+
items {
660+
string {min_len: 1}
661+
}
662+
},
663+
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
664+
description: "For blob, disk, git stores use file name (<filename>.yaml). For mysql, postgres, sqlite3 use id (<kind>.<name>.<version>) of the policy"
665+
example: "\"principal.sarah.vdefault\""
666+
}
667+
];
654668
}
655669

656670
message AddOrUpdateSchemaRequest {
@@ -662,13 +676,13 @@ message AddOrUpdateSchemaRequest {
662676
(google.api.field_behavior) = REQUIRED,
663677
(buf.validate.field).repeated = {
664678
min_items: 1,
665-
max_items: 10
679+
max_items: 100
666680
},
667681
(buf.validate.field).required = true,
668682
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
669683
description: "List of schemas."
670684
min_items: 1
671-
max_items: 10
685+
max_items: 100
672686
}
673687
];
674688
}
@@ -688,7 +702,6 @@ message GetSchemaRequest {
688702
(buf.validate.field).repeated = {
689703
unique: true,
690704
min_items: 1,
691-
max_items: 25,
692705
items {
693706
string {
694707
min_len: 1,
@@ -713,7 +726,6 @@ message DeleteSchemaRequest {
713726
(buf.validate.field).repeated = {
714727
unique: true,
715728
min_items: 1,
716-
max_items: 25,
717729
items {
718730
string {
719731
min_len: 1,

proto/cerbos/response/v1/response.proto

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,27 @@ message InspectPoliciesResponse {
444444
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
445445
json_schema: {description: "Inspect policies response"}
446446
};
447+
448+
message Variable {
449+
enum Kind {
450+
KIND_UNSPECIFIED = 0;
451+
KIND_EXPORTED = 1;
452+
KIND_IMPORTED = 2;
453+
KIND_LOCAL = 3;
454+
KIND_UNDEFINED = 4;
455+
KIND_UNKNOWN = 5;
456+
}
457+
458+
string name = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Variable name defined in the policy."}];
459+
string value = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Raw value of the variable defined in the policy."}];
460+
Kind kind = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Kind of the variable defined in the policy."}];
461+
string source = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Source of the variable defined in the policy. Only exists if the kind is imported."}];
462+
bool used = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Whether the variable is used in a condition."}];
463+
}
464+
447465
message Result {
448-
repeated string actions = 1;
466+
repeated string actions = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Actions defined in the policy"}];
467+
repeated Variable variables = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Variables defined in the policy"}];
449468
}
450469

451470
map<string, Result> results = 1;

src/Sdk.UnitTests/Sdk.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
1111
<PackageReference Include="NUnit" Version="4.1.0" />
1212
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
1313
<PackageReference Include="NUnit.Analyzers" Version="4.2.0" />

0 commit comments

Comments
 (0)