SmartResponse-Framework / SmartResponse.Framework

PowerShell module for developing LogRhythm SmartResponse Plugins
Other
8 stars 2 forks source link

Upgrades: Detect structure changes in LrtConfig #25

Open GeneCupstid opened 4 years ago

GeneCupstid commented 4 years ago

I have some thoughts on this, and @Jt3kt added:

On the inspecting the json for new sections, I would:
Check for existance of current LRtools config json
load the file as an object if it exists
compare the count of properties, or check the property names between the new version and the existing
if there are more sections:
copy customer parameters into new template
deploy new template over existing config.json
resume installer's input for any updates/keys/etc