Skip to content

Commit

Permalink
remove bytes fields in protobuf (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-roberts authored Dec 16, 2024
1 parent a5dc222 commit 51e6f1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/main/proto/epp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.epp.proto";
option java_outer_classname = "EPPProto";

message OperandEntry {
string name = 1;
repeated string value = 2;
}

message EventContext {
string user = 1;
string process = 2;
string opName = 3;
map<string, bytes> operands = 4;
repeated OperandEntry operands = 4;
}

message EPPResponse {}
Expand Down
12 changes: 10 additions & 2 deletions src/main/proto/pdp.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
syntax = "proto3";

import "epp.proto";

option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.pdp.proto";
option java_outer_classname = "PDPProto";
Expand All @@ -9,8 +11,14 @@ message ResourceOperationRequest {
string target = 2;
}

message Node {
string name = 1;
string type = 2;
map<string, string> properties = 3;
}

message ResourceOperationResponse {
bytes node = 1;
Node node = 1;
}

service ResourcePDP {
Expand All @@ -19,7 +27,7 @@ service ResourcePDP {

message AdminOperationRequest {
string opName = 1;
map<string, bytes> operands = 2;
repeated OperandEntry operands = 2;
}

message AdminOperationResponse {}
Expand Down

0 comments on commit 51e6f1e

Please sign in to comment.