Skip to content

chore: add slack debugging#117

Merged
Douglas (dacoburn) merged 3 commits intomainfrom
slack_webhook_debugging
Sep 4, 2025
Merged

chore: add slack debugging#117
Douglas (dacoburn) merged 3 commits intomainfrom
slack_webhook_debugging

Conversation

@dachi-dev
Copy link
Copy Markdown
Contributor

Description

Added comprehensive Slack webhook debugging functionality to the --enable-debug parameter. This improvement enhances troubleshooting capabilities for Slack webhook configuration by always displaying debug information when debug mode is enabled, regardless of whether there are security alerts or if Slack is enabled/disabled.

Changes Made:

  • Enhanced OutputHandler: Added Slack webhook debugging that runs whenever --enable-debug is used
  • Improved SlackPlugin: Added additional debug logging for webhook execution status
  • Always-on debugging: Moved Slack debug output outside the plugin-enabled conditional so it shows configuration status even when Slack is disabled
  • Comprehensive information display: Shows environment variables (SOCKET_SLACK_ENABLED, SOCKET_SLACK_CONFIG_JSON), webhook URL, plugin status, and alert levels

Debug Output Includes:

  • Slack Plugin enabled/disabled status
  • Environment variable values and status
  • Configured webhook URL or "Not configured" status
  • Alert levels configuration
  • Additional plugin execution details when alerts are present

This improvement makes it significantly easier for users to troubleshoot Slack webhook setup issues and verify their configuration is correct.

Public Changelog

Improvements

  • Enhanced --enable-debug output to always display Slack webhook configuration information, making it easier to troubleshoot webhook setup issues

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 3, 2025

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.2.7.dev1

Docker image: socketdev/cli:pr-117

@dacoburn Douglas (dacoburn) added the Product Changelog New features for the public changelog label Sep 4, 2025
@dacoburn Douglas (dacoburn) merged commit 8bd8b83 into main Sep 4, 2025
6 checks passed
@dacoburn Douglas (dacoburn) deleted the slack_webhook_debugging branch September 4, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product Changelog New features for the public changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants