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

FIX: soup should check for local configurations before modifying anything #8423

Closed
dougburks opened this issue Aug 1, 2022 · 3 comments
Closed
Assignees

Comments

@dougburks
Copy link
Contributor

Soup currently notifies users that they have local modifications. From https://docs.securityonion.net/en/2.3/soup.html#local-configurations:

soup will check for local configurations in /opt/so/saltstack/local/ that may cause issues and flag them with the message Potentially breaking changes found in the following files. Please examine the output of soup and review any local configurations for possible issues.

However, this only fires if soup completes successfully without error. In some cases, soup is erroring (maybe even due to the local config change itself) and so that message never fires.

soup should also run that check at the very beginning to let folks know that they have local modifications before it ever upgrades anything.

Of course, there will be some local configs that are perfectly fine so we wouldn't want soup to exit altogether when it reports that. Maybe just a Press Enter to continue or Ctrl-c to cancel prompt.

@weslambert weslambert self-assigned this Aug 4, 2022
@weslambert
Copy link
Contributor

#8485

@dougburks
Copy link
Contributor Author

Tested and confirmed:

Potentially breaking changes found in the following files (check /opt/so/saltstack/default for original copy):
  /opt/so/saltstack/local/salt/soc/files/soc/menu.actions.json

To reference this list later, check /root/soup.log.

Please review the local modifications shown above as they may cause problems during or after the update.

Would you like to proceed with the update anyway?

If so, type 'YES'. Otherwise, type anything else to exit SOUP.

@dougburks
Copy link
Contributor Author

Additional commit:
#8558

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants