add SSL toggle and evidence image support#3
Open
TheGr3atJosh wants to merge 1 commit intoValienteTechnologies:mainfrom
Open
add SSL toggle and evidence image support#3TheGr3atJosh wants to merge 1 commit intoValienteTechnologies:mainfrom
TheGr3atJosh wants to merge 1 commit intoValienteTechnologies:mainfrom
Conversation
- GHOSTWRITER_VERIFY_SSL env var to disable SSL verification for self-signed Ghostwriter certs (default: true) - Restore fetch_evidence in GhostwriterClient; use auth-only headers on media GET requests (Content-Type: application/json caused 400s) - evidence.py tries HTTP fetch first, falls back to direct volume read when GHOSTWRITER_MEDIA_PATH is set (local Docker deployments) - WeasyPrint resource fetcher returns a transparent 1x1 PNG for missing evidence so PDF generation does not abort on fetch failures - compose.yaml documents both evidence approaches; all optional config commented out by default Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GHOSTWRITER_VERIFY_SSL=falsedisables cert checking for self-signed Ghostwriter certsfetch_evidencetries HTTP (JWT Bearer to/media/) first; if that fails andGHOSTWRITER_MEDIA_PATHis set, falls back to readingdirectly from a mounted media volume (useful for local Docker deployments where Ghostwriter runs on the same host)
Configuration
Remote Ghostwriter — no changes needed; HTTP fetch works automatically once ALLOWED_HOSTS includes the ghostbadger host.
Local Docker (same host) — uncomment three lines in
compose.yaml:Test plan
GHOSTWRITER_VERIFY_SSL=false— confirm self-signed cert no longer blocks requests🤖 Generated with Claude Code