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

EXO test - OPA output function #770

Closed
ober758181 opened this issue Dec 28, 2023 · 3 comments
Closed

EXO test - OPA output function #770

ober758181 opened this issue Dec 28, 2023 · 3 comments
Assignees
Labels
need info This issue or pull request requires further information public-reported This issue is reported by the public users of the tool.

Comments

@ober758181
Copy link

🐛 Summary

I am getting the following error when trying to run the exchange online test:

unable to parse input: yaml: line 3669: did not find expected ',' or ']'
Fatal Error involving the OPA output function.
Ending ScubaGear execution. See the exception message for more details: Cannot bind argument to parameter
'InputObject' because it is null.
At C:\Users\xxx\Downloads\ScubaGear-1.0.0\ScubaGear-1.0.0\PowerShell\ScubaGear\Modules\Orchestrator.psm1:651
char:13
throw $InvokeRegoErrorMessage

   CategoryInfo          : OperationStopped: (Fatal Error inv...use it is null.:String) [], RuntimeException
   FullyQualifiedErrorId : Fatal Error involving the OPA output function.
               Ending ScubaGear execution. See the exception message for more details: Cannot bind argument to parame
  ter 'InputObject' because it is null.


## To reproduce ##

Run the following to reproduce: 
Invoke-SCuBA -ProductNames exo
## Expected behavior ##

I expected the output. The other tests worked great!

## Any helpful log output or screenshots ##
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22000.2600
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.2600
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

![image](https://github.com/cisagov/ScubaGear/assets/24191475/57076ee9-4a74-4e54-92c3-613ace7dacaa)
@gdasher
Copy link
Collaborator

gdasher commented Dec 30, 2023

Thanks for the bug report! A few questions:

  1. I don't see the line about "unable to parse input: yaml: line 3669: did not find expected ',' or ']'" in the image you included. Is that right above where you cut off the image?

  2. Do you get any of the files (TestResults.json, TestResults.csv, ProviderSettingsExport.json) produced when you run the tool for Exo?

  3. Assuming it is created, can you share a snippet from around line 3669 of ProviderSettingsExport.json, assuming its not sensitive? We've seen a few errors like this in the past with how the escaping plays out, for example. I believe the error you cited is coming from opa failing to parse the tenant state.

@gdasher gdasher added need info This issue or pull request requires further information public-reported This issue is reported by the public users of the tool. labels Dec 30, 2023
@ober758181
Copy link
Author

ober758181 commented Jan 3, 2024 via email

@schrolla
Copy link
Collaborator

@ober758181 We had another report of this sort of error and it was due to the way we handle backslashes ('') in some of our code interacting with a transport rule condition (or some other setting) that ends with a backslash. You can see issue #808 for a possible workaround and we've noted the bug for review and fixes in #818.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info This issue or pull request requires further information public-reported This issue is reported by the public users of the tool.
Projects
None yet
Development

No branches or pull requests

3 participants