Skip to content

feat(context): add post processing logic#61

Merged
mckibbenc merged 6 commits intomainfrom
mckibbenc/post-processing-backend
Mar 18, 2026
Merged

feat(context): add post processing logic#61
mckibbenc merged 6 commits intomainfrom
mckibbenc/post-processing-backend

Conversation

@mckibbenc
Copy link
Contributor

@mckibbenc mckibbenc commented Mar 10, 2026

Adds post processing key to populate service name, parent ID to lookup parent scan executions, and a run_process_async() function to allow connectors to start additional processes mid scan.

Part of the post-processing backend implementation — see dspm PR for full context.

(AB#419861)

@mckibbenc mckibbenc marked this pull request as draft March 10, 2026 19:58
mckibbenc and others added 6 commits March 16, 2026 12:39
Adds Context.data_query(table, query) to the netwrix-python template,
allowing post-processing handlers to query ClickHouse via the data-query
service without constructing raw HTTP calls manually.

Generated with AI

Co-Authored-By: Claude Code <ai@netwrix.com>
The data-query service only takes a query, so the table parameter
served no purpose.

Generated with AI

Co-Authored-By: Claude Code <ai@netwrix.com>
…processes

- Add run_process_async(process_key) to Context — calls
  POST /api/v1/scan-executions/{parent_execution_id}/run-process on core-api
  to trigger a named additional process mid-execution
- Fix SERVICE_NAME: use POST_PROCESSING_KEY when set so additional process
  pods report as e.g. "cifs-mid-process" instead of "cifs-additional_processing"

Generated with AI

Co-Authored-By: Claude Code <ai@netwrix.com>
Pass CONNECTOR_API_KEY as X-Api-Key header when calling core-api's
run-process endpoint, matching the new internal webhook auth requirement.

Generated with AI

Co-Authored-By: Claude Code <ai@netwrix.com>
@mckibbenc mckibbenc force-pushed the mckibbenc/post-processing-backend branch from 00321de to 1dbaa48 Compare March 16, 2026 16:39
@mckibbenc mckibbenc marked this pull request as ready for review March 16, 2026 16:50
@mckibbenc mckibbenc changed the title feat(context): add data_query() method to Context class feat(context): add post processing logic Mar 18, 2026
@mckibbenc mckibbenc merged commit f4168f0 into main Mar 18, 2026
5 checks passed
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.

2 participants