From 290aebc9e8133c128e90b795006a43bfc8d9cfa4 Mon Sep 17 00:00:00 2001 From: sen-trustero Date: Fri, 19 Dec 2025 14:19:02 -0800 Subject: [PATCH] add implementation procedures --- go/receptor_sdk/receptor.go | 36 ++++++++++++++++-------------- go/receptor_v1/receptor_grpc.pb.go | 18 +++++++-------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/go/receptor_sdk/receptor.go b/go/receptor_sdk/receptor.go index bf00d06..0e41515 100644 --- a/go/receptor_sdk/receptor.go +++ b/go/receptor_sdk/receptor.go @@ -186,16 +186,17 @@ type AuthMethod struct { } type Control struct { - Id string `json:"id"` // Id of the control - Name string `json:"name"` // Name of the control - Objective string `json:"objective"` // Objective of the control - TestProcedure string `json:"test_procedure"` // Test procedure of the control - Frameworks []string `json:"frameworks"` // Frameworks applicable to the control - Notes string `json:"notes"` // Notes for the control - RequiredEvidence string `json:"required_evidences"` // Required evidences for the control - ImportKey string `json:"import_key"` // External id of the control - ImportLink string `json:"import_link"` // External link to the control - SOC2Criteria []string `json:"soc2_criteria"` // SOC2 Framework criterias for the control + Id string `json:"id"` // Id of the control + Name string `json:"name"` // Name of the control + Objective string `json:"objective"` // Objective of the control + TestProcedure string `json:"test_procedure"` // Test procedure of the control + Frameworks []string `json:"frameworks"` // Frameworks applicable to the control + Notes string `json:"notes"` // Notes for the control + RequiredEvidence string `json:"required_evidences"` // Required evidences for the control + ImportKey string `json:"import_key"` // External id of the control + ImportLink string `json:"import_link"` // External link to the control + SOC2Criteria []string `json:"soc2_criteria"` // SOC2 Framework criterias for the control + ImplementationProcedure string `json:"implementation_procedure"` // Implementation procedure of the control } type ControlProcedureMapping struct { @@ -218,13 +219,14 @@ type ControlPolicyMapping struct { } type ControlProcedure struct { - Id string `json:"id"` - ControlName string `json:"Control_Name"` - Description string `json:"Description"` - ProcedureName string `json:"Procedure_Name"` - TestingProcedures string `json:"Testing_Procedures"` - ImportKey string `json:"import_key"` // External id of the control - ImportLink string `json:"import_link"` // External link to the control + Id string `json:"id"` + ControlName string `json:"Control_Name"` + Description string `json:"Description"` + ProcedureName string `json:"Procedure_Name"` + TestingProcedures string `json:"Testing_Procedures"` + ImplementationProcedure string `json:"Implementation_Procedure"` + ImportKey string `json:"import_key"` // External id of the control + ImportLink string `json:"import_link"` // External link to the control } type ControlEvidenceMapping struct { diff --git a/go/receptor_v1/receptor_grpc.pb.go b/go/receptor_v1/receptor_grpc.pb.go index b88c901..11773cb 100644 --- a/go/receptor_v1/receptor_grpc.pb.go +++ b/go/receptor_v1/receptor_grpc.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.0 // - protoc v3.20.3 // source: receptor_v1/receptor.proto @@ -194,25 +194,25 @@ type ReceptorServer interface { type UnimplementedReceptorServer struct{} func (UnimplementedReceptorServer) Verified(context.Context, *Credential) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Verified not implemented") + return nil, status.Error(codes.Unimplemented, "method Verified not implemented") } func (UnimplementedReceptorServer) GetConfiguration(context.Context, *ReceptorOID) (*ReceptorConfiguration, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented") + return nil, status.Error(codes.Unimplemented, "method GetConfiguration not implemented") } func (UnimplementedReceptorServer) Discovered(context.Context, *ServiceEntities) (*wrapperspb.StringValue, error) { - return nil, status.Errorf(codes.Unimplemented, "method Discovered not implemented") + return nil, status.Error(codes.Unimplemented, "method Discovered not implemented") } func (UnimplementedReceptorServer) Report(context.Context, *Finding) (*wrapperspb.StringValue, error) { - return nil, status.Errorf(codes.Unimplemented, "method Report not implemented") + return nil, status.Error(codes.Unimplemented, "method Report not implemented") } func (UnimplementedReceptorServer) Notify(context.Context, *JobResult) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Notify not implemented") + return nil, status.Error(codes.Unimplemented, "method Notify not implemented") } func (UnimplementedReceptorServer) SetConfiguration(context.Context, *ReceptorConfiguration) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetConfiguration not implemented") + return nil, status.Error(codes.Unimplemented, "method SetConfiguration not implemented") } func (UnimplementedReceptorServer) StreamReport(grpc.ClientStreamingServer[ReportChunk, ReportResponse]) error { - return status.Errorf(codes.Unimplemented, "method StreamReport not implemented") + return status.Error(codes.Unimplemented, "method StreamReport not implemented") } func (UnimplementedReceptorServer) testEmbeddedByValue() {} @@ -224,7 +224,7 @@ type UnsafeReceptorServer interface { } func RegisterReceptorServer(s grpc.ServiceRegistrar, srv ReceptorServer) { - // If the following call pancis, it indicates UnimplementedReceptorServer was + // If the following call panics, it indicates UnimplementedReceptorServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O.