Skip to content

Wrap successful SBOM upload response with polling URL#47

Merged
lukpueh merged 1 commit into
eclipse-csi:mainfrom
lukpueh:wrap-dt-response
Jun 16, 2026
Merged

Wrap successful SBOM upload response with polling URL#47
lukpueh merged 1 commit into
eclipse-csi:mainfrom
lukpueh:wrap-dt-response

Conversation

@lukpueh

@lukpueh lukpueh commented May 28, 2026

Copy link
Copy Markdown
Contributor

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
@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
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 a894da0 to 729b7f0 Compare June 16, 2026 10:19
@lukpueh
lukpueh merged commit 6bbb660 into eclipse-csi:main Jun 16, 2026
3 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.

Clarify SBOM upload API response

2 participants