Skip to content

Align GetResourceVersion behaviour with ListResourceVersion's - #9728

Merged
taylorsilva merged 1 commit into
masterfrom
get-resource-version-patch
Sep 18, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
get-resource-version-patch

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Problem

Received a private report that noted the behaviour of the GetResourceVersion endpoint didn't match the behaviour of the ListResourceVersion endpoint. The critical difference was that version metadata was not hidden when the resource's public status was false. We did not consider the exposure of this data a security issue for two reasons:

  1. In the docs we explicitly state that metadata should not contain private info. You should never be storing private info in resource metadata and expect Concourse to always keep it private. Resource metadata != secret store
  2. Resource metadata is still public for any public jobs. Version metadata is stored in build logs and is technically still retrievable by parsing build logs.

Changes proposed by this PR

This endpoint is used in the Causality screen in the web UI.

The database query has been updated to ensure we only return resource versions that belong to the given resource+pipeline.

The API endpoint has been updated to match the behaviour found in the ListResourceVersions endpoint. Metadata is now hidden based on the resources "public" status.

This endpoint is used in the Causality screen in the web UI.

The database query has been updated to ensure we only return resource
versions that belong to the given resource+pipeline.

The API endpoint has been updated to match the behaviour found in the
ListResourceVersions endpoint. Metadata is now hidden based on the
resources "public" status.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva taylorsilva mentioned this pull request Sep 18, 2026
15 tasks done
@taylorsilva
taylorsilva merged commit 82f4084 into master Sep 18, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the get-resource-version-patch branch September 18, 2026 21:53
@github-project-automation github-project-automation Bot moved this from Todo to Done in Pull Requests Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant