diff --git a/cmd/rootutils.go b/cmd/rootutils.go index 729e336e..b1554deb 100644 --- a/cmd/rootutils.go +++ b/cmd/rootutils.go @@ -81,7 +81,7 @@ func initEnvironment() { armoERURL := urlSlices[0] // mandatory armoBEURL := urlSlices[1] // mandatory armoFEURL := urlSlices[2] // mandatory - if len(urlSlices) <= 4 { + if len(urlSlices) >= 4 { armoAUTHURL = urlSlices[3] } getter.SetARMOAPIConnector(getter.NewARMOAPICustomized(armoERURL, armoBEURL, armoFEURL, armoAUTHURL)) diff --git a/core/pkg/policyhandler/handlenotification.go b/core/pkg/policyhandler/handlenotification.go index 35fd6434..47e1a7d6 100644 --- a/core/pkg/policyhandler/handlenotification.go +++ b/core/pkg/policyhandler/handlenotification.go @@ -64,7 +64,7 @@ func scanInfoToScanMetadata(opaSessionObj *cautils.OPASessionObj, scanInfo *caut } opaSessionObj.Metadata.ScanMetadata.VerboseMode = scanInfo.VerboseMode opaSessionObj.Metadata.ScanMetadata.FailThreshold = scanInfo.FailThreshold - opaSessionObj.Metadata.ScanMetadata.HostScanner = *scanInfo.HostSensorEnabled.Get() + opaSessionObj.Metadata.ScanMetadata.HostScanner = *(scanInfo.HostSensorEnabled.Get()) opaSessionObj.Metadata.ScanMetadata.VerboseMode = scanInfo.VerboseMode opaSessionObj.Metadata.ScanMetadata.ControlsInputs = scanInfo.ControlsInputs } diff --git a/core/pkg/resultshandling/reporter/v2/reporteventreceiverutils.go b/core/pkg/resultshandling/reporter/v2/reporteventreceiverutils.go index d87be8eb..39b118b8 100644 --- a/core/pkg/resultshandling/reporter/v2/reporteventreceiverutils.go +++ b/core/pkg/resultshandling/reporter/v2/reporteventreceiverutils.go @@ -44,6 +44,7 @@ func setSubReport(postureReport *reporthandlingv2.PostureReport) *reporthandling ClusterCloudProvider: postureReport.ClusterCloudProvider, JobID: postureReport.JobID, ClusterAPIServerInfo: postureReport.ClusterAPIServerInfo, + Metadata: postureReport.Metadata, } } func iMetaToResource(obj workloadinterface.IMetadata) *reporthandling.Resource {