sidecar

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sidecar holds the small brokered-PUT plumbing shared by Wardyn's in-sandbox result-uploader binaries (wardyn-scan, wardyn-verify): validate WARDYN_PROXY_URL/WARDYN_RUN_ID, build the brokered result URL, and PUT a JSON body. No Authorization header is ever set here — the wardyn-proxy holds and injects the run token, stripping any sandbox-supplied one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProxyRunURL

func ProxyRunURL(kind string) (string, error)

ProxyRunURL reads and validates WARDYN_PROXY_URL and WARDYN_RUN_ID from the environment and returns the brokered result URL for the given result kind (e.g. "scan", "verify"): "${WARDYN_PROXY_URL}/wardyn/v1/${kind}-results/${WARDYN_RUN_ID}".

func Upload

func Upload(url string, body []byte) error

Upload PUTs body (JSON) to url. No Authorization header is set on purpose; any non-2xx response is an error carrying a bounded snippet of the body.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL