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 .net deps #134

Merged
merged 1 commit into from
May 31, 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
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ deps:
- remote: buf.build
owner: cerbos
repository: cerbos-api
commit: df180e07d6154eb8a2d7801459003b9f
digest: shake256:b2712ba97cdbf03c5111261ed409b5d77cf0c9aa2336cfb6a4f78a22f75598e3ff30efba74429cb91ef1edad3eed653f1a4a1f2741671d434846ef6db4faeb05
commit: e27328ec963d4f538a5c970aeec688b8
digest: shake256:71ab15742b3a474818482b0104f9b7377d7e722f2ad0a149db42abf257ed88c6043f9763ec651bfe6836b56f834bce54c52399c9f77ac77fe161d510d63e341b
- remote: buf.build
owner: googleapis
repository: googleapis
Expand Down
54 changes: 33 additions & 21 deletions proto/cerbos/request/v1/request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -445,14 +445,14 @@ message AddOrUpdatePolicyRequest {
repeated cerbos.policy.v1.Policy policies = 1 [
(buf.validate.field).repeated = {
min_items: 1,
max_items: 10
max_items: 100
},
(buf.validate.field).required = true,
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "List of policies."
min_items: 1
max_items: 10
max_items: 100
}
];
}
Expand Down Expand Up @@ -554,6 +554,19 @@ message ListPoliciesRequest {
(google.api.field_behavior) = OPTIONAL,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Filter policies by version with regexp"}
];
repeated string policy_id = 5 [
(google.api.field_behavior) = OPTIONAL,
(buf.validate.field).repeated = {
max_items: 25,
items {
string {min_len: 1}
}
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "For blob, disk, git stores use file name (<filename>.yaml). For mysql, postgres, sqlite3 use id (<kind>.<name>.<version>) of the policy"
example: "\"principal.sarah.vdefault\""
}
];
}

message GetPolicyRequest {
Expand All @@ -565,12 +578,8 @@ message GetPolicyRequest {
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
max_items: 25,
items {
string {
min_len: 1,
max_len: 1280
}
string {min_len: 1}
}
},
(buf.validate.field).required = true,
Expand All @@ -590,12 +599,8 @@ message DisablePolicyRequest {
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
max_items: 25,
items {
string {
min_len: 1,
max_len: 1280
}
string {min_len: 1}
}
},
(buf.validate.field).required = true,
Expand All @@ -615,12 +620,8 @@ message EnablePolicyRequest {
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
max_items: 25,
items {
string {
min_len: 1,
max_len: 1280
}
string {min_len: 1}
}
},
(buf.validate.field).required = true,
Expand Down Expand Up @@ -651,6 +652,19 @@ message InspectPoliciesRequest {
(google.api.field_behavior) = OPTIONAL,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Filter policies by version with regexp"}
];
repeated string policy_id = 5 [
(google.api.field_behavior) = OPTIONAL,
(buf.validate.field).repeated = {
max_items: 25,
items {
string {min_len: 1}
}
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "For blob, disk, git stores use file name (<filename>.yaml). For mysql, postgres, sqlite3 use id (<kind>.<name>.<version>) of the policy"
example: "\"principal.sarah.vdefault\""
}
];
}

message AddOrUpdateSchemaRequest {
Expand All @@ -662,13 +676,13 @@ message AddOrUpdateSchemaRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).repeated = {
min_items: 1,
max_items: 10
max_items: 100
},
(buf.validate.field).required = true,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "List of schemas."
min_items: 1
max_items: 10
max_items: 100
}
];
}
Expand All @@ -688,7 +702,6 @@ message GetSchemaRequest {
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
max_items: 25,
items {
string {
min_len: 1,
Expand All @@ -713,7 +726,6 @@ message DeleteSchemaRequest {
(buf.validate.field).repeated = {
unique: true,
min_items: 1,
max_items: 25,
items {
string {
min_len: 1,
Expand Down
21 changes: 20 additions & 1 deletion proto/cerbos/response/v1/response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,27 @@ message InspectPoliciesResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {description: "Inspect policies response"}
};

message Variable {
enum Kind {
KIND_UNSPECIFIED = 0;
KIND_EXPORTED = 1;
KIND_IMPORTED = 2;
KIND_LOCAL = 3;
KIND_UNDEFINED = 4;
KIND_UNKNOWN = 5;
}

string name = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Variable name defined in the policy."}];
string value = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Raw value of the variable defined in the policy."}];
Kind kind = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Kind of the variable defined in the policy."}];
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."}];
bool used = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Whether the variable is used in a condition."}];
}

message Result {
repeated string actions = 1;
repeated string actions = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Actions defined in the policy"}];
repeated Variable variables = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Variables defined in the policy"}];
}

map<string, Result> results = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/Sdk.UnitTests/Sdk.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.2.0" />
Expand Down
Loading
Loading