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

chore: update analysis config to allow non-string values #540

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

j-lanson
Copy link
Collaborator

Resolves #539 .

Ran a simplified analysis with only identity analysis enabled.

  • The config for identity is percent-threshold which should be a float, but we only allow Strings currently. I updated the policy file definition to treat analysis config as HashMap<String, Value> instead.
  • Report building was still trying to legacy stuff for identity analysis output manipulation (expecting a float instead of an array), updated get_legacy() to check the MITRE_LEGACY_PLUGINS array so "plugin-ified" analyses will use the proper policy-expr handling code.

@j-lanson j-lanson added type: bug Something isn't working type: chore Clean up or management task. labels Oct 28, 2024
@j-lanson j-lanson added this to the 3.8.0 milestone Oct 28, 2024
@j-lanson j-lanson self-assigned this Oct 28, 2024
@patrickjcasey
Copy link
Contributor

Looks good to me!

@patrickjcasey patrickjcasey merged commit 1f344b9 into main Oct 29, 2024
9 checks passed
@alilleybrinker alilleybrinker deleted the jlanson/fix-identity branch November 5, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: chore Clean up or management task.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Validate Identity plugin execution
2 participants