Skip to content

[Bug]: GetTags does not follow Registry API pagination (Link header) #76

Description

Version

sbi version: main @ d9404ec
Go: 1.26.5

What happened?

RegistryScanner.GetTags performs a single GET /v2/{repo}/tags/list and decodes one JSON body. The Docker Registry HTTP API paginates via the Link response header (rel=next). Repositories with many tags can silently return only the first page, under-reporting tags before FilterTags / LimitTags.

Expected: Follow Link: <url>; rel=next until exhausted (with a sane page size), concatenating all tags.

Steps to reproduce

  1. Inspect GetTags in pkg/infrastructure/scanner/registry.go — no Link handling.
  2. Against a registry that paginates tags, compare the full tag list vs SBI output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions