Skip to content

Add to adoptium.api to represent CDXA's via the API #4055

@andrew-m-leonard

Description

@andrew-m-leonard

Extend adoptium.net API for asset querying to augment the "binary" object result to include a list of "CDXA reference urls", ref: #4054 (comment)
eg. added "attestation_links" list:

"binary": {
      "architecture": "x64",
      "download_count": 1346509,
      "heap_size": "normal",
      "image_type": "jdk",
      "jvm_impl": "hotspot",
      "os": "linux",
      "package": {
        "checksum": "3c654d98404c073b8a7e66bffb27f4ae3e7ede47d13284c132d40a83144bfd8c",
        "checksum_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz.sha256.txt",
        "download_count": 1346509,
        "link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz",
        "attestation_links": [
           {
               "cdxa_link": "github.com/adoptium/temurin-attestations/21/jdk_21_0_5_11_x64_linux_AcmeInc.xml",
               "cdxa_public_signing_key_link": " github.com/adoptium/temurin-attestations-data/21/jdk_21_0_5_11_x64_linux_AcmeInc.xml.sign.pub"
           },
           {
               "cdxa_link": "github.com/adoptium/temurin-attestations/21/jdk_21_0_5_11_x64_linux_OtherOrgLtd.xml",
               "cdxa_public_signing_key_link": " github.com/adoptium/temurin-attestations-data/21/jdk_21_0_5_11_x64_linux_OtherOrgLtd.xml.sign.pub"
           }
        ],
        "metadata_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz.json",
        "name": "OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz",
        "signature_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz.sig",
        "size": 206798126
      },
      "project": "jdk",
      "scm_ref": "jdk-21.0.5+11_adopt",
      "updated_at": "2024-10-16T17:56:10Z"
    }

Metadata

Metadata

Labels

secure-devtestingIssues that enhance or fix our test suites

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions