Skip to content
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
1 change: 1 addition & 0 deletions docs/receptor_v1/receptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Finding is a set of evidence(s) collected from a service provider account.
| service_provider_account | [string](#string) | | The receptor's evidence source. |
| entities | [ServiceEntity](#receptor_v1-ServiceEntity) | repeated | Entities is a list of service entity configurations in the service provider account. |
| evidences | [Evidence](#receptor_v1-Evidence) | repeated | One or more evidence collected by a typical receptor scan. |
| discovery_id | [string](#string) | | discovery_id is the unique identifier for the discovery process that led to this finding. |



Expand Down
2 changes: 1 addition & 1 deletion go/receptor_sdk/cmd/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func report(rc receptor_v1.ReceptorClient, credentials interface{}, config inter
}
finding.ReceptorType = GetParsedReceptorType()
finding.ServiceProviderAccount = serviceProviderAccount

finding.DiscoveryId = receptor_sdk.DiscoveryId
// report in single batch
var evidences []*receptor_sdk.Evidence
if evidences, err = receptorImpl.Report(credentials, config); err == nil && len(evidences) > 0 {
Expand Down
1 change: 1 addition & 0 deletions go/receptor_sdk/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func addGrpcFlags(cmd *cobra.Command) {
addStrFlag(cmd, &receptor_sdk.Notify, "notify", "", "", "Notify Trustero with Tracer ID on command completion")
addStrFlag(cmd, &receptor_sdk.CredentialsBase64URL, "credentials", "", "", "Base64 URL encoded service provider credential")
addStrFlag(cmd, &receptor_sdk.ConfigBase64URL, "config", "", "", "Base64 URL encoded receptor configuration")
addStrFlag(cmd, &receptor_sdk.DiscoveryId, "discovery-id", "", "", "Trustero discovery identifier")

}

Expand Down
1 change: 1 addition & 0 deletions go/receptor_sdk/receptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
CredentialsBase64URL string // Service provider credentials as a base64 URL encoded json string.
ReceptorId string // Trustero's persistent record ID of a record holding a receptor's service provider credentials.
ConfigBase64URL string // Receptor configuration as a base64 URL encoded json string.
DiscoveryId string // Trustero discovery identifier
)

// Receptor is the main interface for the Receptor implementor-facing API.
Expand Down
Loading
Loading