Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dachi-dev
Copy link
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

@dachi-dev dachi-dev requested a review from a team as a code owner September 3, 2025 21:06
@dachi-dev dachi-dev requested review from bcomnes, philidem and dacoburn and removed request for a team, bcomnes and philidem September 3, 2025 21:06
@dachi-dev dachi-dev force-pushed the slack_webhook_debugging branch from f3270e7 to 46c1e59 Compare September 3, 2025 21:08
Copy link

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 dacoburn added the Product Changelog New features for the public changelog label Sep 4, 2025
@dacoburn dacoburn merged commit 8bd8b83 into main Sep 4, 2025
6 checks passed
@dacoburn 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