You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add optional --ssl-ca-bundle flag for SSL certificate configuration (#1802)
* Add optional ssl config flag
* fix: honor SSL context for Slack workflow webhooks
- Update _initial_client in SlackWebhookClient to configure requests.Session with SSL verification
- When ssl_context is provided, set session.verify to certifi CA bundle
- Add warning when workflow webhooks cannot fully honor --use-system-ca-files setting
- Ensures SSL context is respected for workflow webhook requests
* precommit fix
* fix is_workflow logic
* refactor: replace --use-system-ca-files with --ssl-ca-bundle
Replace the boolean --use-system-ca-files/--no-use-system-ca-files flag
with a more flexible --ssl-ca-bundle option that accepts 'certifi',
'system', or a custom file path. When omitted, each library keeps its
own default CA behaviour (no change from prior behaviour).
Key changes:
- Add elementary/utils/ssl.py helper to resolve ssl_ca_bundle into SSLContext
- Config now uses _first_not_none pattern so ssl_ca_bundle is also loadable
from config.yml
- Apply SSL context to both legacy SlackClient and newer
SlackWebMessagingIntegration / SlackWebhookMessagingIntegration code paths
Made-with: Cursor
* fix: validate empty ssl_ca_bundle values explicitly
Raise a clear error when ssl_ca_bundle is an empty or whitespace-only
string, instead of falling through to the file path check which would
produce a confusing "path does not exist" error.
Made-with: Cursor
---------
Co-authored-by: Itamar Hartstein <haritamar@gmail.com>
0 commit comments