Skip to content

Add configurable custom headers and per-payload config schema - #74

Draft
JLLeitschuh wants to merge 1 commit into
nccgroup:masterfrom
JLLeitschuh:feat/JLL/payload-custom-config
Draft

Add configurable custom headers and per-payload config schema#74
JLLeitschuh wants to merge 1 commit into
nccgroup:masterfrom
JLLeitschuh:feat/JLL/payload-custom-config

Conversation

@JLLeitschuh

Copy link
Copy Markdown
Contributor

Adds a generic mechanism for payloads to declare a JSON-schema-driven config UI (configSchema), so the manager can generate form fields for payload-specific options at runtime instead of requiring source edits.

  • Adds customHeaders support: arbitrary headers (e.g. Authorization) can be applied to all fetch requests made by a payload.
  • Rails Console RCE gains a configurable Ruby command + auto-execute toggle instead of always launching a calculator.
  • Simple Fetch Get gains a logResponse toggle.
  • manager.js/manager.html/payload.js/singularity.go updated to thread options (headers + payload config) through to payloads.

Payloads can now declare a JSON-schema-driven config UI (customHeaders +
payloadConfig), so the manager can generate form fields for payload-specific
options at runtime instead of requiring source edits. Rails Console RCE gains
a configurable command/auto-execute option, and Simple Fetch Get gains a
logResponse toggle, as examples.

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>
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