Skip to content

Wrap successful SBOM upload response with polling URL#47

Open
lukpueh wants to merge 2 commits into
eclipse-csi:mainfrom
lukpueh:wrap-dt-response
Open

Wrap successful SBOM upload response with polling URL#47
lukpueh wants to merge 2 commits into
eclipse-csi:mainfrom
lukpueh:wrap-dt-response

Conversation

@lukpueh
Copy link
Copy Markdown
Contributor

@lukpueh lukpueh commented May 28, 2026

fixes #42

On success, replace the raw DependencyTrack response relay with a PIA envelope exposing only polling_url. The publisher does not know the DependencyTrack instance URL, but DT's token-polling endpoint does not require PIA authentication, so the publisher can query DT directly once PIA hands them the full URL.

Failure responses are still relayed verbatim: DT's own error body (e.g. CycloneDX validation message) is the most useful information on failure, and wrapping it would either drop it, double-encode it, or duplicate it without adding anything actionable.

@lukpueh lukpueh marked this pull request as draft May 28, 2026 11:26
On success, replace the raw DependencyTrack response relay with a PIA
envelope exposing only `polling_url`. The publisher does not know the
DependencyTrack instance URL, but DT's token-polling endpoint does not
require PIA authentication, so the publisher can query DT directly once
PIA hands them the full URL.

Failure responses are still relayed verbatim: DT's own error body
(e.g. CycloneDX validation message) is the most useful information on
failure, and wrapping it would either drop it, double-encode it, or
duplicate it without adding anything actionable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Lukas Puehringer <lukas.puehringer@eclipse-foundation.org>
@lukpueh lukpueh force-pushed the wrap-dt-response branch from 34b908c to 33fa2e3 Compare May 28, 2026 11:35
@lukpueh lukpueh marked this pull request as ready for review May 28, 2026 11:35
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.

Clarify SBOM upload API response

1 participant