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

Update splunk_sdk.py - Bug Fix for Multiple Credentials in Splunk Cred Store #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nterl0k
Copy link

@nterl0k nterl0k commented Aug 29, 2022

Description

splunk_skd.py doesn't handle errors related to the "generate_config" function or log well, added a few tweaks to assist with the and troubleshooting.

Motivation and Context

Splunk Environments with multiple credential stores / TA-s using the credential store will break the "generate_config" function. Loop required the addition of a "continue" statement to work using multiple entries.

How Has This Been Tested?

This correction has been running in a production environment for ~ 8 months with no issues.

Screenshots (if appropriate)

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • [X ] I have added tests to cover my changes if appropriate.
  • [X ] All new and existing tests passed.

Added some error checking and a continue statement to generate_configs function. In the event that the Splunk server has multiple credential stores, this won't cause the script to break. Added minor debug logging.
@welcome-to-palo-alto-networks

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant