Skip to content

fix: forward verify_cert to splunklib.client.connect()#53

Merged
0xFustang merged 1 commit intomainfrom
upd-implem-verify-cert
Apr 7, 2026
Merged

fix: forward verify_cert to splunklib.client.connect()#53
0xFustang merged 1 commit intomainfrom
upd-implem-verify-cert

Conversation

@0xFustang
Copy link
Copy Markdown
Collaborator

@0xFustang 0xFustang commented Apr 7, 2026

Description

The verify_cert config parameter was accepted and documented but never forwarded to splunklib.client.connect(), which defaults verify=False and creates an unverified TLS context. This fix reads the parameter in init (defaulting to True) and passes it as verify= to all five client.connect() call sites.

Changes

Changes:

  • Read verify_cert in SplunkPlatform.__init__ (defaults to True)
  • Pass verify=self._verify_cert to all five client.connect() call sites

@0xFustang 0xFustang self-assigned this Apr 7, 2026
@0xFustang 0xFustang merged commit 24cdd81 into main Apr 7, 2026
2 checks passed
@0xFustang 0xFustang deleted the upd-implem-verify-cert branch April 7, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant