Skip to content

Add ingest HTTP export with bearer token support#50

Merged
negillett merged 1 commit into
mainfrom
sdk-ingest-bearer-token
May 19, 2026
Merged

Add ingest HTTP export with bearer token support#50
negillett merged 1 commit into
mainfrom
sdk-ingest-bearer-token

Conversation

@negillett
Copy link
Copy Markdown
Member

Summary

  • Add ingest_request_headers() and post_execution_event() helpers.
  • Send Authorization: Bearer when INTENTPROOF_INGEST_TOKEN is set.

Test plan

  • python -m pytest -q

Review

  • No blocking issues found.

Read INTENTPROOF_INGEST_TOKEN for Authorization on hosted ingest.

Signed-off-by: Nathan Gillett <nathan@intentproof.io>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 18, 2026

PR Summary

Medium Risk
Adds outbound HTTP POST behavior and token-based authorization header handling, which can impact integrations and error handling on network failures.

Overview
Adds a new intentproof.exporter module with helpers to build ingest request headers (optionally adding Authorization: Bearer ... from INTENTPROOF_INGEST_TOKEN) and to POST JSON execution events to a hosted ingest URL with basic status/error handling.

Exports these helpers from intentproof.__init__ and adds tests covering header behavior with and without the env token.

Reviewed by Cursor Bugbot for commit 25b344d. Bugbot is set up for automated code reviews on this repo. Configure here.

@negillett negillett merged commit 41a989e into main May 19, 2026
3 checks passed
@negillett negillett deleted the sdk-ingest-bearer-token branch May 19, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant