pax_global_header00006660000000000000000000000064145512653150014521gustar00rootroot0000000000000052 comment=fdedbeee2b87765abfe9f19c093c8aee388486e4 golang-github-sigstore-protobuf-specs-0.2.1/000077500000000000000000000000001455126531500210565ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/.gitattributes000066400000000000000000000000321455126531500237440ustar00rootroot00000000000000*.pb.go linguist-generatedgolang-github-sigstore-protobuf-specs-0.2.1/.github/000077500000000000000000000000001455126531500224165ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/.github/ISSUE_TEMPLATE/000077500000000000000000000000001455126531500246015ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/.github/ISSUE_TEMPLATE/release-checklist.md000066400000000000000000000035161455126531500305170ustar00rootroot00000000000000--- name: Release Checklist about: All the tasks required to complete a release across languages title: Release v labels: '' assignees: '' --- Full release instructions are at: [RELEASE.md](/sigstore/protobuf-specs/blob/main/RELEASE.md) ## Pre Release - [ ] Check mediatype version of [Bundle](/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto), updating for major/minor releases - [ ] Check mediatype version of [TrustedRoot](/sigstore/protobuf-specs/blob/main/protos/sigstore_trustroot.proto), updating for major/minor releases - [ ] Update [CHANGELOG](/sigstore/protobuf-specs/blob/main/CHANGELOG.md) - [ ] Update [pyproject.toml](/sigstore/protobuf-specs/blob/main/gen/pb-python/pyproject.toml) so the `version` matches the targeted release - [ ] Update [package.json](/sigstore/protobuf-specs/blob/main/gen/pb-typescript/package.json) so the `version` matches the targeted release - [ ] Update [version.rb](/sigstore/protobuf-specs/blob/main/gen/pb-ruby/lib/sigstore_protobuf_specs/version.rb) so the `version` matches the targeted release - [ ] Update [Cargo.toml](/sigstore/protobuf-specs/blob/main/gen/pb-rust/Cargo.toml) so the `version` matches the targeted release ## Tag Release - [ ] `v` - [ ] `release/java/v` - [ ] `release/python/v` - [ ] `release/ruby/v` - [ ] `release/rust/v` - [ ] `release/typescript/v` - [ ] `release/jsonschema/v` ## Publish Release - [ ] Java to Maven Central ## Verify Releases Published - [ ] [Java](https://central.sonatype.com/artifact/dev.sigstore/protobuf-specs/) - [ ] [Python](https://pypi.org/project/sigstore-protobuf-specs/) - [ ] [Ruby](https://rubygems.org/gems/sigstore_protobuf_specs) - [ ] [Rust](https://crates.io/crates/sigstore_protobuf_specs) - [ ] [Typescript](https://www.npmjs.com/package/@sigstore/protobuf-specs) golang-github-sigstore-protobuf-specs-0.2.1/.github/dependabot.yml000066400000000000000000000015611455126531500252510ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. version: 2 updates: - package-ecosystem: "gomod" directory: "/" schedule: interval: "daily" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "daily" - package-ecosystem: "docker" directory: "/" schedule: interval: "daily"golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/000077500000000000000000000000001455126531500244535ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/generate.yml000066400000000000000000000025651455126531500270000ustar00rootroot00000000000000# # Copyright 2022 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check generated code for changes permissions: contents: read on: push: paths: - '**.proto' - 'gen/**' pull_request: paths: - '**.proto' - 'gen/**' jobs: check_generated_protos: name: Check generated protobufs runs-on: ubuntu-latest steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3 # clear out the generated files directory so we know we are actually # generating all the files again (instead of a subset) - name: Clear out protobuf directory run: | make clean - name: Compile protobufs run: | make all - name: Ensure no files were modified as a result of the codegen run: git update-index --refresh && git diff-index --quiet HEAD -- || git diff --exit-code golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/gradle-wrapper-validation.yml000066400000000000000000000004161455126531500322430ustar00rootroot00000000000000name: "Validate Gradle Wrapper" on: [push, pull_request] jobs: validation: name: "Validation" runs-on: ubuntu-latest steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - uses: gradle/wrapper-validation-action@v1 golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/java-build-for-release.yml000066400000000000000000000056431455126531500314260ustar00rootroot00000000000000name: Build Java Release on: push: tags: # if you change this pattern, make sure jobs.strip-tag still works - 'release/java/v[0-9]+.[0-9]+.[0-9]+' jobs: ci: uses: ./.github/workflows/java-build.yml strip-tag: runs-on: ubuntu-latest outputs: version: ${{ steps.version.outputs.version }} steps: - name: process tag id: version run: | TAG=${{ github.ref_name }} echo "version=${TAG#"release/java/v"}" >> $GITHUB_OUTPUT build: runs-on: ubuntu-latest needs: [ci, strip-tag] outputs: hashes: ${{ steps.hash.outputs.hashes }} steps: - name: checkout tag uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 with: ref: "${{ github.ref }}" - name: Set up JDK 8 uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: java-version: 8 distribution: 'temurin' - name: Build project run: | # override the version in gradle.properties cd java ./gradlew clean createReleaseBundle -Pversion=${{ needs.strip-tag.outputs.version }} - name: Hash Artifacts id: hash run: | cd java/build/release echo "hashes=$(sha256sum ./* | base64 -w0)" >> $GITHUB_OUTPUT sha256sum ./* - name: Upload build artifacts uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: name: project-release-artifacts path: ./java/build/release/ if-no-files-found: error provenance: needs: [build, strip-tag] permissions: actions: read # To read the workflow path. id-token: write # To sign the provenance. contents: write uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.8.0 with: attestation-name: "protobuf-specs-${{ needs.strip-tag.outputs.version }}.attestation.intoto.jsonl" base64-subjects: "${{ needs.build.outputs.hashes }}" create-release: runs-on: ubuntu-latest needs: [provenance, build] permissions: contents: write # To draft a release steps: - name: Download attestation uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: name: "${{ needs.provenance.outputs.attestation-name }}" path: ./release/ - name: Download gradle release artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: name: project-release-artifacts path: ./release/ - name: Create draft release uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 with: name: ${{ github.ref_name }} tag_name: ${{ github.ref_name }} files: ./release/* draft: true golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/java-build.yml000066400000000000000000000027621455126531500272230ustar00rootroot00000000000000# # Copyright 2022 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check java build permissions: contents: read on: workflow_call: # allow this workflow to be called by other workflows push: paths: - '**.proto' - 'java/**' pull_request: paths: - '**.proto' - 'java/**' jobs: build: strategy: matrix: java-version: [8, 11, 17] fail-fast: false runs-on: ubuntu-latest steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 with: java-version: ${{ matrix.java-version }} distribution: 'temurin' # make sure jar generation works and tests/checks pass - name: Test uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2.7.0 with: arguments: build build-root-directory: java golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/python-build.yml000066400000000000000000000027071455126531500276220ustar00rootroot00000000000000# # Copyright 2022 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check Python build permissions: contents: read on: push: paths: - '**.proto' - 'gen/pb-python/**' pull_request: paths: - '**.proto' - 'gen/pb-python/**' jobs: build: strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] fail-fast: false runs-on: ubuntu-latest steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0 with: python-version: ${{ matrix.python-version }} - name: Build run: | cd gen/pb-python python -m venv env && source env/bin/activate python -m pip install --upgrade pip python -m pip install .[dev] python -m build golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/python-release.yml000066400000000000000000000010431455126531500301330ustar00rootroot00000000000000on: push: tags: - 'release/python/v*' name: release Python package jobs: pypi: name: upload release to PyPI runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: "3.x" - name: build run: | cd gen/pb-python/ make package - name: publish uses: pypa/gh-action-pypi-publish@v1.8.10 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} packages_dir: gen/pb-python/dist/ golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/ruby-build.yml000066400000000000000000000026031455126531500272550ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check Ruby build permissions: contents: read on: push: paths: - '**.proto' - 'gen/pb-ruby/**' pull_request: paths: - '**.proto' - 'gen/pb-ruby/**' jobs: build: strategy: matrix: python-version: - '2.7' - '3.0' - '3.1' - '3.2' fail-fast: false runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-ruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Set up Ruby ${{ matrix.python-version }} uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v4.5.0 with: ruby-version: ${{ matrix.python-version }} - name: Build run: | gem build sigstore_protobuf_specs.gemspec golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/ruby-release.yml000066400000000000000000000025531455126531500276020ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. on: push: tags: - 'release/ruby/v*' name: release Ruby Gem jobs: publish: name: Publish to RubyGems runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-ruby steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v4.5.0 with: ruby-version: '3.2' - name: Build run: | gem build sigstore_protobuf_specs.gemspec - name: Publish run: | mkdir -p $HOME/.gem printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials gem push *.gem env: RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/rust-build.yml000066400000000000000000000027011455126531500272700ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check Rust build permissions: contents: read on: push: paths: - "**.proto" - "gen/pb-rust/**" pull_request: paths: - "**.proto" - "gen/pb-rust/**" env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest strategy: matrix: toolchain: - stable - beta - nightly steps: - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: | cd gen/pb-rust cargo build --verbose test: runs-on: ubuntu-latest strategy: matrix: toolchain: - stable steps: - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: | cd gen/pb-rust cargo test golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/rust-release.yml000066400000000000000000000017461455126531500276210ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. on: push: tags: - 'release/rust/v*' name: release Rust crate jobs: publish: name: Publish to crates.io runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-rust steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - run: cargo publish env: CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}" golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/typescript-build.yml000066400000000000000000000030171455126531500305020ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Check Typescript build permissions: contents: read on: push: paths: - '**.proto' - 'gen/pb-typescript/**' pull_request: paths: - '**.proto' - 'gen/pb-typescript/**' jobs: build: strategy: matrix: node-version: - 14.17.0 - 14.x - 16.13.0 - 16.x - 18.0.0 - 18.x fail-fast: false runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-typescript steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - name: Setup node ${{ matrix.node-version }} uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # v3 with: node-version: ${{ matrix.node-version }} cache: npm cache-dependency-path: gen/pb-typescript/package-lock.json - name: Build run: | npm ci npm run build golang-github-sigstore-protobuf-specs-0.2.1/.github/workflows/typescript-publish.yml000066400000000000000000000027751455126531500310630ustar00rootroot00000000000000# # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. on: push: tags: - 'release/typescript/v*' name: Release TypeScript package permissions: contents: read id-token: write jobs: publish: name: Publish package to npmjs runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-typescript steps: - name: Checkout source uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 - name: Setup node uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # v3 with: node-version: 16 registry-url: 'https://registry.npmjs.org' cache: npm cache-dependency-path: gen/pb-typescript/package-lock.json - name: Build package run: | npm ci npm run build - name: Publish package run: | npm install -g npm@latest npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} golang-github-sigstore-protobuf-specs-0.2.1/.gitignore000066400000000000000000000000031455126531500230370ustar00rootroot00000000000000*~ golang-github-sigstore-protobuf-specs-0.2.1/CHANGELOG.md000066400000000000000000000046471455126531500227020ustar00rootroot00000000000000# Changelog All notable changes to `protobuf-specs` will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). All versions prior to 0.2.0 are untracked. ## [Unreleased] ## 0.2.1 ### Added * CloudEvents proto for Rekor pub/sub messages ([#86](https://github.com/sigstore/protobuf-specs/pull/86)) * Generate jsonschema ([#112](https://github.com/sigstore/protobuf-specs/pull/112)) * Rust bindings for jsonschema ([#118](https://github.com/sigstore/protobuf-specs/pull/118)) * Dependabot to update dependencies ([#99](https://github.com/sigstore/protobuf-specs/pull/99)) ### Changed There were no changes in this release. ### Fixed * Docs: Fixed spelling error ([#97](https://github.com/sigstore/protobuf-specs/pull/97)) * Docs: Clarified log index vs global log index ([#101](https://github.com/sigstore/protobuf-specs/pull/101)) * Docs: Clarified purpose of SET as a signed timestamp ([#100](https://github.com/sigstore/protobuf-specs/pull/100)) * Docs: Clarify message digest purpose ([#114](https://github.com/sigstore/protobuf-specs/pull/114)) ### Removed There were no removals in this release. ## 0.2.0 ### Added * Rust bindings have been added ([#88](https://github.com/sigstore/protobuf-specs/pull/88)) ### Changed * `TransparencyLogEntry.inclusion_proof` is now marked as required (was previously optional), while `TransparencyLogEntry.inclusion_promise` is now marked as optional (was previously required) ([#84](https://github.com/sigstore/protobuf-specs/pull/84)) * More Rekor messages and message fields have been marked as required ([#79](https://github.com/sigstore/protobuf-specs/pull/79)) * Ruby bindings: class names have been updated and now live in the `Sigstore::` namespace ([#87](https://github.com/sigstore/protobuf-specs/pull/87)) ### Fixed * Docs: Clarify that `TransparencyLogEntry.canonicalized_body` is optional ([#74](https://github.com/sigstore/protobuf-specs/pull/74)) * Docs: Clarify that key IDs are digests over SPKI encodings ([#73](https://github.com/sigstore/protobuf-specs/pull/73)) * Docs: Clarify that bundled certificate chains must not contain root or intermediate certificates that should be trused out-of-band ([#77](https://github.com/sigstore/protobuf-specs/pull/77)) * Docs: Clarify `TimeRange` validity periods ([#78](https://github.com/sigstore/protobuf-specs/pull/78)) ### Removed There were no removals in this release. golang-github-sigstore-protobuf-specs-0.2.1/CODE_OF_CONDUCT.md000066400000000000000000000062161455126531500236620ustar00rootroot00000000000000# Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: * Using welcoming and inclusive language * Being respectful of differing viewpoints and experiences * Gracefully accepting constructive criticism * Focusing on what is best for the community * Showing empathy towards other community members Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery and unwelcome sexual attention or advances * Trolling, insulting/derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or electronic address, without explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at . All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] [homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/4/golang-github-sigstore-protobuf-specs-0.2.1/COPYRIGHT.txt000066400000000000000000000010631455126531500231670ustar00rootroot00000000000000 Copyright 2022 The Sigstore Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/Dockerfile000066400000000000000000000012111455126531500230430ustar00rootroot00000000000000FROM namely/protoc-all@sha256:33e47b2aece23a282a9f8d03a193c063cdd4b1f60d427b148b3c449b51a3ba3c # Install Python pip. RUN set -ex && \ apt-get update && \ apt-get install -y --no-install-recommends \ python3-pip # Install Rust cargo. RUN set -ex && \ apt-get install -y --no-install-recommends \ curl \ build-essential RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" # Install Python dev dependencies. COPY ./dev-requirements.txt /tmp/ RUN python3 -m pip install --upgrade pip && \ python3 -m pip install --requirement /tmp/dev-requirements.txt golang-github-sigstore-protobuf-specs-0.2.1/Dockerfile.jsonschema000066400000000000000000000010761455126531500252050ustar00rootroot00000000000000# 3.18.2 FROM alpine@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a RUN apk add --update protoc protobuf-dev go git RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@1.4.1 # This is required to get the field_behavior.proto file # NOTE: --filter=tree:0 performs a treeless clone; we do this to optimize cloning # this otherwise relatively heavy repository. RUN git clone --filter=tree:0 https://github.com/googleapis/googleapis.git \ && cd googleapis \ && git checkout 95f0f2b2aee51e460646320d6e8f2ce75c463f5a golang-github-sigstore-protobuf-specs-0.2.1/LICENSE000066400000000000000000000261361455126531500220730ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/Makefile000066400000000000000000000073011455126531500225170ustar00rootroot00000000000000# # Copyright 2022 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. PROTOC_IMAGE=protobuf-specs-build JSONSCHEMA_IMAGE=jsonschema-specs-build # generate all language protobuf code all: go python typescript ruby rust jsonschema # generate Go protobuf code go: docker-image @echo "Generating go protobuf files" docker run --platform linux/amd64 -v ${PWD}:/defs ${PROTOC_IMAGE} -d protos -l go --go-module-prefix github.com/sigstore/protobuf-specs/gen/pb-go python: docker-image @echo "Generating python protobuf files" # we need to manually fix the PYTHONPATH due to: https://github.com/namely/docker-protoc/pull/356 docker run \ --platform linux/amd64 \ -v ${PWD}:/defs \ -e PYTHONPATH="/opt/mypy-protobuf/" \ --entrypoint bash ${PROTOC_IMAGE} \ -c "cd ./gen/pb-python/sigstore_protobuf_specs && protoc -I/opt/include -I../../../protos/ --python_betterproto_out=. ../../../protos/*.proto" typescript: docker-image @echo "Generating javascript protobuf files" docker run \ --platform linux/amd64 \ -v ${PWD}:/defs \ ${PROTOC_IMAGE} \ -d protos -l typescript -o ./gen/pb-typescript/src/__generated__ --ts_opt oneof=unions,forceLong=string,env=node,exportCommonSymbols=false,outputPartialMethods=false,outputEncodeMethods=false,unrecognizedEnum=false ruby: docker-image @echo "Generating ruby protobuf files" docker run \ --platform linux/amd64 \ -v ${PWD}:/defs \ --entrypoint bash ${PROTOC_IMAGE} \ -c "cd ./gen/pb-ruby && protoc -I/opt/include -I../../protos/ --ruby_out=lib ../../protos/*.proto" jsonschema: docker-image-jsonschema @echo "Generating JSON schema files" docker run \ -v ${PWD}:/defs \ --entrypoint sh \ ${JSONSCHEMA_IMAGE} \ -c "cd defs/gen/jsonschema && ./jsonschema.sh -I ../../protos -I /googleapis/ --jsonschema_out=schemas ../../protos/*.proto" gen/pb-rust/schemas: jsonschema cp -r gen/jsonschema/schemas gen/pb-rust rust: docker-image gen/pb-rust/schemas @echo "Generating rust protobuf files" docker run \ --platform linux/amd64 \ -v ${PWD}:/defs \ -e "RUST_BACKTRACE=1" \ --entrypoint bash ${PROTOC_IMAGE} \ -c "cd gen/pb-rust && cargo build" # docker already does its own caching so we can attempt a build every time .PHONY: docker-image docker-image: @echo "Building development docker image" docker build -t ${PROTOC_IMAGE} . # to recover from a situation where a stale layer exist, just purging the # docker image via `make clean` is not enough. Re-building without layer # cache is the only solution. .PHONY: docker-image-no-cache docker-image-no-cache: @echo "Building development docker image with disabled cache" docker build --no-cache -t ${PROTOC_IMAGE} . .PHONY: docker-image-jsonschema docker-image-jsonschema: @echo "Building docker image for generating JSON schema files" docker build -t ${JSONSCHEMA_IMAGE} -f Dockerfile.jsonschema . # clean up generated files (not working? try sudo make clean) clean: rm -rf gen/pb-go \ gen/pb-typescript/src/__generated__ \ gen/pb-python/sigstore_protobuf_specs/dev \ gen/pb-python/sigstore_protobuf_specs/io \ gen/pb-rust/schemas \ gen/pb-rust/target docker rmi -f ${PROTOC_IMAGE} help: docker run --pull always --platform linux/amd64 -v ${PWD}:/defs ${PROTOC_IMAGE} golang-github-sigstore-protobuf-specs-0.2.1/README.md000066400000000000000000000006551455126531500223430ustar00rootroot00000000000000# protobuf-specs This repository holds protobuf specifications for Sigstore messages. ## Protobuf If you change protobuf definitions, you will need to regenerate the code by running the protocol buffer compiler on the changed `.proto` files. You will need [Docker](https://docs.docker.com/get-docker/) installed to generate the protobuf stubs. Then run, ``` $ make all ``` to generate the Go and Python files under `gen/`. golang-github-sigstore-protobuf-specs-0.2.1/RELEASE.md000066400000000000000000000113741455126531500224660ustar00rootroot00000000000000# Release management for protocol buffer specifications This repository primary provides two features: * Protobuf specifications for messages used within Sigstore. * Language bindings for different ecosystems. During a release, a few steps have to be synchronized to release the messages and the language clients. ## Notes on semantic versioning General information on evolving protocol buffers is described [here](https://developers.google.com/protocol-buffers/docs/proto3#updating). ### Major version change As expected this indicate a breaking change. Any major update MUST update the package name of the generated code. Examples of breaking changes are (non-complete list): * Deletion or rename of a field. * Changing the type of a field. * Altering the field number (**NEVER DO THIS!**). ### Minor version change An update which does not break the functionality of existing (older) clients. For more information on forward compatible changes in protobuf see the [Language Guide](https://developers.google.com/protocol-buffers/docs/proto3#updating). ### Patch version change Any update which does not change the behaviour. For the protocol buffer messages this is limited to _only_ capture changes in the comments, not the messages themselves. For language bindings patch versions MAY be used for bug-fixes. ## Releasing new versions of the messages Checklist prior to releasing: 1. Gather consensus among the community and maintainers of this repository that the messages are ready to be released. Create an issue to inform the community. The issue should describe the intended release, and any changes it introduces. The issue must be open for comments *at least* for a complete week (7 days). 1. Decide the new version of this release. The releases are versioned via [semver](https://semver.org/). 1. Two of the messages, [Bundle](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) and [TrustedRoot](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_trustroot.proto), are expected to be persisted and serialized to disk, and exchanged via other mechanisms such as the [Sigstore TUF root](https://github.com/sigstore/root-signing). Therefore they contain a `media_type`. The media types are versioned, and so they must be updated appropriately according to semver. Each message SHOULD be versioned independently and so MAY differ from the targeted release. The media type represents the version of the message, not the release. Note that the media type does NOT capture the patch version, only major/minor. 1. Update [pyproject.toml](gen/pb-python/pyproject.toml) so the `version` matches the targeted release. 1. Update [package.json](gen/pb-typescript/package.json) so the `version` matches the targeted release. 1. Update [version.rb](gen/pb-ruby/lib/sigstore_protobuf_specs/version.rb) so the `version` matches the targeted release. 1. Update [Cargo.toml](gen/pb-rust/Cargo.toml) so the `version` matches the targeted release. 1. Update the [CHANGELOG](https://github.com/sigstore/protobuf-specs/blob/main/CHANGELOG.md). When all of the above are set, prepare for release by creating a tag with the following pattern: `vX.Y.Z` and push to the repository. Bonus point if the tag is signed :champagne:. ## Releasing new language bindings ### Go Prepare a tag with the pattern `vX.Y.Z` and push it. No workflow is needed. **WARNING**: Tags should not be updated to a new ref or deleted/recreated after creation. Go provides a checksum database that persists an immutable mapping between version and ref, and updating the tag will break clients that have already downloaded the release. ### Java Prepare a tag with the following pattern `release/java/vX.Y.Z` and push it. The [workflow](.github/workflows/java-build-for-release.yml) will automatically start. After the job is finished, complete the release following [java release instructions](https://github.com/sigstore/protobuf-specs/blob/main/java/README.md#releasing). ### Python Prepare a tag with the following pattern `release/python/vX.Y.Z` and push it. The [workflow](.github/workflows/python-release.yml) will automatically start. ### Ruby Prepare a tag with the following pattern `release/ruby/vX.Y.Z` and push it. The [workflow](.github/workflows/ruby-release.yml) will automatically start. ### Rust Prepare a tag with the following pattern `release/rust/vX.Y.Z` and push it. The [workflow](.github/workflows/rust-release.yml) will automatically start. ### TypeScript Prepare a tag with the following pattern `release/typescript/vX.Y.Z` and push it. The [workflow](.github/workflows/typescript-release.yml) will automatically start. ### JSON Schema Prepare a tag with the pattern `release/jsonschema/vX.Y.Z` and push it. No workflow is required. golang-github-sigstore-protobuf-specs-0.2.1/dev-requirements.txt000066400000000000000000000000371455126531500251160ustar00rootroot00000000000000betterproto[compiler]==2.0.0b5 golang-github-sigstore-protobuf-specs-0.2.1/gen/000077500000000000000000000000001455126531500216275ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/000077500000000000000000000000001455126531500237615ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/jsonschema.sh000077500000000000000000000005131455126531500264510ustar00rootroot00000000000000#!/bin/sh set -u set -e protoc --plugin=/root/go/bin/protoc-gen-jsonschema \ --jsonschema_opt=disallow_additional_properties \ --jsonschema_opt=enforce_oneof \ --jsonschema_opt=enums_as_strings_only \ --jsonschema_opt=file_extension=schema.json \ --jsonschema_opt=json_fieldnames \ "$@" golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/000077500000000000000000000000001455126531500254045ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Artifact.schema.json000066400000000000000000000017441455126531500313010ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Artifact", "definitions": { "Artifact": { "properties": { "artifactUri": { "type": "string", "description": "Location of the artifact" }, "artifact": { "type": "string", "description": "The raw bytes of the artifact", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] } ], "title": "Artifact" } } }ArtifactVerificationOptions.schema.json000066400000000000000000000313141455126531500351350ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ArtifactVerificationOptions", "definitions": { "ArtifactVerificationOptions": { "properties": { "certificateIdentities": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentities", "additionalProperties": false }, "publicKeys": { "$ref": "#/definitions/dev.sigstore.verification.v1.PublicKeyIdentities", "additionalProperties": false, "description": "To simplify verification implementation, the logic for bundle verification should be implemented as a higher-order function, where one of argument should be an interface over the set of trusted public keys, like this: `Verify(bytes artifact, bytes signature, string key_id)`. This way the caller is in full control of mapping the identified (or hinted) key in the bundle to one of the trusted keys, as this process is inherently application specific." }, "tlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions", "additionalProperties": false, "description": "Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false" }, "ctlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions", "additionalProperties": false, "description": "Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Detached SCT: false Disable: false" }, "tsaOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions", "additionalProperties": false, "description": "Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 1 Disable: false" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "certificate_identities" ] }, { "required": [ "public_keys" ] }, { "required": [ "tlog_options" ] }, { "required": [ "ctlog_options" ] }, { "required": [ "tsa_options" ] } ], "title": "Artifact Verification Options", "description": "A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of ct transparency logs the certificate must appear on." }, "detachedSct": { "type": "boolean", "description": "Expect detached SCTs. This is not supported right now as we can't capture an detached SCT in the bundle." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of signed timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable signed timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Timestamp Authority Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions": { "properties": { "threshold": { "type": "integer", "description": "Number of transparency logs the entry must appear on." }, "performOnlineVerification": { "type": "boolean", "description": "Perform an online inclusion proof." }, "disable": { "type": "boolean", "description": "Disable verification for transparency logs." } }, "additionalProperties": false, "type": "object", "title": "Tlog Options" }, "dev.sigstore.verification.v1.CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.verification.v1.PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Bundle.schema.json000066400000000000000000000553201455126531500307540ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Bundle", "definitions": { "Bundle": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 or application/vnd.dev.sigstore.bundle+json;version=0.2 when encoded as JSON." }, "verificationMaterial": { "$ref": "#/definitions/dev.sigstore.bundle.v1.VerificationMaterial", "additionalProperties": false, "description": "When a signer is identified by a X.509 certificate, a verifier MUST verify that the signature was computed at the time the certificate was valid as described in the Sigstore client spec: \"Verification using a Bundle\". \u003chttps://docs.google.com/document/d/1kbhK2qyPPk8SLavHzYSDM8-Ueul9_oxIMVFuWMWKz0E/edit#heading=h.x8bduppe89ln\u003e" }, "messageSignature": { "$ref": "#/definitions/dev.sigstore.common.v1.MessageSignature", "additionalProperties": false }, "dsseEnvelope": { "$ref": "#/definitions/io.intoto.Envelope", "additionalProperties": false, "description": "A DSSE envelope can contain arbitrary payloads. Verifiers must verify that the payload type is a supported and expected type. This is part of the DSSE protocol which is defined here: \u003chttps://github.com/secure-systems-lab/dsse/blob/master/protocol.md\u003e" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "message_signature" ] }, { "required": [ "dsse_envelope" ] } ], "title": "Bundle" }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.bundle.v1.VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "io.intoto.Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/CertificateAuthority.schema.json000066400000000000000000000113261455126531500336740ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateAuthority", "definitions": { "CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/CertificateIdentities.schema.json000066400000000000000000000100631455126531500340020ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateIdentities", "definitions": { "CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/CertificateIdentity.schema.json000066400000000000000000000070441455126531500334770ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateIdentity", "definitions": { "CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Checkpoint.schema.json000066400000000000000000000016661455126531500316360ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Checkpoint", "definitions": { "Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/CloudEvent.schema.json000066400000000000000000000136041455126531500316120ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CloudEvent", "definitions": { "CloudEvent": { "properties": { "id": { "type": "string", "title": "-- CloudEvent Context Attributes", "description": "-- CloudEvent Context Attributes Required Attributes" }, "source": { "type": "string", "description": "URI-reference" }, "specVersion": { "type": "string" }, "type": { "type": "string" }, "attributes": { "additionalProperties": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue", "additionalProperties": false }, "type": "object", "description": "Optional \u0026 Extension Attributes" }, "binaryData": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "textData": { "type": "string" }, "protoData": { "properties": { "typeUrl": { "type": "string", "description": "A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics." }, "value": { "type": "string", "description": "Must be a valid serialized protocol buffer of the above specified type.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "binary_data" ] }, { "required": [ "text_data" ] }, { "required": [ "proto_data" ] } ], "title": "Cloud Event" }, "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue": { "properties": { "ceBoolean": { "type": "boolean" }, "ceInteger": { "type": "integer" }, "ceString": { "type": "string" }, "ceBytes": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "ceUri": { "type": "string" }, "ceUriRef": { "type": "string" }, "ceTimestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "ce_boolean" ] }, { "required": [ "ce_integer" ] }, { "required": [ "ce_string" ] }, { "required": [ "ce_bytes" ] }, { "required": [ "ce_uri" ] }, { "required": [ "ce_uri_ref" ] }, { "required": [ "ce_timestamp" ] } ], "title": "*\n The CloudEvent specification defines\n seven attribute value types...", "description": "* The CloudEvent specification defines seven attribute value types..." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/CloudEventBatch.schema.json000066400000000000000000000147061455126531500325600ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CloudEventBatch", "definitions": { "CloudEventBatch": { "properties": { "events": { "items": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "*\n CloudEvent Protobuf Batch Format", "description": "* CloudEvent Protobuf Batch Format" }, "dev.sigstore.events.v1.CloudEvent": { "properties": { "id": { "type": "string", "title": "-- CloudEvent Context Attributes", "description": "-- CloudEvent Context Attributes Required Attributes" }, "source": { "type": "string", "description": "URI-reference" }, "specVersion": { "type": "string" }, "type": { "type": "string" }, "attributes": { "additionalProperties": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue", "additionalProperties": false }, "type": "object", "description": "Optional \u0026 Extension Attributes" }, "binaryData": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "textData": { "type": "string" }, "protoData": { "properties": { "typeUrl": { "type": "string", "description": "A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics." }, "value": { "type": "string", "description": "Must be a valid serialized protocol buffer of the above specified type.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "binary_data" ] }, { "required": [ "text_data" ] }, { "required": [ "proto_data" ] } ], "title": "Cloud Event" }, "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue": { "properties": { "ceBoolean": { "type": "boolean" }, "ceInteger": { "type": "integer" }, "ceString": { "type": "string" }, "ceBytes": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "ceUri": { "type": "string" }, "ceUriRef": { "type": "string" }, "ceTimestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "ce_boolean" ] }, { "required": [ "ce_integer" ] }, { "required": [ "ce_string" ] }, { "required": [ "ce_bytes" ] }, { "required": [ "ce_uri" ] }, { "required": [ "ce_uri_ref" ] }, { "required": [ "ce_timestamp" ] } ], "title": "*\n The CloudEvent specification defines\n seven attribute value types...", "description": "* The CloudEvent specification defines seven attribute value types..." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/DistinguishedName.schema.json000066400000000000000000000007771455126531500331550ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/DistinguishedName", "definitions": { "DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Envelope.schema.json000066400000000000000000000042551455126531500313210ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Envelope", "definitions": { "Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/HashOutput.schema.json000066400000000000000000000031111455126531500316360ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/HashOutput", "definitions": { "HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/InclusionPromise.schema.json000066400000000000000000000022711455126531500330420ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/InclusionPromise", "definitions": { "InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/InclusionProof.schema.json000066400000000000000000000055121455126531500325120ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/InclusionProof", "definitions": { "InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Input.schema.json000066400000000000000000001327111455126531500306420ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Input", "definitions": { "Input": { "properties": { "artifactTrustRoot": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TrustedRoot", "additionalProperties": false, "description": "The verification materials provided during a bundle verification. The running process is usually preloaded with a \"global\" dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to verifying an artifact (i.e a bundle), and/or based on current policy, some selection is expected to happen, to filter out the exact certificate authority to use, which transparency logs are relevant etc. The result should b ecaptured in the `artifact_trust_root`." }, "artifactVerificationOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions", "additionalProperties": false }, "bundle": { "$ref": "#/definitions/dev.sigstore.bundle.v1.Bundle", "additionalProperties": false }, "artifact": { "$ref": "#/definitions/dev.sigstore.verification.v1.Artifact", "additionalProperties": false, "description": "If the bundle contains a message signature, the artifact must be provided." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact" ] } ], "title": "Input", "description": "Input captures all that is needed to call the bundle verification method, to verify a single artifact referenced by the bundle." }, "dev.sigstore.bundle.v1.Bundle": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 or application/vnd.dev.sigstore.bundle+json;version=0.2 when encoded as JSON." }, "verificationMaterial": { "$ref": "#/definitions/dev.sigstore.bundle.v1.VerificationMaterial", "additionalProperties": false, "description": "When a signer is identified by a X.509 certificate, a verifier MUST verify that the signature was computed at the time the certificate was valid as described in the Sigstore client spec: \"Verification using a Bundle\". \u003chttps://docs.google.com/document/d/1kbhK2qyPPk8SLavHzYSDM8-Ueul9_oxIMVFuWMWKz0E/edit#heading=h.x8bduppe89ln\u003e" }, "messageSignature": { "$ref": "#/definitions/dev.sigstore.common.v1.MessageSignature", "additionalProperties": false }, "dsseEnvelope": { "$ref": "#/definitions/io.intoto.Envelope", "additionalProperties": false, "description": "A DSSE envelope can contain arbitrary payloads. Verifiers must verify that the payload type is a supported and expected type. This is part of the DSSE protocol which is defined here: \u003chttps://github.com/secure-systems-lab/dsse/blob/master/protocol.md\u003e" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "message_signature" ] }, { "required": [ "dsse_envelope" ] } ], "title": "Bundle" }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.bundle.v1.VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "dev.sigstore.trustroot.v1.CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.trustroot.v1.TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." }, "dev.sigstore.trustroot.v1.TrustedRoot": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1" }, "tlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted Rekor servers." }, "certificateAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate authorities (e.g Fulcio), and any intermediate certificates they provide. If a CA is issuing multiple intermediate certificate, each combination shall be represented as separate chain. I.e, a single root cert may appear in multiple chains but with different intermediate and/or leaf certificates. The certificates are intended to be used for verifying artifact signatures." }, "ctlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate transparency logs." }, "timestampAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted timestamping authorities." } }, "additionalProperties": false, "type": "object", "title": "Trusted Root", "description": "TrustedRoot describes the client's complete set of trusted entities. How the TrustedRoot is populated is not specified, but can be a combination of many sources such as TUF repositories, files on disk etc. The TrustedRoot is not meant to be used for any artifact verification, only to capture the complete/global set of trusted verification materials. When verifying an artifact, based on the artifact and policies, a selection of keys/authorities are expected to be extracted and provided to the verification function. This way the set of keys/authorities can be kept to a minimal set by the policy to gain better control over what signatures that are allowed. The embedded transparency logs, CT logs, CAs and TSAs MUST include any previously used instance -- otherwise signatures made in the past cannot be verified. The currently used instances MUST NOT have their 'end' timestamp set in their 'valid_for' attribute for easy identification. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first and the current instance last." }, "dev.sigstore.verification.v1.Artifact": { "properties": { "artifactUri": { "type": "string", "description": "Location of the artifact" }, "artifact": { "type": "string", "description": "The raw bytes of the artifact", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] } ], "title": "Artifact" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions": { "properties": { "certificateIdentities": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentities", "additionalProperties": false }, "publicKeys": { "$ref": "#/definitions/dev.sigstore.verification.v1.PublicKeyIdentities", "additionalProperties": false, "description": "To simplify verification implementation, the logic for bundle verification should be implemented as a higher-order function, where one of argument should be an interface over the set of trusted public keys, like this: `Verify(bytes artifact, bytes signature, string key_id)`. This way the caller is in full control of mapping the identified (or hinted) key in the bundle to one of the trusted keys, as this process is inherently application specific." }, "tlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions", "additionalProperties": false, "description": "Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false" }, "ctlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions", "additionalProperties": false, "description": "Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Detached SCT: false Disable: false" }, "tsaOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions", "additionalProperties": false, "description": "Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 1 Disable: false" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "certificate_identities" ] }, { "required": [ "public_keys" ] }, { "required": [ "tlog_options" ] }, { "required": [ "ctlog_options" ] }, { "required": [ "tsa_options" ] } ], "title": "Artifact Verification Options", "description": "A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact." }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of ct transparency logs the certificate must appear on." }, "detachedSct": { "type": "boolean", "description": "Expect detached SCTs. This is not supported right now as we can't capture an detached SCT in the bundle." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of signed timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable signed timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Timestamp Authority Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions": { "properties": { "threshold": { "type": "integer", "description": "Number of transparency logs the entry must appear on." }, "performOnlineVerification": { "type": "boolean", "description": "Perform an online inclusion proof." }, "disable": { "type": "boolean", "description": "Disable verification for transparency logs." } }, "additionalProperties": false, "type": "object", "title": "Tlog Options" }, "dev.sigstore.verification.v1.CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.verification.v1.PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" }, "io.intoto.Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/KindVersion.schema.json000066400000000000000000000014471455126531500317770ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/KindVersion", "definitions": { "KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/LogId.schema.json000066400000000000000000000014461455126531500305410ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/LogId", "definitions": { "LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/MessageSignature.schema.json000066400000000000000000000056321455126531500330120ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/MessageSignature", "definitions": { "MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/ObjectIdentifier.schema.json000066400000000000000000000010621455126531500327460ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ObjectIdentifier", "definitions": { "ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" } } }ObjectIdentifierValuePair.schema.json000066400000000000000000000023221455126531500345000ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ObjectIdentifierValuePair", "definitions": { "ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/PublicKey.schema.json000066400000000000000000000056171455126531500314360ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKey", "definitions": { "PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/PublicKeyIdentifier.schema.json000066400000000000000000000017671455126531500334430ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKeyIdentifier", "definitions": { "PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/PublicKeyIdentities.schema.json000066400000000000000000000066151455126531500334570ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKeyIdentities", "definitions": { "PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }RFC3161SignedTimestamp.schema.json000066400000000000000000000013651455126531500334270ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/RFC3161SignedTimestamp", "definitions": { "RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/Signature.schema.json000066400000000000000000000014061455126531500315000ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Signature", "definitions": { "Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }SubjectAlternativeName.schema.json000066400000000000000000000025011455126531500340540ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/SubjectAlternativeName", "definitions": { "SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/TimeRange.schema.json000066400000000000000000000016351455126531500314160ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TimeRange", "definitions": { "TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }TimestampVerificationData.schema.json000066400000000000000000000045331455126531500345640ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TimestampVerificationData", "definitions": { "TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/TransparencyLogEntry.schema.json000066400000000000000000000217511455126531500337010ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TransparencyLogEntry", "definitions": { "TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." } } }TransparencyLogInstance.schema.json000066400000000000000000000133651455126531500342670ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TransparencyLogInstance", "definitions": { "TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/TrustedRoot.schema.json000066400000000000000000000315031455126531500320360ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TrustedRoot", "definitions": { "TrustedRoot": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1" }, "tlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted Rekor servers." }, "certificateAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate authorities (e.g Fulcio), and any intermediate certificates they provide. If a CA is issuing multiple intermediate certificate, each combination shall be represented as separate chain. I.e, a single root cert may appear in multiple chains but with different intermediate and/or leaf certificates. The certificates are intended to be used for verifying artifact signatures." }, "ctlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate transparency logs." }, "timestampAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted timestamping authorities." } }, "additionalProperties": false, "type": "object", "title": "Trusted Root", "description": "TrustedRoot describes the client's complete set of trusted entities. How the TrustedRoot is populated is not specified, but can be a combination of many sources such as TUF repositories, files on disk etc. The TrustedRoot is not meant to be used for any artifact verification, only to capture the complete/global set of trusted verification materials. When verifying an artifact, based on the artifact and policies, a selection of keys/authorities are expected to be extracted and provided to the verification function. This way the set of keys/authorities can be kept to a minimal set by the policy to gain better control over what signatures that are allowed. The embedded transparency logs, CT logs, CAs and TSAs MUST include any previously used instance -- otherwise signatures made in the past cannot be verified. The currently used instances MUST NOT have their 'end' timestamp set in their 'valid_for' attribute for easy identification. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first and the current instance last." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.trustroot.v1.CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.trustroot.v1.TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/VerificationMaterial.schema.json000066400000000000000000000376411455126531500336520ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/VerificationMaterial", "definitions": { "VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/X509Certificate.schema.json000066400000000000000000000010731455126531500323470ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/X509Certificate", "definitions": { "X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/jsonschema/schemas/X509CertificateChain.schema.json000066400000000000000000000036411455126531500333150ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/X509CertificateChain", "definitions": { "X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/000077500000000000000000000000001455126531500226335ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/bundle/000077500000000000000000000000001455126531500241045ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/bundle/v1/000077500000000000000000000000001455126531500244325ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/bundle/v1/sigstore_bundle.pb.go000066400000000000000000000522161455126531500305570ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: sigstore_bundle.proto package v1 import ( v1 "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1" dsse "github.com/sigstore/protobuf-specs/gen/pb-go/dsse" v11 "github.com/sigstore/protobuf-specs/gen/pb-go/rekor/v1" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Various timestamped counter signatures over the artifacts signature. // Currently only RFC3161 signatures are provided. More formats may be added // in the future. type TimestampVerificationData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A list of RFC3161 signed timestamps provided by the user. // This can be used when the entry has not been stored on a // transparency log, or in conjunction for a stronger trust model. // Clients MUST verify the hashed message in the message imprint // against the signature in the bundle. Rfc3161Timestamps []*v1.RFC3161SignedTimestamp `protobuf:"bytes,1,rep,name=rfc3161_timestamps,json=rfc3161Timestamps,proto3" json:"rfc3161_timestamps,omitempty"` } func (x *TimestampVerificationData) Reset() { *x = TimestampVerificationData{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_bundle_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TimestampVerificationData) String() string { return protoimpl.X.MessageStringOf(x) } func (*TimestampVerificationData) ProtoMessage() {} func (x *TimestampVerificationData) ProtoReflect() protoreflect.Message { mi := &file_sigstore_bundle_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TimestampVerificationData.ProtoReflect.Descriptor instead. func (*TimestampVerificationData) Descriptor() ([]byte, []int) { return file_sigstore_bundle_proto_rawDescGZIP(), []int{0} } func (x *TimestampVerificationData) GetRfc3161Timestamps() []*v1.RFC3161SignedTimestamp { if x != nil { return x.Rfc3161Timestamps } return nil } // VerificationMaterial captures details on the materials used to verify // signatures. type VerificationMaterial struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Content: // // *VerificationMaterial_PublicKey // *VerificationMaterial_X509CertificateChain Content isVerificationMaterial_Content `protobuf_oneof:"content"` // An inclusion proof and an optional signed timestamp from the log. // Client verification libraries MAY provide an option to support v0.1 // bundles for backwards compatibility, which may contain an inclusion // promise and not an inclusion proof. In this case, the client MUST // validate the promise. // Verifiers SHOULD NOT allow v0.1 bundles if they're used in an // ecosystem which never produced them. TlogEntries []*v11.TransparencyLogEntry `protobuf:"bytes,3,rep,name=tlog_entries,json=tlogEntries,proto3" json:"tlog_entries,omitempty"` // Timestamp may also come from // tlog_entries.inclusion_promise.signed_entry_timestamp. TimestampVerificationData *TimestampVerificationData `protobuf:"bytes,4,opt,name=timestamp_verification_data,json=timestampVerificationData,proto3" json:"timestamp_verification_data,omitempty"` } func (x *VerificationMaterial) Reset() { *x = VerificationMaterial{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_bundle_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *VerificationMaterial) String() string { return protoimpl.X.MessageStringOf(x) } func (*VerificationMaterial) ProtoMessage() {} func (x *VerificationMaterial) ProtoReflect() protoreflect.Message { mi := &file_sigstore_bundle_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use VerificationMaterial.ProtoReflect.Descriptor instead. func (*VerificationMaterial) Descriptor() ([]byte, []int) { return file_sigstore_bundle_proto_rawDescGZIP(), []int{1} } func (m *VerificationMaterial) GetContent() isVerificationMaterial_Content { if m != nil { return m.Content } return nil } func (x *VerificationMaterial) GetPublicKey() *v1.PublicKeyIdentifier { if x, ok := x.GetContent().(*VerificationMaterial_PublicKey); ok { return x.PublicKey } return nil } func (x *VerificationMaterial) GetX509CertificateChain() *v1.X509CertificateChain { if x, ok := x.GetContent().(*VerificationMaterial_X509CertificateChain); ok { return x.X509CertificateChain } return nil } func (x *VerificationMaterial) GetTlogEntries() []*v11.TransparencyLogEntry { if x != nil { return x.TlogEntries } return nil } func (x *VerificationMaterial) GetTimestampVerificationData() *TimestampVerificationData { if x != nil { return x.TimestampVerificationData } return nil } type isVerificationMaterial_Content interface { isVerificationMaterial_Content() } type VerificationMaterial_PublicKey struct { PublicKey *v1.PublicKeyIdentifier `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3,oneof"` } type VerificationMaterial_X509CertificateChain struct { X509CertificateChain *v1.X509CertificateChain `protobuf:"bytes,2,opt,name=x509_certificate_chain,json=x509CertificateChain,proto3,oneof"` } func (*VerificationMaterial_PublicKey) isVerificationMaterial_Content() {} func (*VerificationMaterial_X509CertificateChain) isVerificationMaterial_Content() {} type Bundle struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 // or application/vnd.dev.sigstore.bundle+json;version=0.2 // when encoded as JSON. MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // When a signer is identified by a X.509 certificate, a verifier MUST // verify that the signature was computed at the time the certificate // was valid as described in the Sigstore client spec: "Verification // using a Bundle". // VerificationMaterial *VerificationMaterial `protobuf:"bytes,2,opt,name=verification_material,json=verificationMaterial,proto3" json:"verification_material,omitempty"` // Types that are assignable to Content: // // *Bundle_MessageSignature // *Bundle_DsseEnvelope Content isBundle_Content `protobuf_oneof:"content"` } func (x *Bundle) Reset() { *x = Bundle{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_bundle_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Bundle) String() string { return protoimpl.X.MessageStringOf(x) } func (*Bundle) ProtoMessage() {} func (x *Bundle) ProtoReflect() protoreflect.Message { mi := &file_sigstore_bundle_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Bundle.ProtoReflect.Descriptor instead. func (*Bundle) Descriptor() ([]byte, []int) { return file_sigstore_bundle_proto_rawDescGZIP(), []int{2} } func (x *Bundle) GetMediaType() string { if x != nil { return x.MediaType } return "" } func (x *Bundle) GetVerificationMaterial() *VerificationMaterial { if x != nil { return x.VerificationMaterial } return nil } func (m *Bundle) GetContent() isBundle_Content { if m != nil { return m.Content } return nil } func (x *Bundle) GetMessageSignature() *v1.MessageSignature { if x, ok := x.GetContent().(*Bundle_MessageSignature); ok { return x.MessageSignature } return nil } func (x *Bundle) GetDsseEnvelope() *dsse.Envelope { if x, ok := x.GetContent().(*Bundle_DsseEnvelope); ok { return x.DsseEnvelope } return nil } type isBundle_Content interface { isBundle_Content() } type Bundle_MessageSignature struct { MessageSignature *v1.MessageSignature `protobuf:"bytes,3,opt,name=message_signature,json=messageSignature,proto3,oneof"` } type Bundle_DsseEnvelope struct { // A DSSE envelope can contain arbitrary payloads. // Verifiers must verify that the payload type is a // supported and expected type. This is part of the DSSE // protocol which is defined here: // DsseEnvelope *dsse.Envelope `protobuf:"bytes,4,opt,name=dsse_envelope,json=dsseEnvelope,proto3,oneof"` } func (*Bundle_MessageSignature) isBundle_Content() {} func (*Bundle_DsseEnvelope) isBundle_Content() {} var File_sigstore_bundle_proto protoreflect.FileDescriptor var file_sigstore_bundle_proto_rawDesc = []byte{ 0x0a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x19, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x12, 0x72, 0x66, 0x63, 0x33, 0x31, 0x36, 0x31, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x46, 0x43, 0x33, 0x31, 0x36, 0x31, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x72, 0x66, 0x63, 0x33, 0x31, 0x36, 0x31, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x22, 0xa2, 0x03, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x69, 0x0a, 0x16, 0x78, 0x35, 0x30, 0x39, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x14, 0x78, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x4e, 0x0a, 0x0c, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x74, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x71, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xbf, 0x02, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x66, 0x0a, 0x15, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x5c, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x73, 0x73, 0x65, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x69, 0x6f, 0x2e, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x73, 0x73, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x33, 0x42, 0x7c, 0x0a, 0x1c, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x14, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_sigstore_bundle_proto_rawDescOnce sync.Once file_sigstore_bundle_proto_rawDescData = file_sigstore_bundle_proto_rawDesc ) func file_sigstore_bundle_proto_rawDescGZIP() []byte { file_sigstore_bundle_proto_rawDescOnce.Do(func() { file_sigstore_bundle_proto_rawDescData = protoimpl.X.CompressGZIP(file_sigstore_bundle_proto_rawDescData) }) return file_sigstore_bundle_proto_rawDescData } var file_sigstore_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_sigstore_bundle_proto_goTypes = []interface{}{ (*TimestampVerificationData)(nil), // 0: dev.sigstore.bundle.v1.TimestampVerificationData (*VerificationMaterial)(nil), // 1: dev.sigstore.bundle.v1.VerificationMaterial (*Bundle)(nil), // 2: dev.sigstore.bundle.v1.Bundle (*v1.RFC3161SignedTimestamp)(nil), // 3: dev.sigstore.common.v1.RFC3161SignedTimestamp (*v1.PublicKeyIdentifier)(nil), // 4: dev.sigstore.common.v1.PublicKeyIdentifier (*v1.X509CertificateChain)(nil), // 5: dev.sigstore.common.v1.X509CertificateChain (*v11.TransparencyLogEntry)(nil), // 6: dev.sigstore.rekor.v1.TransparencyLogEntry (*v1.MessageSignature)(nil), // 7: dev.sigstore.common.v1.MessageSignature (*dsse.Envelope)(nil), // 8: io.intoto.Envelope } var file_sigstore_bundle_proto_depIdxs = []int32{ 3, // 0: dev.sigstore.bundle.v1.TimestampVerificationData.rfc3161_timestamps:type_name -> dev.sigstore.common.v1.RFC3161SignedTimestamp 4, // 1: dev.sigstore.bundle.v1.VerificationMaterial.public_key:type_name -> dev.sigstore.common.v1.PublicKeyIdentifier 5, // 2: dev.sigstore.bundle.v1.VerificationMaterial.x509_certificate_chain:type_name -> dev.sigstore.common.v1.X509CertificateChain 6, // 3: dev.sigstore.bundle.v1.VerificationMaterial.tlog_entries:type_name -> dev.sigstore.rekor.v1.TransparencyLogEntry 0, // 4: dev.sigstore.bundle.v1.VerificationMaterial.timestamp_verification_data:type_name -> dev.sigstore.bundle.v1.TimestampVerificationData 1, // 5: dev.sigstore.bundle.v1.Bundle.verification_material:type_name -> dev.sigstore.bundle.v1.VerificationMaterial 7, // 6: dev.sigstore.bundle.v1.Bundle.message_signature:type_name -> dev.sigstore.common.v1.MessageSignature 8, // 7: dev.sigstore.bundle.v1.Bundle.dsse_envelope:type_name -> io.intoto.Envelope 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_sigstore_bundle_proto_init() } func file_sigstore_bundle_proto_init() { if File_sigstore_bundle_proto != nil { return } if !protoimpl.UnsafeEnabled { file_sigstore_bundle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimestampVerificationData); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_bundle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VerificationMaterial); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_bundle_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Bundle); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_sigstore_bundle_proto_msgTypes[1].OneofWrappers = []interface{}{ (*VerificationMaterial_PublicKey)(nil), (*VerificationMaterial_X509CertificateChain)(nil), } file_sigstore_bundle_proto_msgTypes[2].OneofWrappers = []interface{}{ (*Bundle_MessageSignature)(nil), (*Bundle_DsseEnvelope)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sigstore_bundle_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_sigstore_bundle_proto_goTypes, DependencyIndexes: file_sigstore_bundle_proto_depIdxs, MessageInfos: file_sigstore_bundle_proto_msgTypes, }.Build() File_sigstore_bundle_proto = out.File file_sigstore_bundle_proto_rawDesc = nil file_sigstore_bundle_proto_goTypes = nil file_sigstore_bundle_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/common/000077500000000000000000000000001455126531500241235ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/common/v1/000077500000000000000000000000001455126531500244515ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/common/v1/sigstore_common.pb.go000066400000000000000000001376471455126531500306310ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: sigstore_common.proto package v1 import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Only a subset of the secure hash standard algorithms are supported. // See for more // details. // UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force // any proto JSON serialization to emit the used hash algorithm, as default // option is to *omit* the default value of an enum (which is the first // value, represented by '0'. type HashAlgorithm int32 const ( HashAlgorithm_HASH_ALGORITHM_UNSPECIFIED HashAlgorithm = 0 HashAlgorithm_SHA2_256 HashAlgorithm = 1 ) // Enum value maps for HashAlgorithm. var ( HashAlgorithm_name = map[int32]string{ 0: "HASH_ALGORITHM_UNSPECIFIED", 1: "SHA2_256", } HashAlgorithm_value = map[string]int32{ "HASH_ALGORITHM_UNSPECIFIED": 0, "SHA2_256": 1, } ) func (x HashAlgorithm) Enum() *HashAlgorithm { p := new(HashAlgorithm) *p = x return p } func (x HashAlgorithm) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor { return file_sigstore_common_proto_enumTypes[0].Descriptor() } func (HashAlgorithm) Type() protoreflect.EnumType { return &file_sigstore_common_proto_enumTypes[0] } func (x HashAlgorithm) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use HashAlgorithm.Descriptor instead. func (HashAlgorithm) EnumDescriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{0} } // Details of a specific public key, capturing the the key encoding method, // and signature algorithm. // To avoid the possibility of contradicting formats such as PKCS1 with // ED25519 the valid permutations are listed as a linear set instead of a // cartesian set (i.e one combined variable instead of two, one for encoding // and one for the signature algorithm). type PublicKeyDetails int32 const ( PublicKeyDetails_PUBLIC_KEY_DETAILS_UNSPECIFIED PublicKeyDetails = 0 // RSA PublicKeyDetails_PKCS1_RSA_PKCS1V5 PublicKeyDetails = 1 // See RFC8017 PublicKeyDetails_PKCS1_RSA_PSS PublicKeyDetails = 2 // See RFC8017 PublicKeyDetails_PKIX_RSA_PKCS1V5 PublicKeyDetails = 3 PublicKeyDetails_PKIX_RSA_PSS PublicKeyDetails = 4 // ECDSA PublicKeyDetails_PKIX_ECDSA_P256_SHA_256 PublicKeyDetails = 5 // See NIST FIPS 186-4 PublicKeyDetails_PKIX_ECDSA_P256_HMAC_SHA_256 PublicKeyDetails = 6 // See RFC6979 // Ed 25519 PublicKeyDetails_PKIX_ED25519 PublicKeyDetails = 7 // See RFC8032 ) // Enum value maps for PublicKeyDetails. var ( PublicKeyDetails_name = map[int32]string{ 0: "PUBLIC_KEY_DETAILS_UNSPECIFIED", 1: "PKCS1_RSA_PKCS1V5", 2: "PKCS1_RSA_PSS", 3: "PKIX_RSA_PKCS1V5", 4: "PKIX_RSA_PSS", 5: "PKIX_ECDSA_P256_SHA_256", 6: "PKIX_ECDSA_P256_HMAC_SHA_256", 7: "PKIX_ED25519", } PublicKeyDetails_value = map[string]int32{ "PUBLIC_KEY_DETAILS_UNSPECIFIED": 0, "PKCS1_RSA_PKCS1V5": 1, "PKCS1_RSA_PSS": 2, "PKIX_RSA_PKCS1V5": 3, "PKIX_RSA_PSS": 4, "PKIX_ECDSA_P256_SHA_256": 5, "PKIX_ECDSA_P256_HMAC_SHA_256": 6, "PKIX_ED25519": 7, } ) func (x PublicKeyDetails) Enum() *PublicKeyDetails { p := new(PublicKeyDetails) *p = x return p } func (x PublicKeyDetails) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PublicKeyDetails) Descriptor() protoreflect.EnumDescriptor { return file_sigstore_common_proto_enumTypes[1].Descriptor() } func (PublicKeyDetails) Type() protoreflect.EnumType { return &file_sigstore_common_proto_enumTypes[1] } func (x PublicKeyDetails) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PublicKeyDetails.Descriptor instead. func (PublicKeyDetails) EnumDescriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{1} } type SubjectAlternativeNameType int32 const ( SubjectAlternativeNameType_SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED SubjectAlternativeNameType = 0 SubjectAlternativeNameType_EMAIL SubjectAlternativeNameType = 1 SubjectAlternativeNameType_URI SubjectAlternativeNameType = 2 // OID 1.3.6.1.4.1.57264.1.7 // See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san // for more details. SubjectAlternativeNameType_OTHER_NAME SubjectAlternativeNameType = 3 ) // Enum value maps for SubjectAlternativeNameType. var ( SubjectAlternativeNameType_name = map[int32]string{ 0: "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", 1: "EMAIL", 2: "URI", 3: "OTHER_NAME", } SubjectAlternativeNameType_value = map[string]int32{ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED": 0, "EMAIL": 1, "URI": 2, "OTHER_NAME": 3, } ) func (x SubjectAlternativeNameType) Enum() *SubjectAlternativeNameType { p := new(SubjectAlternativeNameType) *p = x return p } func (x SubjectAlternativeNameType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SubjectAlternativeNameType) Descriptor() protoreflect.EnumDescriptor { return file_sigstore_common_proto_enumTypes[2].Descriptor() } func (SubjectAlternativeNameType) Type() protoreflect.EnumType { return &file_sigstore_common_proto_enumTypes[2] } func (x SubjectAlternativeNameType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SubjectAlternativeNameType.Descriptor instead. func (SubjectAlternativeNameType) EnumDescriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{2} } // HashOutput captures a digest of a 'message' (generic octet sequence) // and the corresponding hash algorithm used. type HashOutput struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Algorithm HashAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=dev.sigstore.common.v1.HashAlgorithm" json:"algorithm,omitempty"` // This is the raw octets of the message digest as computed by // the hash algorithm. Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` } func (x *HashOutput) Reset() { *x = HashOutput{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *HashOutput) String() string { return protoimpl.X.MessageStringOf(x) } func (*HashOutput) ProtoMessage() {} func (x *HashOutput) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HashOutput.ProtoReflect.Descriptor instead. func (*HashOutput) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{0} } func (x *HashOutput) GetAlgorithm() HashAlgorithm { if x != nil { return x.Algorithm } return HashAlgorithm_HASH_ALGORITHM_UNSPECIFIED } func (x *HashOutput) GetDigest() []byte { if x != nil { return x.Digest } return nil } // MessageSignature stores the computed signature over a message. type MessageSignature struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Message digest can be used to identify the artifact. // Clients MUST NOT attempt to use this digest to verify the associated // signature; it is intended solely for identification. MessageDigest *HashOutput `protobuf:"bytes,1,opt,name=message_digest,json=messageDigest,proto3" json:"message_digest,omitempty"` // The raw bytes as returned from the signature algorithm. // The signature algorithm (and so the format of the signature bytes) // are determined by the contents of the 'verification_material', // either a key-pair or a certificate. If using a certificate, the // certificate contains the required information on the signature // algorithm. // When using a key pair, the algorithm MUST be part of the public // key, which MUST be communicated out-of-band. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` } func (x *MessageSignature) Reset() { *x = MessageSignature{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MessageSignature) String() string { return protoimpl.X.MessageStringOf(x) } func (*MessageSignature) ProtoMessage() {} func (x *MessageSignature) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MessageSignature.ProtoReflect.Descriptor instead. func (*MessageSignature) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{1} } func (x *MessageSignature) GetMessageDigest() *HashOutput { if x != nil { return x.MessageDigest } return nil } func (x *MessageSignature) GetSignature() []byte { if x != nil { return x.Signature } return nil } // LogId captures the identity of a transparency log. type LogId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The unique id of the log, represented as the SHA-256 hash // of the log's public key, calculated over the DER encoding // of the key represented as SubjectPublicKeyInfo. // See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 KeyId []byte `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` } func (x *LogId) Reset() { *x = LogId{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *LogId) String() string { return protoimpl.X.MessageStringOf(x) } func (*LogId) ProtoMessage() {} func (x *LogId) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use LogId.ProtoReflect.Descriptor instead. func (*LogId) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{2} } func (x *LogId) GetKeyId() []byte { if x != nil { return x.KeyId } return nil } // This message holds a RFC 3161 timestamp. type RFC3161SignedTimestamp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Signed timestamp is the DER encoded TimeStampResponse. // See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2 SignedTimestamp []byte `protobuf:"bytes,1,opt,name=signed_timestamp,json=signedTimestamp,proto3" json:"signed_timestamp,omitempty"` } func (x *RFC3161SignedTimestamp) Reset() { *x = RFC3161SignedTimestamp{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RFC3161SignedTimestamp) String() string { return protoimpl.X.MessageStringOf(x) } func (*RFC3161SignedTimestamp) ProtoMessage() {} func (x *RFC3161SignedTimestamp) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RFC3161SignedTimestamp.ProtoReflect.Descriptor instead. func (*RFC3161SignedTimestamp) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{3} } func (x *RFC3161SignedTimestamp) GetSignedTimestamp() []byte { if x != nil { return x.SignedTimestamp } return nil } type PublicKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DER-encoded public key, encoding method is specified by the // key_details attribute. RawBytes []byte `protobuf:"bytes,1,opt,name=raw_bytes,json=rawBytes,proto3,oneof" json:"raw_bytes,omitempty"` // Key encoding and signature algorithm to use for this key. KeyDetails PublicKeyDetails `protobuf:"varint,2,opt,name=key_details,json=keyDetails,proto3,enum=dev.sigstore.common.v1.PublicKeyDetails" json:"key_details,omitempty"` // Optional validity period for this key, *inclusive* of the endpoints. ValidFor *TimeRange `protobuf:"bytes,3,opt,name=valid_for,json=validFor,proto3,oneof" json:"valid_for,omitempty"` } func (x *PublicKey) Reset() { *x = PublicKey{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PublicKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*PublicKey) ProtoMessage() {} func (x *PublicKey) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PublicKey.ProtoReflect.Descriptor instead. func (*PublicKey) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{4} } func (x *PublicKey) GetRawBytes() []byte { if x != nil { return x.RawBytes } return nil } func (x *PublicKey) GetKeyDetails() PublicKeyDetails { if x != nil { return x.KeyDetails } return PublicKeyDetails_PUBLIC_KEY_DETAILS_UNSPECIFIED } func (x *PublicKey) GetValidFor() *TimeRange { if x != nil { return x.ValidFor } return nil } // PublicKeyIdentifier can be used to identify an (out of band) delivered // key, to verify a signature. type PublicKeyIdentifier struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Optional unauthenticated hint on which key to use. // The format of the hint must be agreed upon out of band by the // signer and the verifiers, and so is not subject to this // specification. // Example use-case is to specify the public key to use, from a // trusted key-ring. // Implementors are RECOMMENDED to derive the value from the public // key as described in RFC 6962. // See: Hint string `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"` } func (x *PublicKeyIdentifier) Reset() { *x = PublicKeyIdentifier{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PublicKeyIdentifier) String() string { return protoimpl.X.MessageStringOf(x) } func (*PublicKeyIdentifier) ProtoMessage() {} func (x *PublicKeyIdentifier) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PublicKeyIdentifier.ProtoReflect.Descriptor instead. func (*PublicKeyIdentifier) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{5} } func (x *PublicKeyIdentifier) GetHint() string { if x != nil { return x.Hint } return "" } // An ASN.1 OBJECT IDENTIFIER type ObjectIdentifier struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id []int32 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` } func (x *ObjectIdentifier) Reset() { *x = ObjectIdentifier{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ObjectIdentifier) String() string { return protoimpl.X.MessageStringOf(x) } func (*ObjectIdentifier) ProtoMessage() {} func (x *ObjectIdentifier) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ObjectIdentifier.ProtoReflect.Descriptor instead. func (*ObjectIdentifier) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{6} } func (x *ObjectIdentifier) GetId() []int32 { if x != nil { return x.Id } return nil } // An OID and the corresponding (byte) value. type ObjectIdentifierValuePair struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Oid *ObjectIdentifier `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *ObjectIdentifierValuePair) Reset() { *x = ObjectIdentifierValuePair{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ObjectIdentifierValuePair) String() string { return protoimpl.X.MessageStringOf(x) } func (*ObjectIdentifierValuePair) ProtoMessage() {} func (x *ObjectIdentifierValuePair) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ObjectIdentifierValuePair.ProtoReflect.Descriptor instead. func (*ObjectIdentifierValuePair) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{7} } func (x *ObjectIdentifierValuePair) GetOid() *ObjectIdentifier { if x != nil { return x.Oid } return nil } func (x *ObjectIdentifierValuePair) GetValue() []byte { if x != nil { return x.Value } return nil } type DistinguishedName struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Organization string `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` CommonName string `protobuf:"bytes,2,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` } func (x *DistinguishedName) Reset() { *x = DistinguishedName{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DistinguishedName) String() string { return protoimpl.X.MessageStringOf(x) } func (*DistinguishedName) ProtoMessage() {} func (x *DistinguishedName) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DistinguishedName.ProtoReflect.Descriptor instead. func (*DistinguishedName) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{8} } func (x *DistinguishedName) GetOrganization() string { if x != nil { return x.Organization } return "" } func (x *DistinguishedName) GetCommonName() string { if x != nil { return x.CommonName } return "" } type X509Certificate struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DER-encoded X.509 certificate. RawBytes []byte `protobuf:"bytes,1,opt,name=raw_bytes,json=rawBytes,proto3" json:"raw_bytes,omitempty"` } func (x *X509Certificate) Reset() { *x = X509Certificate{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *X509Certificate) String() string { return protoimpl.X.MessageStringOf(x) } func (*X509Certificate) ProtoMessage() {} func (x *X509Certificate) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use X509Certificate.ProtoReflect.Descriptor instead. func (*X509Certificate) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{9} } func (x *X509Certificate) GetRawBytes() []byte { if x != nil { return x.RawBytes } return nil } type SubjectAlternativeName struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Type SubjectAlternativeNameType `protobuf:"varint,1,opt,name=type,proto3,enum=dev.sigstore.common.v1.SubjectAlternativeNameType" json:"type,omitempty"` // Types that are assignable to Identity: // // *SubjectAlternativeName_Regexp // *SubjectAlternativeName_Value Identity isSubjectAlternativeName_Identity `protobuf_oneof:"identity"` } func (x *SubjectAlternativeName) Reset() { *x = SubjectAlternativeName{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SubjectAlternativeName) String() string { return protoimpl.X.MessageStringOf(x) } func (*SubjectAlternativeName) ProtoMessage() {} func (x *SubjectAlternativeName) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SubjectAlternativeName.ProtoReflect.Descriptor instead. func (*SubjectAlternativeName) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{10} } func (x *SubjectAlternativeName) GetType() SubjectAlternativeNameType { if x != nil { return x.Type } return SubjectAlternativeNameType_SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED } func (m *SubjectAlternativeName) GetIdentity() isSubjectAlternativeName_Identity { if m != nil { return m.Identity } return nil } func (x *SubjectAlternativeName) GetRegexp() string { if x, ok := x.GetIdentity().(*SubjectAlternativeName_Regexp); ok { return x.Regexp } return "" } func (x *SubjectAlternativeName) GetValue() string { if x, ok := x.GetIdentity().(*SubjectAlternativeName_Value); ok { return x.Value } return "" } type isSubjectAlternativeName_Identity interface { isSubjectAlternativeName_Identity() } type SubjectAlternativeName_Regexp struct { // A regular expression describing the expected value for // the SAN. Regexp string `protobuf:"bytes,2,opt,name=regexp,proto3,oneof"` } type SubjectAlternativeName_Value struct { // The exact value to match against. Value string `protobuf:"bytes,3,opt,name=value,proto3,oneof"` } func (*SubjectAlternativeName_Regexp) isSubjectAlternativeName_Identity() {} func (*SubjectAlternativeName_Value) isSubjectAlternativeName_Identity() {} // A chain of X.509 certificates. type X509CertificateChain struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The chain of certificates, with indices 0 to n. // The first certificate in the array must be the leaf // certificate used for signing. // // Signers MUST NOT include their root CA certificates in their embedded // certificate chains, and SHOULD NOT include intermediate CA // certificates that appear in independent roots of trust. // // Verifiers MUST validate the chain carefully to ensure that it chains // up to a root CA certificate that they trust, regardless of whether // the chain includes additional intermediate/root CA certificates. // Verifiers MAY enforce additional constraints, such as requiring that // all intermediate CA certificates appear in an independent root of // trust. // // Verifiers SHOULD handle old or non-complying bundles that have // additional intermediate/root CA certificates. Certificates []*X509Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` } func (x *X509CertificateChain) Reset() { *x = X509CertificateChain{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *X509CertificateChain) String() string { return protoimpl.X.MessageStringOf(x) } func (*X509CertificateChain) ProtoMessage() {} func (x *X509CertificateChain) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use X509CertificateChain.ProtoReflect.Descriptor instead. func (*X509CertificateChain) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{11} } func (x *X509CertificateChain) GetCertificates() []*X509Certificate { if x != nil { return x.Certificates } return nil } // The time range is closed and includes both the start and end times, // (i.e., [start, end]). // End is optional to be able to capture a period that has started but // has no known end. type TimeRange struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"` } func (x *TimeRange) Reset() { *x = TimeRange{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_common_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TimeRange) String() string { return protoimpl.X.MessageStringOf(x) } func (*TimeRange) ProtoMessage() {} func (x *TimeRange) ProtoReflect() protoreflect.Message { mi := &file_sigstore_common_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TimeRange.ProtoReflect.Descriptor instead. func (*TimeRange) Descriptor() ([]byte, []int) { return file_sigstore_common_proto_rawDescGZIP(), []int{12} } func (x *TimeRange) GetStart() *timestamppb.Timestamp { if x != nil { return x.Start } return nil } func (x *TimeRange) GetEnd() *timestamppb.Timestamp { if x != nil { return x.End } return nil } var File_sigstore_common_proto protoreflect.FileDescriptor var file_sigstore_common_proto_rawDesc = []byte{ 0x0a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x43, 0x0a, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x49, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x23, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x16, 0x52, 0x46, 0x43, 0x33, 0x31, 0x36, 0x31, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xd9, 0x01, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x72, 0x61, 0x77, 0x42, 0x79, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x49, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x43, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x01, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x46, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x22, 0x29, 0x0a, 0x13, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x22, 0x27, 0x0a, 0x10, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6d, 0x0a, 0x19, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x3a, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x58, 0x0a, 0x11, 0x44, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x75, 0x69, 0x73, 0x68, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x33, 0x0a, 0x0f, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x61, 0x77, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x12, 0x16, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x63, 0x0a, 0x14, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0x78, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x31, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x2a, 0x3d, 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x41, 0x32, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x01, 0x2a, 0xd9, 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x35, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x35, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x50, 0x32, 0x35, 0x36, 0x5f, 0x53, 0x48, 0x41, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x05, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x50, 0x32, 0x35, 0x36, 0x5f, 0x48, 0x4d, 0x41, 0x43, 0x5f, 0x53, 0x48, 0x41, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x07, 0x2a, 0x6f, 0x0a, 0x1a, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x29, 0x53, 0x55, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x4c, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x03, 0x42, 0x7c, 0x0a, 0x1c, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x14, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_sigstore_common_proto_rawDescOnce sync.Once file_sigstore_common_proto_rawDescData = file_sigstore_common_proto_rawDesc ) func file_sigstore_common_proto_rawDescGZIP() []byte { file_sigstore_common_proto_rawDescOnce.Do(func() { file_sigstore_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_sigstore_common_proto_rawDescData) }) return file_sigstore_common_proto_rawDescData } var file_sigstore_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_sigstore_common_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_sigstore_common_proto_goTypes = []interface{}{ (HashAlgorithm)(0), // 0: dev.sigstore.common.v1.HashAlgorithm (PublicKeyDetails)(0), // 1: dev.sigstore.common.v1.PublicKeyDetails (SubjectAlternativeNameType)(0), // 2: dev.sigstore.common.v1.SubjectAlternativeNameType (*HashOutput)(nil), // 3: dev.sigstore.common.v1.HashOutput (*MessageSignature)(nil), // 4: dev.sigstore.common.v1.MessageSignature (*LogId)(nil), // 5: dev.sigstore.common.v1.LogId (*RFC3161SignedTimestamp)(nil), // 6: dev.sigstore.common.v1.RFC3161SignedTimestamp (*PublicKey)(nil), // 7: dev.sigstore.common.v1.PublicKey (*PublicKeyIdentifier)(nil), // 8: dev.sigstore.common.v1.PublicKeyIdentifier (*ObjectIdentifier)(nil), // 9: dev.sigstore.common.v1.ObjectIdentifier (*ObjectIdentifierValuePair)(nil), // 10: dev.sigstore.common.v1.ObjectIdentifierValuePair (*DistinguishedName)(nil), // 11: dev.sigstore.common.v1.DistinguishedName (*X509Certificate)(nil), // 12: dev.sigstore.common.v1.X509Certificate (*SubjectAlternativeName)(nil), // 13: dev.sigstore.common.v1.SubjectAlternativeName (*X509CertificateChain)(nil), // 14: dev.sigstore.common.v1.X509CertificateChain (*TimeRange)(nil), // 15: dev.sigstore.common.v1.TimeRange (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp } var file_sigstore_common_proto_depIdxs = []int32{ 0, // 0: dev.sigstore.common.v1.HashOutput.algorithm:type_name -> dev.sigstore.common.v1.HashAlgorithm 3, // 1: dev.sigstore.common.v1.MessageSignature.message_digest:type_name -> dev.sigstore.common.v1.HashOutput 1, // 2: dev.sigstore.common.v1.PublicKey.key_details:type_name -> dev.sigstore.common.v1.PublicKeyDetails 15, // 3: dev.sigstore.common.v1.PublicKey.valid_for:type_name -> dev.sigstore.common.v1.TimeRange 9, // 4: dev.sigstore.common.v1.ObjectIdentifierValuePair.oid:type_name -> dev.sigstore.common.v1.ObjectIdentifier 2, // 5: dev.sigstore.common.v1.SubjectAlternativeName.type:type_name -> dev.sigstore.common.v1.SubjectAlternativeNameType 12, // 6: dev.sigstore.common.v1.X509CertificateChain.certificates:type_name -> dev.sigstore.common.v1.X509Certificate 16, // 7: dev.sigstore.common.v1.TimeRange.start:type_name -> google.protobuf.Timestamp 16, // 8: dev.sigstore.common.v1.TimeRange.end:type_name -> google.protobuf.Timestamp 9, // [9:9] is the sub-list for method output_type 9, // [9:9] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension extendee 0, // [0:9] is the sub-list for field type_name } func init() { file_sigstore_common_proto_init() } func file_sigstore_common_proto_init() { if File_sigstore_common_proto != nil { return } if !protoimpl.UnsafeEnabled { file_sigstore_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*HashOutput); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageSignature); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LogId); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RFC3161SignedTimestamp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PublicKey); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PublicKeyIdentifier); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ObjectIdentifier); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ObjectIdentifierValuePair); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DistinguishedName); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*X509Certificate); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SubjectAlternativeName); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*X509CertificateChain); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimeRange); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_sigstore_common_proto_msgTypes[4].OneofWrappers = []interface{}{} file_sigstore_common_proto_msgTypes[10].OneofWrappers = []interface{}{ (*SubjectAlternativeName_Regexp)(nil), (*SubjectAlternativeName_Value)(nil), } file_sigstore_common_proto_msgTypes[12].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sigstore_common_proto_rawDesc, NumEnums: 3, NumMessages: 13, NumExtensions: 0, NumServices: 0, }, GoTypes: file_sigstore_common_proto_goTypes, DependencyIndexes: file_sigstore_common_proto_depIdxs, EnumInfos: file_sigstore_common_proto_enumTypes, MessageInfos: file_sigstore_common_proto_msgTypes, }.Build() File_sigstore_common_proto = out.File file_sigstore_common_proto_rawDesc = nil file_sigstore_common_proto_goTypes = nil file_sigstore_common_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/dsse/000077500000000000000000000000001455126531500235715ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/dsse/envelope.pb.go000066400000000000000000000211611455126531500263360ustar00rootroot00000000000000// https://raw.githubusercontent.com/secure-systems-lab/dsse/9c813476bd36de70a5738c72e784f123ecea16af/envelope.proto // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: envelope.proto package dsse import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // An authenticated message of arbitrary type. type Envelope struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Message to be signed. (In JSON, this is encoded as base64.) // REQUIRED. Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // String unambiguously identifying how to interpret payload. // REQUIRED. PayloadType string `protobuf:"bytes,2,opt,name=payloadType,proto3" json:"payloadType,omitempty"` // Signature over: // // PAE(type, payload) // // Where PAE is defined as: // PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload // + = concatenation // SP = ASCII space [0x20] // "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] // LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros // REQUIRED (length >= 1). Signatures []*Signature `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures,omitempty"` } func (x *Envelope) Reset() { *x = Envelope{} if protoimpl.UnsafeEnabled { mi := &file_envelope_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Envelope) String() string { return protoimpl.X.MessageStringOf(x) } func (*Envelope) ProtoMessage() {} func (x *Envelope) ProtoReflect() protoreflect.Message { mi := &file_envelope_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Envelope.ProtoReflect.Descriptor instead. func (*Envelope) Descriptor() ([]byte, []int) { return file_envelope_proto_rawDescGZIP(), []int{0} } func (x *Envelope) GetPayload() []byte { if x != nil { return x.Payload } return nil } func (x *Envelope) GetPayloadType() string { if x != nil { return x.PayloadType } return "" } func (x *Envelope) GetSignatures() []*Signature { if x != nil { return x.Signatures } return nil } type Signature struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Signature itself. (In JSON, this is encoded as base64.) // REQUIRED. Sig []byte `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"` // *Unauthenticated* hint identifying which public key was used. // OPTIONAL. Keyid string `protobuf:"bytes,2,opt,name=keyid,proto3" json:"keyid,omitempty"` } func (x *Signature) Reset() { *x = Signature{} if protoimpl.UnsafeEnabled { mi := &file_envelope_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Signature) String() string { return protoimpl.X.MessageStringOf(x) } func (*Signature) ProtoMessage() {} func (x *Signature) ProtoReflect() protoreflect.Message { mi := &file_envelope_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Signature.ProtoReflect.Descriptor instead. func (*Signature) Descriptor() ([]byte, []int) { return file_envelope_proto_rawDescGZIP(), []int{1} } func (x *Signature) GetSig() []byte { if x != nil { return x.Sig } return nil } func (x *Signature) GetKeyid() string { if x != nil { return x.Keyid } return "" } var File_envelope_proto protoreflect.FileDescriptor var file_envelope_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x69, 0x6f, 0x2e, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x08, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x69, 0x6f, 0x2e, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6b, 0x65, 0x79, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x69, 0x64, 0x42, 0x44, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x73, 0x73, 0x65, 0xea, 0x02, 0x0e, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x44, 0x53, 0x53, 0x45, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_envelope_proto_rawDescOnce sync.Once file_envelope_proto_rawDescData = file_envelope_proto_rawDesc ) func file_envelope_proto_rawDescGZIP() []byte { file_envelope_proto_rawDescOnce.Do(func() { file_envelope_proto_rawDescData = protoimpl.X.CompressGZIP(file_envelope_proto_rawDescData) }) return file_envelope_proto_rawDescData } var file_envelope_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_envelope_proto_goTypes = []interface{}{ (*Envelope)(nil), // 0: io.intoto.Envelope (*Signature)(nil), // 1: io.intoto.Signature } var file_envelope_proto_depIdxs = []int32{ 1, // 0: io.intoto.Envelope.signatures:type_name -> io.intoto.Signature 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_envelope_proto_init() } func file_envelope_proto_init() { if File_envelope_proto != nil { return } if !protoimpl.UnsafeEnabled { file_envelope_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Envelope); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_envelope_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Signature); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_envelope_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_envelope_proto_goTypes, DependencyIndexes: file_envelope_proto_depIdxs, MessageInfos: file_envelope_proto_msgTypes, }.Build() File_envelope_proto = out.File file_envelope_proto_rawDesc = nil file_envelope_proto_goTypes = nil file_envelope_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/events/000077500000000000000000000000001455126531500241375ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/events/v1/000077500000000000000000000000001455126531500244655ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/events/v1/events.pb.go000066400000000000000000000513741455126531500267320ustar00rootroot00000000000000// https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/cloudevents.proto // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //* // CloudEvent Protobuf Format // // - Required context attributes are explicity represented. // - Optional and Extension context attributes are carried in a map structure. // - Data may be represented as binary, text, or protobuf messages. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: events.proto package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type CloudEvent struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required Attributes Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // URI-reference SpecVersion string `protobuf:"bytes,3,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // Optional & Extension Attributes Attributes map[string]*CloudEvent_CloudEventAttributeValue `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // -- CloudEvent Data (Bytes, Text, or Proto) // // Types that are assignable to Data: // // *CloudEvent_BinaryData // *CloudEvent_TextData // *CloudEvent_ProtoData Data isCloudEvent_Data `protobuf_oneof:"data"` } func (x *CloudEvent) Reset() { *x = CloudEvent{} if protoimpl.UnsafeEnabled { mi := &file_events_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CloudEvent) String() string { return protoimpl.X.MessageStringOf(x) } func (*CloudEvent) ProtoMessage() {} func (x *CloudEvent) ProtoReflect() protoreflect.Message { mi := &file_events_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CloudEvent.ProtoReflect.Descriptor instead. func (*CloudEvent) Descriptor() ([]byte, []int) { return file_events_proto_rawDescGZIP(), []int{0} } func (x *CloudEvent) GetId() string { if x != nil { return x.Id } return "" } func (x *CloudEvent) GetSource() string { if x != nil { return x.Source } return "" } func (x *CloudEvent) GetSpecVersion() string { if x != nil { return x.SpecVersion } return "" } func (x *CloudEvent) GetType() string { if x != nil { return x.Type } return "" } func (x *CloudEvent) GetAttributes() map[string]*CloudEvent_CloudEventAttributeValue { if x != nil { return x.Attributes } return nil } func (m *CloudEvent) GetData() isCloudEvent_Data { if m != nil { return m.Data } return nil } func (x *CloudEvent) GetBinaryData() []byte { if x, ok := x.GetData().(*CloudEvent_BinaryData); ok { return x.BinaryData } return nil } func (x *CloudEvent) GetTextData() string { if x, ok := x.GetData().(*CloudEvent_TextData); ok { return x.TextData } return "" } func (x *CloudEvent) GetProtoData() *anypb.Any { if x, ok := x.GetData().(*CloudEvent_ProtoData); ok { return x.ProtoData } return nil } type isCloudEvent_Data interface { isCloudEvent_Data() } type CloudEvent_BinaryData struct { BinaryData []byte `protobuf:"bytes,6,opt,name=binary_data,json=binaryData,proto3,oneof"` } type CloudEvent_TextData struct { TextData string `protobuf:"bytes,7,opt,name=text_data,json=textData,proto3,oneof"` } type CloudEvent_ProtoData struct { ProtoData *anypb.Any `protobuf:"bytes,8,opt,name=proto_data,json=protoData,proto3,oneof"` } func (*CloudEvent_BinaryData) isCloudEvent_Data() {} func (*CloudEvent_TextData) isCloudEvent_Data() {} func (*CloudEvent_ProtoData) isCloudEvent_Data() {} type CloudEventBatch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Events []*CloudEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } func (x *CloudEventBatch) Reset() { *x = CloudEventBatch{} if protoimpl.UnsafeEnabled { mi := &file_events_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CloudEventBatch) String() string { return protoimpl.X.MessageStringOf(x) } func (*CloudEventBatch) ProtoMessage() {} func (x *CloudEventBatch) ProtoReflect() protoreflect.Message { mi := &file_events_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CloudEventBatch.ProtoReflect.Descriptor instead. func (*CloudEventBatch) Descriptor() ([]byte, []int) { return file_events_proto_rawDescGZIP(), []int{1} } func (x *CloudEventBatch) GetEvents() []*CloudEvent { if x != nil { return x.Events } return nil } type CloudEvent_CloudEventAttributeValue struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Attr: // // *CloudEvent_CloudEventAttributeValue_CeBoolean // *CloudEvent_CloudEventAttributeValue_CeInteger // *CloudEvent_CloudEventAttributeValue_CeString // *CloudEvent_CloudEventAttributeValue_CeBytes // *CloudEvent_CloudEventAttributeValue_CeUri // *CloudEvent_CloudEventAttributeValue_CeUriRef // *CloudEvent_CloudEventAttributeValue_CeTimestamp Attr isCloudEvent_CloudEventAttributeValue_Attr `protobuf_oneof:"attr"` } func (x *CloudEvent_CloudEventAttributeValue) Reset() { *x = CloudEvent_CloudEventAttributeValue{} if protoimpl.UnsafeEnabled { mi := &file_events_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CloudEvent_CloudEventAttributeValue) String() string { return protoimpl.X.MessageStringOf(x) } func (*CloudEvent_CloudEventAttributeValue) ProtoMessage() {} func (x *CloudEvent_CloudEventAttributeValue) ProtoReflect() protoreflect.Message { mi := &file_events_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CloudEvent_CloudEventAttributeValue.ProtoReflect.Descriptor instead. func (*CloudEvent_CloudEventAttributeValue) Descriptor() ([]byte, []int) { return file_events_proto_rawDescGZIP(), []int{0, 1} } func (m *CloudEvent_CloudEventAttributeValue) GetAttr() isCloudEvent_CloudEventAttributeValue_Attr { if m != nil { return m.Attr } return nil } func (x *CloudEvent_CloudEventAttributeValue) GetCeBoolean() bool { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeBoolean); ok { return x.CeBoolean } return false } func (x *CloudEvent_CloudEventAttributeValue) GetCeInteger() int32 { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeInteger); ok { return x.CeInteger } return 0 } func (x *CloudEvent_CloudEventAttributeValue) GetCeString() string { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeString); ok { return x.CeString } return "" } func (x *CloudEvent_CloudEventAttributeValue) GetCeBytes() []byte { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeBytes); ok { return x.CeBytes } return nil } func (x *CloudEvent_CloudEventAttributeValue) GetCeUri() string { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeUri); ok { return x.CeUri } return "" } func (x *CloudEvent_CloudEventAttributeValue) GetCeUriRef() string { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeUriRef); ok { return x.CeUriRef } return "" } func (x *CloudEvent_CloudEventAttributeValue) GetCeTimestamp() *timestamppb.Timestamp { if x, ok := x.GetAttr().(*CloudEvent_CloudEventAttributeValue_CeTimestamp); ok { return x.CeTimestamp } return nil } type isCloudEvent_CloudEventAttributeValue_Attr interface { isCloudEvent_CloudEventAttributeValue_Attr() } type CloudEvent_CloudEventAttributeValue_CeBoolean struct { CeBoolean bool `protobuf:"varint,1,opt,name=ce_boolean,json=ceBoolean,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeInteger struct { CeInteger int32 `protobuf:"varint,2,opt,name=ce_integer,json=ceInteger,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeString struct { CeString string `protobuf:"bytes,3,opt,name=ce_string,json=ceString,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeBytes struct { CeBytes []byte `protobuf:"bytes,4,opt,name=ce_bytes,json=ceBytes,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeUri struct { CeUri string `protobuf:"bytes,5,opt,name=ce_uri,json=ceUri,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeUriRef struct { CeUriRef string `protobuf:"bytes,6,opt,name=ce_uri_ref,json=ceUriRef,proto3,oneof"` } type CloudEvent_CloudEventAttributeValue_CeTimestamp struct { CeTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ce_timestamp,json=ceTimestamp,proto3,oneof"` } func (*CloudEvent_CloudEventAttributeValue_CeBoolean) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeInteger) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeString) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeBytes) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeUri) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeUriRef) isCloudEvent_CloudEventAttributeValue_Attr() {} func (*CloudEvent_CloudEventAttributeValue_CeTimestamp) isCloudEvent_CloudEventAttributeValue_Attr() { } var File_events_proto protoreflect.FileDescriptor var file_events_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x05, 0x0a, 0x0a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x70, 0x65, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x09, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x74, 0x65, 0x78, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x7a, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x51, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x9a, 0x02, 0x0a, 0x18, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x63, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x63, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x1f, 0x0a, 0x0a, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x09, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x63, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x08, 0x63, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x63, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x06, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x63, 0x65, 0x55, 0x72, 0x69, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x63, 0x65, 0x55, 0x72, 0x69, 0x52, 0x65, 0x66, 0x12, 0x3f, 0x0a, 0x0c, 0x63, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x06, 0x0a, 0x04, 0x61, 0x74, 0x74, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4d, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x3a, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x58, 0x0a, 0x1c, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_events_proto_rawDescOnce sync.Once file_events_proto_rawDescData = file_events_proto_rawDesc ) func file_events_proto_rawDescGZIP() []byte { file_events_proto_rawDescOnce.Do(func() { file_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_events_proto_rawDescData) }) return file_events_proto_rawDescData } var file_events_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_events_proto_goTypes = []interface{}{ (*CloudEvent)(nil), // 0: dev.sigstore.events.v1.CloudEvent (*CloudEventBatch)(nil), // 1: dev.sigstore.events.v1.CloudEventBatch nil, // 2: dev.sigstore.events.v1.CloudEvent.AttributesEntry (*CloudEvent_CloudEventAttributeValue)(nil), // 3: dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue (*anypb.Any)(nil), // 4: google.protobuf.Any (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp } var file_events_proto_depIdxs = []int32{ 2, // 0: dev.sigstore.events.v1.CloudEvent.attributes:type_name -> dev.sigstore.events.v1.CloudEvent.AttributesEntry 4, // 1: dev.sigstore.events.v1.CloudEvent.proto_data:type_name -> google.protobuf.Any 0, // 2: dev.sigstore.events.v1.CloudEventBatch.events:type_name -> dev.sigstore.events.v1.CloudEvent 3, // 3: dev.sigstore.events.v1.CloudEvent.AttributesEntry.value:type_name -> dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue 5, // 4: dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue.ce_timestamp:type_name -> google.protobuf.Timestamp 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_events_proto_init() } func file_events_proto_init() { if File_events_proto != nil { return } if !protoimpl.UnsafeEnabled { file_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CloudEvent); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CloudEventBatch); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CloudEvent_CloudEventAttributeValue); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_events_proto_msgTypes[0].OneofWrappers = []interface{}{ (*CloudEvent_BinaryData)(nil), (*CloudEvent_TextData)(nil), (*CloudEvent_ProtoData)(nil), } file_events_proto_msgTypes[3].OneofWrappers = []interface{}{ (*CloudEvent_CloudEventAttributeValue_CeBoolean)(nil), (*CloudEvent_CloudEventAttributeValue_CeInteger)(nil), (*CloudEvent_CloudEventAttributeValue_CeString)(nil), (*CloudEvent_CloudEventAttributeValue_CeBytes)(nil), (*CloudEvent_CloudEventAttributeValue_CeUri)(nil), (*CloudEvent_CloudEventAttributeValue_CeUriRef)(nil), (*CloudEvent_CloudEventAttributeValue_CeTimestamp)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_events_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_events_proto_goTypes, DependencyIndexes: file_events_proto_depIdxs, MessageInfos: file_events_proto_msgTypes, }.Build() File_events_proto = out.File file_events_proto_rawDesc = nil file_events_proto_goTypes = nil file_events_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/rekor/000077500000000000000000000000001455126531500237555ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/rekor/v1/000077500000000000000000000000001455126531500243035ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/rekor/v1/sigstore_rekor.pb.go000066400000000000000000000611231455126531500302760ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: sigstore_rekor.proto package v1 import ( v1 "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // KindVersion contains the entry's kind and api version. type KindVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Kind is the type of entry being stored in the log. // See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The specific api version of the type. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` } func (x *KindVersion) Reset() { *x = KindVersion{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_rekor_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *KindVersion) String() string { return protoimpl.X.MessageStringOf(x) } func (*KindVersion) ProtoMessage() {} func (x *KindVersion) ProtoReflect() protoreflect.Message { mi := &file_sigstore_rekor_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use KindVersion.ProtoReflect.Descriptor instead. func (*KindVersion) Descriptor() ([]byte, []int) { return file_sigstore_rekor_proto_rawDescGZIP(), []int{0} } func (x *KindVersion) GetKind() string { if x != nil { return x.Kind } return "" } func (x *KindVersion) GetVersion() string { if x != nil { return x.Version } return "" } // The checkpoint contains a signature of the tree head (root hash), // size of the tree, the transparency log's unique identifier (log ID), // hostname and the current time. // The result is a string, the format is described here // https://github.com/transparency-dev/formats/blob/main/log/README.md // The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 // The signature has the same format as // InclusionPromise.signed_entry_timestamp. See below for more details. type Checkpoint struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Envelope string `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"` } func (x *Checkpoint) Reset() { *x = Checkpoint{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_rekor_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Checkpoint) String() string { return protoimpl.X.MessageStringOf(x) } func (*Checkpoint) ProtoMessage() {} func (x *Checkpoint) ProtoReflect() protoreflect.Message { mi := &file_sigstore_rekor_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead. func (*Checkpoint) Descriptor() ([]byte, []int) { return file_sigstore_rekor_proto_rawDescGZIP(), []int{1} } func (x *Checkpoint) GetEnvelope() string { if x != nil { return x.Envelope } return "" } // InclusionProof is the proof returned from the transparency log. Can // be used for offline or online verification against the log. type InclusionProof struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The index of the entry in the tree it was written to. LogIndex int64 `protobuf:"varint,1,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // The hash digest stored at the root of the merkle tree at the time // the proof was generated. RootHash []byte `protobuf:"bytes,2,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` // The size of the merkle tree at the time the proof was generated. TreeSize int64 `protobuf:"varint,3,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"` // A list of hashes required to compute the inclusion proof, sorted // in order from leaf to root. // Note that leaf and root hashes are not included. // The root hash is available separately in this message, and the // leaf hash should be calculated by the client. Hashes [][]byte `protobuf:"bytes,4,rep,name=hashes,proto3" json:"hashes,omitempty"` // Signature of the tree head, as of the time of this proof was // generated. See above info on 'Checkpoint' for more details. Checkpoint *Checkpoint `protobuf:"bytes,5,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` } func (x *InclusionProof) Reset() { *x = InclusionProof{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_rekor_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *InclusionProof) String() string { return protoimpl.X.MessageStringOf(x) } func (*InclusionProof) ProtoMessage() {} func (x *InclusionProof) ProtoReflect() protoreflect.Message { mi := &file_sigstore_rekor_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use InclusionProof.ProtoReflect.Descriptor instead. func (*InclusionProof) Descriptor() ([]byte, []int) { return file_sigstore_rekor_proto_rawDescGZIP(), []int{2} } func (x *InclusionProof) GetLogIndex() int64 { if x != nil { return x.LogIndex } return 0 } func (x *InclusionProof) GetRootHash() []byte { if x != nil { return x.RootHash } return nil } func (x *InclusionProof) GetTreeSize() int64 { if x != nil { return x.TreeSize } return 0 } func (x *InclusionProof) GetHashes() [][]byte { if x != nil { return x.Hashes } return nil } func (x *InclusionProof) GetCheckpoint() *Checkpoint { if x != nil { return x.Checkpoint } return nil } // The inclusion promise is calculated by Rekor. It's calculated as a // signature over a canonical JSON serialization of the persisted entry, the // log ID, log index and the integration timestamp. // See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 // The format of the signature depends on the transparency log's public key. // If the signature algorithm requires a hash function and/or a signature // scheme (e.g. RSA) those has to be retrieved out-of-band from the log's // operators, together with the public key. // This is used to verify the integration timestamp's value and that the log // has promised to include the entry. type InclusionPromise struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SignedEntryTimestamp []byte `protobuf:"bytes,1,opt,name=signed_entry_timestamp,json=signedEntryTimestamp,proto3" json:"signed_entry_timestamp,omitempty"` } func (x *InclusionPromise) Reset() { *x = InclusionPromise{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_rekor_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *InclusionPromise) String() string { return protoimpl.X.MessageStringOf(x) } func (*InclusionPromise) ProtoMessage() {} func (x *InclusionPromise) ProtoReflect() protoreflect.Message { mi := &file_sigstore_rekor_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use InclusionPromise.ProtoReflect.Descriptor instead. func (*InclusionPromise) Descriptor() ([]byte, []int) { return file_sigstore_rekor_proto_rawDescGZIP(), []int{3} } func (x *InclusionPromise) GetSignedEntryTimestamp() []byte { if x != nil { return x.SignedEntryTimestamp } return nil } // TransparencyLogEntry captures all the details required from Rekor to // reconstruct an entry, given that the payload is provided via other means. // This type can easily be created from the existing response from Rekor. // Future iterations could rely on Rekor returning the minimal set of // attributes (excluding the payload) that are required for verifying the // inclusion promise. The inclusion promise (called SignedEntryTimestamp in // the response from Rekor) is similar to a Signed Certificate Timestamp // as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. type TransparencyLogEntry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The global index of the entry, used when querying the log by index. LogIndex int64 `protobuf:"varint,1,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // The unique identifier of the log. LogId *v1.LogId `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // The kind (type) and version of the object associated with this // entry. These values are required to construct the entry during // verification. KindVersion *KindVersion `protobuf:"bytes,3,opt,name=kind_version,json=kindVersion,proto3" json:"kind_version,omitempty"` // The UNIX timestamp from the log when the entry was persisted. IntegratedTime int64 `protobuf:"varint,4,opt,name=integrated_time,json=integratedTime,proto3" json:"integrated_time,omitempty"` // The inclusion promise/signed entry timestamp from the log. // Required for v0.1 bundles, and MUST be verified. // Optional for >= v0.2 bundles, and SHOULD be verified when present. // Also may be used as a signed timestamp. InclusionPromise *InclusionPromise `protobuf:"bytes,5,opt,name=inclusion_promise,json=inclusionPromise,proto3" json:"inclusion_promise,omitempty"` // The inclusion proof can be used for offline or online verification // that the entry was appended to the log, and that the log has not been // altered. InclusionProof *InclusionProof `protobuf:"bytes,6,opt,name=inclusion_proof,json=inclusionProof,proto3" json:"inclusion_proof,omitempty"` // Optional. The canonicalized transparency log entry, used to // reconstruct the Signed Entry Timestamp (SET) during verification. // The contents of this field are the same as the `body` field in // a Rekor response, meaning that it does **not** include the "full" // canonicalized form (of log index, ID, etc.) which are // exposed as separate fields. The verifier is responsible for // combining the `canonicalized_body`, `log_index`, `log_id`, // and `integrated_time` into the payload that the SET's signature // is generated over. // This field is intended to be used in cases where the SET cannot be // produced determinisitically (e.g. inconsistent JSON field ordering, // differing whitespace, etc). // // If set, clients MUST verify that the signature referenced in the // `canonicalized_body` matches the signature provided in the // `Bundle.content`. // If not set, clients are responsible for constructing an equivalent // payload from other sources to verify the signature. CanonicalizedBody []byte `protobuf:"bytes,7,opt,name=canonicalized_body,json=canonicalizedBody,proto3" json:"canonicalized_body,omitempty"` } func (x *TransparencyLogEntry) Reset() { *x = TransparencyLogEntry{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_rekor_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TransparencyLogEntry) String() string { return protoimpl.X.MessageStringOf(x) } func (*TransparencyLogEntry) ProtoMessage() {} func (x *TransparencyLogEntry) ProtoReflect() protoreflect.Message { mi := &file_sigstore_rekor_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TransparencyLogEntry.ProtoReflect.Descriptor instead. func (*TransparencyLogEntry) Descriptor() ([]byte, []int) { return file_sigstore_rekor_proto_rawDescGZIP(), []int{4} } func (x *TransparencyLogEntry) GetLogIndex() int64 { if x != nil { return x.LogIndex } return 0 } func (x *TransparencyLogEntry) GetLogId() *v1.LogId { if x != nil { return x.LogId } return nil } func (x *TransparencyLogEntry) GetKindVersion() *KindVersion { if x != nil { return x.KindVersion } return nil } func (x *TransparencyLogEntry) GetIntegratedTime() int64 { if x != nil { return x.IntegratedTime } return 0 } func (x *TransparencyLogEntry) GetInclusionPromise() *InclusionPromise { if x != nil { return x.InclusionPromise } return nil } func (x *TransparencyLogEntry) GetInclusionProof() *InclusionProof { if x != nil { return x.InclusionProof } return nil } func (x *TransparencyLogEntry) GetCanonicalizedBody() []byte { if x != nil { return x.CanonicalizedBody } return nil } var File_sigstore_rekor_proto protoreflect.FileDescriptor var file_sigstore_rekor_proto_rawDesc = []byte{ 0x0a, 0x14, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x0b, 0x4b, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2d, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x20, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x09, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x74, 0x72, 0x65, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x4d, 0x0a, 0x10, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x16, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc7, 0x03, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x39, 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0c, 0x6b, 0x69, 0x6e, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6b, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x0f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x42, 0x6f, 0x64, 0x79, 0x42, 0x78, 0x0a, 0x1b, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x52, 0x65, 0x6b, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x6b, 0x6f, 0x72, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x13, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x52, 0x65, 0x6b, 0x6f, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_sigstore_rekor_proto_rawDescOnce sync.Once file_sigstore_rekor_proto_rawDescData = file_sigstore_rekor_proto_rawDesc ) func file_sigstore_rekor_proto_rawDescGZIP() []byte { file_sigstore_rekor_proto_rawDescOnce.Do(func() { file_sigstore_rekor_proto_rawDescData = protoimpl.X.CompressGZIP(file_sigstore_rekor_proto_rawDescData) }) return file_sigstore_rekor_proto_rawDescData } var file_sigstore_rekor_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_sigstore_rekor_proto_goTypes = []interface{}{ (*KindVersion)(nil), // 0: dev.sigstore.rekor.v1.KindVersion (*Checkpoint)(nil), // 1: dev.sigstore.rekor.v1.Checkpoint (*InclusionProof)(nil), // 2: dev.sigstore.rekor.v1.InclusionProof (*InclusionPromise)(nil), // 3: dev.sigstore.rekor.v1.InclusionPromise (*TransparencyLogEntry)(nil), // 4: dev.sigstore.rekor.v1.TransparencyLogEntry (*v1.LogId)(nil), // 5: dev.sigstore.common.v1.LogId } var file_sigstore_rekor_proto_depIdxs = []int32{ 1, // 0: dev.sigstore.rekor.v1.InclusionProof.checkpoint:type_name -> dev.sigstore.rekor.v1.Checkpoint 5, // 1: dev.sigstore.rekor.v1.TransparencyLogEntry.log_id:type_name -> dev.sigstore.common.v1.LogId 0, // 2: dev.sigstore.rekor.v1.TransparencyLogEntry.kind_version:type_name -> dev.sigstore.rekor.v1.KindVersion 3, // 3: dev.sigstore.rekor.v1.TransparencyLogEntry.inclusion_promise:type_name -> dev.sigstore.rekor.v1.InclusionPromise 2, // 4: dev.sigstore.rekor.v1.TransparencyLogEntry.inclusion_proof:type_name -> dev.sigstore.rekor.v1.InclusionProof 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_sigstore_rekor_proto_init() } func file_sigstore_rekor_proto_init() { if File_sigstore_rekor_proto != nil { return } if !protoimpl.UnsafeEnabled { file_sigstore_rekor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KindVersion); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_rekor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Checkpoint); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_rekor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InclusionProof); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_rekor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InclusionPromise); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_rekor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransparencyLogEntry); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sigstore_rekor_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, GoTypes: file_sigstore_rekor_proto_goTypes, DependencyIndexes: file_sigstore_rekor_proto_depIdxs, MessageInfos: file_sigstore_rekor_proto_msgTypes, }.Build() File_sigstore_rekor_proto = out.File file_sigstore_rekor_proto_rawDesc = nil file_sigstore_rekor_proto_goTypes = nil file_sigstore_rekor_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/trustroot/000077500000000000000000000000001455126531500247205ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/trustroot/v1/000077500000000000000000000000001455126531500252465ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/trustroot/v1/sigstore_trustroot.pb.go000066400000000000000000000527511455126531500322130ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: sigstore_trustroot.proto package v1 import ( v1 "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // TransparencyLogInstance describes the immutable parameters from a // transparency log. // See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters // for more details. // The included parameters are the minimal set required to identify a log, // and verify an inclusion proof/promise. type TransparencyLogInstance struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The base URL at which can be used to URLs for the client. BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"` // The hash algorithm used for the Merkle Tree. HashAlgorithm v1.HashAlgorithm `protobuf:"varint,2,opt,name=hash_algorithm,json=hashAlgorithm,proto3,enum=dev.sigstore.common.v1.HashAlgorithm" json:"hash_algorithm,omitempty"` // The public key used to verify signatures generated by the log. // This attribute contains the signature algorithm used by the log. PublicKey *v1.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // The unique identifier for this transparency log. LogId *v1.LogId `protobuf:"bytes,4,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` } func (x *TransparencyLogInstance) Reset() { *x = TransparencyLogInstance{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_trustroot_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TransparencyLogInstance) String() string { return protoimpl.X.MessageStringOf(x) } func (*TransparencyLogInstance) ProtoMessage() {} func (x *TransparencyLogInstance) ProtoReflect() protoreflect.Message { mi := &file_sigstore_trustroot_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TransparencyLogInstance.ProtoReflect.Descriptor instead. func (*TransparencyLogInstance) Descriptor() ([]byte, []int) { return file_sigstore_trustroot_proto_rawDescGZIP(), []int{0} } func (x *TransparencyLogInstance) GetBaseUrl() string { if x != nil { return x.BaseUrl } return "" } func (x *TransparencyLogInstance) GetHashAlgorithm() v1.HashAlgorithm { if x != nil { return x.HashAlgorithm } return v1.HashAlgorithm(0) } func (x *TransparencyLogInstance) GetPublicKey() *v1.PublicKey { if x != nil { return x.PublicKey } return nil } func (x *TransparencyLogInstance) GetLogId() *v1.LogId { if x != nil { return x.LogId } return nil } // CertificateAuthority enlists the information required to identify which // CA to use and perform signature verification. type CertificateAuthority struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The root certificate MUST be self-signed, and so the subject and // issuer are the same. Subject *v1.DistinguishedName `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // The URI at which the CA can be accessed. Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The certificate chain for this CA. CertChain *v1.X509CertificateChain `protobuf:"bytes,3,opt,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"` // The time the *entire* chain was valid. This is at max the // longest interval when *all* certificates in the chain were valid, // but it MAY be shorter. Clients MUST check timestamps against *both* // the `valid_for` time range *and* the entire certificate chain. // // The TimeRange should be considered valid *inclusive* of the // endpoints. ValidFor *v1.TimeRange `protobuf:"bytes,4,opt,name=valid_for,json=validFor,proto3" json:"valid_for,omitempty"` } func (x *CertificateAuthority) Reset() { *x = CertificateAuthority{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_trustroot_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CertificateAuthority) String() string { return protoimpl.X.MessageStringOf(x) } func (*CertificateAuthority) ProtoMessage() {} func (x *CertificateAuthority) ProtoReflect() protoreflect.Message { mi := &file_sigstore_trustroot_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CertificateAuthority.ProtoReflect.Descriptor instead. func (*CertificateAuthority) Descriptor() ([]byte, []int) { return file_sigstore_trustroot_proto_rawDescGZIP(), []int{1} } func (x *CertificateAuthority) GetSubject() *v1.DistinguishedName { if x != nil { return x.Subject } return nil } func (x *CertificateAuthority) GetUri() string { if x != nil { return x.Uri } return "" } func (x *CertificateAuthority) GetCertChain() *v1.X509CertificateChain { if x != nil { return x.CertChain } return nil } func (x *CertificateAuthority) GetValidFor() *v1.TimeRange { if x != nil { return x.ValidFor } return nil } // TrustedRoot describes the client's complete set of trusted entities. // How the TrustedRoot is populated is not specified, but can be a // combination of many sources such as TUF repositories, files on disk etc. // // The TrustedRoot is not meant to be used for any artifact verification, only // to capture the complete/global set of trusted verification materials. // When verifying an artifact, based on the artifact and policies, a selection // of keys/authorities are expected to be extracted and provided to the // verification function. This way the set of keys/authorities can be kept to // a minimal set by the policy to gain better control over what signatures // that are allowed. // // The embedded transparency logs, CT logs, CAs and TSAs MUST include any // previously used instance -- otherwise signatures made in the past cannot // be verified. // The currently used instances MUST NOT have their 'end' timestamp set in // their 'valid_for' attribute for easy identification. // All the listed instances SHOULD be sorted by the 'valid_for' in ascending // order, that is, the oldest instance first and the current instance last. type TrustedRoot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1 MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // A set of trusted Rekor servers. Tlogs []*TransparencyLogInstance `protobuf:"bytes,2,rep,name=tlogs,proto3" json:"tlogs,omitempty"` // A set of trusted certificate authorities (e.g Fulcio), and any // intermediate certificates they provide. // If a CA is issuing multiple intermediate certificate, each // combination shall be represented as separate chain. I.e, a single // root cert may appear in multiple chains but with different // intermediate and/or leaf certificates. // The certificates are intended to be used for verifying artifact // signatures. CertificateAuthorities []*CertificateAuthority `protobuf:"bytes,3,rep,name=certificate_authorities,json=certificateAuthorities,proto3" json:"certificate_authorities,omitempty"` // A set of trusted certificate transparency logs. Ctlogs []*TransparencyLogInstance `protobuf:"bytes,4,rep,name=ctlogs,proto3" json:"ctlogs,omitempty"` // A set of trusted timestamping authorities. TimestampAuthorities []*CertificateAuthority `protobuf:"bytes,5,rep,name=timestamp_authorities,json=timestampAuthorities,proto3" json:"timestamp_authorities,omitempty"` } func (x *TrustedRoot) Reset() { *x = TrustedRoot{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_trustroot_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TrustedRoot) String() string { return protoimpl.X.MessageStringOf(x) } func (*TrustedRoot) ProtoMessage() {} func (x *TrustedRoot) ProtoReflect() protoreflect.Message { mi := &file_sigstore_trustroot_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TrustedRoot.ProtoReflect.Descriptor instead. func (*TrustedRoot) Descriptor() ([]byte, []int) { return file_sigstore_trustroot_proto_rawDescGZIP(), []int{2} } func (x *TrustedRoot) GetMediaType() string { if x != nil { return x.MediaType } return "" } func (x *TrustedRoot) GetTlogs() []*TransparencyLogInstance { if x != nil { return x.Tlogs } return nil } func (x *TrustedRoot) GetCertificateAuthorities() []*CertificateAuthority { if x != nil { return x.CertificateAuthorities } return nil } func (x *TrustedRoot) GetCtlogs() []*TransparencyLogInstance { if x != nil { return x.Ctlogs } return nil } func (x *TrustedRoot) GetTimestampAuthorities() []*CertificateAuthority { if x != nil { return x.TimestampAuthorities } return nil } var File_sigstore_trustroot_proto protoreflect.FileDescriptor var file_sigstore_trustroot_proto_rawDesc = []byte{ 0x0a, 0x18, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x01, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x67, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x4c, 0x0a, 0x0e, 0x68, 0x61, 0x73, 0x68, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0d, 0x68, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x40, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x49, 0x64, 0x22, 0xfa, 0x01, 0x0a, 0x14, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x75, 0x69, 0x73, 0x68, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x4b, 0x0a, 0x0a, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x63, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x46, 0x6f, 0x72, 0x22, 0x92, 0x03, 0x0a, 0x0b, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x74, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x67, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x74, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x68, 0x0a, 0x17, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x16, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x63, 0x74, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x67, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x63, 0x74, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x64, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x42, 0x88, 0x01, 0x0a, 0x1f, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x17, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_sigstore_trustroot_proto_rawDescOnce sync.Once file_sigstore_trustroot_proto_rawDescData = file_sigstore_trustroot_proto_rawDesc ) func file_sigstore_trustroot_proto_rawDescGZIP() []byte { file_sigstore_trustroot_proto_rawDescOnce.Do(func() { file_sigstore_trustroot_proto_rawDescData = protoimpl.X.CompressGZIP(file_sigstore_trustroot_proto_rawDescData) }) return file_sigstore_trustroot_proto_rawDescData } var file_sigstore_trustroot_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_sigstore_trustroot_proto_goTypes = []interface{}{ (*TransparencyLogInstance)(nil), // 0: dev.sigstore.trustroot.v1.TransparencyLogInstance (*CertificateAuthority)(nil), // 1: dev.sigstore.trustroot.v1.CertificateAuthority (*TrustedRoot)(nil), // 2: dev.sigstore.trustroot.v1.TrustedRoot (v1.HashAlgorithm)(0), // 3: dev.sigstore.common.v1.HashAlgorithm (*v1.PublicKey)(nil), // 4: dev.sigstore.common.v1.PublicKey (*v1.LogId)(nil), // 5: dev.sigstore.common.v1.LogId (*v1.DistinguishedName)(nil), // 6: dev.sigstore.common.v1.DistinguishedName (*v1.X509CertificateChain)(nil), // 7: dev.sigstore.common.v1.X509CertificateChain (*v1.TimeRange)(nil), // 8: dev.sigstore.common.v1.TimeRange } var file_sigstore_trustroot_proto_depIdxs = []int32{ 3, // 0: dev.sigstore.trustroot.v1.TransparencyLogInstance.hash_algorithm:type_name -> dev.sigstore.common.v1.HashAlgorithm 4, // 1: dev.sigstore.trustroot.v1.TransparencyLogInstance.public_key:type_name -> dev.sigstore.common.v1.PublicKey 5, // 2: dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id:type_name -> dev.sigstore.common.v1.LogId 6, // 3: dev.sigstore.trustroot.v1.CertificateAuthority.subject:type_name -> dev.sigstore.common.v1.DistinguishedName 7, // 4: dev.sigstore.trustroot.v1.CertificateAuthority.cert_chain:type_name -> dev.sigstore.common.v1.X509CertificateChain 8, // 5: dev.sigstore.trustroot.v1.CertificateAuthority.valid_for:type_name -> dev.sigstore.common.v1.TimeRange 0, // 6: dev.sigstore.trustroot.v1.TrustedRoot.tlogs:type_name -> dev.sigstore.trustroot.v1.TransparencyLogInstance 1, // 7: dev.sigstore.trustroot.v1.TrustedRoot.certificate_authorities:type_name -> dev.sigstore.trustroot.v1.CertificateAuthority 0, // 8: dev.sigstore.trustroot.v1.TrustedRoot.ctlogs:type_name -> dev.sigstore.trustroot.v1.TransparencyLogInstance 1, // 9: dev.sigstore.trustroot.v1.TrustedRoot.timestamp_authorities:type_name -> dev.sigstore.trustroot.v1.CertificateAuthority 10, // [10:10] is the sub-list for method output_type 10, // [10:10] is the sub-list for method input_type 10, // [10:10] is the sub-list for extension type_name 10, // [10:10] is the sub-list for extension extendee 0, // [0:10] is the sub-list for field type_name } func init() { file_sigstore_trustroot_proto_init() } func file_sigstore_trustroot_proto_init() { if File_sigstore_trustroot_proto != nil { return } if !protoimpl.UnsafeEnabled { file_sigstore_trustroot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransparencyLogInstance); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_trustroot_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CertificateAuthority); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_trustroot_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TrustedRoot); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sigstore_trustroot_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_sigstore_trustroot_proto_goTypes, DependencyIndexes: file_sigstore_trustroot_proto_depIdxs, MessageInfos: file_sigstore_trustroot_proto_msgTypes, }.Build() File_sigstore_trustroot_proto = out.File file_sigstore_trustroot_proto_rawDesc = nil file_sigstore_trustroot_proto_goTypes = nil file_sigstore_trustroot_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/verification/000077500000000000000000000000001455126531500253155ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/verification/v1/000077500000000000000000000000001455126531500256435ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-go/verification/v1/sigstore_verification.pb.go000066400000000000000000001233421455126531500332000ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 // protoc v3.21.6 // source: sigstore_verification.proto package v1 import ( v12 "github.com/sigstore/protobuf-specs/gen/pb-go/bundle/v1" v1 "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1" v11 "github.com/sigstore/protobuf-specs/gen/pb-go/trustroot/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // The identity of a X.509 Certificate signer. type CertificateIdentity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` San *v1.SubjectAlternativeName `protobuf:"bytes,2,opt,name=san,proto3" json:"san,omitempty"` // An unordered list of OIDs that must be verified. // All OID/values provided in this list MUST exactly match against // the values in the certificate for verification to be successful. Oids []*v1.ObjectIdentifierValuePair `protobuf:"bytes,3,rep,name=oids,proto3" json:"oids,omitempty"` } func (x *CertificateIdentity) Reset() { *x = CertificateIdentity{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CertificateIdentity) String() string { return protoimpl.X.MessageStringOf(x) } func (*CertificateIdentity) ProtoMessage() {} func (x *CertificateIdentity) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CertificateIdentity.ProtoReflect.Descriptor instead. func (*CertificateIdentity) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{0} } func (x *CertificateIdentity) GetIssuer() string { if x != nil { return x.Issuer } return "" } func (x *CertificateIdentity) GetSan() *v1.SubjectAlternativeName { if x != nil { return x.San } return nil } func (x *CertificateIdentity) GetOids() []*v1.ObjectIdentifierValuePair { if x != nil { return x.Oids } return nil } type CertificateIdentities struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Identities []*CertificateIdentity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"` } func (x *CertificateIdentities) Reset() { *x = CertificateIdentities{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CertificateIdentities) String() string { return protoimpl.X.MessageStringOf(x) } func (*CertificateIdentities) ProtoMessage() {} func (x *CertificateIdentities) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CertificateIdentities.ProtoReflect.Descriptor instead. func (*CertificateIdentities) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{1} } func (x *CertificateIdentities) GetIdentities() []*CertificateIdentity { if x != nil { return x.Identities } return nil } type PublicKeyIdentities struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PublicKeys []*v1.PublicKey `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` } func (x *PublicKeyIdentities) Reset() { *x = PublicKeyIdentities{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PublicKeyIdentities) String() string { return protoimpl.X.MessageStringOf(x) } func (*PublicKeyIdentities) ProtoMessage() {} func (x *PublicKeyIdentities) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PublicKeyIdentities.ProtoReflect.Descriptor instead. func (*PublicKeyIdentities) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{2} } func (x *PublicKeyIdentities) GetPublicKeys() []*v1.PublicKey { if x != nil { return x.PublicKeys } return nil } // A light-weight set of options/policies for identifying trusted signers, // used during verification of a single artifact. type ArtifactVerificationOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // At least one identity MUST be provided. Providing zero identities // is an error. If at least one provided identity is found as a // signer, the verification is considered successful. // // Types that are assignable to Signers: // // *ArtifactVerificationOptions_CertificateIdentities // *ArtifactVerificationOptions_PublicKeys Signers isArtifactVerificationOptions_Signers `protobuf_oneof:"signers"` // Optional options for artifact transparency log verification. // If none is provided, the default verification options are: // Threshold: 1 // Online verification: false // Disable: false TlogOptions *ArtifactVerificationOptions_TlogOptions `protobuf:"bytes,3,opt,name=tlog_options,json=tlogOptions,proto3,oneof" json:"tlog_options,omitempty"` // Optional options for certificate transparency log verification. // If none is provided, the default verification options are: // Threshold: 1 // Detached SCT: false // Disable: false CtlogOptions *ArtifactVerificationOptions_CtlogOptions `protobuf:"bytes,4,opt,name=ctlog_options,json=ctlogOptions,proto3,oneof" json:"ctlog_options,omitempty"` // Optional options for certificate signed timestamp verification. // If none is provided, the default verification options are: // Threshold: 1 // Disable: false TsaOptions *ArtifactVerificationOptions_TimestampAuthorityOptions `protobuf:"bytes,5,opt,name=tsa_options,json=tsaOptions,proto3,oneof" json:"tsa_options,omitempty"` } func (x *ArtifactVerificationOptions) Reset() { *x = ArtifactVerificationOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ArtifactVerificationOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3} } func (m *ArtifactVerificationOptions) GetSigners() isArtifactVerificationOptions_Signers { if m != nil { return m.Signers } return nil } func (x *ArtifactVerificationOptions) GetCertificateIdentities() *CertificateIdentities { if x, ok := x.GetSigners().(*ArtifactVerificationOptions_CertificateIdentities); ok { return x.CertificateIdentities } return nil } func (x *ArtifactVerificationOptions) GetPublicKeys() *PublicKeyIdentities { if x, ok := x.GetSigners().(*ArtifactVerificationOptions_PublicKeys); ok { return x.PublicKeys } return nil } func (x *ArtifactVerificationOptions) GetTlogOptions() *ArtifactVerificationOptions_TlogOptions { if x != nil { return x.TlogOptions } return nil } func (x *ArtifactVerificationOptions) GetCtlogOptions() *ArtifactVerificationOptions_CtlogOptions { if x != nil { return x.CtlogOptions } return nil } func (x *ArtifactVerificationOptions) GetTsaOptions() *ArtifactVerificationOptions_TimestampAuthorityOptions { if x != nil { return x.TsaOptions } return nil } type isArtifactVerificationOptions_Signers interface { isArtifactVerificationOptions_Signers() } type ArtifactVerificationOptions_CertificateIdentities struct { CertificateIdentities *CertificateIdentities `protobuf:"bytes,1,opt,name=certificate_identities,json=certificateIdentities,proto3,oneof"` } type ArtifactVerificationOptions_PublicKeys struct { // To simplify verification implementation, the logic for // bundle verification should be implemented as a // higher-order function, where one of argument should be an // interface over the set of trusted public keys, like this: // `Verify(bytes artifact, bytes signature, string key_id)`. // This way the caller is in full control of mapping the // identified (or hinted) key in the bundle to one of the // trusted keys, as this process is inherently application // specific. PublicKeys *PublicKeyIdentities `protobuf:"bytes,2,opt,name=public_keys,json=publicKeys,proto3,oneof"` } func (*ArtifactVerificationOptions_CertificateIdentities) isArtifactVerificationOptions_Signers() {} func (*ArtifactVerificationOptions_PublicKeys) isArtifactVerificationOptions_Signers() {} type Artifact struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Data: // // *Artifact_ArtifactUri // *Artifact_Artifact Data isArtifact_Data `protobuf_oneof:"data"` } func (x *Artifact) Reset() { *x = Artifact{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Artifact) String() string { return protoimpl.X.MessageStringOf(x) } func (*Artifact) ProtoMessage() {} func (x *Artifact) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Artifact.ProtoReflect.Descriptor instead. func (*Artifact) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{4} } func (m *Artifact) GetData() isArtifact_Data { if m != nil { return m.Data } return nil } func (x *Artifact) GetArtifactUri() string { if x, ok := x.GetData().(*Artifact_ArtifactUri); ok { return x.ArtifactUri } return "" } func (x *Artifact) GetArtifact() []byte { if x, ok := x.GetData().(*Artifact_Artifact); ok { return x.Artifact } return nil } type isArtifact_Data interface { isArtifact_Data() } type Artifact_ArtifactUri struct { // Location of the artifact ArtifactUri string `protobuf:"bytes,1,opt,name=artifact_uri,json=artifactUri,proto3,oneof"` } type Artifact_Artifact struct { // The raw bytes of the artifact Artifact []byte `protobuf:"bytes,2,opt,name=artifact,proto3,oneof"` } func (*Artifact_ArtifactUri) isArtifact_Data() {} func (*Artifact_Artifact) isArtifact_Data() {} // Input captures all that is needed to call the bundle verification method, // to verify a single artifact referenced by the bundle. type Input struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The verification materials provided during a bundle verification. // The running process is usually preloaded with a "global" // dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to // verifying an artifact (i.e a bundle), and/or based on current // policy, some selection is expected to happen, to filter out the // exact certificate authority to use, which transparency logs are // relevant etc. The result should b ecaptured in the // `artifact_trust_root`. ArtifactTrustRoot *v11.TrustedRoot `protobuf:"bytes,1,opt,name=artifact_trust_root,json=artifactTrustRoot,proto3" json:"artifact_trust_root,omitempty"` ArtifactVerificationOptions *ArtifactVerificationOptions `protobuf:"bytes,2,opt,name=artifact_verification_options,json=artifactVerificationOptions,proto3" json:"artifact_verification_options,omitempty"` Bundle *v12.Bundle `protobuf:"bytes,3,opt,name=bundle,proto3" json:"bundle,omitempty"` // If the bundle contains a message signature, the artifact must be // provided. Artifact *Artifact `protobuf:"bytes,4,opt,name=artifact,proto3,oneof" json:"artifact,omitempty"` } func (x *Input) Reset() { *x = Input{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Input) String() string { return protoimpl.X.MessageStringOf(x) } func (*Input) ProtoMessage() {} func (x *Input) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Input.ProtoReflect.Descriptor instead. func (*Input) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{5} } func (x *Input) GetArtifactTrustRoot() *v11.TrustedRoot { if x != nil { return x.ArtifactTrustRoot } return nil } func (x *Input) GetArtifactVerificationOptions() *ArtifactVerificationOptions { if x != nil { return x.ArtifactVerificationOptions } return nil } func (x *Input) GetBundle() *v12.Bundle { if x != nil { return x.Bundle } return nil } func (x *Input) GetArtifact() *Artifact { if x != nil { return x.Artifact } return nil } type ArtifactVerificationOptions_TlogOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Number of transparency logs the entry must appear on. Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // Perform an online inclusion proof. PerformOnlineVerification bool `protobuf:"varint,2,opt,name=perform_online_verification,json=performOnlineVerification,proto3" json:"perform_online_verification,omitempty"` // Disable verification for transparency logs. Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` } func (x *ArtifactVerificationOptions_TlogOptions) Reset() { *x = ArtifactVerificationOptions_TlogOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions_TlogOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions_TlogOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions_TlogOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ArtifactVerificationOptions_TlogOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions_TlogOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3, 0} } func (x *ArtifactVerificationOptions_TlogOptions) GetThreshold() int32 { if x != nil { return x.Threshold } return 0 } func (x *ArtifactVerificationOptions_TlogOptions) GetPerformOnlineVerification() bool { if x != nil { return x.PerformOnlineVerification } return false } func (x *ArtifactVerificationOptions_TlogOptions) GetDisable() bool { if x != nil { return x.Disable } return false } type ArtifactVerificationOptions_CtlogOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The number of ct transparency logs the certificate must // appear on. Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // Expect detached SCTs. // This is not supported right now as we can't capture an // detached SCT in the bundle. DetachedSct bool `protobuf:"varint,2,opt,name=detached_sct,json=detachedSct,proto3" json:"detached_sct,omitempty"` // Disable ct transparency log verification Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` } func (x *ArtifactVerificationOptions_CtlogOptions) Reset() { *x = ArtifactVerificationOptions_CtlogOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions_CtlogOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions_CtlogOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions_CtlogOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ArtifactVerificationOptions_CtlogOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions_CtlogOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3, 1} } func (x *ArtifactVerificationOptions_CtlogOptions) GetThreshold() int32 { if x != nil { return x.Threshold } return 0 } func (x *ArtifactVerificationOptions_CtlogOptions) GetDetachedSct() bool { if x != nil { return x.DetachedSct } return false } func (x *ArtifactVerificationOptions_CtlogOptions) GetDisable() bool { if x != nil { return x.Disable } return false } type ArtifactVerificationOptions_TimestampAuthorityOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The number of signed timestamps that are expected. Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // Disable signed timestamp verification. Disable bool `protobuf:"varint,2,opt,name=disable,proto3" json:"disable,omitempty"` } func (x *ArtifactVerificationOptions_TimestampAuthorityOptions) Reset() { *x = ArtifactVerificationOptions_TimestampAuthorityOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions_TimestampAuthorityOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions_TimestampAuthorityOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions_TimestampAuthorityOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ArtifactVerificationOptions_TimestampAuthorityOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions_TimestampAuthorityOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3, 2} } func (x *ArtifactVerificationOptions_TimestampAuthorityOptions) GetThreshold() int32 { if x != nil { return x.Threshold } return 0 } func (x *ArtifactVerificationOptions_TimestampAuthorityOptions) GetDisable() bool { if x != nil { return x.Disable } return false } var File_sigstore_verification_proto protoreflect.FileDescriptor var file_sigstore_verification_proto_rawDesc = []byte{ 0x0a, 0x1b, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01, 0x0a, 0x13, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x03, 0x73, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x03, 0x73, 0x61, 0x6e, 0x12, 0x45, 0x0a, 0x04, 0x6f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x04, 0x6f, 0x69, 0x64, 0x73, 0x22, 0x6a, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x59, 0x0a, 0x13, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xc3, 0x07, 0x0a, 0x1b, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x6c, 0x0a, 0x16, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 0x15, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x6d, 0x0a, 0x0c, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x01, 0x52, 0x0b, 0x74, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x70, 0x0a, 0x0d, 0x63, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x74, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x02, 0x52, 0x0c, 0x63, 0x74, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x79, 0x0a, 0x0b, 0x74, 0x73, 0x61, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x03, 0x52, 0x0a, 0x74, 0x73, 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x1a, 0x85, 0x01, 0x0a, 0x0b, 0x54, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3e, 0x0a, 0x1b, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x69, 0x0a, 0x0c, 0x43, 0x74, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x53, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x53, 0x0a, 0x19, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x63, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x73, 0x61, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x55, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x23, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x55, 0x72, 0x69, 0x12, 0x1c, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xec, 0x02, 0x0a, 0x05, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x6f, 0x6f, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x7d, 0x0a, 0x1d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x1b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x47, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x94, 0x01, 0x0a, 0x22, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x1a, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_sigstore_verification_proto_rawDescOnce sync.Once file_sigstore_verification_proto_rawDescData = file_sigstore_verification_proto_rawDesc ) func file_sigstore_verification_proto_rawDescGZIP() []byte { file_sigstore_verification_proto_rawDescOnce.Do(func() { file_sigstore_verification_proto_rawDescData = protoimpl.X.CompressGZIP(file_sigstore_verification_proto_rawDescData) }) return file_sigstore_verification_proto_rawDescData } var file_sigstore_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_sigstore_verification_proto_goTypes = []interface{}{ (*CertificateIdentity)(nil), // 0: dev.sigstore.verification.v1.CertificateIdentity (*CertificateIdentities)(nil), // 1: dev.sigstore.verification.v1.CertificateIdentities (*PublicKeyIdentities)(nil), // 2: dev.sigstore.verification.v1.PublicKeyIdentities (*ArtifactVerificationOptions)(nil), // 3: dev.sigstore.verification.v1.ArtifactVerificationOptions (*Artifact)(nil), // 4: dev.sigstore.verification.v1.Artifact (*Input)(nil), // 5: dev.sigstore.verification.v1.Input (*ArtifactVerificationOptions_TlogOptions)(nil), // 6: dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions (*ArtifactVerificationOptions_CtlogOptions)(nil), // 7: dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions (*ArtifactVerificationOptions_TimestampAuthorityOptions)(nil), // 8: dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions (*v1.SubjectAlternativeName)(nil), // 9: dev.sigstore.common.v1.SubjectAlternativeName (*v1.ObjectIdentifierValuePair)(nil), // 10: dev.sigstore.common.v1.ObjectIdentifierValuePair (*v1.PublicKey)(nil), // 11: dev.sigstore.common.v1.PublicKey (*v11.TrustedRoot)(nil), // 12: dev.sigstore.trustroot.v1.TrustedRoot (*v12.Bundle)(nil), // 13: dev.sigstore.bundle.v1.Bundle } var file_sigstore_verification_proto_depIdxs = []int32{ 9, // 0: dev.sigstore.verification.v1.CertificateIdentity.san:type_name -> dev.sigstore.common.v1.SubjectAlternativeName 10, // 1: dev.sigstore.verification.v1.CertificateIdentity.oids:type_name -> dev.sigstore.common.v1.ObjectIdentifierValuePair 0, // 2: dev.sigstore.verification.v1.CertificateIdentities.identities:type_name -> dev.sigstore.verification.v1.CertificateIdentity 11, // 3: dev.sigstore.verification.v1.PublicKeyIdentities.public_keys:type_name -> dev.sigstore.common.v1.PublicKey 1, // 4: dev.sigstore.verification.v1.ArtifactVerificationOptions.certificate_identities:type_name -> dev.sigstore.verification.v1.CertificateIdentities 2, // 5: dev.sigstore.verification.v1.ArtifactVerificationOptions.public_keys:type_name -> dev.sigstore.verification.v1.PublicKeyIdentities 6, // 6: dev.sigstore.verification.v1.ArtifactVerificationOptions.tlog_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions 7, // 7: dev.sigstore.verification.v1.ArtifactVerificationOptions.ctlog_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions 8, // 8: dev.sigstore.verification.v1.ArtifactVerificationOptions.tsa_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions 12, // 9: dev.sigstore.verification.v1.Input.artifact_trust_root:type_name -> dev.sigstore.trustroot.v1.TrustedRoot 3, // 10: dev.sigstore.verification.v1.Input.artifact_verification_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions 13, // 11: dev.sigstore.verification.v1.Input.bundle:type_name -> dev.sigstore.bundle.v1.Bundle 4, // 12: dev.sigstore.verification.v1.Input.artifact:type_name -> dev.sigstore.verification.v1.Artifact 13, // [13:13] is the sub-list for method output_type 13, // [13:13] is the sub-list for method input_type 13, // [13:13] is the sub-list for extension type_name 13, // [13:13] is the sub-list for extension extendee 0, // [0:13] is the sub-list for field type_name } func init() { file_sigstore_verification_proto_init() } func file_sigstore_verification_proto_init() { if File_sigstore_verification_proto != nil { return } if !protoimpl.UnsafeEnabled { file_sigstore_verification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CertificateIdentity); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CertificateIdentities); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PublicKeyIdentities); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Artifact); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Input); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions_TlogOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions_CtlogOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions_TimestampAuthorityOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_sigstore_verification_proto_msgTypes[3].OneofWrappers = []interface{}{ (*ArtifactVerificationOptions_CertificateIdentities)(nil), (*ArtifactVerificationOptions_PublicKeys)(nil), } file_sigstore_verification_proto_msgTypes[4].OneofWrappers = []interface{}{ (*Artifact_ArtifactUri)(nil), (*Artifact_Artifact)(nil), } file_sigstore_verification_proto_msgTypes[5].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sigstore_verification_proto_rawDesc, NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 0, }, GoTypes: file_sigstore_verification_proto_goTypes, DependencyIndexes: file_sigstore_verification_proto_depIdxs, MessageInfos: file_sigstore_verification_proto_msgTypes, }.Build() File_sigstore_verification_proto = out.File file_sigstore_verification_proto_rawDesc = nil file_sigstore_verification_proto_goTypes = nil file_sigstore_verification_proto_depIdxs = nil } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/000077500000000000000000000000001455126531500235475ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/LICENSE000066400000000000000000000261361455126531500245640ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/Makefile000066400000000000000000000005421455126531500252100ustar00rootroot00000000000000.PHONY: all all: @echo "Run my targets individually!" env/pyvenv.cfg: pyproject.toml # Create our Python 3 virtual environment rm -rf env python3 -m venv env ./env/bin/python -m pip install --upgrade pip ./env/bin/python -m pip install -e .[dev] .PHONY: dev dev: env/pyvenv.cfg .PHONY: package package: env/pyvenv.cfg ./env/bin/python -m build golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/README.md000066400000000000000000000003301455126531500250220ustar00rootroot00000000000000sigstore-protobuf-specs ======================= These are the Python language bindings for Sigstore's protobuf specs. See the [repository's README](https://github.com/sigstore/protobuf-specs) for more information. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/pyproject.toml000066400000000000000000000022601455126531500264630ustar00rootroot00000000000000[build-system] requires = ["flit_core >=3.2,<4"] build-backend = "flit_core.buildapi" [project] name = "sigstore-protobuf-specs" version = "0.2.1" description = "A library for serializing and deserializing Sigstore messages" readme = "README.md" license = { file = "LICENSE" } authors = [ { name = "Sigstore Authors", email = "sigstore-dev@googlegroups.com" } ] classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Security", "Topic :: Security :: Cryptography", ] dependencies = [ "betterproto==2.0.0b5", ] requires-python = ">=3.7" [project.urls] Homepage = "https://pypi.org/project/sigstore-protobuf-specs/" Issues = "https://github.com/sigstore/protobuf-specs/issues" Source = "https://github.com/sigstore/protobuf-specs" [project.optional-dependencies] dev = [ "build", ] golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/000077500000000000000000000000001455126531500305235ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/__init__.py000066400000000000000000000000001455126531500326220ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/000077500000000000000000000000001455126531500313015ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/__init__.py000066400000000000000000000000001455126531500334000ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/000077500000000000000000000000001455126531500331405ustar00rootroot00000000000000__init__.py000066400000000000000000000000001455126531500351600ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstorebundle/000077500000000000000000000000001455126531500343325ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500364310ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundlev1/000077500000000000000000000000001455126531500346605ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle__init__.py000066400000000000000000000066001455126531500367730ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_bundle.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto from .....io import intoto as ____io_intoto__ from ...common import v1 as __common_v1__ from ...rekor import v1 as __rekor_v1__ @dataclass(eq=False, repr=False) class TimestampVerificationData(betterproto.Message): """ Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future. """ rfc3161_timestamps: List[ "__common_v1__.Rfc3161SignedTimestamp" ] = betterproto.message_field(1) """ A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle. """ @dataclass(eq=False, repr=False) class VerificationMaterial(betterproto.Message): """ VerificationMaterial captures details on the materials used to verify signatures. """ public_key: "__common_v1__.PublicKeyIdentifier" = betterproto.message_field( 1, group="content" ) x509_certificate_chain: "__common_v1__.X509CertificateChain" = ( betterproto.message_field(2, group="content") ) tlog_entries: List["__rekor_v1__.TransparencyLogEntry"] = betterproto.message_field( 3 ) """ An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them. """ timestamp_verification_data: "TimestampVerificationData" = ( betterproto.message_field(4) ) """ Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp. """ @dataclass(eq=False, repr=False) class Bundle(betterproto.Message): media_type: str = betterproto.string_field(1) """ MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 or application/vnd.dev.sigstore.bundle+json;version=0.2 when encoded as JSON. """ verification_material: "VerificationMaterial" = betterproto.message_field(2) """ When a signer is identified by a X.509 certificate, a verifier MUST verify that the signature was computed at the time the certificate was valid as described in the Sigstore client spec: "Verification using a Bundle". """ message_signature: "__common_v1__.MessageSignature" = betterproto.message_field( 3, group="content" ) dsse_envelope: "____io_intoto__.Envelope" = betterproto.message_field( 4, group="content" ) """ A DSSE envelope can contain arbitrary payloads. Verifiers must verify that the payload type is a supported and expected type. This is part of the DSSE protocol which is defined here: """ common/000077500000000000000000000000001455126531500343515ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500364500ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/commonv1/000077500000000000000000000000001455126531500346775ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common__init__.py000066400000000000000000000173021455126531500370130ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_common.proto # plugin: python-betterproto from dataclasses import dataclass from datetime import datetime from typing import ( List, Optional, ) import betterproto class HashAlgorithm(betterproto.Enum): """ Only a subset of the secure hash standard algorithms are supported. See for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'. """ HASH_ALGORITHM_UNSPECIFIED = 0 SHA2_256 = 1 class PublicKeyDetails(betterproto.Enum): """ Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm). """ PUBLIC_KEY_DETAILS_UNSPECIFIED = 0 PKCS1_RSA_PKCS1V5 = 1 """RSA""" PKCS1_RSA_PSS = 2 PKIX_RSA_PKCS1V5 = 3 PKIX_RSA_PSS = 4 PKIX_ECDSA_P256_SHA_256 = 5 """ECDSA""" PKIX_ECDSA_P256_HMAC_SHA_256 = 6 PKIX_ED25519 = 7 """Ed 25519""" class SubjectAlternativeNameType(betterproto.Enum): SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED = 0 EMAIL = 1 URI = 2 OTHER_NAME = 3 """ OID 1.3.6.1.4.1.57264.1.7 See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417 --othername-san for more details. """ @dataclass(eq=False, repr=False) class HashOutput(betterproto.Message): """ HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used. """ algorithm: "HashAlgorithm" = betterproto.enum_field(1) digest: bytes = betterproto.bytes_field(2) """ This is the raw octets of the message digest as computed by the hash algorithm. """ @dataclass(eq=False, repr=False) class MessageSignature(betterproto.Message): """MessageSignature stores the computed signature over a message.""" message_digest: "HashOutput" = betterproto.message_field(1) """ Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification. """ signature: bytes = betterproto.bytes_field(2) """ The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out- of-band. """ @dataclass(eq=False, repr=False) class LogId(betterproto.Message): """LogId captures the identity of a transparency log.""" key_id: bytes = betterproto.bytes_field(1) """ The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc- editor.org/rfc/rfc6962#section-3.2 """ @dataclass(eq=False, repr=False) class Rfc3161SignedTimestamp(betterproto.Message): """This message holds a RFC 3161 timestamp.""" signed_timestamp: bytes = betterproto.bytes_field(1) """ Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc- editor.org/rfc/rfc3161.html#section-2.4.2 """ @dataclass(eq=False, repr=False) class PublicKey(betterproto.Message): raw_bytes: Optional[bytes] = betterproto.bytes_field( 1, optional=True, group="_raw_bytes" ) """ DER-encoded public key, encoding method is specified by the key_details attribute. """ key_details: "PublicKeyDetails" = betterproto.enum_field(2) """Key encoding and signature algorithm to use for this key.""" valid_for: Optional["TimeRange"] = betterproto.message_field( 3, optional=True, group="_valid_for" ) """Optional validity period for this key, *inclusive* of the endpoints.""" @dataclass(eq=False, repr=False) class PublicKeyIdentifier(betterproto.Message): """ PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature. """ hint: str = betterproto.string_field(1) """ Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: """ @dataclass(eq=False, repr=False) class ObjectIdentifier(betterproto.Message): """An ASN.1 OBJECT IDENTIFIER""" id: List[int] = betterproto.int32_field(1) @dataclass(eq=False, repr=False) class ObjectIdentifierValuePair(betterproto.Message): """An OID and the corresponding (byte) value.""" oid: "ObjectIdentifier" = betterproto.message_field(1) value: bytes = betterproto.bytes_field(2) @dataclass(eq=False, repr=False) class DistinguishedName(betterproto.Message): organization: str = betterproto.string_field(1) common_name: str = betterproto.string_field(2) @dataclass(eq=False, repr=False) class X509Certificate(betterproto.Message): raw_bytes: bytes = betterproto.bytes_field(1) """DER-encoded X.509 certificate.""" @dataclass(eq=False, repr=False) class SubjectAlternativeName(betterproto.Message): type: "SubjectAlternativeNameType" = betterproto.enum_field(1) regexp: str = betterproto.string_field(2, group="identity") """A regular expression describing the expected value for the SAN.""" value: str = betterproto.string_field(3, group="identity") """The exact value to match against.""" @dataclass(eq=False, repr=False) class X509CertificateChain(betterproto.Message): """A chain of X.509 certificates.""" certificates: List["X509Certificate"] = betterproto.message_field(1) """ The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates. """ @dataclass(eq=False, repr=False) class TimeRange(betterproto.Message): """ The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end. """ start: datetime = betterproto.message_field(1) end: Optional[datetime] = betterproto.message_field(2, optional=True, group="_end") events/000077500000000000000000000000001455126531500343655ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500364640ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/eventsv1/000077500000000000000000000000001455126531500347135ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events__init__.py000066400000000000000000000033021455126531500370220ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: events.proto # plugin: python-betterproto from dataclasses import dataclass from datetime import datetime from typing import ( Dict, List, ) import betterproto import betterproto.lib.google.protobuf as betterproto_lib_google_protobuf @dataclass(eq=False, repr=False) class CloudEvent(betterproto.Message): id: str = betterproto.string_field(1) """Required Attributes""" source: str = betterproto.string_field(2) spec_version: str = betterproto.string_field(3) type: str = betterproto.string_field(4) attributes: Dict[str, "CloudEventCloudEventAttributeValue"] = betterproto.map_field( 5, betterproto.TYPE_STRING, betterproto.TYPE_MESSAGE ) """Optional & Extension Attributes""" binary_data: bytes = betterproto.bytes_field(6, group="data") text_data: str = betterproto.string_field(7, group="data") proto_data: "betterproto_lib_google_protobuf.Any" = betterproto.message_field( 8, group="data" ) @dataclass(eq=False, repr=False) class CloudEventCloudEventAttributeValue(betterproto.Message): ce_boolean: bool = betterproto.bool_field(1, group="attr") ce_integer: int = betterproto.int32_field(2, group="attr") ce_string: str = betterproto.string_field(3, group="attr") ce_bytes: bytes = betterproto.bytes_field(4, group="attr") ce_uri: str = betterproto.string_field(5, group="attr") ce_uri_ref: str = betterproto.string_field(6, group="attr") ce_timestamp: datetime = betterproto.message_field(7, group="attr") @dataclass(eq=False, repr=False) class CloudEventBatch(betterproto.Message): events: List["CloudEvent"] = betterproto.message_field(1) rekor/000077500000000000000000000000001455126531500342035ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500363020ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekorv1/000077500000000000000000000000001455126531500345315ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor__init__.py000066400000000000000000000142621455126531500366470ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_rekor.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto from ...common import v1 as __common_v1__ @dataclass(eq=False, repr=False) class KindVersion(betterproto.Message): """KindVersion contains the entry's kind and api version.""" kind: str = betterproto.string_field(1) """ Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types """ version: str = betterproto.string_field(2) """The specific api version of the type.""" @dataclass(eq=False, repr=False) class Checkpoint(betterproto.Message): """ The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06ce fe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details. """ envelope: str = betterproto.string_field(1) @dataclass(eq=False, repr=False) class InclusionProof(betterproto.Message): """ InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log. """ log_index: int = betterproto.int64_field(1) """The index of the entry in the tree it was written to.""" root_hash: bytes = betterproto.bytes_field(2) """ The hash digest stored at the root of the merkle tree at the time the proof was generated. """ tree_size: int = betterproto.int64_field(3) """The size of the merkle tree at the time the proof was generated.""" hashes: List[bytes] = betterproto.bytes_field(4) """ A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client. """ checkpoint: "Checkpoint" = betterproto.message_field(5) """ Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details. """ @dataclass(eq=False, repr=False) class InclusionPromise(betterproto.Message): """ The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sig store/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.g o#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry. """ signed_entry_timestamp: bytes = betterproto.bytes_field(1) @dataclass(eq=False, repr=False) class TransparencyLogEntry(betterproto.Message): """ TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. """ log_index: int = betterproto.int64_field(1) """The global index of the entry, used when querying the log by index.""" log_id: "__common_v1__.LogId" = betterproto.message_field(2) """The unique identifier of the log.""" kind_version: "KindVersion" = betterproto.message_field(3) """ The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification. """ integrated_time: int = betterproto.int64_field(4) """The UNIX timestamp from the log when the entry was persisted.""" inclusion_promise: "InclusionPromise" = betterproto.message_field(5) """ The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for >= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp. """ inclusion_proof: "InclusionProof" = betterproto.message_field(6) """ The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered. """ canonicalized_body: bytes = betterproto.bytes_field(7) """ Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the "full" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature. """ trustroot/000077500000000000000000000000001455126531500351465ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500372450ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustrootv1/000077500000000000000000000000001455126531500354745ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot__init__.py000066400000000000000000000110141455126531500376020ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_trustroot.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto from ...common import v1 as __common_v1__ @dataclass(eq=False, repr=False) class TransparencyLogInstance(betterproto.Message): """ TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log- parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise. """ base_url: str = betterproto.string_field(1) """The base URL at which can be used to URLs for the client.""" hash_algorithm: "__common_v1__.HashAlgorithm" = betterproto.enum_field(2) """The hash algorithm used for the Merkle Tree.""" public_key: "__common_v1__.PublicKey" = betterproto.message_field(3) """ The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log. """ log_id: "__common_v1__.LogId" = betterproto.message_field(4) """The unique identifier for this transparency log.""" @dataclass(eq=False, repr=False) class CertificateAuthority(betterproto.Message): """ CertificateAuthority enlists the information required to identify which CA to use and perform signature verification. """ subject: "__common_v1__.DistinguishedName" = betterproto.message_field(1) """ The root certificate MUST be self-signed, and so the subject and issuer are the same. """ uri: str = betterproto.string_field(2) """The URI at which the CA can be accessed.""" cert_chain: "__common_v1__.X509CertificateChain" = betterproto.message_field(3) """The certificate chain for this CA.""" valid_for: "__common_v1__.TimeRange" = betterproto.message_field(4) """ The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints. """ @dataclass(eq=False, repr=False) class TrustedRoot(betterproto.Message): """ TrustedRoot describes the client's complete set of trusted entities. How the TrustedRoot is populated is not specified, but can be a combination of many sources such as TUF repositories, files on disk etc. The TrustedRoot is not meant to be used for any artifact verification, only to capture the complete/global set of trusted verification materials. When verifying an artifact, based on the artifact and policies, a selection of keys/authorities are expected to be extracted and provided to the verification function. This way the set of keys/authorities can be kept to a minimal set by the policy to gain better control over what signatures that are allowed. The embedded transparency logs, CT logs, CAs and TSAs MUST include any previously used instance -- otherwise signatures made in the past cannot be verified. The currently used instances MUST NOT have their 'end' timestamp set in their 'valid_for' attribute for easy identification. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first and the current instance last. """ media_type: str = betterproto.string_field(1) """MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1""" tlogs: List["TransparencyLogInstance"] = betterproto.message_field(2) """A set of trusted Rekor servers.""" certificate_authorities: List["CertificateAuthority"] = betterproto.message_field(3) """ A set of trusted certificate authorities (e.g Fulcio), and any intermediate certificates they provide. If a CA is issuing multiple intermediate certificate, each combination shall be represented as separate chain. I.e, a single root cert may appear in multiple chains but with different intermediate and/or leaf certificates. The certificates are intended to be used for verifying artifact signatures. """ ctlogs: List["TransparencyLogInstance"] = betterproto.message_field(4) """A set of trusted certificate transparency logs.""" timestamp_authorities: List["CertificateAuthority"] = betterproto.message_field(5) """A set of trusted timestamping authorities.""" verification/000077500000000000000000000000001455126531500355435ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore__init__.py000066400000000000000000000000001455126531500376420ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verificationv1/000077500000000000000000000000001455126531500360715ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification__init__.py000066400000000000000000000135711455126531500402110ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification/v1# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_verification.proto # plugin: python-betterproto from dataclasses import dataclass from typing import ( List, Optional, ) import betterproto from ...bundle import v1 as __bundle_v1__ from ...common import v1 as __common_v1__ from ...trustroot import v1 as __trustroot_v1__ @dataclass(eq=False, repr=False) class CertificateIdentity(betterproto.Message): """The identity of a X.509 Certificate signer.""" issuer: str = betterproto.string_field(1) """The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)""" san: "__common_v1__.SubjectAlternativeName" = betterproto.message_field(2) oids: List["__common_v1__.ObjectIdentifierValuePair"] = betterproto.message_field(3) """ An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful. """ @dataclass(eq=False, repr=False) class CertificateIdentities(betterproto.Message): identities: List["CertificateIdentity"] = betterproto.message_field(1) @dataclass(eq=False, repr=False) class PublicKeyIdentities(betterproto.Message): public_keys: List["__common_v1__.PublicKey"] = betterproto.message_field(1) @dataclass(eq=False, repr=False) class ArtifactVerificationOptions(betterproto.Message): """ A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact. """ certificate_identities: "CertificateIdentities" = betterproto.message_field( 1, group="signers" ) public_keys: "PublicKeyIdentities" = betterproto.message_field(2, group="signers") """ To simplify verification implementation, the logic for bundle verification should be implemented as a higher-order function, where one of argument should be an interface over the set of trusted public keys, like this: `Verify(bytes artifact, bytes signature, string key_id)`. This way the caller is in full control of mapping the identified (or hinted) key in the bundle to one of the trusted keys, as this process is inherently application specific. """ tlog_options: Optional[ "ArtifactVerificationOptionsTlogOptions" ] = betterproto.message_field(3, optional=True, group="_tlog_options") """ Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false """ ctlog_options: Optional[ "ArtifactVerificationOptionsCtlogOptions" ] = betterproto.message_field(4, optional=True, group="_ctlog_options") """ Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Detached SCT: false Disable: false """ tsa_options: Optional[ "ArtifactVerificationOptionsTimestampAuthorityOptions" ] = betterproto.message_field(5, optional=True, group="_tsa_options") """ Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 1 Disable: false """ @dataclass(eq=False, repr=False) class ArtifactVerificationOptionsTlogOptions(betterproto.Message): threshold: int = betterproto.int32_field(1) """Number of transparency logs the entry must appear on.""" perform_online_verification: bool = betterproto.bool_field(2) """Perform an online inclusion proof.""" disable: bool = betterproto.bool_field(3) """Disable verification for transparency logs.""" @dataclass(eq=False, repr=False) class ArtifactVerificationOptionsCtlogOptions(betterproto.Message): threshold: int = betterproto.int32_field(1) """The number of ct transparency logs the certificate must appear on.""" detached_sct: bool = betterproto.bool_field(2) """ Expect detached SCTs. This is not supported right now as we can't capture an detached SCT in the bundle. """ disable: bool = betterproto.bool_field(3) """Disable ct transparency log verification""" @dataclass(eq=False, repr=False) class ArtifactVerificationOptionsTimestampAuthorityOptions(betterproto.Message): threshold: int = betterproto.int32_field(1) """The number of signed timestamps that are expected.""" disable: bool = betterproto.bool_field(2) """Disable signed timestamp verification.""" @dataclass(eq=False, repr=False) class Artifact(betterproto.Message): artifact_uri: str = betterproto.string_field(1, group="data") """Location of the artifact""" artifact: bytes = betterproto.bytes_field(2, group="data") """The raw bytes of the artifact""" @dataclass(eq=False, repr=False) class Input(betterproto.Message): """ Input captures all that is needed to call the bundle verification method, to verify a single artifact referenced by the bundle. """ artifact_trust_root: "__trustroot_v1__.TrustedRoot" = betterproto.message_field(1) """ The verification materials provided during a bundle verification. The running process is usually preloaded with a "global" dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to verifying an artifact (i.e a bundle), and/or based on current policy, some selection is expected to happen, to filter out the exact certificate authority to use, which transparency logs are relevant etc. The result should b ecaptured in the `artifact_trust_root`. """ artifact_verification_options: "ArtifactVerificationOptions" = ( betterproto.message_field(2) ) bundle: "__bundle_v1__.Bundle" = betterproto.message_field(3) artifact: Optional["Artifact"] = betterproto.message_field( 4, optional=True, group="_artifact" ) """ If the bundle contains a message signature, the artifact must be provided. """ golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/google/000077500000000000000000000000001455126531500317775ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/google/__init__.py000066400000000000000000000000001455126531500340760ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/google/api/000077500000000000000000000000001455126531500325505ustar00rootroot00000000000000__init__.py000066400000000000000000000040411455126531500346010ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/google/api# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: google/api/field_behavior.proto # plugin: python-betterproto from dataclasses import dataclass import betterproto class FieldBehavior(betterproto.Enum): """ An indicator of the behavior of a given field (for example, that a field is required in requests, or given as output but ignored as input). This **does not** change the behavior in protocol buffers itself; it only denotes the behavior and may affect how API tooling handles the field. Note: This enum **may** receive new values in the future. """ FIELD_BEHAVIOR_UNSPECIFIED = 0 """Conventional default for enums. Do not use this.""" OPTIONAL = 1 """ Specifically denotes a field as optional. While all fields in protocol buffers are optional, this may be specified for emphasis if appropriate. """ REQUIRED = 2 """ Denotes a field as required. This indicates that the field **must** be provided as part of the request, and failure to do so will cause an error (usually `INVALID_ARGUMENT`). """ OUTPUT_ONLY = 3 """ Denotes a field as output only. This indicates that the field is provided in responses, but including the field in a request does nothing (the server *must* ignore it and *must not* throw an error as a result of the field's presence). """ INPUT_ONLY = 4 """ Denotes a field as input only. This indicates that the field is provided in requests, and the corresponding field is not included in output. """ IMMUTABLE = 5 """ Denotes a field as immutable. This indicates that the field may be set once in a request to create a resource, but may not be changed thereafter. """ UNORDERED_LIST = 6 """ Denotes that a (repeated) field is an unordered list. This indicates that the service may provide the elements of the list in any arbitrary order, rather than the order the user originally provided. Additionally, the list's order may or may not be stable. """ golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/io/000077500000000000000000000000001455126531500311325ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/io/__init__.py000066400000000000000000000000001455126531500332310ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/io/intoto/000077500000000000000000000000001455126531500324465ustar00rootroot00000000000000__init__.py000066400000000000000000000026111455126531500345000ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-python/sigstore_protobuf_specs/io/intoto# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: envelope.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto @dataclass(eq=False, repr=False) class Envelope(betterproto.Message): """An authenticated message of arbitrary type.""" payload: bytes = betterproto.bytes_field(1) """ Message to be signed. (In JSON, this is encoded as base64.) REQUIRED. """ payload_type: str = betterproto.string_field(2) """String unambiguously identifying how to interpret payload. REQUIRED.""" signatures: List["Signature"] = betterproto.message_field(3) """ Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length >= 1). """ @dataclass(eq=False, repr=False) class Signature(betterproto.Message): sig: bytes = betterproto.bytes_field(1) """Signature itself. (In JSON, this is encoded as base64.) REQUIRED.""" keyid: str = betterproto.string_field(2) """ *Unauthenticated* hint identifying which public key was used. OPTIONAL. """ golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/000077500000000000000000000000001455126531500232075ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/LICENSE000066400000000000000000000261361455126531500242240ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/README.md000066400000000000000000000020131455126531500244620ustar00rootroot00000000000000# sigstore_protobuf_specs These are the Ruby language bindings for Sigstore's protobuf specs. See the [repository's README](https://github.com/sigstore/protobuf-specs) for more information. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sigstore_protobuf_specs' ``` And then execute: ```bash $ bundle install ``` Or install it yourself as: ```bash $ gem install sigstore_protobuf_specs ``` ## Usage Import all the bindings: ```ruby require 'sigstore_protobuf_specs' ``` Or you can import them individually: ```ruby require 'sigstore_bundle_pb' ``` See what is available in `gen/pb-ruby/lib/`. ## Releasing Make sure you update the version in `gen/pb-ruby/lib/sigstore_protobuf_specs/version.rb` A release will be build and automatically pushed to RubyGems when a tag in the format `release/ruby/v*` is created. Contact elfotografo007 for Gem ownership stuff. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/sigstore/protobuf-specs/issues. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/000077500000000000000000000000001455126531500237555ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/envelope_pb.rb000066400000000000000000000014141455126531500266000ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: envelope.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("envelope.proto", :syntax => :proto3) do add_message "io.intoto.Envelope" do optional :payload, :bytes, 1 optional :payloadType, :string, 2 repeated :signatures, :message, 3, "io.intoto.Signature" end add_message "io.intoto.Signature" do optional :sig, :bytes, 1 optional :keyid, :string, 2 end end end module Sigstore module DSSE Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.intoto.Envelope").msgclass Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.intoto.Signature").msgclass end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/events_pb.rb000066400000000000000000000035271455126531500262760ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: events.proto require 'google/protobuf' require 'google/protobuf/any_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("events.proto", :syntax => :proto3) do add_message "dev.sigstore.events.v1.CloudEvent" do optional :id, :string, 1 optional :source, :string, 2 optional :spec_version, :string, 3 optional :type, :string, 4 map :attributes, :string, :message, 5, "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue" oneof :data do optional :binary_data, :bytes, 6 optional :text_data, :string, 7 optional :proto_data, :message, 8, "google.protobuf.Any" end end add_message "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue" do oneof :attr do optional :ce_boolean, :bool, 1 optional :ce_integer, :int32, 2 optional :ce_string, :string, 3 optional :ce_bytes, :bytes, 4 optional :ce_uri, :string, 5 optional :ce_uri_ref, :string, 6 optional :ce_timestamp, :message, 7, "google.protobuf.Timestamp" end end add_message "dev.sigstore.events.v1.CloudEventBatch" do repeated :events, :message, 1, "dev.sigstore.events.v1.CloudEvent" end end end module Dev module Sigstore module Events module V1 CloudEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent").msgclass CloudEvent::CloudEventAttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue").msgclass CloudEventBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.events.v1.CloudEventBatch").msgclass end end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_bundle_pb.rb000066400000000000000000000035461455126531500301630ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_bundle.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'envelope_pb' require 'sigstore_common_pb' require 'sigstore_rekor_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("sigstore_bundle.proto", :syntax => :proto3) do add_message "dev.sigstore.bundle.v1.TimestampVerificationData" do repeated :rfc3161_timestamps, :message, 1, "dev.sigstore.common.v1.RFC3161SignedTimestamp" end add_message "dev.sigstore.bundle.v1.VerificationMaterial" do repeated :tlog_entries, :message, 3, "dev.sigstore.rekor.v1.TransparencyLogEntry" optional :timestamp_verification_data, :message, 4, "dev.sigstore.bundle.v1.TimestampVerificationData" oneof :content do optional :public_key, :message, 1, "dev.sigstore.common.v1.PublicKeyIdentifier" optional :x509_certificate_chain, :message, 2, "dev.sigstore.common.v1.X509CertificateChain" end end add_message "dev.sigstore.bundle.v1.Bundle" do optional :media_type, :string, 1 optional :verification_material, :message, 2, "dev.sigstore.bundle.v1.VerificationMaterial" oneof :content do optional :message_signature, :message, 3, "dev.sigstore.common.v1.MessageSignature" optional :dsse_envelope, :message, 4, "io.intoto.Envelope" end end end end module Sigstore module Bundle module V1 TimestampVerificationData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.TimestampVerificationData").msgclass VerificationMaterial = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.VerificationMaterial").msgclass Bundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.Bundle").msgclass end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_common_pb.rb000066400000000000000000000123341455126531500301750ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_common.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("sigstore_common.proto", :syntax => :proto3) do add_message "dev.sigstore.common.v1.HashOutput" do optional :algorithm, :enum, 1, "dev.sigstore.common.v1.HashAlgorithm" optional :digest, :bytes, 2 end add_message "dev.sigstore.common.v1.MessageSignature" do optional :message_digest, :message, 1, "dev.sigstore.common.v1.HashOutput" optional :signature, :bytes, 2 end add_message "dev.sigstore.common.v1.LogId" do optional :key_id, :bytes, 1 end add_message "dev.sigstore.common.v1.RFC3161SignedTimestamp" do optional :signed_timestamp, :bytes, 1 end add_message "dev.sigstore.common.v1.PublicKey" do proto3_optional :raw_bytes, :bytes, 1 optional :key_details, :enum, 2, "dev.sigstore.common.v1.PublicKeyDetails" proto3_optional :valid_for, :message, 3, "dev.sigstore.common.v1.TimeRange" end add_message "dev.sigstore.common.v1.PublicKeyIdentifier" do optional :hint, :string, 1 end add_message "dev.sigstore.common.v1.ObjectIdentifier" do repeated :id, :int32, 1 end add_message "dev.sigstore.common.v1.ObjectIdentifierValuePair" do optional :oid, :message, 1, "dev.sigstore.common.v1.ObjectIdentifier" optional :value, :bytes, 2 end add_message "dev.sigstore.common.v1.DistinguishedName" do optional :organization, :string, 1 optional :common_name, :string, 2 end add_message "dev.sigstore.common.v1.X509Certificate" do optional :raw_bytes, :bytes, 1 end add_message "dev.sigstore.common.v1.SubjectAlternativeName" do optional :type, :enum, 1, "dev.sigstore.common.v1.SubjectAlternativeNameType" oneof :identity do optional :regexp, :string, 2 optional :value, :string, 3 end end add_message "dev.sigstore.common.v1.X509CertificateChain" do repeated :certificates, :message, 1, "dev.sigstore.common.v1.X509Certificate" end add_message "dev.sigstore.common.v1.TimeRange" do optional :start, :message, 1, "google.protobuf.Timestamp" proto3_optional :end, :message, 2, "google.protobuf.Timestamp" end add_enum "dev.sigstore.common.v1.HashAlgorithm" do value :HASH_ALGORITHM_UNSPECIFIED, 0 value :SHA2_256, 1 end add_enum "dev.sigstore.common.v1.PublicKeyDetails" do value :PUBLIC_KEY_DETAILS_UNSPECIFIED, 0 value :PKCS1_RSA_PKCS1V5, 1 value :PKCS1_RSA_PSS, 2 value :PKIX_RSA_PKCS1V5, 3 value :PKIX_RSA_PSS, 4 value :PKIX_ECDSA_P256_SHA_256, 5 value :PKIX_ECDSA_P256_HMAC_SHA_256, 6 value :PKIX_ED25519, 7 end add_enum "dev.sigstore.common.v1.SubjectAlternativeNameType" do value :SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED, 0 value :EMAIL, 1 value :URI, 2 value :OTHER_NAME, 3 end end end module Sigstore module Common module V1 HashOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.HashOutput").msgclass MessageSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.MessageSignature").msgclass LogId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.LogId").msgclass RFC3161SignedTimestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.RFC3161SignedTimestamp").msgclass PublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKey").msgclass PublicKeyIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKeyIdentifier").msgclass ObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.ObjectIdentifier").msgclass ObjectIdentifierValuePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.ObjectIdentifierValuePair").msgclass DistinguishedName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.DistinguishedName").msgclass X509Certificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.X509Certificate").msgclass SubjectAlternativeName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.SubjectAlternativeName").msgclass X509CertificateChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.X509CertificateChain").msgclass TimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.TimeRange").msgclass HashAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.HashAlgorithm").enummodule PublicKeyDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKeyDetails").enummodule SubjectAlternativeNameType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.SubjectAlternativeNameType").enummodule end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_protobuf_specs.rb000066400000000000000000000013201455126531500312520ustar00rootroot00000000000000# frozen_string_literal: true # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'sigstore_protobuf_specs/version' Dir[File.join(__dir__, '*.rb')].each { |file| require file } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_protobuf_specs/000077500000000000000000000000001455126531500307315ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_protobuf_specs/version.rb000066400000000000000000000012451455126531500327450ustar00rootroot00000000000000# frozen_string_literal: true # Copyright 2023 The Sigstore Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Dev module Sigstore VERSION = '0.2.1' end endgolang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_rekor_pb.rb000066400000000000000000000042021455126531500300220ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_rekor.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'sigstore_common_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("sigstore_rekor.proto", :syntax => :proto3) do add_message "dev.sigstore.rekor.v1.KindVersion" do optional :kind, :string, 1 optional :version, :string, 2 end add_message "dev.sigstore.rekor.v1.Checkpoint" do optional :envelope, :string, 1 end add_message "dev.sigstore.rekor.v1.InclusionProof" do optional :log_index, :int64, 1 optional :root_hash, :bytes, 2 optional :tree_size, :int64, 3 repeated :hashes, :bytes, 4 optional :checkpoint, :message, 5, "dev.sigstore.rekor.v1.Checkpoint" end add_message "dev.sigstore.rekor.v1.InclusionPromise" do optional :signed_entry_timestamp, :bytes, 1 end add_message "dev.sigstore.rekor.v1.TransparencyLogEntry" do optional :log_index, :int64, 1 optional :log_id, :message, 2, "dev.sigstore.common.v1.LogId" optional :kind_version, :message, 3, "dev.sigstore.rekor.v1.KindVersion" optional :integrated_time, :int64, 4 optional :inclusion_promise, :message, 5, "dev.sigstore.rekor.v1.InclusionPromise" optional :inclusion_proof, :message, 6, "dev.sigstore.rekor.v1.InclusionProof" optional :canonicalized_body, :bytes, 7 end end end module Sigstore module Rekor module V1 KindVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.KindVersion").msgclass Checkpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.Checkpoint").msgclass InclusionProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.InclusionProof").msgclass InclusionPromise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.InclusionPromise").msgclass TransparencyLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.TransparencyLogEntry").msgclass end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_trustroot_pb.rb000066400000000000000000000036371455126531500310000ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_trustroot.proto require 'google/protobuf' require 'sigstore_common_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("sigstore_trustroot.proto", :syntax => :proto3) do add_message "dev.sigstore.trustroot.v1.TransparencyLogInstance" do optional :base_url, :string, 1 optional :hash_algorithm, :enum, 2, "dev.sigstore.common.v1.HashAlgorithm" optional :public_key, :message, 3, "dev.sigstore.common.v1.PublicKey" optional :log_id, :message, 4, "dev.sigstore.common.v1.LogId" end add_message "dev.sigstore.trustroot.v1.CertificateAuthority" do optional :subject, :message, 1, "dev.sigstore.common.v1.DistinguishedName" optional :uri, :string, 2 optional :cert_chain, :message, 3, "dev.sigstore.common.v1.X509CertificateChain" optional :valid_for, :message, 4, "dev.sigstore.common.v1.TimeRange" end add_message "dev.sigstore.trustroot.v1.TrustedRoot" do optional :media_type, :string, 1 repeated :tlogs, :message, 2, "dev.sigstore.trustroot.v1.TransparencyLogInstance" repeated :certificate_authorities, :message, 3, "dev.sigstore.trustroot.v1.CertificateAuthority" repeated :ctlogs, :message, 4, "dev.sigstore.trustroot.v1.TransparencyLogInstance" repeated :timestamp_authorities, :message, 5, "dev.sigstore.trustroot.v1.CertificateAuthority" end end end module Sigstore module TrustRoot module V1 TransparencyLogInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.TransparencyLogInstance").msgclass CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.CertificateAuthority").msgclass TrustedRoot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.TrustedRoot").msgclass end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/lib/sigstore_verification_pb.rb000066400000000000000000000104431455126531500313660ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_verification.proto require 'google/protobuf' require 'sigstore_common_pb' require 'sigstore_trustroot_pb' require 'sigstore_bundle_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("sigstore_verification.proto", :syntax => :proto3) do add_message "dev.sigstore.verification.v1.CertificateIdentity" do optional :issuer, :string, 1 optional :san, :message, 2, "dev.sigstore.common.v1.SubjectAlternativeName" repeated :oids, :message, 3, "dev.sigstore.common.v1.ObjectIdentifierValuePair" end add_message "dev.sigstore.verification.v1.CertificateIdentities" do repeated :identities, :message, 1, "dev.sigstore.verification.v1.CertificateIdentity" end add_message "dev.sigstore.verification.v1.PublicKeyIdentities" do repeated :public_keys, :message, 1, "dev.sigstore.common.v1.PublicKey" end add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions" do proto3_optional :tlog_options, :message, 3, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions" proto3_optional :ctlog_options, :message, 4, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions" proto3_optional :tsa_options, :message, 5, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions" oneof :signers do optional :certificate_identities, :message, 1, "dev.sigstore.verification.v1.CertificateIdentities" optional :public_keys, :message, 2, "dev.sigstore.verification.v1.PublicKeyIdentities" end end add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions" do optional :threshold, :int32, 1 optional :perform_online_verification, :bool, 2 optional :disable, :bool, 3 end add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions" do optional :threshold, :int32, 1 optional :detached_sct, :bool, 2 optional :disable, :bool, 3 end add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions" do optional :threshold, :int32, 1 optional :disable, :bool, 2 end add_message "dev.sigstore.verification.v1.Artifact" do oneof :data do optional :artifact_uri, :string, 1 optional :artifact, :bytes, 2 end end add_message "dev.sigstore.verification.v1.Input" do optional :artifact_trust_root, :message, 1, "dev.sigstore.trustroot.v1.TrustedRoot" optional :artifact_verification_options, :message, 2, "dev.sigstore.verification.v1.ArtifactVerificationOptions" optional :bundle, :message, 3, "dev.sigstore.bundle.v1.Bundle" proto3_optional :artifact, :message, 4, "dev.sigstore.verification.v1.Artifact" end end end module Sigstore module Verification module V1 CertificateIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.CertificateIdentity").msgclass CertificateIdentities = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.CertificateIdentities").msgclass PublicKeyIdentities = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.PublicKeyIdentities").msgclass ArtifactVerificationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions").msgclass ArtifactVerificationOptions::TlogOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions").msgclass ArtifactVerificationOptions::CtlogOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions").msgclass ArtifactVerificationOptions::TimestampAuthorityOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions").msgclass Artifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.Artifact").msgclass Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.Input").msgclass end end end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-ruby/sigstore_protobuf_specs.gemspec000066400000000000000000000024531455126531500315340ustar00rootroot00000000000000require File.expand_path("../lib/sigstore_protobuf_specs/version", __FILE__) Gem::Specification.new do |spec| spec.name = "sigstore_protobuf_specs" spec.version = Dev::Sigstore::VERSION spec.authors = ["Sigstore Authors"] spec.email = ["sigstore-dev@googlegroups.com"] spec.summary = %q{A library for serializing and deserializing Sigstore messages.} spec.homepage = "https://www.sigstore.dev/" spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") spec.license = 'Apache-2.0' spec.required_ruby_version = ">= 2.7.0" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/sigstore/protobuf-specs" spec.metadata["bug_tracker_uri"] = "https://github.com/sigstore/protobuf-specs/issues" # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir["README.md", "LICENSE", "lib/**/*"] spec.bindir = "bin" spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.add_runtime_dependency 'google-protobuf', '~> 3.21', '>= 3.21.12' spec.add_runtime_dependency 'googleapis-common-protos-types', '~> 1.4' end golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/000077500000000000000000000000001455126531500232235ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/.gitignore000066400000000000000000000000071455126531500252100ustar00rootroot00000000000000target golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/Cargo.lock000066400000000000000000000142631455126531500251360ustar00rootroot00000000000000# This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "Inflector" version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" dependencies = [ "lazy_static", "regex", ] [[package]] name = "aho-corasick" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" dependencies = [ "memchr", ] [[package]] name = "diff" version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "itoa" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "memchr" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "pretty_assertions" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" dependencies = [ "diff", "yansi", ] [[package]] name = "proc-macro2" version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] [[package]] name = "regex" version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2eae68fc220f7cf2532e4494aded17545fce192d59cd996e0fe7887f4ceb575" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7b6d6190b7594385f61bd3911cd1be99dfddcfc365a4160cc2ab5bff4aed294" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2" [[package]] name = "ryu" version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "schemafy" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9725c16a64e85972fcb3630677be83fef699a1cd8e4bfbdcf3b3c6675f838a19" dependencies = [ "Inflector", "schemafy_core", "schemafy_lib", "serde", "serde_derive", "serde_json", "serde_repr", "syn 1.0.109", ] [[package]] name = "schemafy_core" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bec29dddcfe60f92f3c0d422707b8b56473983ef0481df8d5236ed3ab8fdf24" dependencies = [ "serde", "serde_json", ] [[package]] name = "schemafy_lib" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af3d87f1df246a9b7e2bfd1f4ee5f88e48b11ef9cfc62e63f0dead255b1a6f5f" dependencies = [ "Inflector", "proc-macro2", "quote", "schemafy_core", "serde", "serde_derive", "serde_json", "syn 1.0.109", "uriparse", ] [[package]] name = "serde" version = "1.0.180" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ea67f183f058fe88a4e3ec6e2788e003840893b91bac4559cabedd00863b3ed" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.180" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24e744d7782b686ab3b73267ef05697159cc0e5abbed3f47f9933165e5219036" dependencies = [ "proc-macro2", "quote", "syn 2.0.28", ] [[package]] name = "serde_json" version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" dependencies = [ "itoa", "ryu", "serde", ] [[package]] name = "serde_repr" version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00" dependencies = [ "proc-macro2", "quote", "syn 2.0.28", ] [[package]] name = "sigstore_protobuf_specs" version = "0.1.0-rc.2" dependencies = [ "pretty_assertions", "schemafy", "schemafy_core", "serde", "serde_json", ] [[package]] name = "syn" version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "syn" version = "2.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "unicode-ident" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "uriparse" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" dependencies = [ "fnv", "lazy_static", ] [[package]] name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/Cargo.toml000066400000000000000000000011521455126531500251520ustar00rootroot00000000000000[package] name = "sigstore_protobuf_specs" version = "0.1.0-rc.2" exclude = ["codegen/"] authors = ["Sigstore Authors "] edition = "2021" homepage = "https://github.com/sigstore/protobuf-specs" repository = "https://github.com/sigstore/protobuf-specs" description = "A library for serializing and deserializing Sigstore messages" readme = "README.md" license-file = "LICENSE" keywords = ["sigstore"] categories = ["encoding", "parser-implementations"] [dependencies] schemafy = "0.6" schemafy_core = "0.6" serde = "1.0" serde_json = "1.0" [dev-dependencies] pretty_assertions = "1.4.0"golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/LICENSE000066400000000000000000000261361455126531500242400ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/README.md000066400000000000000000000003161455126531500245020ustar00rootroot00000000000000sigstore-protobuf-specs ======================= Rust language bindings for Sigstore's protobuf specs. See the [sigstore's protobuf-specs](https://github.com/sigstore/protobuf-specs) for more information. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/000077500000000000000000000000001455126531500246465ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Artifact.schema.json000066400000000000000000000017441455126531500305430ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Artifact", "definitions": { "Artifact": { "properties": { "artifactUri": { "type": "string", "description": "Location of the artifact" }, "artifact": { "type": "string", "description": "The raw bytes of the artifact", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] } ], "title": "Artifact" } } }ArtifactVerificationOptions.schema.json000066400000000000000000000313141455126531500343770ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ArtifactVerificationOptions", "definitions": { "ArtifactVerificationOptions": { "properties": { "certificateIdentities": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentities", "additionalProperties": false }, "publicKeys": { "$ref": "#/definitions/dev.sigstore.verification.v1.PublicKeyIdentities", "additionalProperties": false, "description": "To simplify verification implementation, the logic for bundle verification should be implemented as a higher-order function, where one of argument should be an interface over the set of trusted public keys, like this: `Verify(bytes artifact, bytes signature, string key_id)`. This way the caller is in full control of mapping the identified (or hinted) key in the bundle to one of the trusted keys, as this process is inherently application specific." }, "tlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions", "additionalProperties": false, "description": "Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false" }, "ctlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions", "additionalProperties": false, "description": "Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Detached SCT: false Disable: false" }, "tsaOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions", "additionalProperties": false, "description": "Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 1 Disable: false" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "certificate_identities" ] }, { "required": [ "public_keys" ] }, { "required": [ "tlog_options" ] }, { "required": [ "ctlog_options" ] }, { "required": [ "tsa_options" ] } ], "title": "Artifact Verification Options", "description": "A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of ct transparency logs the certificate must appear on." }, "detachedSct": { "type": "boolean", "description": "Expect detached SCTs. This is not supported right now as we can't capture an detached SCT in the bundle." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of signed timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable signed timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Timestamp Authority Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions": { "properties": { "threshold": { "type": "integer", "description": "Number of transparency logs the entry must appear on." }, "performOnlineVerification": { "type": "boolean", "description": "Perform an online inclusion proof." }, "disable": { "type": "boolean", "description": "Disable verification for transparency logs." } }, "additionalProperties": false, "type": "object", "title": "Tlog Options" }, "dev.sigstore.verification.v1.CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.verification.v1.PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Bundle.schema.json000066400000000000000000000553201455126531500302160ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Bundle", "definitions": { "Bundle": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 or application/vnd.dev.sigstore.bundle+json;version=0.2 when encoded as JSON." }, "verificationMaterial": { "$ref": "#/definitions/dev.sigstore.bundle.v1.VerificationMaterial", "additionalProperties": false, "description": "When a signer is identified by a X.509 certificate, a verifier MUST verify that the signature was computed at the time the certificate was valid as described in the Sigstore client spec: \"Verification using a Bundle\". \u003chttps://docs.google.com/document/d/1kbhK2qyPPk8SLavHzYSDM8-Ueul9_oxIMVFuWMWKz0E/edit#heading=h.x8bduppe89ln\u003e" }, "messageSignature": { "$ref": "#/definitions/dev.sigstore.common.v1.MessageSignature", "additionalProperties": false }, "dsseEnvelope": { "$ref": "#/definitions/io.intoto.Envelope", "additionalProperties": false, "description": "A DSSE envelope can contain arbitrary payloads. Verifiers must verify that the payload type is a supported and expected type. This is part of the DSSE protocol which is defined here: \u003chttps://github.com/secure-systems-lab/dsse/blob/master/protocol.md\u003e" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "message_signature" ] }, { "required": [ "dsse_envelope" ] } ], "title": "Bundle" }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.bundle.v1.VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "io.intoto.Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/CertificateAuthority.schema.json000066400000000000000000000113261455126531500331360ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateAuthority", "definitions": { "CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/CertificateIdentities.schema.json000066400000000000000000000100631455126531500332440ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateIdentities", "definitions": { "CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/CertificateIdentity.schema.json000066400000000000000000000070441455126531500327410ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CertificateIdentity", "definitions": { "CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Checkpoint.schema.json000066400000000000000000000016661455126531500311000ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Checkpoint", "definitions": { "Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/CloudEvent.schema.json000066400000000000000000000136041455126531500310540ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CloudEvent", "definitions": { "CloudEvent": { "properties": { "id": { "type": "string", "title": "-- CloudEvent Context Attributes", "description": "-- CloudEvent Context Attributes Required Attributes" }, "source": { "type": "string", "description": "URI-reference" }, "specVersion": { "type": "string" }, "type": { "type": "string" }, "attributes": { "additionalProperties": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue", "additionalProperties": false }, "type": "object", "description": "Optional \u0026 Extension Attributes" }, "binaryData": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "textData": { "type": "string" }, "protoData": { "properties": { "typeUrl": { "type": "string", "description": "A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics." }, "value": { "type": "string", "description": "Must be a valid serialized protocol buffer of the above specified type.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "binary_data" ] }, { "required": [ "text_data" ] }, { "required": [ "proto_data" ] } ], "title": "Cloud Event" }, "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue": { "properties": { "ceBoolean": { "type": "boolean" }, "ceInteger": { "type": "integer" }, "ceString": { "type": "string" }, "ceBytes": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "ceUri": { "type": "string" }, "ceUriRef": { "type": "string" }, "ceTimestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "ce_boolean" ] }, { "required": [ "ce_integer" ] }, { "required": [ "ce_string" ] }, { "required": [ "ce_bytes" ] }, { "required": [ "ce_uri" ] }, { "required": [ "ce_uri_ref" ] }, { "required": [ "ce_timestamp" ] } ], "title": "*\n The CloudEvent specification defines\n seven attribute value types...", "description": "* The CloudEvent specification defines seven attribute value types..." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/CloudEventBatch.schema.json000066400000000000000000000147061455126531500320220ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/CloudEventBatch", "definitions": { "CloudEventBatch": { "properties": { "events": { "items": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "*\n CloudEvent Protobuf Batch Format", "description": "* CloudEvent Protobuf Batch Format" }, "dev.sigstore.events.v1.CloudEvent": { "properties": { "id": { "type": "string", "title": "-- CloudEvent Context Attributes", "description": "-- CloudEvent Context Attributes Required Attributes" }, "source": { "type": "string", "description": "URI-reference" }, "specVersion": { "type": "string" }, "type": { "type": "string" }, "attributes": { "additionalProperties": { "$ref": "#/definitions/dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue", "additionalProperties": false }, "type": "object", "description": "Optional \u0026 Extension Attributes" }, "binaryData": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "textData": { "type": "string" }, "protoData": { "properties": { "typeUrl": { "type": "string", "description": "A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics." }, "value": { "type": "string", "description": "Must be a valid serialized protocol buffer of the above specified type.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "binary_data" ] }, { "required": [ "text_data" ] }, { "required": [ "proto_data" ] } ], "title": "Cloud Event" }, "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue": { "properties": { "ceBoolean": { "type": "boolean" }, "ceInteger": { "type": "integer" }, "ceString": { "type": "string" }, "ceBytes": { "type": "string", "format": "binary", "binaryEncoding": "base64" }, "ceUri": { "type": "string" }, "ceUriRef": { "type": "string" }, "ceTimestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "ce_boolean" ] }, { "required": [ "ce_integer" ] }, { "required": [ "ce_string" ] }, { "required": [ "ce_bytes" ] }, { "required": [ "ce_uri" ] }, { "required": [ "ce_uri_ref" ] }, { "required": [ "ce_timestamp" ] } ], "title": "*\n The CloudEvent specification defines\n seven attribute value types...", "description": "* The CloudEvent specification defines seven attribute value types..." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/DistinguishedName.schema.json000066400000000000000000000007771455126531500324170ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/DistinguishedName", "definitions": { "DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Envelope.schema.json000066400000000000000000000042551455126531500305630ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Envelope", "definitions": { "Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/HashOutput.schema.json000066400000000000000000000031111455126531500311000ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/HashOutput", "definitions": { "HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/InclusionPromise.schema.json000066400000000000000000000022711455126531500323040ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/InclusionPromise", "definitions": { "InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/InclusionProof.schema.json000066400000000000000000000055121455126531500317540ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/InclusionProof", "definitions": { "InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Input.schema.json000066400000000000000000001327111455126531500301040ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Input", "definitions": { "Input": { "properties": { "artifactTrustRoot": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TrustedRoot", "additionalProperties": false, "description": "The verification materials provided during a bundle verification. The running process is usually preloaded with a \"global\" dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to verifying an artifact (i.e a bundle), and/or based on current policy, some selection is expected to happen, to filter out the exact certificate authority to use, which transparency logs are relevant etc. The result should b ecaptured in the `artifact_trust_root`." }, "artifactVerificationOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions", "additionalProperties": false }, "bundle": { "$ref": "#/definitions/dev.sigstore.bundle.v1.Bundle", "additionalProperties": false }, "artifact": { "$ref": "#/definitions/dev.sigstore.verification.v1.Artifact", "additionalProperties": false, "description": "If the bundle contains a message signature, the artifact must be provided." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact" ] } ], "title": "Input", "description": "Input captures all that is needed to call the bundle verification method, to verify a single artifact referenced by the bundle." }, "dev.sigstore.bundle.v1.Bundle": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 or application/vnd.dev.sigstore.bundle+json;version=0.2 when encoded as JSON." }, "verificationMaterial": { "$ref": "#/definitions/dev.sigstore.bundle.v1.VerificationMaterial", "additionalProperties": false, "description": "When a signer is identified by a X.509 certificate, a verifier MUST verify that the signature was computed at the time the certificate was valid as described in the Sigstore client spec: \"Verification using a Bundle\". \u003chttps://docs.google.com/document/d/1kbhK2qyPPk8SLavHzYSDM8-Ueul9_oxIMVFuWMWKz0E/edit#heading=h.x8bduppe89ln\u003e" }, "messageSignature": { "$ref": "#/definitions/dev.sigstore.common.v1.MessageSignature", "additionalProperties": false }, "dsseEnvelope": { "$ref": "#/definitions/io.intoto.Envelope", "additionalProperties": false, "description": "A DSSE envelope can contain arbitrary payloads. Verifiers must verify that the payload type is a supported and expected type. This is part of the DSSE protocol which is defined here: \u003chttps://github.com/secure-systems-lab/dsse/blob/master/protocol.md\u003e" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "message_signature" ] }, { "required": [ "dsse_envelope" ] } ], "title": "Bundle" }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.bundle.v1.VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" }, "dev.sigstore.common.v1.ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "dev.sigstore.trustroot.v1.CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.trustroot.v1.TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." }, "dev.sigstore.trustroot.v1.TrustedRoot": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1" }, "tlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted Rekor servers." }, "certificateAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate authorities (e.g Fulcio), and any intermediate certificates they provide. If a CA is issuing multiple intermediate certificate, each combination shall be represented as separate chain. I.e, a single root cert may appear in multiple chains but with different intermediate and/or leaf certificates. The certificates are intended to be used for verifying artifact signatures." }, "ctlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate transparency logs." }, "timestampAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted timestamping authorities." } }, "additionalProperties": false, "type": "object", "title": "Trusted Root", "description": "TrustedRoot describes the client's complete set of trusted entities. How the TrustedRoot is populated is not specified, but can be a combination of many sources such as TUF repositories, files on disk etc. The TrustedRoot is not meant to be used for any artifact verification, only to capture the complete/global set of trusted verification materials. When verifying an artifact, based on the artifact and policies, a selection of keys/authorities are expected to be extracted and provided to the verification function. This way the set of keys/authorities can be kept to a minimal set by the policy to gain better control over what signatures that are allowed. The embedded transparency logs, CT logs, CAs and TSAs MUST include any previously used instance -- otherwise signatures made in the past cannot be verified. The currently used instances MUST NOT have their 'end' timestamp set in their 'valid_for' attribute for easy identification. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first and the current instance last." }, "dev.sigstore.verification.v1.Artifact": { "properties": { "artifactUri": { "type": "string", "description": "Location of the artifact" }, "artifact": { "type": "string", "description": "The raw bytes of the artifact", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] } ], "title": "Artifact" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions": { "properties": { "certificateIdentities": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentities", "additionalProperties": false }, "publicKeys": { "$ref": "#/definitions/dev.sigstore.verification.v1.PublicKeyIdentities", "additionalProperties": false, "description": "To simplify verification implementation, the logic for bundle verification should be implemented as a higher-order function, where one of argument should be an interface over the set of trusted public keys, like this: `Verify(bytes artifact, bytes signature, string key_id)`. This way the caller is in full control of mapping the identified (or hinted) key in the bundle to one of the trusted keys, as this process is inherently application specific." }, "tlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions", "additionalProperties": false, "description": "Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false" }, "ctlogOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions", "additionalProperties": false, "description": "Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Detached SCT: false Disable: false" }, "tsaOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions", "additionalProperties": false, "description": "Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 1 Disable: false" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "certificate_identities" ] }, { "required": [ "public_keys" ] }, { "required": [ "tlog_options" ] }, { "required": [ "ctlog_options" ] }, { "required": [ "tsa_options" ] } ], "title": "Artifact Verification Options", "description": "A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact." }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of ct transparency logs the certificate must appear on." }, "detachedSct": { "type": "boolean", "description": "Expect detached SCTs. This is not supported right now as we can't capture an detached SCT in the bundle." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of signed timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable signed timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Timestamp Authority Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions": { "properties": { "threshold": { "type": "integer", "description": "Number of transparency logs the entry must appear on." }, "performOnlineVerification": { "type": "boolean", "description": "Perform an online inclusion proof." }, "disable": { "type": "boolean", "description": "Disable verification for transparency logs." } }, "additionalProperties": false, "type": "object", "title": "Tlog Options" }, "dev.sigstore.verification.v1.CertificateIdentities": { "properties": { "identities": { "items": { "$ref": "#/definitions/dev.sigstore.verification.v1.CertificateIdentity" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Certificate Identities" }, "dev.sigstore.verification.v1.CertificateIdentity": { "properties": { "issuer": { "type": "string", "description": "The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)" }, "san": { "$ref": "#/definitions/dev.sigstore.common.v1.SubjectAlternativeName", "additionalProperties": false }, "oids": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifierValuePair" }, "additionalProperties": false, "type": "array", "description": "An unordered list of OIDs that must be verified. All OID/values provided in this list MUST exactly match against the values in the certificate for verification to be successful." } }, "additionalProperties": false, "type": "object", "title": "Certificate Identity", "description": "The identity of a X.509 Certificate signer." }, "dev.sigstore.verification.v1.PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" }, "io.intoto.Envelope": { "properties": { "payload": { "type": "string", "description": "Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "payloadType": { "type": "string", "description": "String unambiguously identifying how to interpret payload. REQUIRED." }, "signatures": { "items": { "$ref": "#/definitions/io.intoto.Signature" }, "additionalProperties": false, "type": "array", "description": "Signature over: PAE(type, payload) Where PAE is defined as: PAE(type, payload) = \"DSSEv1\" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload + = concatenation SP = ASCII space [0x20] \"DSSEv1\" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros REQUIRED (length \u003e= 1)." } }, "additionalProperties": false, "type": "object", "title": "Envelope", "description": "An authenticated message of arbitrary type." }, "io.intoto.Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/KindVersion.schema.json000066400000000000000000000014471455126531500312410ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/KindVersion", "definitions": { "KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/LogId.schema.json000066400000000000000000000014461455126531500300030ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/LogId", "definitions": { "LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/MessageSignature.schema.json000066400000000000000000000056321455126531500322540ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/MessageSignature", "definitions": { "MessageSignature": { "properties": { "messageDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Message digest can be used to identify the artifact. Clients MUST NOT attempt to use this digest to verify the associated signature; it is intended solely for identification." }, "signature": { "type": "string", "description": "The raw bytes as returned from the signature algorithm. The signature algorithm (and so the format of the signature bytes) are determined by the contents of the 'verification_material', either a key-pair or a certificate. If using a certificate, the certificate contains the required information on the signature algorithm. When using a key pair, the algorithm MUST be part of the public key, which MUST be communicated out-of-band.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Message Signature", "description": "MessageSignature stores the computed signature over a message." }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "digest": { "type": "string", "description": "This is the raw octets of the message digest as computed by the hash algorithm.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Hash Output", "description": "HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/ObjectIdentifier.schema.json000066400000000000000000000010621455126531500322100ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ObjectIdentifier", "definitions": { "ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" } } }ObjectIdentifierValuePair.schema.json000066400000000000000000000023221455126531500337420ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ObjectIdentifierValuePair", "definitions": { "ObjectIdentifierValuePair": { "properties": { "oid": { "$ref": "#/definitions/dev.sigstore.common.v1.ObjectIdentifier", "additionalProperties": false }, "value": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier Value Pair", "description": "An OID and the corresponding (byte) value." }, "dev.sigstore.common.v1.ObjectIdentifier": { "properties": { "id": { "items": { "type": "integer" }, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Object Identifier", "description": "An ASN.1 OBJECT IDENTIFIER" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/PublicKey.schema.json000066400000000000000000000056171455126531500307000ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKey", "definitions": { "PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/PublicKeyIdentifier.schema.json000066400000000000000000000017671455126531500327050ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKeyIdentifier", "definitions": { "PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/PublicKeyIdentities.schema.json000066400000000000000000000066151455126531500327210ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/PublicKeyIdentities", "definitions": { "PublicKeyIdentities": { "properties": { "publicKeys": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey" }, "additionalProperties": false, "type": "array" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identities" }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/RFC3161SignedTimestamp.schema.json000066400000000000000000000013651455126531500327500ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/RFC3161SignedTimestamp", "definitions": { "RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/Signature.schema.json000066400000000000000000000014061455126531500307420ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Signature", "definitions": { "Signature": { "properties": { "sig": { "type": "string", "description": "Signature itself. (In JSON, this is encoded as base64.) REQUIRED.", "format": "binary", "binaryEncoding": "base64" }, "keyid": { "type": "string", "description": "*Unauthenticated* hint identifying which public key was used. OPTIONAL." } }, "additionalProperties": false, "type": "object", "title": "Signature" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/SubjectAlternativeName.schema.json000066400000000000000000000025011455126531500333750ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/SubjectAlternativeName", "definitions": { "SubjectAlternativeName": { "properties": { "type": { "enum": [ "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED", "EMAIL", "URI", "OTHER_NAME" ], "type": "string", "title": "Subject Alternative Name Type" }, "regexp": { "type": "string", "description": "A regular expression describing the expected value for the SAN." }, "value": { "type": "string", "description": "The exact value to match against." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "regexp" ] }, { "required": [ "value" ] } ], "title": "Subject Alternative Name" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/TimeRange.schema.json000066400000000000000000000016351455126531500306600ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TimeRange", "definitions": { "TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }TimestampVerificationData.schema.json000066400000000000000000000045331455126531500340260ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TimestampVerificationData", "definitions": { "TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/TransparencyLogEntry.schema.json000066400000000000000000000217511455126531500331430ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TransparencyLogEntry", "definitions": { "TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/TransparencyLogInstance.schema.json000066400000000000000000000133651455126531500336100ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TransparencyLogInstance", "definitions": { "TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/TrustedRoot.schema.json000066400000000000000000000315031455126531500313000ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/TrustedRoot", "definitions": { "TrustedRoot": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1" }, "tlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted Rekor servers." }, "certificateAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate authorities (e.g Fulcio), and any intermediate certificates they provide. If a CA is issuing multiple intermediate certificate, each combination shall be represented as separate chain. I.e, a single root cert may appear in multiple chains but with different intermediate and/or leaf certificates. The certificates are intended to be used for verifying artifact signatures." }, "ctlogs": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TransparencyLogInstance" }, "additionalProperties": false, "type": "array", "description": "A set of trusted certificate transparency logs." }, "timestampAuthorities": { "items": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.CertificateAuthority" }, "additionalProperties": false, "type": "array", "description": "A set of trusted timestamping authorities." } }, "additionalProperties": false, "type": "object", "title": "Trusted Root", "description": "TrustedRoot describes the client's complete set of trusted entities. How the TrustedRoot is populated is not specified, but can be a combination of many sources such as TUF repositories, files on disk etc. The TrustedRoot is not meant to be used for any artifact verification, only to capture the complete/global set of trusted verification materials. When verifying an artifact, based on the artifact and policies, a selection of keys/authorities are expected to be extracted and provided to the verification function. This way the set of keys/authorities can be kept to a minimal set by the policy to gain better control over what signatures that are allowed. The embedded transparency logs, CT logs, CAs and TSAs MUST include any previously used instance -- otherwise signatures made in the past cannot be verified. The currently used instances MUST NOT have their 'end' timestamp set in their 'valid_for' attribute for easy identification. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first and the current instance last." }, "dev.sigstore.common.v1.DistinguishedName": { "properties": { "organization": { "type": "string" }, "commonName": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Distinguished Name" }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKey": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded public key, encoding method is specified by the key_details attribute.", "format": "binary", "binaryEncoding": "base64" }, "keyDetails": { "enum": [ "PUBLIC_KEY_DETAILS_UNSPECIFIED", "PKCS1_RSA_PKCS1V5", "PKCS1_RSA_PSS", "PKIX_RSA_PKCS1V5", "PKIX_RSA_PSS", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ED25519" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. To avoid the possibility of contradicting formats such as PKCS1 with ED25519 the valid permutations are listed as a linear set instead of a cartesian set (i.e one combined variable instead of two, one for encoding and one for the signature algorithm)." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "Optional validity period for this key, *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "raw_bytes" ] }, { "required": [ "valid_for" ] } ], "title": "Public Key" }, "dev.sigstore.common.v1.TimeRange": { "properties": { "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "end" ] } ], "title": "Time Range", "description": "The time range is closed and includes both the start and end times, (i.e., [start, end]). End is optional to be able to capture a period that has started but has no known end." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.trustroot.v1.CertificateAuthority": { "properties": { "subject": { "$ref": "#/definitions/dev.sigstore.common.v1.DistinguishedName", "additionalProperties": false, "description": "The root certificate MUST be self-signed, and so the subject and issuer are the same." }, "uri": { "type": "string", "description": "The URI at which the CA can be accessed." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA." }, "validFor": { "$ref": "#/definitions/dev.sigstore.common.v1.TimeRange", "additionalProperties": false, "description": "The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints." } }, "additionalProperties": false, "type": "object", "title": "Certificate Authority", "description": "CertificateAuthority enlists the information required to identify which CA to use and perform signature verification." }, "dev.sigstore.trustroot.v1.TransparencyLogInstance": { "properties": { "baseUrl": { "type": "string", "description": "The base URL at which can be used to URLs for the client." }, "hashAlgorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256" ], "type": "string", "title": "This package defines commonly used message types within the Sigstore\n community.", "description": "This package defines commonly used message types within the Sigstore community. Only a subset of the secure hash standard algorithms are supported. See \u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\u003e for more details. UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force any proto JSON serialization to emit the used hash algorithm, as default option is to *omit* the default value of an enum (which is the first value, represented by '0'." }, "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKey", "additionalProperties": false, "description": "The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier for this transparency log." } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Instance", "description": "TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/VerificationMaterial.schema.json000066400000000000000000000376411455126531500331140ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/VerificationMaterial", "definitions": { "VerificationMaterial": { "properties": { "publicKey": { "$ref": "#/definitions/dev.sigstore.common.v1.PublicKeyIdentifier", "additionalProperties": false }, "x509CertificateChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false }, "tlogEntries": { "items": { "$ref": "#/definitions/dev.sigstore.rekor.v1.TransparencyLogEntry" }, "additionalProperties": false, "type": "array", "description": "An inclusion proof and an optional signed timestamp from the log. Client verification libraries MAY provide an option to support v0.1 bundles for backwards compatibility, which may contain an inclusion promise and not an inclusion proof. In this case, the client MUST validate the promise. Verifiers SHOULD NOT allow v0.1 bundles if they're used in an ecosystem which never produced them." }, "timestampVerificationData": { "$ref": "#/definitions/dev.sigstore.bundle.v1.TimestampVerificationData", "additionalProperties": false, "description": "Timestamp may also come from tlog_entries.inclusion_promise.signed_entry_timestamp." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "public_key" ] }, { "required": [ "x509_certificate_chain" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures." }, "dev.sigstore.bundle.v1.TimestampVerificationData": { "properties": { "rfc3161Timestamps": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.RFC3161SignedTimestamp" }, "additionalProperties": false, "type": "array", "description": "A list of RFC3161 signed timestamps provided by the user. This can be used when the entry has not been stored on a transparency log, or in conjunction for a stronger trust model. Clients MUST verify the hashed message in the message imprint against the signature in the bundle." } }, "additionalProperties": false, "type": "object", "title": "Notes on versioning.\n The primary message ('Bundle') MUST be versioned, by populating the\n 'media_type' field. Semver-ish (only major/minor versions) scheme MUST\n be used. The current version as specified by this file is:\n application/vnd.dev.sigstore.bundle+json;version=0.2\n The semantic version is thus '0.2'.", "description": "Notes on versioning. The primary message ('Bundle') MUST be versioned, by populating the 'media_type' field. Semver-ish (only major/minor versions) scheme MUST be used. The current version as specified by this file is: application/vnd.dev.sigstore.bundle+json;version=0.2 The semantic version is thus '0.2'. Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future." }, "dev.sigstore.common.v1.LogId": { "properties": { "keyId": { "type": "string", "description": "The unique id of the log, represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." }, "dev.sigstore.common.v1.PublicKeyIdentifier": { "properties": { "hint": { "type": "string", "description": "Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: \u003chttps://www.rfc-editor.org/rfc/rfc6962#section-3.2\u003e" } }, "additionalProperties": false, "type": "object", "title": "Public Key Identifier", "description": "PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature." }, "dev.sigstore.common.v1.RFC3161SignedTimestamp": { "properties": { "signedTimestamp": { "type": "string", "description": "Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "RFC 3161 Signed Timestamp", "description": "This message holds a RFC 3161 timestamp." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" }, "dev.sigstore.common.v1.X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint contains a signature of the tree head (root hash), size of the tree, the transparency log's unique identifier (log ID), hostname and the current time. The result is a string, the format is described here https://github.com/transparency-dev/formats/blob/main/log/README.md The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 The signature has the same format as InclusionPromise.signed_entry_timestamp. See below for more details." }, "dev.sigstore.rekor.v1.InclusionPromise": { "properties": { "signedEntryTimestamp": { "type": "string", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Inclusion Promise", "description": "The inclusion promise is calculated by Rekor. It's calculated as a signature over a canonical JSON serialization of the persisted entry, the log ID, log index and the integration timestamp. See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 The format of the signature depends on the transparency log's public key. If the signature algorithm requires a hash function and/or a signature scheme (e.g. RSA) those has to be retrieved out-of-band from the log's operators, together with the public key. This is used to verify the integration timestamp's value and that the log has promised to include the entry." }, "dev.sigstore.rekor.v1.InclusionProof": { "properties": { "logIndex": { "type": "string", "description": "The index of the entry in the tree it was written to." }, "rootHash": { "type": "string", "description": "The hash digest stored at the root of the merkle tree at the time the proof was generated.", "format": "binary", "binaryEncoding": "base64" }, "treeSize": { "type": "string", "description": "The size of the merkle tree at the time the proof was generated." }, "hashes": { "items": { "type": "string" }, "type": "array", "description": "A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.", "format": "binary", "binaryEncoding": "base64" }, "checkpoint": { "$ref": "#/definitions/dev.sigstore.rekor.v1.Checkpoint", "additionalProperties": false, "description": "Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details." } }, "additionalProperties": false, "type": "object", "title": "Inclusion Proof", "description": "InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log." }, "dev.sigstore.rekor.v1.KindVersion": { "properties": { "kind": { "type": "string", "description": "Kind is the type of entry being stored in the log. See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types" }, "version": { "type": "string", "description": "The specific api version of the type." } }, "additionalProperties": false, "type": "object", "title": "Kind Version", "description": "KindVersion contains the entry's kind and api version." }, "dev.sigstore.rekor.v1.TransparencyLogEntry": { "properties": { "logIndex": { "type": "string", "description": "The global index of the entry, used when querying the log by index." }, "logId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The unique identifier of the log." }, "kindVersion": { "$ref": "#/definitions/dev.sigstore.rekor.v1.KindVersion", "additionalProperties": false, "description": "The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification." }, "integratedTime": { "type": "string", "description": "The UNIX timestamp from the log when the entry was persisted." }, "inclusionPromise": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionPromise", "additionalProperties": false, "description": "The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for \u003e= v0.2 bundles, and SHOULD be verified when present. Also may be used as a signed timestamp." }, "inclusionProof": { "$ref": "#/definitions/dev.sigstore.rekor.v1.InclusionProof", "additionalProperties": false, "description": "The inclusion proof can be used for offline or online verification that the entry was appended to the log, and that the log has not been altered." }, "canonicalizedBody": { "type": "string", "description": "Optional. The canonicalized transparency log entry, used to reconstruct the Signed Entry Timestamp (SET) during verification. The contents of this field are the same as the `body` field in a Rekor response, meaning that it does **not** include the \"full\" canonicalized form (of log index, ID, etc.) which are exposed as separate fields. The verifier is responsible for combining the `canonicalized_body`, `log_index`, `log_id`, and `integrated_time` into the payload that the SET's signature is generated over. This field is intended to be used in cases where the SET cannot be produced determinisitically (e.g. inconsistent JSON field ordering, differing whitespace, etc). If set, clients MUST verify that the signature referenced in the `canonicalized_body` matches the signature provided in the `Bundle.content`. If not set, clients are responsible for constructing an equivalent payload from other sources to verify the signature.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Transparency Log Entry", "description": "TransparencyLogEntry captures all the details required from Rekor to reconstruct an entry, given that the payload is provided via other means. This type can easily be created from the existing response from Rekor. Future iterations could rely on Rekor returning the minimal set of attributes (excluding the payload) that are required for verifying the inclusion promise. The inclusion promise (called SignedEntryTimestamp in the response from Rekor) is similar to a Signed Certificate Timestamp as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2." } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/X509Certificate.schema.json000066400000000000000000000010731455126531500316110ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/X509Certificate", "definitions": { "X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/schemas/X509CertificateChain.schema.json000066400000000000000000000036411455126531500325570ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/X509CertificateChain", "definitions": { "X509CertificateChain": { "properties": { "certificates": { "items": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate" }, "additionalProperties": false, "type": "array", "description": "The chain of certificates, with indices 0 to n. The first certificate in the array must be the leaf certificate used for signing. Signers MUST NOT include their root CA certificates in their embedded certificate chains, and SHOULD NOT include intermediate CA certificates that appear in independent roots of trust. Verifiers MUST validate the chain carefully to ensure that it chains up to a root CA certificate that they trust, regardless of whether the chain includes additional intermediate/root CA certificates. Verifiers MAY enforce additional constraints, such as requiring that all intermediate CA certificates appear in an independent root of trust. Verifiers SHOULD handle old or non-complying bundles that have additional intermediate/root CA certificates." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A chain of X.509 certificates." }, "dev.sigstore.common.v1.X509Certificate": { "properties": { "rawBytes": { "type": "string", "description": "DER-encoded X.509 certificate.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate" } } }golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/src/000077500000000000000000000000001455126531500240125ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/src/lib.rs000066400000000000000000000020011455126531500251170ustar00rootroot00000000000000/// NOTE(jleightcap): a method to include all JSON schemas is not immediately obvious to me: /// /// - `schemafy!` is a direct 1:1 compilation to Rust structures of each definition in "defintions", /// - each schema is 'standalone': including definitions of all it's dependencies, /// as a result, the Rust generated structures have name collisions if included in the same module scope. /// /// prefixing works, /// /// ```ignore /// mod CertificateIdentity { /// schemafy::schemafy!("schemas/CertificateIdentity.shema.json") /// } /// mod CertificateIdentities { /// schemafy::schemafy!("schemas/CertificateIdentities.schema.json") /// } /// ``` /// but is clunky to use and manual to generate. /// /// a more general approach is to 'flatten' each JSON Schema, /// unioning all of the "defintions" fields. /// /// Since standardized bundles is the singular motiviation for these Rust bindings, /// for now we're punting this issue. use serde::{Deserialize, Serialize}; schemafy::schemafy!("schemas/Bundle.schema.json"); golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/tests/000077500000000000000000000000001455126531500243655ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/tests/bundle.txt.sigstore000066400000000000000000000120321455126531500302330ustar00rootroot00000000000000{"mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.1", "verificationMaterial": {"x509CertificateChain": {"certificates": [{"rawBytes": "MIIC5zCCAmygAwIBAgIUJ3vpewdf6e91rgjqCqagstF4qn8wCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjMwNDI2MDAyMTA4WhcNMjMwNDI2MDAzMTA4WjAAMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE2sd6+lOBcn5MXtnbwca7zcwpprl7GUZiKTO9IWpAUfVTtx+BXGHQCRwsFy/d7dLlf4hurIqhzMD5yaC2kcU9/8c9G55JyBXF8Dx5SQm9y2rPWFIdm29Ql9A3I3yyEFyPo4IBbjCCAWowDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMB0GA1UdDgQWBBTlaUfjpiXGhBP3hOCW0JJZDSPxgzAfBgNVHSMEGDAWgBRxhjCmFHxib/n31vQFGn9f/+tvrDAYBgNVHREBAf8EDjAMgQphQHRueS50b3duMCwGCisGAQQBg78wAQEEHmh0dHBzOi8vZ2l0aHViLmNvbS9sb2dpbi9vYXV0aDAuBgorBgEEAYO/MAEIBCAMHmh0dHBzOi8vZ2l0aHViLmNvbS9sb2dpbi9vYXV0aDCBigYKKwYBBAHWeQIEAgR8BHoAeAB2ACswvNxoiMni4dgmKV50H0g5MZYC8pwzy15DQP6yrIZ6AAABh7rveBsAAAQDAEcwRQIhAKOZPMN9Q9qO1HXigHBPt+Ic16yy2Zgv2KQ23i5WLj16AiAzrFpuayGXdoK+hYePl9dEeXjG/vB2jK/E3sEsIrXtETAKBggqhkjOPQQDAwNpADBmAjEAgmhg80mI/Scr0isBnD5FYXZ8WxA8tnBBPmdf4aNGForGazGXaFQVPXgBVPv+YGI/AjEA0QzPC5dHD/WWXW2GbEC4dpwFk8OGRkiExMOy/+CqabbVg+/lx1N9VGBTlUTft45d"}]}, "tlogEntries": [{"logIndex": "7390977", "logId": {"keyId": "0y8wo8MtY5wrdiIFohx7sHeI5oKDpK5vQhGHI6G+pJY="}, "kindVersion": {"kind": "hashedrekord", "version": "0.0.1"}, "integratedTime": "1682468469", "inclusionPromise": {"signedEntryTimestamp": "MEUCICSJs5PgN4W3Lku3ybrwfNLAKMWaOvffg2tnqm19VrWEAiEA16MVPsWDoaAljsxGefpQazpvYfs1pv8lzdgZQ0I4rH0="}, "inclusionProof": {"logIndex": "7376158", "rootHash": "LE67t2Zlc0g35az81xMg0cgM2DULj8fNsGGHTcRthcs=", "treeSize": "7376159", "hashes": ["zgesNHwk09VvW4IDaPrJMtX59glNyyLPzeJO1Gw1hCI=", "lJiFr9ZP5FO8BjqLAUQ16A/0/LoOOQ0gfeNhdxaxO2w=", "sMImd51DBHQnH1tz4sGk8gXB+FjWyusVXbP0GmpFnB4=", "cDU1nEpl0WCRlxLi/gNVzykDzobU4qG/7BQZxn0qDgU=", "4CRqWzG3qpxKvlHuZg5O6QjQiwOzerbjwsAh30EVlA8=", "Ru0p3GE/zB2zub2/xR5rY/aM4J+5VJmiIuIl2enF/ws=", "2W+NG5yGR68lrLGcw4gn9CSCfeQF98d3LMfdo8tPyok=", "bEs1eYxy9R6hR2veGEwYW4PEdrZKrdqZ7uDlmmNtlas=", "sgQMnwcK7VxxAi+fygxq8iJ+zWqShjXm07/AWobWcXU=", "y4BESazXFcefRzxpN1PfJHoqRaKnPJPM5H/jotx0QY8=", "xiNEdLOpmGQERCR+DCEFVRK+Ns6G0BLV9M6sQQkRhik="], "checkpoint": {"envelope": "rekor.sigstage.dev - 8050909264565447525\n7376159\nLE67t2Zlc0g35az81xMg0cgM2DULj8fNsGGHTcRthcs=\nTimestamp: 1682468469199678948\n\n\u2014 rekor.sigstage.dev 0y8wozBEAiBbAodz3dBqJjGMhnZEkbaTDVxc8+tBEPKbaWUZoqxFvwIgGtYzFgFaM3UXBRHmzgmcrCxA145dpQ2YD0yFqiPHO7U=\n"}}, "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiI4MDJkZDYwZmY4ODMzMzgwMmYyNTg1ZTczMDQzYmQyMWMzNDEyODVlMTk5MmZlNWIzMTc1NWUxY2FkZWFlMzBlIn19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1HVUNNUUNPT0pxVFk2WFdnQjY0aXpLMldWUDA3YjBTRzlNNVdQQ3dLaGZUUHdNdnRzZ1VpOEtlUkd3UWt2dkxZYktIZHFVQ01FYk9YRkcwTk1xRVF4V1ZiNnJtR25leGRBRHVHZjZKbDhxQUM4dG42N3AzUWZWb1h6TXZGQTYxUHp4d1Z3dmI4Zz09IiwicHVibGljS2V5Ijp7ImNvbnRlbnQiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VNMWVrTkRRVzE1WjBGM1NVSkJaMGxWU2pOMmNHVjNaR1kyWlRreGNtZHFjVU54WVdkemRFWTBjVzQ0ZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwTmQwNUVTVEpOUkVGNVRWUkJORmRvWTA1TmFrMTNUa1JKTWsxRVFYcE5WRUUwVjJwQlFVMUlXWGRGUVZsSUNrdHZXa2w2YWpCRFFWRlpSa3MwUlVWQlEwbEVXV2RCUlRKelpEWXJiRTlDWTI0MVRWaDBibUozWTJFM2VtTjNjSEJ5YkRkSFZWcHBTMVJQT1VsWGNFRUtWV1pXVkhSNEswSllSMGhSUTFKM2MwWjVMMlEzWkV4c1pqUm9kWEpKY1doNlRVUTFlV0ZETW10alZUa3ZPR001UnpVMVNubENXRVk0UkhnMVUxRnRPUXA1TW5KUVYwWkpaRzB5T1ZGc09VRXpTVE41ZVVWR2VWQnZORWxDWW1wRFEwRlhiM2RFWjFsRVZsSXdVRUZSU0M5Q1FWRkVRV2RsUVUxQ1RVZEJNVlZrQ2twUlVVMU5RVzlIUTBOelIwRlJWVVpDZDAxRVRVSXdSMEV4VldSRVoxRlhRa0pVYkdGVlptcHdhVmhIYUVKUU0yaFBRMWN3U2twYVJGTlFlR2Q2UVdZS1FtZE9Wa2hUVFVWSFJFRlhaMEpTZUdocVEyMUdTSGhwWWk5dU16RjJVVVpIYmpsbUx5dDBkbkpFUVZsQ1owNVdTRkpGUWtGbU9FVkVha0ZOWjFGd2FBcFJTRkoxWlZNMU1HSXpaSFZOUTNkSFEybHpSMEZSVVVKbk56aDNRVkZGUlVodGFEQmtTRUo2VDJrNGRsb3liREJoU0ZacFRHMU9kbUpUT1hOaU1tUndDbUpwT1haWldGWXdZVVJCZFVKbmIzSkNaMFZGUVZsUEwwMUJSVWxDUTBGTlNHMW9NR1JJUW5wUGFUaDJXakpzTUdGSVZtbE1iVTUyWWxNNWMySXlaSEFLWW1rNWRsbFlWakJoUkVOQ2FXZFpTMHQzV1VKQ1FVaFhaVkZKUlVGblVqaENTRzlCWlVGQ01rRkRjM2QyVG5odmFVMXVhVFJrWjIxTFZqVXdTREJuTlFwTldsbERPSEIzZW5reE5VUlJVRFo1Y2tsYU5rRkJRVUpvTjNKMlpVSnpRVUZCVVVSQlJXTjNVbEZKYUVGTFQxcFFUVTQ1VVRseFR6RklXR2xuU0VKUUNuUXJTV014Tm5sNU1scG5kakpMVVRJemFUVlhUR294TmtGcFFYcHlSbkIxWVhsSFdHUnZTeXRvV1dWUWJEbGtSV1ZZYWtjdmRrSXlha3N2UlROelJYTUtTWEpZZEVWVVFVdENaMmR4YUd0cVQxQlJVVVJCZDA1d1FVUkNiVUZxUlVGbmJXaG5PREJ0U1M5VFkzSXdhWE5DYmtRMVJsbFlXamhYZUVFNGRHNUNRZ3BRYldSbU5HRk9SMFp2Y2tkaGVrZFlZVVpSVmxCWVowSldVSFlyV1VkSkwwRnFSVUV3VVhwUVF6VmtTRVF2VjFkWVZ6SkhZa1ZETkdSd2QwWnJPRTlIQ2xKcmFVVjRUVTk1THl0RGNXRmlZbFpuS3k5c2VERk9PVlpIUWxSc1ZWUm1kRFExWkFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PSJ9fX19"}]}, "messageSignature": {"messageDigest": {"algorithm": "SHA2_256", "digest": "gC3WD/iDM4AvJYXnMEO9IcNBKF4Zkv5bMXVeHK3q4w4="}, "signature": "MGUCMQCOOJqTY6XWgB64izK2WVP07b0SG9M5WPCwKhfTPwMvtsgUi8KeRGwQkvvLYbKHdqUCMEbOXFG0NMqEQxWVb6rmGnexdADuGf6Jl8qAC8tn67p3QfVoXzMvFA61PzxwVwvb8g=="}} golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/tests/integration.rs000066400000000000000000000201531455126531500272570ustar00rootroot00000000000000use pretty_assertions::{assert_eq, assert_ne}; use serde_json; use sigstore_protobuf_specs::{ Bundle, DevSigstoreBundleV1VerificationMaterial as VerificationMaterial, DevSigstoreCommonV1HashOutput as HashOutput, DevSigstoreCommonV1LogId as LogId, DevSigstoreCommonV1MessageSignature as MessageSignature, DevSigstoreCommonV1X509Certificate as X509Certificate, DevSigstoreCommonV1X509CertificateChain as X509CertificateChain, DevSigstoreRekorV1Checkpoint as Checkpoint, DevSigstoreRekorV1InclusionPromise as InclusionPromise, DevSigstoreRekorV1InclusionProof as InclusionProof, DevSigstoreRekorV1KindVersion as KindVersion, DevSigstoreRekorV1TransparencyLogEntry as TransparencyLogEntry, }; #[test] fn bundle() { let bundle_json = std::fs::read_to_string("tests/bundle.txt.sigstore").unwrap(); let bundle = serde_json::from_str::(&bundle_json); assert!(bundle.is_ok()); assert_eq!( bundle.unwrap(), Bundle { media_type: Some(String::from("application/vnd.dev.sigstore.bundle+json;version=0.1")), verification_material: Some(VerificationMaterial{ public_key: None, x_509_certificate_chain: Some(X509CertificateChain{ certificates: Some(vec![ X509Certificate{ raw_bytes: Some(String::from("MIIC5zCCAmygAwIBAgIUJ3vpewdf6e91rgjqCqagstF4qn8wCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjMwNDI2MDAyMTA4WhcNMjMwNDI2MDAzMTA4WjAAMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE2sd6+lOBcn5MXtnbwca7zcwpprl7GUZiKTO9IWpAUfVTtx+BXGHQCRwsFy/d7dLlf4hurIqhzMD5yaC2kcU9/8c9G55JyBXF8Dx5SQm9y2rPWFIdm29Ql9A3I3yyEFyPo4IBbjCCAWowDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMB0GA1UdDgQWBBTlaUfjpiXGhBP3hOCW0JJZDSPxgzAfBgNVHSMEGDAWgBRxhjCmFHxib/n31vQFGn9f/+tvrDAYBgNVHREBAf8EDjAMgQphQHRueS50b3duMCwGCisGAQQBg78wAQEEHmh0dHBzOi8vZ2l0aHViLmNvbS9sb2dpbi9vYXV0aDAuBgorBgEEAYO/MAEIBCAMHmh0dHBzOi8vZ2l0aHViLmNvbS9sb2dpbi9vYXV0aDCBigYKKwYBBAHWeQIEAgR8BHoAeAB2ACswvNxoiMni4dgmKV50H0g5MZYC8pwzy15DQP6yrIZ6AAABh7rveBsAAAQDAEcwRQIhAKOZPMN9Q9qO1HXigHBPt+Ic16yy2Zgv2KQ23i5WLj16AiAzrFpuayGXdoK+hYePl9dEeXjG/vB2jK/E3sEsIrXtETAKBggqhkjOPQQDAwNpADBmAjEAgmhg80mI/Scr0isBnD5FYXZ8WxA8tnBBPmdf4aNGForGazGXaFQVPXgBVPv+YGI/AjEA0QzPC5dHD/WWXW2GbEC4dpwFk8OGRkiExMOy/+CqabbVg+/lx1N9VGBTlUTft45d")) } ]), }), tlog_entries: Some(vec![ TransparencyLogEntry{ log_index: Some(String::from("7390977")), log_id: Some(LogId{ key_id: Some(String::from("0y8wo8MtY5wrdiIFohx7sHeI5oKDpK5vQhGHI6G+pJY=")) }), kind_version: Some(KindVersion{ kind: Some(String::from("hashedrekord")), version: Some(String::from("0.0.1")) }), integrated_time: Some(String::from("1682468469")), inclusion_promise: Some(InclusionPromise{ signed_entry_timestamp: Some(String::from("MEUCICSJs5PgN4W3Lku3ybrwfNLAKMWaOvffg2tnqm19VrWEAiEA16MVPsWDoaAljsxGefpQazpvYfs1pv8lzdgZQ0I4rH0=")) }), inclusion_proof: Some(InclusionProof{ log_index: Some(String::from("7376158")), root_hash: Some(String::from("LE67t2Zlc0g35az81xMg0cgM2DULj8fNsGGHTcRthcs=")), tree_size: Some(String::from("7376159")), hashes: Some(vec![ String::from("zgesNHwk09VvW4IDaPrJMtX59glNyyLPzeJO1Gw1hCI="), String::from("lJiFr9ZP5FO8BjqLAUQ16A/0/LoOOQ0gfeNhdxaxO2w="), String::from("sMImd51DBHQnH1tz4sGk8gXB+FjWyusVXbP0GmpFnB4="), String::from("cDU1nEpl0WCRlxLi/gNVzykDzobU4qG/7BQZxn0qDgU="), String::from("4CRqWzG3qpxKvlHuZg5O6QjQiwOzerbjwsAh30EVlA8="), String::from("Ru0p3GE/zB2zub2/xR5rY/aM4J+5VJmiIuIl2enF/ws="), String::from("2W+NG5yGR68lrLGcw4gn9CSCfeQF98d3LMfdo8tPyok="), String::from("bEs1eYxy9R6hR2veGEwYW4PEdrZKrdqZ7uDlmmNtlas="), String::from("sgQMnwcK7VxxAi+fygxq8iJ+zWqShjXm07/AWobWcXU="), String::from("y4BESazXFcefRzxpN1PfJHoqRaKnPJPM5H/jotx0QY8="), String::from("xiNEdLOpmGQERCR+DCEFVRK+Ns6G0BLV9M6sQQkRhik=") ]), checkpoint: Some(Checkpoint{ envelope: Some(String::from("rekor.sigstage.dev - 8050909264565447525\n7376159\nLE67t2Zlc0g35az81xMg0cgM2DULj8fNsGGHTcRthcs=\nTimestamp: 1682468469199678948\n\n\u{2014} rekor.sigstage.dev 0y8wozBEAiBbAodz3dBqJjGMhnZEkbaTDVxc8+tBEPKbaWUZoqxFvwIgGtYzFgFaM3UXBRHmzgmcrCxA145dpQ2YD0yFqiPHO7U=\n")) }), }), canonicalized_body: Some(String::from("eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiI4MDJkZDYwZmY4ODMzMzgwMmYyNTg1ZTczMDQzYmQyMWMzNDEyODVlMTk5MmZlNWIzMTc1NWUxY2FkZWFlMzBlIn19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1HVUNNUUNPT0pxVFk2WFdnQjY0aXpLMldWUDA3YjBTRzlNNVdQQ3dLaGZUUHdNdnRzZ1VpOEtlUkd3UWt2dkxZYktIZHFVQ01FYk9YRkcwTk1xRVF4V1ZiNnJtR25leGRBRHVHZjZKbDhxQUM4dG42N3AzUWZWb1h6TXZGQTYxUHp4d1Z3dmI4Zz09IiwicHVibGljS2V5Ijp7ImNvbnRlbnQiOiJMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VNMWVrTkRRVzE1WjBGM1NVSkJaMGxWU2pOMmNHVjNaR1kyWlRreGNtZHFjVU54WVdkemRFWTBjVzQ0ZDBObldVbExiMXBKZW1vd1JVRjNUWGNLVG5wRlZrMUNUVWRCTVZWRlEyaE5UV015Ykc1ak0xSjJZMjFWZFZwSFZqSk5ValIzU0VGWlJGWlJVVVJGZUZaNllWZGtlbVJIT1hsYVV6RndZbTVTYkFwamJURnNXa2RzYUdSSFZYZElhR05PVFdwTmQwNUVTVEpOUkVGNVRWUkJORmRvWTA1TmFrMTNUa1JKTWsxRVFYcE5WRUUwVjJwQlFVMUlXWGRGUVZsSUNrdHZXa2w2YWpCRFFWRlpSa3MwUlVWQlEwbEVXV2RCUlRKelpEWXJiRTlDWTI0MVRWaDBibUozWTJFM2VtTjNjSEJ5YkRkSFZWcHBTMVJQT1VsWGNFRUtWV1pXVkhSNEswSllSMGhSUTFKM2MwWjVMMlEzWkV4c1pqUm9kWEpKY1doNlRVUTFlV0ZETW10alZUa3ZPR001UnpVMVNubENXRVk0UkhnMVUxRnRPUXA1TW5KUVYwWkpaRzB5T1ZGc09VRXpTVE41ZVVWR2VWQnZORWxDWW1wRFEwRlhiM2RFWjFsRVZsSXdVRUZSU0M5Q1FWRkVRV2RsUVUxQ1RVZEJNVlZrQ2twUlVVMU5RVzlIUTBOelIwRlJWVVpDZDAxRVRVSXdSMEV4VldSRVoxRlhRa0pVYkdGVlptcHdhVmhIYUVKUU0yaFBRMWN3U2twYVJGTlFlR2Q2UVdZS1FtZE9Wa2hUVFVWSFJFRlhaMEpTZUdocVEyMUdTSGhwWWk5dU16RjJVVVpIYmpsbUx5dDBkbkpFUVZsQ1owNVdTRkpGUWtGbU9FVkVha0ZOWjFGd2FBcFJTRkoxWlZNMU1HSXpaSFZOUTNkSFEybHpSMEZSVVVKbk56aDNRVkZGUlVodGFEQmtTRUo2VDJrNGRsb3liREJoU0ZacFRHMU9kbUpUT1hOaU1tUndDbUpwT1haWldGWXdZVVJCZFVKbmIzSkNaMFZGUVZsUEwwMUJSVWxDUTBGTlNHMW9NR1JJUW5wUGFUaDJXakpzTUdGSVZtbE1iVTUyWWxNNWMySXlaSEFLWW1rNWRsbFlWakJoUkVOQ2FXZFpTMHQzV1VKQ1FVaFhaVkZKUlVGblVqaENTRzlCWlVGQ01rRkRjM2QyVG5odmFVMXVhVFJrWjIxTFZqVXdTREJuTlFwTldsbERPSEIzZW5reE5VUlJVRFo1Y2tsYU5rRkJRVUpvTjNKMlpVSnpRVUZCVVVSQlJXTjNVbEZKYUVGTFQxcFFUVTQ1VVRseFR6RklXR2xuU0VKUUNuUXJTV014Tm5sNU1scG5kakpMVVRJemFUVlhUR294TmtGcFFYcHlSbkIxWVhsSFdHUnZTeXRvV1dWUWJEbGtSV1ZZYWtjdmRrSXlha3N2UlROelJYTUtTWEpZZEVWVVFVdENaMmR4YUd0cVQxQlJVVVJCZDA1d1FVUkNiVUZxUlVGbmJXaG5PREJ0U1M5VFkzSXdhWE5DYmtRMVJsbFlXamhYZUVFNGRHNUNRZ3BRYldSbU5HRk9SMFp2Y2tkaGVrZFlZVVpSVmxCWVowSldVSFlyV1VkSkwwRnFSVUV3VVhwUVF6VmtTRVF2VjFkWVZ6SkhZa1ZETkdSd2QwWnJPRTlIQ2xKcmFVVjRUVTk1THl0RGNXRmlZbFpuS3k5c2VERk9PVlpIUWxSc1ZWUm1kRFExWkFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PSJ9fX19")) } ]), timestamp_verification_data: None, }), message_signature: Some(MessageSignature { message_digest: Some(HashOutput{ algorithm: Some(String::from("SHA2_256")), digest: Some(String::from("gC3WD/iDM4AvJYXnMEO9IcNBKF4Zkv5bMXVeHK3q4w4=")) }), signature: Some(String::from("MGUCMQCOOJqTY6XWgB64izK2WVP07b0SG9M5WPCwKhfTPwMvtsgUi8KeRGwQkvvLYbKHdqUCMEbOXFG0NMqEQxWVb6rmGnexdADuGf6Jl8qAC8tn67p3QfVoXzMvFA61PzxwVwvb8g==")) }), dsse_envelope: None }); } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-rust/tests/unit.rs000066400000000000000000000023241455126531500257130ustar00rootroot00000000000000use sigstore_protobuf_specs::{ DevSigstoreCommonV1HashOutput as HashOutput, DevSigstoreCommonV1MessageSignature as MessageSignature, }; /// HashOutput, a structure using only primitive types #[test] fn primitives() { let hash_output = HashOutput { algorithm: Some(String::from("SHA2_256")), digest: Some(String::from("gC3WD/iDM4AvJYXnMEO9IcNBKF4Zkv5bMXVeHK3q4w4=")), }; assert_eq!( hash_output, serde_json::to_string(&hash_output) .and_then(|s| serde_json::from_str(&s)) .unwrap() ) } /// MessageSignature, nested structure #[test] fn nested() { let message_signature= MessageSignature { message_digest: Some(HashOutput { algorithm: Some(String::from("SHA_256")), digest: Some(String::from("gC3WD/iDM4AvJYXnMEO9IcNBKF4Zkv5bMXVeHK3q4w4=")), }), signature: Some(String::from("MGUCMQCOOJqTY6XWgB64izK2WVP07b0SG9M5WPCwKhfTPwMvtsgUi8KeRGwQkvvLYbKHdqUCMEbOXFG0NMqEQxWVb6rmGnexdADuGf6Jl8qAC8tn67p3QfVoXzMvFA61PzxwVwvb8g==")) }; assert_eq!( message_signature, serde_json::to_string(&message_signature) .and_then(|s| serde_json::from_str(&s)) .unwrap() ) } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/000077500000000000000000000000001455126531500244345ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/.gitignore000066400000000000000000000000241455126531500264200ustar00rootroot00000000000000dist/ node_modules/ golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/LICENSE000066400000000000000000000261271455126531500254510ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2023 The Sigstore Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/README.md000066400000000000000000000002711455126531500257130ustar00rootroot00000000000000# @sigstore/protobuf-specs TypeScript language bindings for Sigstore's protobuf specs. See the [repository's README](https://github.com/sigstore/protobuf-specs) for more information. golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/package-lock.json000066400000000000000000000016701455126531500276540ustar00rootroot00000000000000{ "name": "@sigstore/protobuf-specs", "version": "0.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { "@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, "@types/node": { "version": "18.14.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==", "dev": true }, "typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true } } } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/package.json000066400000000000000000000013441455126531500267240ustar00rootroot00000000000000{ "name": "@sigstore/protobuf-specs", "version": "0.2.1", "description": "code-signing for npm packages", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc" }, "repository": { "type": "git", "url": "git+https://github.com/sigstore/protobuf-specs.git" }, "files": [ "dist" ], "author": "bdehamer@github.com", "license": "Apache-2.0", "bugs": { "url": "https://github.com/sigstore/protobuf-specs/issues" }, "homepage": "https://github.com/sigstore/protobuf-specs#readme", "devDependencies": { "@tsconfig/node14": "^1.0.3", "@types/node": "^18.14.0", "typescript": "^4.9.5" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/000077500000000000000000000000001455126531500252235ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/000077500000000000000000000000001455126531500277555ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/envelope.ts000066400000000000000000000074551455126531500321550ustar00rootroot00000000000000/* eslint-disable */ /** An authenticated message of arbitrary type. */ export interface Envelope { /** * Message to be signed. (In JSON, this is encoded as base64.) * REQUIRED. */ payload: Buffer; /** * String unambiguously identifying how to interpret payload. * REQUIRED. */ payloadType: string; /** * Signature over: * PAE(type, payload) * Where PAE is defined as: * PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload * + = concatenation * SP = ASCII space [0x20] * "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] * LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros * REQUIRED (length >= 1). */ signatures: Signature[]; } export interface Signature { /** * Signature itself. (In JSON, this is encoded as base64.) * REQUIRED. */ sig: Buffer; /** * Unauthenticated* hint identifying which public key was used. * OPTIONAL. */ keyid: string; } function createBaseEnvelope(): Envelope { return { payload: Buffer.alloc(0), payloadType: "", signatures: [] }; } export const Envelope = { fromJSON(object: any): Envelope { return { payload: isSet(object.payload) ? Buffer.from(bytesFromBase64(object.payload)) : Buffer.alloc(0), payloadType: isSet(object.payloadType) ? String(object.payloadType) : "", signatures: Array.isArray(object?.signatures) ? object.signatures.map((e: any) => Signature.fromJSON(e)) : [], }; }, toJSON(message: Envelope): unknown { const obj: any = {}; message.payload !== undefined && (obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : Buffer.alloc(0))); message.payloadType !== undefined && (obj.payloadType = message.payloadType); if (message.signatures) { obj.signatures = message.signatures.map((e) => e ? Signature.toJSON(e) : undefined); } else { obj.signatures = []; } return obj; }, }; function createBaseSignature(): Signature { return { sig: Buffer.alloc(0), keyid: "" }; } export const Signature = { fromJSON(object: any): Signature { return { sig: isSet(object.sig) ? Buffer.from(bytesFromBase64(object.sig)) : Buffer.alloc(0), keyid: isSet(object.keyid) ? String(object.keyid) : "", }; }, toJSON(message: Signature): unknown { const obj: any = {}; message.sig !== undefined && (obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : Buffer.alloc(0))); message.keyid !== undefined && (obj.keyid = message.keyid); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/events.ts000066400000000000000000000175351455126531500316440ustar00rootroot00000000000000/* eslint-disable */ import { Any } from "./google/protobuf/any"; import { Timestamp } from "./google/protobuf/timestamp"; export interface CloudEvent { /** Required Attributes */ id: string; /** URI-reference */ source: string; specVersion: string; type: string; /** Optional & Extension Attributes */ attributes: { [key: string]: CloudEvent_CloudEventAttributeValue }; data?: { $case: "binaryData"; binaryData: Buffer } | { $case: "textData"; textData: string } | { $case: "protoData"; protoData: Any; }; } export interface CloudEvent_AttributesEntry { key: string; value: CloudEvent_CloudEventAttributeValue | undefined; } export interface CloudEvent_CloudEventAttributeValue { attr?: | { $case: "ceBoolean"; ceBoolean: boolean } | { $case: "ceInteger"; ceInteger: number } | { $case: "ceString"; ceString: string } | { $case: "ceBytes"; ceBytes: Buffer } | { $case: "ceUri"; ceUri: string } | { $case: "ceUriRef"; ceUriRef: string } | { $case: "ceTimestamp"; ceTimestamp: Date }; } export interface CloudEventBatch { events: CloudEvent[]; } function createBaseCloudEvent(): CloudEvent { return { id: "", source: "", specVersion: "", type: "", attributes: {}, data: undefined }; } export const CloudEvent = { fromJSON(object: any): CloudEvent { return { id: isSet(object.id) ? String(object.id) : "", source: isSet(object.source) ? String(object.source) : "", specVersion: isSet(object.specVersion) ? String(object.specVersion) : "", type: isSet(object.type) ? String(object.type) : "", attributes: isObject(object.attributes) ? Object.entries(object.attributes).reduce<{ [key: string]: CloudEvent_CloudEventAttributeValue }>( (acc, [key, value]) => { acc[key] = CloudEvent_CloudEventAttributeValue.fromJSON(value); return acc; }, {}, ) : {}, data: isSet(object.binaryData) ? { $case: "binaryData", binaryData: Buffer.from(bytesFromBase64(object.binaryData)) } : isSet(object.textData) ? { $case: "textData", textData: String(object.textData) } : isSet(object.protoData) ? { $case: "protoData", protoData: Any.fromJSON(object.protoData) } : undefined, }; }, toJSON(message: CloudEvent): unknown { const obj: any = {}; message.id !== undefined && (obj.id = message.id); message.source !== undefined && (obj.source = message.source); message.specVersion !== undefined && (obj.specVersion = message.specVersion); message.type !== undefined && (obj.type = message.type); obj.attributes = {}; if (message.attributes) { Object.entries(message.attributes).forEach(([k, v]) => { obj.attributes[k] = CloudEvent_CloudEventAttributeValue.toJSON(v); }); } message.data?.$case === "binaryData" && (obj.binaryData = message.data?.binaryData !== undefined ? base64FromBytes(message.data?.binaryData) : undefined); message.data?.$case === "textData" && (obj.textData = message.data?.textData); message.data?.$case === "protoData" && (obj.protoData = message.data?.protoData ? Any.toJSON(message.data?.protoData) : undefined); return obj; }, }; function createBaseCloudEvent_AttributesEntry(): CloudEvent_AttributesEntry { return { key: "", value: undefined }; } export const CloudEvent_AttributesEntry = { fromJSON(object: any): CloudEvent_AttributesEntry { return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? CloudEvent_CloudEventAttributeValue.fromJSON(object.value) : undefined, }; }, toJSON(message: CloudEvent_AttributesEntry): unknown { const obj: any = {}; message.key !== undefined && (obj.key = message.key); message.value !== undefined && (obj.value = message.value ? CloudEvent_CloudEventAttributeValue.toJSON(message.value) : undefined); return obj; }, }; function createBaseCloudEvent_CloudEventAttributeValue(): CloudEvent_CloudEventAttributeValue { return { attr: undefined }; } export const CloudEvent_CloudEventAttributeValue = { fromJSON(object: any): CloudEvent_CloudEventAttributeValue { return { attr: isSet(object.ceBoolean) ? { $case: "ceBoolean", ceBoolean: Boolean(object.ceBoolean) } : isSet(object.ceInteger) ? { $case: "ceInteger", ceInteger: Number(object.ceInteger) } : isSet(object.ceString) ? { $case: "ceString", ceString: String(object.ceString) } : isSet(object.ceBytes) ? { $case: "ceBytes", ceBytes: Buffer.from(bytesFromBase64(object.ceBytes)) } : isSet(object.ceUri) ? { $case: "ceUri", ceUri: String(object.ceUri) } : isSet(object.ceUriRef) ? { $case: "ceUriRef", ceUriRef: String(object.ceUriRef) } : isSet(object.ceTimestamp) ? { $case: "ceTimestamp", ceTimestamp: fromJsonTimestamp(object.ceTimestamp) } : undefined, }; }, toJSON(message: CloudEvent_CloudEventAttributeValue): unknown { const obj: any = {}; message.attr?.$case === "ceBoolean" && (obj.ceBoolean = message.attr?.ceBoolean); message.attr?.$case === "ceInteger" && (obj.ceInteger = Math.round(message.attr?.ceInteger)); message.attr?.$case === "ceString" && (obj.ceString = message.attr?.ceString); message.attr?.$case === "ceBytes" && (obj.ceBytes = message.attr?.ceBytes !== undefined ? base64FromBytes(message.attr?.ceBytes) : undefined); message.attr?.$case === "ceUri" && (obj.ceUri = message.attr?.ceUri); message.attr?.$case === "ceUriRef" && (obj.ceUriRef = message.attr?.ceUriRef); message.attr?.$case === "ceTimestamp" && (obj.ceTimestamp = message.attr?.ceTimestamp.toISOString()); return obj; }, }; function createBaseCloudEventBatch(): CloudEventBatch { return { events: [] }; } export const CloudEventBatch = { fromJSON(object: any): CloudEventBatch { return { events: Array.isArray(object?.events) ? object.events.map((e: any) => CloudEvent.fromJSON(e)) : [] }; }, toJSON(message: CloudEventBatch): unknown { const obj: any = {}; if (message.events) { obj.events = message.events.map((e) => e ? CloudEvent.toJSON(e) : undefined); } else { obj.events = []; } return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function fromTimestamp(t: Timestamp): Date { let millis = Number(t.seconds) * 1_000; millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o: any): Date { if (o instanceof Date) { return o; } else if (typeof o === "string") { return new Date(o); } else { return fromTimestamp(Timestamp.fromJSON(o)); } } function isObject(value: any): boolean { return typeof value === "object" && value !== null; } function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/000077500000000000000000000000001455126531500312315ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/api/000077500000000000000000000000001455126531500320025ustar00rootroot00000000000000field_behavior.ts000066400000000000000000000074621455126531500352460ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/api/* eslint-disable */ /** * An indicator of the behavior of a given field (for example, that a field * is required in requests, or given as output but ignored as input). * This **does not** change the behavior in protocol buffers itself; it only * denotes the behavior and may affect how API tooling handles the field. * * Note: This enum **may** receive new values in the future. */ export enum FieldBehavior { /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */ FIELD_BEHAVIOR_UNSPECIFIED = 0, /** * OPTIONAL - Specifically denotes a field as optional. * While all fields in protocol buffers are optional, this may be specified * for emphasis if appropriate. */ OPTIONAL = 1, /** * REQUIRED - Denotes a field as required. * This indicates that the field **must** be provided as part of the request, * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). */ REQUIRED = 2, /** * OUTPUT_ONLY - Denotes a field as output only. * This indicates that the field is provided in responses, but including the * field in a request does nothing (the server *must* ignore it and * *must not* throw an error as a result of the field's presence). */ OUTPUT_ONLY = 3, /** * INPUT_ONLY - Denotes a field as input only. * This indicates that the field is provided in requests, and the * corresponding field is not included in output. */ INPUT_ONLY = 4, /** * IMMUTABLE - Denotes a field as immutable. * This indicates that the field may be set once in a request to create a * resource, but may not be changed thereafter. */ IMMUTABLE = 5, /** * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list. * This indicates that the service may provide the elements of the list * in any arbitrary order, rather than the order the user originally * provided. Additionally, the list's order may or may not be stable. */ UNORDERED_LIST = 6, } export function fieldBehaviorFromJSON(object: any): FieldBehavior { switch (object) { case 0: case "FIELD_BEHAVIOR_UNSPECIFIED": return FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED; case 1: case "OPTIONAL": return FieldBehavior.OPTIONAL; case 2: case "REQUIRED": return FieldBehavior.REQUIRED; case 3: case "OUTPUT_ONLY": return FieldBehavior.OUTPUT_ONLY; case 4: case "INPUT_ONLY": return FieldBehavior.INPUT_ONLY; case 5: case "IMMUTABLE": return FieldBehavior.IMMUTABLE; case 6: case "UNORDERED_LIST": return FieldBehavior.UNORDERED_LIST; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); } } export function fieldBehaviorToJSON(object: FieldBehavior): string { switch (object) { case FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED: return "FIELD_BEHAVIOR_UNSPECIFIED"; case FieldBehavior.OPTIONAL: return "OPTIONAL"; case FieldBehavior.REQUIRED: return "REQUIRED"; case FieldBehavior.OUTPUT_ONLY: return "OUTPUT_ONLY"; case FieldBehavior.INPUT_ONLY: return "INPUT_ONLY"; case FieldBehavior.IMMUTABLE: return "IMMUTABLE"; case FieldBehavior.UNORDERED_LIST: return "UNORDERED_LIST"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); } } declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/protobuf/000077500000000000000000000000001455126531500330715ustar00rootroot00000000000000any.ts000066400000000000000000000132531455126531500341550ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/protobuf/* eslint-disable */ /** * `Any` contains an arbitrary serialized protocol buffer message along with a * URL that describes the type of the serialized message. * * Protobuf library provides support to pack/unpack Any values in the form * of utility functions or additional generated methods of the Any type. * * Example 1: Pack and unpack a message in C++. * * Foo foo = ...; * Any any; * any.PackFrom(foo); * ... * if (any.UnpackTo(&foo)) { * ... * } * * Example 2: Pack and unpack a message in Java. * * Foo foo = ...; * Any any = Any.pack(foo); * ... * if (any.is(Foo.class)) { * foo = any.unpack(Foo.class); * } * * Example 3: Pack and unpack a message in Python. * * foo = Foo(...) * any = Any() * any.Pack(foo) * ... * if any.Is(Foo.DESCRIPTOR): * any.Unpack(foo) * ... * * Example 4: Pack and unpack a message in Go * * foo := &pb.Foo{...} * any, err := anypb.New(foo) * if err != nil { * ... * } * ... * foo := &pb.Foo{} * if err := any.UnmarshalTo(foo); err != nil { * ... * } * * The pack methods provided by protobuf library will by default use * 'type.googleapis.com/full.type.name' as the type URL and the unpack * methods only use the fully qualified type name after the last '/' * in the type URL, for example "foo.bar.com/x/y.z" will yield type * name "y.z". * * JSON * * The JSON representation of an `Any` value uses the regular * representation of the deserialized, embedded message, with an * additional field `@type` which contains the type URL. Example: * * package google.profile; * message Person { * string first_name = 1; * string last_name = 2; * } * * { * "@type": "type.googleapis.com/google.profile.Person", * "firstName": , * "lastName": * } * * If the embedded message type is well-known and has a custom JSON * representation, that representation will be embedded adding a field * `value` which holds the custom JSON in addition to the `@type` * field. Example (for message [google.protobuf.Duration][]): * * { * "@type": "type.googleapis.com/google.protobuf.Duration", * "value": "1.212s" * } */ export interface Any { /** * A URL/resource name that uniquely identifies the type of the serialized * protocol buffer message. This string must contain at least * one "/" character. The last segment of the URL's path must represent * the fully qualified name of the type (as in * `path/google.protobuf.Duration`). The name should be in a canonical form * (e.g., leading "." is not accepted). * * In practice, teams usually precompile into the binary all types that they * expect it to use in the context of Any. However, for URLs which use the * scheme `http`, `https`, or no scheme, one can optionally set up a type * server that maps type URLs to message definitions as follows: * * * If no scheme is provided, `https` is assumed. * * An HTTP GET on the URL must yield a [google.protobuf.Type][] * value in binary format, or produce an error. * * Applications are allowed to cache lookup results based on the * URL, or have them precompiled into a binary to avoid any * lookup. Therefore, binary compatibility needs to be preserved * on changes to types. (Use versioned type names to manage * breaking changes.) * * Note: this functionality is not currently available in the official * protobuf release, and it is not used for type URLs beginning with * type.googleapis.com. * * Schemes other than `http`, `https` (or the empty scheme) might be * used with implementation specific semantics. */ typeUrl: string; /** Must be a valid serialized protocol buffer of the above specified type. */ value: Buffer; } function createBaseAny(): Any { return { typeUrl: "", value: Buffer.alloc(0) }; } export const Any = { fromJSON(object: any): Any { return { typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "", value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), }; }, toJSON(message: Any): unknown { const obj: any = {}; message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } descriptor.ts000066400000000000000000002317671455126531500355600ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/protobuf/* eslint-disable */ /** * The protocol compiler can output a FileDescriptorSet containing the .proto * files it parses. */ export interface FileDescriptorSet { file: FileDescriptorProto[]; } /** Describes a complete .proto file. */ export interface FileDescriptorProto { /** file name, relative to root of source tree */ name: string; /** e.g. "foo", "foo.bar", etc. */ package: string; /** Names of files imported by this file. */ dependency: string[]; /** Indexes of the public imported files in the dependency list above. */ publicDependency: number[]; /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. */ weakDependency: number[]; /** All top-level definitions in this file. */ messageType: DescriptorProto[]; enumType: EnumDescriptorProto[]; service: ServiceDescriptorProto[]; extension: FieldDescriptorProto[]; options: | FileOptions | undefined; /** * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. */ sourceCodeInfo: | SourceCodeInfo | undefined; /** * The syntax of the proto file. * The supported values are "proto2" and "proto3". */ syntax: string; } /** Describes a message type. */ export interface DescriptorProto { name: string; field: FieldDescriptorProto[]; extension: FieldDescriptorProto[]; nestedType: DescriptorProto[]; enumType: EnumDescriptorProto[]; extensionRange: DescriptorProto_ExtensionRange[]; oneofDecl: OneofDescriptorProto[]; options: MessageOptions | undefined; reservedRange: DescriptorProto_ReservedRange[]; /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. */ reservedName: string[]; } export interface DescriptorProto_ExtensionRange { /** Inclusive. */ start: number; /** Exclusive. */ end: number; options: ExtensionRangeOptions | undefined; } /** * Range of reserved tag numbers. Reserved tag numbers may not be used by * fields or extension ranges in the same message. Reserved ranges may * not overlap. */ export interface DescriptorProto_ReservedRange { /** Inclusive. */ start: number; /** Exclusive. */ end: number; } export interface ExtensionRangeOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } /** Describes a field within a message. */ export interface FieldDescriptorProto { name: string; number: number; label: FieldDescriptorProto_Label; /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. */ type: FieldDescriptorProto_Type; /** * For message and enum types, this is the name of the type. If the name * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping * rules are used to find the type (i.e. first the nested types within this * message are searched, then within the parent, on up to the root * namespace). */ typeName: string; /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. */ extendee: string; /** * For numeric types, contains the original text representation of the value. * For booleans, "true" or "false". * For strings, contains the default text contents (not escaped in any way). * For bytes, contains the C escaped value. All bytes >= 128 are escaped. */ defaultValue: string; /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. */ oneofIndex: number; /** * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. */ jsonName: string; options: | FieldOptions | undefined; /** * If true, this is a proto3 "optional". When a proto3 field is optional, it * tracks presence regardless of field type. * * When proto3_optional is true, this field must be belong to a oneof to * signal to old proto3 clients that presence is tracked for this field. This * oneof is known as a "synthetic" oneof, and this field must be its sole * member (each proto3 optional field gets its own synthetic oneof). Synthetic * oneofs exist in the descriptor only, and do not generate any API. Synthetic * oneofs must be ordered after all "real" oneofs. * * For message fields, proto3_optional doesn't create any semantic change, * since non-repeated message fields always track presence. However it still * indicates the semantic detail of whether the user wrote "optional" or not. * This can be useful for round-tripping the .proto file. For consistency we * give message fields a synthetic oneof also, even though it is not required * to track presence. This is especially important because the parser can't * tell if a field is a message or an enum, so it must always create a * synthetic oneof. * * Proto2 optional fields do not set this flag, because they already indicate * optional with `LABEL_OPTIONAL`. */ proto3Optional: boolean; } export enum FieldDescriptorProto_Type { /** * TYPE_DOUBLE - 0 is reserved for errors. * Order is weird for historical reasons. */ TYPE_DOUBLE = 1, TYPE_FLOAT = 2, /** * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if * negative values are likely. */ TYPE_INT64 = 3, TYPE_UINT64 = 4, /** * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if * negative values are likely. */ TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8, TYPE_STRING = 9, /** * TYPE_GROUP - Tag-delimited aggregate. * Group type is deprecated and not supported in proto3. However, Proto3 * implementations should still be able to parse the group wire format and * treat group fields as unknown fields. */ TYPE_GROUP = 10, /** TYPE_MESSAGE - Length-delimited aggregate. */ TYPE_MESSAGE = 11, /** TYPE_BYTES - New in version 2. */ TYPE_BYTES = 12, TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16, /** TYPE_SINT32 - Uses ZigZag encoding. */ TYPE_SINT32 = 17, /** TYPE_SINT64 - Uses ZigZag encoding. */ TYPE_SINT64 = 18, } export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type { switch (object) { case 1: case "TYPE_DOUBLE": return FieldDescriptorProto_Type.TYPE_DOUBLE; case 2: case "TYPE_FLOAT": return FieldDescriptorProto_Type.TYPE_FLOAT; case 3: case "TYPE_INT64": return FieldDescriptorProto_Type.TYPE_INT64; case 4: case "TYPE_UINT64": return FieldDescriptorProto_Type.TYPE_UINT64; case 5: case "TYPE_INT32": return FieldDescriptorProto_Type.TYPE_INT32; case 6: case "TYPE_FIXED64": return FieldDescriptorProto_Type.TYPE_FIXED64; case 7: case "TYPE_FIXED32": return FieldDescriptorProto_Type.TYPE_FIXED32; case 8: case "TYPE_BOOL": return FieldDescriptorProto_Type.TYPE_BOOL; case 9: case "TYPE_STRING": return FieldDescriptorProto_Type.TYPE_STRING; case 10: case "TYPE_GROUP": return FieldDescriptorProto_Type.TYPE_GROUP; case 11: case "TYPE_MESSAGE": return FieldDescriptorProto_Type.TYPE_MESSAGE; case 12: case "TYPE_BYTES": return FieldDescriptorProto_Type.TYPE_BYTES; case 13: case "TYPE_UINT32": return FieldDescriptorProto_Type.TYPE_UINT32; case 14: case "TYPE_ENUM": return FieldDescriptorProto_Type.TYPE_ENUM; case 15: case "TYPE_SFIXED32": return FieldDescriptorProto_Type.TYPE_SFIXED32; case 16: case "TYPE_SFIXED64": return FieldDescriptorProto_Type.TYPE_SFIXED64; case 17: case "TYPE_SINT32": return FieldDescriptorProto_Type.TYPE_SINT32; case 18: case "TYPE_SINT64": return FieldDescriptorProto_Type.TYPE_SINT64; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); } } export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string { switch (object) { case FieldDescriptorProto_Type.TYPE_DOUBLE: return "TYPE_DOUBLE"; case FieldDescriptorProto_Type.TYPE_FLOAT: return "TYPE_FLOAT"; case FieldDescriptorProto_Type.TYPE_INT64: return "TYPE_INT64"; case FieldDescriptorProto_Type.TYPE_UINT64: return "TYPE_UINT64"; case FieldDescriptorProto_Type.TYPE_INT32: return "TYPE_INT32"; case FieldDescriptorProto_Type.TYPE_FIXED64: return "TYPE_FIXED64"; case FieldDescriptorProto_Type.TYPE_FIXED32: return "TYPE_FIXED32"; case FieldDescriptorProto_Type.TYPE_BOOL: return "TYPE_BOOL"; case FieldDescriptorProto_Type.TYPE_STRING: return "TYPE_STRING"; case FieldDescriptorProto_Type.TYPE_GROUP: return "TYPE_GROUP"; case FieldDescriptorProto_Type.TYPE_MESSAGE: return "TYPE_MESSAGE"; case FieldDescriptorProto_Type.TYPE_BYTES: return "TYPE_BYTES"; case FieldDescriptorProto_Type.TYPE_UINT32: return "TYPE_UINT32"; case FieldDescriptorProto_Type.TYPE_ENUM: return "TYPE_ENUM"; case FieldDescriptorProto_Type.TYPE_SFIXED32: return "TYPE_SFIXED32"; case FieldDescriptorProto_Type.TYPE_SFIXED64: return "TYPE_SFIXED64"; case FieldDescriptorProto_Type.TYPE_SINT32: return "TYPE_SINT32"; case FieldDescriptorProto_Type.TYPE_SINT64: return "TYPE_SINT64"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); } } export enum FieldDescriptorProto_Label { /** LABEL_OPTIONAL - 0 is reserved for errors */ LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, } export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label { switch (object) { case 1: case "LABEL_OPTIONAL": return FieldDescriptorProto_Label.LABEL_OPTIONAL; case 2: case "LABEL_REQUIRED": return FieldDescriptorProto_Label.LABEL_REQUIRED; case 3: case "LABEL_REPEATED": return FieldDescriptorProto_Label.LABEL_REPEATED; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); } } export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string { switch (object) { case FieldDescriptorProto_Label.LABEL_OPTIONAL: return "LABEL_OPTIONAL"; case FieldDescriptorProto_Label.LABEL_REQUIRED: return "LABEL_REQUIRED"; case FieldDescriptorProto_Label.LABEL_REPEATED: return "LABEL_REPEATED"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); } } /** Describes a oneof. */ export interface OneofDescriptorProto { name: string; options: OneofOptions | undefined; } /** Describes an enum type. */ export interface EnumDescriptorProto { name: string; value: EnumValueDescriptorProto[]; options: | EnumOptions | undefined; /** * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. */ reservedRange: EnumDescriptorProto_EnumReservedRange[]; /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. */ reservedName: string[]; } /** * Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. * * Note that this is distinct from DescriptorProto.ReservedRange in that it * is inclusive such that it can appropriately represent the entire int32 * domain. */ export interface EnumDescriptorProto_EnumReservedRange { /** Inclusive. */ start: number; /** Inclusive. */ end: number; } /** Describes a value within an enum. */ export interface EnumValueDescriptorProto { name: string; number: number; options: EnumValueOptions | undefined; } /** Describes a service. */ export interface ServiceDescriptorProto { name: string; method: MethodDescriptorProto[]; options: ServiceOptions | undefined; } /** Describes a method of a service. */ export interface MethodDescriptorProto { name: string; /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. */ inputType: string; outputType: string; options: | MethodOptions | undefined; /** Identifies if client streams multiple client messages */ clientStreaming: boolean; /** Identifies if server streams multiple server messages */ serverStreaming: boolean; } export interface FileOptions { /** * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. */ javaPackage: string; /** * Controls the name of the wrapper Java class generated for the .proto file. * That class will always contain the .proto file's getDescriptor() method as * well as any top-level extensions defined in the .proto file. * If java_multiple_files is disabled, then all the other classes from the * .proto file will be nested inside the single wrapper outer class. */ javaOuterClassname: string; /** * If enabled, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the wrapper class * named by java_outer_classname. However, the wrapper class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. */ javaMultipleFiles: boolean; /** * This option does nothing. * * @deprecated */ javaGenerateEqualsAndHash: boolean; /** * If set true, then the Java2 code generator will generate code that * throws an exception whenever an attempt is made to assign a non-UTF-8 * byte sequence to a string field. * Message reflection will do the same. * However, an extension field still accepts non-UTF-8 byte sequences. * This option has no effect on when used with the lite runtime. */ javaStringCheckUtf8: boolean; optimizeFor: FileOptions_OptimizeMode; /** * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. */ goPackage: string; /** * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. */ ccGenericServices: boolean; javaGenericServices: boolean; pyGenericServices: boolean; phpGenericServices: boolean; /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. */ deprecated: boolean; /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. */ ccEnableArenas: boolean; /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. */ objcClassPrefix: string; /** Namespace for generated classes; defaults to the package. */ csharpNamespace: string; /** * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. */ swiftPrefix: string; /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. */ phpClassPrefix: string; /** * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. */ phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. */ phpMetadataNamespace: string; /** * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. */ rubyPackage: string; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. */ uninterpretedOption: UninterpretedOption[]; } /** Generated classes can be optimized for speed or code size. */ export enum FileOptions_OptimizeMode { /** SPEED - Generate complete code for parsing, serialization, */ SPEED = 1, /** CODE_SIZE - etc. */ CODE_SIZE = 2, /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ LITE_RUNTIME = 3, } export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode { switch (object) { case 1: case "SPEED": return FileOptions_OptimizeMode.SPEED; case 2: case "CODE_SIZE": return FileOptions_OptimizeMode.CODE_SIZE; case 3: case "LITE_RUNTIME": return FileOptions_OptimizeMode.LITE_RUNTIME; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); } } export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string { switch (object) { case FileOptions_OptimizeMode.SPEED: return "SPEED"; case FileOptions_OptimizeMode.CODE_SIZE: return "CODE_SIZE"; case FileOptions_OptimizeMode.LITE_RUNTIME: return "LITE_RUNTIME"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); } } export interface MessageOptions { /** * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. */ messageSetWireFormat: boolean; /** * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". */ noStandardDescriptorAccessor: boolean; /** * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. */ deprecated: boolean; /** * Whether the message is an automatically generated map entry type for the * maps field. * * For maps fields: * map map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. */ mapEntry: boolean; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export interface FieldOptions { /** * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! */ ctype: FieldOptions_CType; /** * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. */ packed: boolean; /** * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. */ jstype: FieldOptions_JSType; /** * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outer message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * * As of 2021, lazy does no correctness checks on the byte stream during * parsing. This may lead to crashes if and when an invalid byte stream is * finally parsed upon access. * * TODO(b/211906113): Enable validation on lazy fields. */ lazy: boolean; /** * unverified_lazy does no correctness checks on the byte stream. This should * only be used where lazy with verification is prohibitive for performance * reasons. */ unverifiedLazy: boolean; /** * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. */ deprecated: boolean; /** For Google-internal migration only. Do not use. */ weak: boolean; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export enum FieldOptions_CType { /** STRING - Default mode. */ STRING = 0, CORD = 1, STRING_PIECE = 2, } export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType { switch (object) { case 0: case "STRING": return FieldOptions_CType.STRING; case 1: case "CORD": return FieldOptions_CType.CORD; case 2: case "STRING_PIECE": return FieldOptions_CType.STRING_PIECE; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); } } export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string { switch (object) { case FieldOptions_CType.STRING: return "STRING"; case FieldOptions_CType.CORD: return "CORD"; case FieldOptions_CType.STRING_PIECE: return "STRING_PIECE"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); } } export enum FieldOptions_JSType { /** JS_NORMAL - Use the default type. */ JS_NORMAL = 0, /** JS_STRING - Use JavaScript strings. */ JS_STRING = 1, /** JS_NUMBER - Use JavaScript numbers. */ JS_NUMBER = 2, } export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType { switch (object) { case 0: case "JS_NORMAL": return FieldOptions_JSType.JS_NORMAL; case 1: case "JS_STRING": return FieldOptions_JSType.JS_STRING; case 2: case "JS_NUMBER": return FieldOptions_JSType.JS_NUMBER; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); } } export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { switch (object) { case FieldOptions_JSType.JS_NORMAL: return "JS_NORMAL"; case FieldOptions_JSType.JS_STRING: return "JS_STRING"; case FieldOptions_JSType.JS_NUMBER: return "JS_NUMBER"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); } } export interface OneofOptions { /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export interface EnumOptions { /** * Set this option to true to allow mapping different tag names to the same * value. */ allowAlias: boolean; /** * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. */ deprecated: boolean; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export interface EnumValueOptions { /** * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. */ deprecated: boolean; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export interface ServiceOptions { /** * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. */ deprecated: boolean; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } export interface MethodOptions { /** * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. */ deprecated: boolean; idempotencyLevel: MethodOptions_IdempotencyLevel; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption: UninterpretedOption[]; } /** * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe * methods, and PUT verb for idempotent methods instead of the default POST. */ export enum MethodOptions_IdempotencyLevel { IDEMPOTENCY_UNKNOWN = 0, /** NO_SIDE_EFFECTS - implies idempotent */ NO_SIDE_EFFECTS = 1, /** IDEMPOTENT - idempotent, but may have side effects */ IDEMPOTENT = 2, } export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel { switch (object) { case 0: case "IDEMPOTENCY_UNKNOWN": return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; case 1: case "NO_SIDE_EFFECTS": return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; case 2: case "IDEMPOTENT": return MethodOptions_IdempotencyLevel.IDEMPOTENT; default: throw new tsProtoGlobalThis.Error( "Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel", ); } } export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string { switch (object) { case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: return "IDEMPOTENCY_UNKNOWN"; case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: return "NO_SIDE_EFFECTS"; case MethodOptions_IdempotencyLevel.IDEMPOTENT: return "IDEMPOTENT"; default: throw new tsProtoGlobalThis.Error( "Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel", ); } } /** * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. */ export interface UninterpretedOption { name: UninterpretedOption_NamePart[]; /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. */ identifierValue: string; positiveIntValue: string; negativeIntValue: string; doubleValue: number; stringValue: Buffer; aggregateValue: string; } /** * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents * "foo.(bar.baz).moo". */ export interface UninterpretedOption_NamePart { namePart: string; isExtension: boolean; } /** * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. */ export interface SourceCodeInfo { /** * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. */ location: SourceCodeInfo_Location[]; } export interface SourceCodeInfo_Location { /** * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition occurs. * For example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). */ path: number[]; /** * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. */ span: number[]; /** * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to moo. * // * // Another line attached to moo. * optional double moo = 4; * * // Detached comment for corge. This is not leading or trailing comments * // to moo or corge because there are blank lines separating it from * // both. * * // Detached comment for corge paragraph 2. * * optional string corge = 5; * /* Block comment attached * * to corge. Leading asterisks * * will be removed. * / * /* Block comment attached to * * grault. * / * optional int32 grault = 6; * * // ignored detached comments. */ leadingComments: string; trailingComments: string; leadingDetachedComments: string[]; } /** * Describes the relationship between generated code and its original source * file. A GeneratedCodeInfo message is associated with only one generated * source file, but may contain references to different source .proto files. */ export interface GeneratedCodeInfo { /** * An Annotation connects some span of text in generated code to an element * of its generating .proto file. */ annotation: GeneratedCodeInfo_Annotation[]; } export interface GeneratedCodeInfo_Annotation { /** * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. */ path: number[]; /** Identifies the filesystem path to the original source .proto. */ sourceFile: string; /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. */ begin: number; /** * Identifies the ending offset in bytes in the generated code that * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). */ end: number; } function createBaseFileDescriptorSet(): FileDescriptorSet { return { file: [] }; } export const FileDescriptorSet = { fromJSON(object: any): FileDescriptorSet { return { file: Array.isArray(object?.file) ? object.file.map((e: any) => FileDescriptorProto.fromJSON(e)) : [] }; }, toJSON(message: FileDescriptorSet): unknown { const obj: any = {}; if (message.file) { obj.file = message.file.map((e) => e ? FileDescriptorProto.toJSON(e) : undefined); } else { obj.file = []; } return obj; }, }; function createBaseFileDescriptorProto(): FileDescriptorProto { return { name: "", package: "", dependency: [], publicDependency: [], weakDependency: [], messageType: [], enumType: [], service: [], extension: [], options: undefined, sourceCodeInfo: undefined, syntax: "", }; } export const FileDescriptorProto = { fromJSON(object: any): FileDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", package: isSet(object.package) ? String(object.package) : "", dependency: Array.isArray(object?.dependency) ? object.dependency.map((e: any) => String(e)) : [], publicDependency: Array.isArray(object?.publicDependency) ? object.publicDependency.map((e: any) => Number(e)) : [], weakDependency: Array.isArray(object?.weakDependency) ? object.weakDependency.map((e: any) => Number(e)) : [], messageType: Array.isArray(object?.messageType) ? object.messageType.map((e: any) => DescriptorProto.fromJSON(e)) : [], enumType: Array.isArray(object?.enumType) ? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e)) : [], service: Array.isArray(object?.service) ? object.service.map((e: any) => ServiceDescriptorProto.fromJSON(e)) : [], extension: Array.isArray(object?.extension) ? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined, sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, syntax: isSet(object.syntax) ? String(object.syntax) : "", }; }, toJSON(message: FileDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.package !== undefined && (obj.package = message.package); if (message.dependency) { obj.dependency = message.dependency.map((e) => e); } else { obj.dependency = []; } if (message.publicDependency) { obj.publicDependency = message.publicDependency.map((e) => Math.round(e)); } else { obj.publicDependency = []; } if (message.weakDependency) { obj.weakDependency = message.weakDependency.map((e) => Math.round(e)); } else { obj.weakDependency = []; } if (message.messageType) { obj.messageType = message.messageType.map((e) => e ? DescriptorProto.toJSON(e) : undefined); } else { obj.messageType = []; } if (message.enumType) { obj.enumType = message.enumType.map((e) => e ? EnumDescriptorProto.toJSON(e) : undefined); } else { obj.enumType = []; } if (message.service) { obj.service = message.service.map((e) => e ? ServiceDescriptorProto.toJSON(e) : undefined); } else { obj.service = []; } if (message.extension) { obj.extension = message.extension.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined); } else { obj.extension = []; } message.options !== undefined && (obj.options = message.options ? FileOptions.toJSON(message.options) : undefined); message.sourceCodeInfo !== undefined && (obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined); message.syntax !== undefined && (obj.syntax = message.syntax); return obj; }, }; function createBaseDescriptorProto(): DescriptorProto { return { name: "", field: [], extension: [], nestedType: [], enumType: [], extensionRange: [], oneofDecl: [], options: undefined, reservedRange: [], reservedName: [], }; } export const DescriptorProto = { fromJSON(object: any): DescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", field: Array.isArray(object?.field) ? object.field.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], extension: Array.isArray(object?.extension) ? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], nestedType: Array.isArray(object?.nestedType) ? object.nestedType.map((e: any) => DescriptorProto.fromJSON(e)) : [], enumType: Array.isArray(object?.enumType) ? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e)) : [], extensionRange: Array.isArray(object?.extensionRange) ? object.extensionRange.map((e: any) => DescriptorProto_ExtensionRange.fromJSON(e)) : [], oneofDecl: Array.isArray(object?.oneofDecl) ? object.oneofDecl.map((e: any) => OneofDescriptorProto.fromJSON(e)) : [], options: isSet(object.options) ? MessageOptions.fromJSON(object.options) : undefined, reservedRange: Array.isArray(object?.reservedRange) ? object.reservedRange.map((e: any) => DescriptorProto_ReservedRange.fromJSON(e)) : [], reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [], }; }, toJSON(message: DescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.field) { obj.field = message.field.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined); } else { obj.field = []; } if (message.extension) { obj.extension = message.extension.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined); } else { obj.extension = []; } if (message.nestedType) { obj.nestedType = message.nestedType.map((e) => e ? DescriptorProto.toJSON(e) : undefined); } else { obj.nestedType = []; } if (message.enumType) { obj.enumType = message.enumType.map((e) => e ? EnumDescriptorProto.toJSON(e) : undefined); } else { obj.enumType = []; } if (message.extensionRange) { obj.extensionRange = message.extensionRange.map((e) => e ? DescriptorProto_ExtensionRange.toJSON(e) : undefined); } else { obj.extensionRange = []; } if (message.oneofDecl) { obj.oneofDecl = message.oneofDecl.map((e) => e ? OneofDescriptorProto.toJSON(e) : undefined); } else { obj.oneofDecl = []; } message.options !== undefined && (obj.options = message.options ? MessageOptions.toJSON(message.options) : undefined); if (message.reservedRange) { obj.reservedRange = message.reservedRange.map((e) => e ? DescriptorProto_ReservedRange.toJSON(e) : undefined); } else { obj.reservedRange = []; } if (message.reservedName) { obj.reservedName = message.reservedName.map((e) => e); } else { obj.reservedName = []; } return obj; }, }; function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange { return { start: 0, end: 0, options: undefined }; } export const DescriptorProto_ExtensionRange = { fromJSON(object: any): DescriptorProto_ExtensionRange { return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0, options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined, }; }, toJSON(message: DescriptorProto_ExtensionRange): unknown { const obj: any = {}; message.start !== undefined && (obj.start = Math.round(message.start)); message.end !== undefined && (obj.end = Math.round(message.end)); message.options !== undefined && (obj.options = message.options ? ExtensionRangeOptions.toJSON(message.options) : undefined); return obj; }, }; function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange { return { start: 0, end: 0 }; } export const DescriptorProto_ReservedRange = { fromJSON(object: any): DescriptorProto_ReservedRange { return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; }, toJSON(message: DescriptorProto_ReservedRange): unknown { const obj: any = {}; message.start !== undefined && (obj.start = Math.round(message.start)); message.end !== undefined && (obj.end = Math.round(message.end)); return obj; }, }; function createBaseExtensionRangeOptions(): ExtensionRangeOptions { return { uninterpretedOption: [] }; } export const ExtensionRangeOptions = { fromJSON(object: any): ExtensionRangeOptions { return { uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: ExtensionRangeOptions): unknown { const obj: any = {}; if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseFieldDescriptorProto(): FieldDescriptorProto { return { name: "", number: 0, label: 1, type: 1, typeName: "", extendee: "", defaultValue: "", oneofIndex: 0, jsonName: "", options: undefined, proto3Optional: false, }; } export const FieldDescriptorProto = { fromJSON(object: any): FieldDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", number: isSet(object.number) ? Number(object.number) : 0, label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1, type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1, typeName: isSet(object.typeName) ? String(object.typeName) : "", extendee: isSet(object.extendee) ? String(object.extendee) : "", defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "", oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0, jsonName: isSet(object.jsonName) ? String(object.jsonName) : "", options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined, proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false, }; }, toJSON(message: FieldDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.number !== undefined && (obj.number = Math.round(message.number)); message.label !== undefined && (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); message.type !== undefined && (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); message.typeName !== undefined && (obj.typeName = message.typeName); message.extendee !== undefined && (obj.extendee = message.extendee); message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue); message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex)); message.jsonName !== undefined && (obj.jsonName = message.jsonName); message.options !== undefined && (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional); return obj; }, }; function createBaseOneofDescriptorProto(): OneofDescriptorProto { return { name: "", options: undefined }; } export const OneofDescriptorProto = { fromJSON(object: any): OneofDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined, }; }, toJSON(message: OneofDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.options !== undefined && (obj.options = message.options ? OneofOptions.toJSON(message.options) : undefined); return obj; }, }; function createBaseEnumDescriptorProto(): EnumDescriptorProto { return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] }; } export const EnumDescriptorProto = { fromJSON(object: any): EnumDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", value: Array.isArray(object?.value) ? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e)) : [], options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined, reservedRange: Array.isArray(object?.reservedRange) ? object.reservedRange.map((e: any) => EnumDescriptorProto_EnumReservedRange.fromJSON(e)) : [], reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [], }; }, toJSON(message: EnumDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.value) { obj.value = message.value.map((e) => e ? EnumValueDescriptorProto.toJSON(e) : undefined); } else { obj.value = []; } message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined); if (message.reservedRange) { obj.reservedRange = message.reservedRange.map((e) => e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined ); } else { obj.reservedRange = []; } if (message.reservedName) { obj.reservedName = message.reservedName.map((e) => e); } else { obj.reservedName = []; } return obj; }, }; function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange { return { start: 0, end: 0 }; } export const EnumDescriptorProto_EnumReservedRange = { fromJSON(object: any): EnumDescriptorProto_EnumReservedRange { return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; }, toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown { const obj: any = {}; message.start !== undefined && (obj.start = Math.round(message.start)); message.end !== undefined && (obj.end = Math.round(message.end)); return obj; }, }; function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto { return { name: "", number: 0, options: undefined }; } export const EnumValueDescriptorProto = { fromJSON(object: any): EnumValueDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", number: isSet(object.number) ? Number(object.number) : 0, options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined, }; }, toJSON(message: EnumValueDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.number !== undefined && (obj.number = Math.round(message.number)); message.options !== undefined && (obj.options = message.options ? EnumValueOptions.toJSON(message.options) : undefined); return obj; }, }; function createBaseServiceDescriptorProto(): ServiceDescriptorProto { return { name: "", method: [], options: undefined }; } export const ServiceDescriptorProto = { fromJSON(object: any): ServiceDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", method: Array.isArray(object?.method) ? object.method.map((e: any) => MethodDescriptorProto.fromJSON(e)) : [], options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined, }; }, toJSON(message: ServiceDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.method) { obj.method = message.method.map((e) => e ? MethodDescriptorProto.toJSON(e) : undefined); } else { obj.method = []; } message.options !== undefined && (obj.options = message.options ? ServiceOptions.toJSON(message.options) : undefined); return obj; }, }; function createBaseMethodDescriptorProto(): MethodDescriptorProto { return { name: "", inputType: "", outputType: "", options: undefined, clientStreaming: false, serverStreaming: false, }; } export const MethodDescriptorProto = { fromJSON(object: any): MethodDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", inputType: isSet(object.inputType) ? String(object.inputType) : "", outputType: isSet(object.outputType) ? String(object.outputType) : "", options: isSet(object.options) ? MethodOptions.fromJSON(object.options) : undefined, clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false, serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false, }; }, toJSON(message: MethodDescriptorProto): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.inputType !== undefined && (obj.inputType = message.inputType); message.outputType !== undefined && (obj.outputType = message.outputType); message.options !== undefined && (obj.options = message.options ? MethodOptions.toJSON(message.options) : undefined); message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming); message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming); return obj; }, }; function createBaseFileOptions(): FileOptions { return { javaPackage: "", javaOuterClassname: "", javaMultipleFiles: false, javaGenerateEqualsAndHash: false, javaStringCheckUtf8: false, optimizeFor: 1, goPackage: "", ccGenericServices: false, javaGenericServices: false, pyGenericServices: false, phpGenericServices: false, deprecated: false, ccEnableArenas: false, objcClassPrefix: "", csharpNamespace: "", swiftPrefix: "", phpClassPrefix: "", phpNamespace: "", phpMetadataNamespace: "", rubyPackage: "", uninterpretedOption: [], }; } export const FileOptions = { fromJSON(object: any): FileOptions { return { javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "", javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "", javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false, javaGenerateEqualsAndHash: isSet(object.javaGenerateEqualsAndHash) ? Boolean(object.javaGenerateEqualsAndHash) : false, javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false, optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : 1, goPackage: isSet(object.goPackage) ? String(object.goPackage) : "", ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false, javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false, pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false, phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false, objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "", csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "", swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "", phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "", phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: FileOptions): unknown { const obj: any = {}; message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage); message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname); message.javaMultipleFiles !== undefined && (obj.javaMultipleFiles = message.javaMultipleFiles); message.javaGenerateEqualsAndHash !== undefined && (obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash); message.javaStringCheckUtf8 !== undefined && (obj.javaStringCheckUtf8 = message.javaStringCheckUtf8); message.optimizeFor !== undefined && (obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor)); message.goPackage !== undefined && (obj.goPackage = message.goPackage); message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices); message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices); message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices); message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices); message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas); message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix); message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace); message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix); message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix); message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace); message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace); message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseMessageOptions(): MessageOptions { return { messageSetWireFormat: false, noStandardDescriptorAccessor: false, deprecated: false, mapEntry: false, uninterpretedOption: [], }; } export const MessageOptions = { fromJSON(object: any): MessageOptions { return { messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false, noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor) ? Boolean(object.noStandardDescriptorAccessor) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: MessageOptions): unknown { const obj: any = {}; message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat); message.noStandardDescriptorAccessor !== undefined && (obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor); message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseFieldOptions(): FieldOptions { return { ctype: 0, packed: false, jstype: 0, lazy: false, unverifiedLazy: false, deprecated: false, weak: false, uninterpretedOption: [], }; } export const FieldOptions = { fromJSON(object: any): FieldOptions { return { ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0, packed: isSet(object.packed) ? Boolean(object.packed) : false, jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0, lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, weak: isSet(object.weak) ? Boolean(object.weak) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: FieldOptions): unknown { const obj: any = {}; message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); message.packed !== undefined && (obj.packed = message.packed); message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); message.lazy !== undefined && (obj.lazy = message.lazy); message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy); message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.weak !== undefined && (obj.weak = message.weak); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseOneofOptions(): OneofOptions { return { uninterpretedOption: [] }; } export const OneofOptions = { fromJSON(object: any): OneofOptions { return { uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: OneofOptions): unknown { const obj: any = {}; if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseEnumOptions(): EnumOptions { return { allowAlias: false, deprecated: false, uninterpretedOption: [] }; } export const EnumOptions = { fromJSON(object: any): EnumOptions { return { allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: EnumOptions): unknown { const obj: any = {}; message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias); message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseEnumValueOptions(): EnumValueOptions { return { deprecated: false, uninterpretedOption: [] }; } export const EnumValueOptions = { fromJSON(object: any): EnumValueOptions { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: EnumValueOptions): unknown { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseServiceOptions(): ServiceOptions { return { deprecated: false, uninterpretedOption: [] }; } export const ServiceOptions = { fromJSON(object: any): ServiceOptions { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: ServiceOptions): unknown { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseMethodOptions(): MethodOptions { return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] }; } export const MethodOptions = { fromJSON(object: any): MethodOptions { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, idempotencyLevel: isSet(object.idempotencyLevel) ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) : 0, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: MethodOptions): unknown { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.idempotencyLevel !== undefined && (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel)); if (message.uninterpretedOption) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined); } else { obj.uninterpretedOption = []; } return obj; }, }; function createBaseUninterpretedOption(): UninterpretedOption { return { name: [], identifierValue: "", positiveIntValue: "0", negativeIntValue: "0", doubleValue: 0, stringValue: Buffer.alloc(0), aggregateValue: "", }; } export const UninterpretedOption = { fromJSON(object: any): UninterpretedOption { return { name: Array.isArray(object?.name) ? object.name.map((e: any) => UninterpretedOption_NamePart.fromJSON(e)) : [], identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "", positiveIntValue: isSet(object.positiveIntValue) ? String(object.positiveIntValue) : "0", negativeIntValue: isSet(object.negativeIntValue) ? String(object.negativeIntValue) : "0", doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0, stringValue: isSet(object.stringValue) ? Buffer.from(bytesFromBase64(object.stringValue)) : Buffer.alloc(0), aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "", }; }, toJSON(message: UninterpretedOption): unknown { const obj: any = {}; if (message.name) { obj.name = message.name.map((e) => e ? UninterpretedOption_NamePart.toJSON(e) : undefined); } else { obj.name = []; } message.identifierValue !== undefined && (obj.identifierValue = message.identifierValue); message.positiveIntValue !== undefined && (obj.positiveIntValue = message.positiveIntValue); message.negativeIntValue !== undefined && (obj.negativeIntValue = message.negativeIntValue); message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue); message.stringValue !== undefined && (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : Buffer.alloc(0))); message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue); return obj; }, }; function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart { return { namePart: "", isExtension: false }; } export const UninterpretedOption_NamePart = { fromJSON(object: any): UninterpretedOption_NamePart { return { namePart: isSet(object.namePart) ? String(object.namePart) : "", isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false, }; }, toJSON(message: UninterpretedOption_NamePart): unknown { const obj: any = {}; message.namePart !== undefined && (obj.namePart = message.namePart); message.isExtension !== undefined && (obj.isExtension = message.isExtension); return obj; }, }; function createBaseSourceCodeInfo(): SourceCodeInfo { return { location: [] }; } export const SourceCodeInfo = { fromJSON(object: any): SourceCodeInfo { return { location: Array.isArray(object?.location) ? object.location.map((e: any) => SourceCodeInfo_Location.fromJSON(e)) : [], }; }, toJSON(message: SourceCodeInfo): unknown { const obj: any = {}; if (message.location) { obj.location = message.location.map((e) => e ? SourceCodeInfo_Location.toJSON(e) : undefined); } else { obj.location = []; } return obj; }, }; function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location { return { path: [], span: [], leadingComments: "", trailingComments: "", leadingDetachedComments: [] }; } export const SourceCodeInfo_Location = { fromJSON(object: any): SourceCodeInfo_Location { return { path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], span: Array.isArray(object?.span) ? object.span.map((e: any) => Number(e)) : [], leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "", trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "", leadingDetachedComments: Array.isArray(object?.leadingDetachedComments) ? object.leadingDetachedComments.map((e: any) => String(e)) : [], }; }, toJSON(message: SourceCodeInfo_Location): unknown { const obj: any = {}; if (message.path) { obj.path = message.path.map((e) => Math.round(e)); } else { obj.path = []; } if (message.span) { obj.span = message.span.map((e) => Math.round(e)); } else { obj.span = []; } message.leadingComments !== undefined && (obj.leadingComments = message.leadingComments); message.trailingComments !== undefined && (obj.trailingComments = message.trailingComments); if (message.leadingDetachedComments) { obj.leadingDetachedComments = message.leadingDetachedComments.map((e) => e); } else { obj.leadingDetachedComments = []; } return obj; }, }; function createBaseGeneratedCodeInfo(): GeneratedCodeInfo { return { annotation: [] }; } export const GeneratedCodeInfo = { fromJSON(object: any): GeneratedCodeInfo { return { annotation: Array.isArray(object?.annotation) ? object.annotation.map((e: any) => GeneratedCodeInfo_Annotation.fromJSON(e)) : [], }; }, toJSON(message: GeneratedCodeInfo): unknown { const obj: any = {}; if (message.annotation) { obj.annotation = message.annotation.map((e) => e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined); } else { obj.annotation = []; } return obj; }, }; function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation { return { path: [], sourceFile: "", begin: 0, end: 0 }; } export const GeneratedCodeInfo_Annotation = { fromJSON(object: any): GeneratedCodeInfo_Annotation { return { path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", begin: isSet(object.begin) ? Number(object.begin) : 0, end: isSet(object.end) ? Number(object.end) : 0, }; }, toJSON(message: GeneratedCodeInfo_Annotation): unknown { const obj: any = {}; if (message.path) { obj.path = message.path.map((e) => Math.round(e)); } else { obj.path = []; } message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile); message.begin !== undefined && (obj.begin = Math.round(message.begin)); message.end !== undefined && (obj.end = Math.round(message.end)); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } timestamp.ts000066400000000000000000000117531455126531500353740ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/google/protobuf/* eslint-disable */ /** * A Timestamp represents a point in time independent of any time zone or local * calendar, encoded as a count of seconds and fractions of seconds at * nanosecond resolution. The count is relative to an epoch at UTC midnight on * January 1, 1970, in the proleptic Gregorian calendar which extends the * Gregorian calendar backwards to year one. * * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap * second table is needed for interpretation, using a [24-hour linear * smear](https://developers.google.com/time/smear). * * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By * restricting to that range, we ensure that we can convert to and from [RFC * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * * Example 1: Compute Timestamp from POSIX `time()`. * * Timestamp timestamp; * timestamp.set_seconds(time(NULL)); * timestamp.set_nanos(0); * * Example 2: Compute Timestamp from POSIX `gettimeofday()`. * * struct timeval tv; * gettimeofday(&tv, NULL); * * Timestamp timestamp; * timestamp.set_seconds(tv.tv_sec); * timestamp.set_nanos(tv.tv_usec * 1000); * * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. * * FILETIME ft; * GetSystemTimeAsFileTime(&ft); * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; * * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. * Timestamp timestamp; * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); * * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. * * long millis = System.currentTimeMillis(); * * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * Example 5: Compute Timestamp from Java `Instant.now()`. * * Instant now = Instant.now(); * * Timestamp timestamp = * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) * .setNanos(now.getNano()).build(); * * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() * * # JSON Mapping * * In JSON format, the Timestamp type is encoded as a string in the * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" * where {year} is always expressed using four digits while {month}, {day}, * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone * is required. A proto3 JSON serializer should always use UTC (as indicated by * "Z") when printing the Timestamp type and a proto3 JSON parser should be * able to accept both UTC and other timezones (as indicated by an offset). * * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the * standard * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted * to this format using * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use * the Joda Time's [`ISODateTimeFormat.dateTime()`]( * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { /** * Represents seconds of UTC time since Unix epoch * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to * 9999-12-31T23:59:59Z inclusive. */ seconds: string; /** * Non-negative fractions of a second at nanosecond resolution. Negative * second values with fractions must still have non-negative nanos values * that count forward in time. Must be from 0 to 999,999,999 * inclusive. */ nanos: number; } function createBaseTimestamp(): Timestamp { return { seconds: "0", nanos: 0 }; } export const Timestamp = { fromJSON(object: any): Timestamp { return { seconds: isSet(object.seconds) ? String(object.seconds) : "0", nanos: isSet(object.nanos) ? Number(object.nanos) : 0, }; }, toJSON(message: Timestamp): unknown { const obj: any = {}; message.seconds !== undefined && (obj.seconds = message.seconds); message.nanos !== undefined && (obj.nanos = Math.round(message.nanos)); return obj; }, }; function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/sigstore_bundle.ts000066400000000000000000000150071455126531500335200ustar00rootroot00000000000000/* eslint-disable */ import { Envelope } from "./envelope"; import { MessageSignature, PublicKeyIdentifier, RFC3161SignedTimestamp, X509CertificateChain } from "./sigstore_common"; import { TransparencyLogEntry } from "./sigstore_rekor"; /** * Various timestamped counter signatures over the artifacts signature. * Currently only RFC3161 signatures are provided. More formats may be added * in the future. */ export interface TimestampVerificationData { /** * A list of RFC3161 signed timestamps provided by the user. * This can be used when the entry has not been stored on a * transparency log, or in conjunction for a stronger trust model. * Clients MUST verify the hashed message in the message imprint * against the signature in the bundle. */ rfc3161Timestamps: RFC3161SignedTimestamp[]; } /** * VerificationMaterial captures details on the materials used to verify * signatures. */ export interface VerificationMaterial { content?: | { $case: "publicKey"; publicKey: PublicKeyIdentifier } | { $case: "x509CertificateChain"; x509CertificateChain: X509CertificateChain }; /** * An inclusion proof and an optional signed timestamp from the log. * Client verification libraries MAY provide an option to support v0.1 * bundles for backwards compatibility, which may contain an inclusion * promise and not an inclusion proof. In this case, the client MUST * validate the promise. * Verifiers SHOULD NOT allow v0.1 bundles if they're used in an * ecosystem which never produced them. */ tlogEntries: TransparencyLogEntry[]; /** * Timestamp may also come from * tlog_entries.inclusion_promise.signed_entry_timestamp. */ timestampVerificationData: TimestampVerificationData | undefined; } export interface Bundle { /** * MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 * or application/vnd.dev.sigstore.bundle+json;version=0.2 * when encoded as JSON. */ mediaType: string; /** * When a signer is identified by a X.509 certificate, a verifier MUST * verify that the signature was computed at the time the certificate * was valid as described in the Sigstore client spec: "Verification * using a Bundle". * */ verificationMaterial: VerificationMaterial | undefined; content?: { $case: "messageSignature"; messageSignature: MessageSignature } | { $case: "dsseEnvelope"; dsseEnvelope: Envelope; }; } function createBaseTimestampVerificationData(): TimestampVerificationData { return { rfc3161Timestamps: [] }; } export const TimestampVerificationData = { fromJSON(object: any): TimestampVerificationData { return { rfc3161Timestamps: Array.isArray(object?.rfc3161Timestamps) ? object.rfc3161Timestamps.map((e: any) => RFC3161SignedTimestamp.fromJSON(e)) : [], }; }, toJSON(message: TimestampVerificationData): unknown { const obj: any = {}; if (message.rfc3161Timestamps) { obj.rfc3161Timestamps = message.rfc3161Timestamps.map((e) => e ? RFC3161SignedTimestamp.toJSON(e) : undefined); } else { obj.rfc3161Timestamps = []; } return obj; }, }; function createBaseVerificationMaterial(): VerificationMaterial { return { content: undefined, tlogEntries: [], timestampVerificationData: undefined }; } export const VerificationMaterial = { fromJSON(object: any): VerificationMaterial { return { content: isSet(object.publicKey) ? { $case: "publicKey", publicKey: PublicKeyIdentifier.fromJSON(object.publicKey) } : isSet(object.x509CertificateChain) ? { $case: "x509CertificateChain", x509CertificateChain: X509CertificateChain.fromJSON(object.x509CertificateChain), } : undefined, tlogEntries: Array.isArray(object?.tlogEntries) ? object.tlogEntries.map((e: any) => TransparencyLogEntry.fromJSON(e)) : [], timestampVerificationData: isSet(object.timestampVerificationData) ? TimestampVerificationData.fromJSON(object.timestampVerificationData) : undefined, }; }, toJSON(message: VerificationMaterial): unknown { const obj: any = {}; message.content?.$case === "publicKey" && (obj.publicKey = message.content?.publicKey ? PublicKeyIdentifier.toJSON(message.content?.publicKey) : undefined); message.content?.$case === "x509CertificateChain" && (obj.x509CertificateChain = message.content?.x509CertificateChain ? X509CertificateChain.toJSON(message.content?.x509CertificateChain) : undefined); if (message.tlogEntries) { obj.tlogEntries = message.tlogEntries.map((e) => e ? TransparencyLogEntry.toJSON(e) : undefined); } else { obj.tlogEntries = []; } message.timestampVerificationData !== undefined && (obj.timestampVerificationData = message.timestampVerificationData ? TimestampVerificationData.toJSON(message.timestampVerificationData) : undefined); return obj; }, }; function createBaseBundle(): Bundle { return { mediaType: "", verificationMaterial: undefined, content: undefined }; } export const Bundle = { fromJSON(object: any): Bundle { return { mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", verificationMaterial: isSet(object.verificationMaterial) ? VerificationMaterial.fromJSON(object.verificationMaterial) : undefined, content: isSet(object.messageSignature) ? { $case: "messageSignature", messageSignature: MessageSignature.fromJSON(object.messageSignature) } : isSet(object.dsseEnvelope) ? { $case: "dsseEnvelope", dsseEnvelope: Envelope.fromJSON(object.dsseEnvelope) } : undefined, }; }, toJSON(message: Bundle): unknown { const obj: any = {}; message.mediaType !== undefined && (obj.mediaType = message.mediaType); message.verificationMaterial !== undefined && (obj.verificationMaterial = message.verificationMaterial ? VerificationMaterial.toJSON(message.verificationMaterial) : undefined); message.content?.$case === "messageSignature" && (obj.messageSignature = message.content?.messageSignature ? MessageSignature.toJSON(message.content?.messageSignature) : undefined); message.content?.$case === "dsseEnvelope" && (obj.dsseEnvelope = message.content?.dsseEnvelope ? Envelope.toJSON(message.content?.dsseEnvelope) : undefined); return obj; }, }; function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/sigstore_common.ts000066400000000000000000000477151455126531500335520ustar00rootroot00000000000000/* eslint-disable */ import { Timestamp } from "./google/protobuf/timestamp"; /** * Only a subset of the secure hash standard algorithms are supported. * See for more * details. * UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force * any proto JSON serialization to emit the used hash algorithm, as default * option is to *omit* the default value of an enum (which is the first * value, represented by '0'. */ export enum HashAlgorithm { HASH_ALGORITHM_UNSPECIFIED = 0, SHA2_256 = 1, } export function hashAlgorithmFromJSON(object: any): HashAlgorithm { switch (object) { case 0: case "HASH_ALGORITHM_UNSPECIFIED": return HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED; case 1: case "SHA2_256": return HashAlgorithm.SHA2_256; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); } } export function hashAlgorithmToJSON(object: HashAlgorithm): string { switch (object) { case HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED: return "HASH_ALGORITHM_UNSPECIFIED"; case HashAlgorithm.SHA2_256: return "SHA2_256"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); } } /** * Details of a specific public key, capturing the the key encoding method, * and signature algorithm. * To avoid the possibility of contradicting formats such as PKCS1 with * ED25519 the valid permutations are listed as a linear set instead of a * cartesian set (i.e one combined variable instead of two, one for encoding * and one for the signature algorithm). */ export enum PublicKeyDetails { PUBLIC_KEY_DETAILS_UNSPECIFIED = 0, /** PKCS1_RSA_PKCS1V5 - RSA */ PKCS1_RSA_PKCS1V5 = 1, /** PKCS1_RSA_PSS - See RFC8017 */ PKCS1_RSA_PSS = 2, PKIX_RSA_PKCS1V5 = 3, PKIX_RSA_PSS = 4, /** PKIX_ECDSA_P256_SHA_256 - ECDSA */ PKIX_ECDSA_P256_SHA_256 = 5, /** PKIX_ECDSA_P256_HMAC_SHA_256 - See RFC6979 */ PKIX_ECDSA_P256_HMAC_SHA_256 = 6, /** PKIX_ED25519 - Ed 25519 */ PKIX_ED25519 = 7, } export function publicKeyDetailsFromJSON(object: any): PublicKeyDetails { switch (object) { case 0: case "PUBLIC_KEY_DETAILS_UNSPECIFIED": return PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED; case 1: case "PKCS1_RSA_PKCS1V5": return PublicKeyDetails.PKCS1_RSA_PKCS1V5; case 2: case "PKCS1_RSA_PSS": return PublicKeyDetails.PKCS1_RSA_PSS; case 3: case "PKIX_RSA_PKCS1V5": return PublicKeyDetails.PKIX_RSA_PKCS1V5; case 4: case "PKIX_RSA_PSS": return PublicKeyDetails.PKIX_RSA_PSS; case 5: case "PKIX_ECDSA_P256_SHA_256": return PublicKeyDetails.PKIX_ECDSA_P256_SHA_256; case 6: case "PKIX_ECDSA_P256_HMAC_SHA_256": return PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256; case 7: case "PKIX_ED25519": return PublicKeyDetails.PKIX_ED25519; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); } } export function publicKeyDetailsToJSON(object: PublicKeyDetails): string { switch (object) { case PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED: return "PUBLIC_KEY_DETAILS_UNSPECIFIED"; case PublicKeyDetails.PKCS1_RSA_PKCS1V5: return "PKCS1_RSA_PKCS1V5"; case PublicKeyDetails.PKCS1_RSA_PSS: return "PKCS1_RSA_PSS"; case PublicKeyDetails.PKIX_RSA_PKCS1V5: return "PKIX_RSA_PKCS1V5"; case PublicKeyDetails.PKIX_RSA_PSS: return "PKIX_RSA_PSS"; case PublicKeyDetails.PKIX_ECDSA_P256_SHA_256: return "PKIX_ECDSA_P256_SHA_256"; case PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256: return "PKIX_ECDSA_P256_HMAC_SHA_256"; case PublicKeyDetails.PKIX_ED25519: return "PKIX_ED25519"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); } } export enum SubjectAlternativeNameType { SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED = 0, EMAIL = 1, URI = 2, /** * OTHER_NAME - OID 1.3.6.1.4.1.57264.1.7 * See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san * for more details. */ OTHER_NAME = 3, } export function subjectAlternativeNameTypeFromJSON(object: any): SubjectAlternativeNameType { switch (object) { case 0: case "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED": return SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED; case 1: case "EMAIL": return SubjectAlternativeNameType.EMAIL; case 2: case "URI": return SubjectAlternativeNameType.URI; case 3: case "OTHER_NAME": return SubjectAlternativeNameType.OTHER_NAME; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); } } export function subjectAlternativeNameTypeToJSON(object: SubjectAlternativeNameType): string { switch (object) { case SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED: return "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"; case SubjectAlternativeNameType.EMAIL: return "EMAIL"; case SubjectAlternativeNameType.URI: return "URI"; case SubjectAlternativeNameType.OTHER_NAME: return "OTHER_NAME"; default: throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); } } /** * HashOutput captures a digest of a 'message' (generic octet sequence) * and the corresponding hash algorithm used. */ export interface HashOutput { algorithm: HashAlgorithm; /** * This is the raw octets of the message digest as computed by * the hash algorithm. */ digest: Buffer; } /** MessageSignature stores the computed signature over a message. */ export interface MessageSignature { /** * Message digest can be used to identify the artifact. * Clients MUST NOT attempt to use this digest to verify the associated * signature; it is intended solely for identification. */ messageDigest: | HashOutput | undefined; /** * The raw bytes as returned from the signature algorithm. * The signature algorithm (and so the format of the signature bytes) * are determined by the contents of the 'verification_material', * either a key-pair or a certificate. If using a certificate, the * certificate contains the required information on the signature * algorithm. * When using a key pair, the algorithm MUST be part of the public * key, which MUST be communicated out-of-band. */ signature: Buffer; } /** LogId captures the identity of a transparency log. */ export interface LogId { /** * The unique id of the log, represented as the SHA-256 hash * of the log's public key, calculated over the DER encoding * of the key represented as SubjectPublicKeyInfo. * See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 */ keyId: Buffer; } /** This message holds a RFC 3161 timestamp. */ export interface RFC3161SignedTimestamp { /** * Signed timestamp is the DER encoded TimeStampResponse. * See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2 */ signedTimestamp: Buffer; } export interface PublicKey { /** * DER-encoded public key, encoding method is specified by the * key_details attribute. */ rawBytes?: | Buffer | undefined; /** Key encoding and signature algorithm to use for this key. */ keyDetails: PublicKeyDetails; /** Optional validity period for this key, *inclusive* of the endpoints. */ validFor?: TimeRange | undefined; } /** * PublicKeyIdentifier can be used to identify an (out of band) delivered * key, to verify a signature. */ export interface PublicKeyIdentifier { /** * Optional unauthenticated hint on which key to use. * The format of the hint must be agreed upon out of band by the * signer and the verifiers, and so is not subject to this * specification. * Example use-case is to specify the public key to use, from a * trusted key-ring. * Implementors are RECOMMENDED to derive the value from the public * key as described in RFC 6962. * See: */ hint: string; } /** An ASN.1 OBJECT IDENTIFIER */ export interface ObjectIdentifier { id: number[]; } /** An OID and the corresponding (byte) value. */ export interface ObjectIdentifierValuePair { oid: ObjectIdentifier | undefined; value: Buffer; } export interface DistinguishedName { organization: string; commonName: string; } export interface X509Certificate { /** DER-encoded X.509 certificate. */ rawBytes: Buffer; } export interface SubjectAlternativeName { type: SubjectAlternativeNameType; identity?: { $case: "regexp"; regexp: string } | { $case: "value"; value: string }; } /** A chain of X.509 certificates. */ export interface X509CertificateChain { /** * The chain of certificates, with indices 0 to n. * The first certificate in the array must be the leaf * certificate used for signing. * * Signers MUST NOT include their root CA certificates in their embedded * certificate chains, and SHOULD NOT include intermediate CA * certificates that appear in independent roots of trust. * * Verifiers MUST validate the chain carefully to ensure that it chains * up to a root CA certificate that they trust, regardless of whether * the chain includes additional intermediate/root CA certificates. * Verifiers MAY enforce additional constraints, such as requiring that * all intermediate CA certificates appear in an independent root of * trust. * * Verifiers SHOULD handle old or non-complying bundles that have * additional intermediate/root CA certificates. */ certificates: X509Certificate[]; } /** * The time range is closed and includes both the start and end times, * (i.e., [start, end]). * End is optional to be able to capture a period that has started but * has no known end. */ export interface TimeRange { start: Date | undefined; end?: Date | undefined; } function createBaseHashOutput(): HashOutput { return { algorithm: 0, digest: Buffer.alloc(0) }; } export const HashOutput = { fromJSON(object: any): HashOutput { return { algorithm: isSet(object.algorithm) ? hashAlgorithmFromJSON(object.algorithm) : 0, digest: isSet(object.digest) ? Buffer.from(bytesFromBase64(object.digest)) : Buffer.alloc(0), }; }, toJSON(message: HashOutput): unknown { const obj: any = {}; message.algorithm !== undefined && (obj.algorithm = hashAlgorithmToJSON(message.algorithm)); message.digest !== undefined && (obj.digest = base64FromBytes(message.digest !== undefined ? message.digest : Buffer.alloc(0))); return obj; }, }; function createBaseMessageSignature(): MessageSignature { return { messageDigest: undefined, signature: Buffer.alloc(0) }; } export const MessageSignature = { fromJSON(object: any): MessageSignature { return { messageDigest: isSet(object.messageDigest) ? HashOutput.fromJSON(object.messageDigest) : undefined, signature: isSet(object.signature) ? Buffer.from(bytesFromBase64(object.signature)) : Buffer.alloc(0), }; }, toJSON(message: MessageSignature): unknown { const obj: any = {}; message.messageDigest !== undefined && (obj.messageDigest = message.messageDigest ? HashOutput.toJSON(message.messageDigest) : undefined); message.signature !== undefined && (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : Buffer.alloc(0))); return obj; }, }; function createBaseLogId(): LogId { return { keyId: Buffer.alloc(0) }; } export const LogId = { fromJSON(object: any): LogId { return { keyId: isSet(object.keyId) ? Buffer.from(bytesFromBase64(object.keyId)) : Buffer.alloc(0) }; }, toJSON(message: LogId): unknown { const obj: any = {}; message.keyId !== undefined && (obj.keyId = base64FromBytes(message.keyId !== undefined ? message.keyId : Buffer.alloc(0))); return obj; }, }; function createBaseRFC3161SignedTimestamp(): RFC3161SignedTimestamp { return { signedTimestamp: Buffer.alloc(0) }; } export const RFC3161SignedTimestamp = { fromJSON(object: any): RFC3161SignedTimestamp { return { signedTimestamp: isSet(object.signedTimestamp) ? Buffer.from(bytesFromBase64(object.signedTimestamp)) : Buffer.alloc(0), }; }, toJSON(message: RFC3161SignedTimestamp): unknown { const obj: any = {}; message.signedTimestamp !== undefined && (obj.signedTimestamp = base64FromBytes( message.signedTimestamp !== undefined ? message.signedTimestamp : Buffer.alloc(0), )); return obj; }, }; function createBasePublicKey(): PublicKey { return { rawBytes: undefined, keyDetails: 0, validFor: undefined }; } export const PublicKey = { fromJSON(object: any): PublicKey { return { rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : undefined, keyDetails: isSet(object.keyDetails) ? publicKeyDetailsFromJSON(object.keyDetails) : 0, validFor: isSet(object.validFor) ? TimeRange.fromJSON(object.validFor) : undefined, }; }, toJSON(message: PublicKey): unknown { const obj: any = {}; message.rawBytes !== undefined && (obj.rawBytes = message.rawBytes !== undefined ? base64FromBytes(message.rawBytes) : undefined); message.keyDetails !== undefined && (obj.keyDetails = publicKeyDetailsToJSON(message.keyDetails)); message.validFor !== undefined && (obj.validFor = message.validFor ? TimeRange.toJSON(message.validFor) : undefined); return obj; }, }; function createBasePublicKeyIdentifier(): PublicKeyIdentifier { return { hint: "" }; } export const PublicKeyIdentifier = { fromJSON(object: any): PublicKeyIdentifier { return { hint: isSet(object.hint) ? String(object.hint) : "" }; }, toJSON(message: PublicKeyIdentifier): unknown { const obj: any = {}; message.hint !== undefined && (obj.hint = message.hint); return obj; }, }; function createBaseObjectIdentifier(): ObjectIdentifier { return { id: [] }; } export const ObjectIdentifier = { fromJSON(object: any): ObjectIdentifier { return { id: Array.isArray(object?.id) ? object.id.map((e: any) => Number(e)) : [] }; }, toJSON(message: ObjectIdentifier): unknown { const obj: any = {}; if (message.id) { obj.id = message.id.map((e) => Math.round(e)); } else { obj.id = []; } return obj; }, }; function createBaseObjectIdentifierValuePair(): ObjectIdentifierValuePair { return { oid: undefined, value: Buffer.alloc(0) }; } export const ObjectIdentifierValuePair = { fromJSON(object: any): ObjectIdentifierValuePair { return { oid: isSet(object.oid) ? ObjectIdentifier.fromJSON(object.oid) : undefined, value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), }; }, toJSON(message: ObjectIdentifierValuePair): unknown { const obj: any = {}; message.oid !== undefined && (obj.oid = message.oid ? ObjectIdentifier.toJSON(message.oid) : undefined); message.value !== undefined && (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); return obj; }, }; function createBaseDistinguishedName(): DistinguishedName { return { organization: "", commonName: "" }; } export const DistinguishedName = { fromJSON(object: any): DistinguishedName { return { organization: isSet(object.organization) ? String(object.organization) : "", commonName: isSet(object.commonName) ? String(object.commonName) : "", }; }, toJSON(message: DistinguishedName): unknown { const obj: any = {}; message.organization !== undefined && (obj.organization = message.organization); message.commonName !== undefined && (obj.commonName = message.commonName); return obj; }, }; function createBaseX509Certificate(): X509Certificate { return { rawBytes: Buffer.alloc(0) }; } export const X509Certificate = { fromJSON(object: any): X509Certificate { return { rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : Buffer.alloc(0) }; }, toJSON(message: X509Certificate): unknown { const obj: any = {}; message.rawBytes !== undefined && (obj.rawBytes = base64FromBytes(message.rawBytes !== undefined ? message.rawBytes : Buffer.alloc(0))); return obj; }, }; function createBaseSubjectAlternativeName(): SubjectAlternativeName { return { type: 0, identity: undefined }; } export const SubjectAlternativeName = { fromJSON(object: any): SubjectAlternativeName { return { type: isSet(object.type) ? subjectAlternativeNameTypeFromJSON(object.type) : 0, identity: isSet(object.regexp) ? { $case: "regexp", regexp: String(object.regexp) } : isSet(object.value) ? { $case: "value", value: String(object.value) } : undefined, }; }, toJSON(message: SubjectAlternativeName): unknown { const obj: any = {}; message.type !== undefined && (obj.type = subjectAlternativeNameTypeToJSON(message.type)); message.identity?.$case === "regexp" && (obj.regexp = message.identity?.regexp); message.identity?.$case === "value" && (obj.value = message.identity?.value); return obj; }, }; function createBaseX509CertificateChain(): X509CertificateChain { return { certificates: [] }; } export const X509CertificateChain = { fromJSON(object: any): X509CertificateChain { return { certificates: Array.isArray(object?.certificates) ? object.certificates.map((e: any) => X509Certificate.fromJSON(e)) : [], }; }, toJSON(message: X509CertificateChain): unknown { const obj: any = {}; if (message.certificates) { obj.certificates = message.certificates.map((e) => e ? X509Certificate.toJSON(e) : undefined); } else { obj.certificates = []; } return obj; }, }; function createBaseTimeRange(): TimeRange { return { start: undefined, end: undefined }; } export const TimeRange = { fromJSON(object: any): TimeRange { return { start: isSet(object.start) ? fromJsonTimestamp(object.start) : undefined, end: isSet(object.end) ? fromJsonTimestamp(object.end) : undefined, }; }, toJSON(message: TimeRange): unknown { const obj: any = {}; message.start !== undefined && (obj.start = message.start.toISOString()); message.end !== undefined && (obj.end = message.end.toISOString()); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function fromTimestamp(t: Timestamp): Date { let millis = Number(t.seconds) * 1_000; millis += t.nanos / 1_000_000; return new Date(millis); } function fromJsonTimestamp(o: any): Date { if (o instanceof Date) { return o; } else if (typeof o === "string") { return new Date(o); } else { return fromTimestamp(Timestamp.fromJSON(o)); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/sigstore_rekor.ts000066400000000000000000000271731455126531500334000ustar00rootroot00000000000000/* eslint-disable */ import { LogId } from "./sigstore_common"; /** KindVersion contains the entry's kind and api version. */ export interface KindVersion { /** * Kind is the type of entry being stored in the log. * See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types */ kind: string; /** The specific api version of the type. */ version: string; } /** * The checkpoint contains a signature of the tree head (root hash), * size of the tree, the transparency log's unique identifier (log ID), * hostname and the current time. * The result is a string, the format is described here * https://github.com/transparency-dev/formats/blob/main/log/README.md * The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 * The signature has the same format as * InclusionPromise.signed_entry_timestamp. See below for more details. */ export interface Checkpoint { envelope: string; } /** * InclusionProof is the proof returned from the transparency log. Can * be used for offline or online verification against the log. */ export interface InclusionProof { /** The index of the entry in the tree it was written to. */ logIndex: string; /** * The hash digest stored at the root of the merkle tree at the time * the proof was generated. */ rootHash: Buffer; /** The size of the merkle tree at the time the proof was generated. */ treeSize: string; /** * A list of hashes required to compute the inclusion proof, sorted * in order from leaf to root. * Note that leaf and root hashes are not included. * The root hash is available separately in this message, and the * leaf hash should be calculated by the client. */ hashes: Buffer[]; /** * Signature of the tree head, as of the time of this proof was * generated. See above info on 'Checkpoint' for more details. */ checkpoint: Checkpoint | undefined; } /** * The inclusion promise is calculated by Rekor. It's calculated as a * signature over a canonical JSON serialization of the persisted entry, the * log ID, log index and the integration timestamp. * See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 * The format of the signature depends on the transparency log's public key. * If the signature algorithm requires a hash function and/or a signature * scheme (e.g. RSA) those has to be retrieved out-of-band from the log's * operators, together with the public key. * This is used to verify the integration timestamp's value and that the log * has promised to include the entry. */ export interface InclusionPromise { signedEntryTimestamp: Buffer; } /** * TransparencyLogEntry captures all the details required from Rekor to * reconstruct an entry, given that the payload is provided via other means. * This type can easily be created from the existing response from Rekor. * Future iterations could rely on Rekor returning the minimal set of * attributes (excluding the payload) that are required for verifying the * inclusion promise. The inclusion promise (called SignedEntryTimestamp in * the response from Rekor) is similar to a Signed Certificate Timestamp * as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. */ export interface TransparencyLogEntry { /** The global index of the entry, used when querying the log by index. */ logIndex: string; /** The unique identifier of the log. */ logId: | LogId | undefined; /** * The kind (type) and version of the object associated with this * entry. These values are required to construct the entry during * verification. */ kindVersion: | KindVersion | undefined; /** The UNIX timestamp from the log when the entry was persisted. */ integratedTime: string; /** * The inclusion promise/signed entry timestamp from the log. * Required for v0.1 bundles, and MUST be verified. * Optional for >= v0.2 bundles, and SHOULD be verified when present. * Also may be used as a signed timestamp. */ inclusionPromise: | InclusionPromise | undefined; /** * The inclusion proof can be used for offline or online verification * that the entry was appended to the log, and that the log has not been * altered. */ inclusionProof: | InclusionProof | undefined; /** * Optional. The canonicalized transparency log entry, used to * reconstruct the Signed Entry Timestamp (SET) during verification. * The contents of this field are the same as the `body` field in * a Rekor response, meaning that it does **not** include the "full" * canonicalized form (of log index, ID, etc.) which are * exposed as separate fields. The verifier is responsible for * combining the `canonicalized_body`, `log_index`, `log_id`, * and `integrated_time` into the payload that the SET's signature * is generated over. * This field is intended to be used in cases where the SET cannot be * produced determinisitically (e.g. inconsistent JSON field ordering, * differing whitespace, etc). * * If set, clients MUST verify that the signature referenced in the * `canonicalized_body` matches the signature provided in the * `Bundle.content`. * If not set, clients are responsible for constructing an equivalent * payload from other sources to verify the signature. */ canonicalizedBody: Buffer; } function createBaseKindVersion(): KindVersion { return { kind: "", version: "" }; } export const KindVersion = { fromJSON(object: any): KindVersion { return { kind: isSet(object.kind) ? String(object.kind) : "", version: isSet(object.version) ? String(object.version) : "", }; }, toJSON(message: KindVersion): unknown { const obj: any = {}; message.kind !== undefined && (obj.kind = message.kind); message.version !== undefined && (obj.version = message.version); return obj; }, }; function createBaseCheckpoint(): Checkpoint { return { envelope: "" }; } export const Checkpoint = { fromJSON(object: any): Checkpoint { return { envelope: isSet(object.envelope) ? String(object.envelope) : "" }; }, toJSON(message: Checkpoint): unknown { const obj: any = {}; message.envelope !== undefined && (obj.envelope = message.envelope); return obj; }, }; function createBaseInclusionProof(): InclusionProof { return { logIndex: "0", rootHash: Buffer.alloc(0), treeSize: "0", hashes: [], checkpoint: undefined }; } export const InclusionProof = { fromJSON(object: any): InclusionProof { return { logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", rootHash: isSet(object.rootHash) ? Buffer.from(bytesFromBase64(object.rootHash)) : Buffer.alloc(0), treeSize: isSet(object.treeSize) ? String(object.treeSize) : "0", hashes: Array.isArray(object?.hashes) ? object.hashes.map((e: any) => Buffer.from(bytesFromBase64(e))) : [], checkpoint: isSet(object.checkpoint) ? Checkpoint.fromJSON(object.checkpoint) : undefined, }; }, toJSON(message: InclusionProof): unknown { const obj: any = {}; message.logIndex !== undefined && (obj.logIndex = message.logIndex); message.rootHash !== undefined && (obj.rootHash = base64FromBytes(message.rootHash !== undefined ? message.rootHash : Buffer.alloc(0))); message.treeSize !== undefined && (obj.treeSize = message.treeSize); if (message.hashes) { obj.hashes = message.hashes.map((e) => base64FromBytes(e !== undefined ? e : Buffer.alloc(0))); } else { obj.hashes = []; } message.checkpoint !== undefined && (obj.checkpoint = message.checkpoint ? Checkpoint.toJSON(message.checkpoint) : undefined); return obj; }, }; function createBaseInclusionPromise(): InclusionPromise { return { signedEntryTimestamp: Buffer.alloc(0) }; } export const InclusionPromise = { fromJSON(object: any): InclusionPromise { return { signedEntryTimestamp: isSet(object.signedEntryTimestamp) ? Buffer.from(bytesFromBase64(object.signedEntryTimestamp)) : Buffer.alloc(0), }; }, toJSON(message: InclusionPromise): unknown { const obj: any = {}; message.signedEntryTimestamp !== undefined && (obj.signedEntryTimestamp = base64FromBytes( message.signedEntryTimestamp !== undefined ? message.signedEntryTimestamp : Buffer.alloc(0), )); return obj; }, }; function createBaseTransparencyLogEntry(): TransparencyLogEntry { return { logIndex: "0", logId: undefined, kindVersion: undefined, integratedTime: "0", inclusionPromise: undefined, inclusionProof: undefined, canonicalizedBody: Buffer.alloc(0), }; } export const TransparencyLogEntry = { fromJSON(object: any): TransparencyLogEntry { return { logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", logId: isSet(object.logId) ? LogId.fromJSON(object.logId) : undefined, kindVersion: isSet(object.kindVersion) ? KindVersion.fromJSON(object.kindVersion) : undefined, integratedTime: isSet(object.integratedTime) ? String(object.integratedTime) : "0", inclusionPromise: isSet(object.inclusionPromise) ? InclusionPromise.fromJSON(object.inclusionPromise) : undefined, inclusionProof: isSet(object.inclusionProof) ? InclusionProof.fromJSON(object.inclusionProof) : undefined, canonicalizedBody: isSet(object.canonicalizedBody) ? Buffer.from(bytesFromBase64(object.canonicalizedBody)) : Buffer.alloc(0), }; }, toJSON(message: TransparencyLogEntry): unknown { const obj: any = {}; message.logIndex !== undefined && (obj.logIndex = message.logIndex); message.logId !== undefined && (obj.logId = message.logId ? LogId.toJSON(message.logId) : undefined); message.kindVersion !== undefined && (obj.kindVersion = message.kindVersion ? KindVersion.toJSON(message.kindVersion) : undefined); message.integratedTime !== undefined && (obj.integratedTime = message.integratedTime); message.inclusionPromise !== undefined && (obj.inclusionPromise = message.inclusionPromise ? InclusionPromise.toJSON(message.inclusionPromise) : undefined); message.inclusionProof !== undefined && (obj.inclusionProof = message.inclusionProof ? InclusionProof.toJSON(message.inclusionProof) : undefined); message.canonicalizedBody !== undefined && (obj.canonicalizedBody = base64FromBytes( message.canonicalizedBody !== undefined ? message.canonicalizedBody : Buffer.alloc(0), )); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } sigstore_trustroot.ts000066400000000000000000000201231455126531500342500ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/* eslint-disable */ import { DistinguishedName, HashAlgorithm, hashAlgorithmFromJSON, hashAlgorithmToJSON, LogId, PublicKey, TimeRange, X509CertificateChain, } from "./sigstore_common"; /** * TransparencyLogInstance describes the immutable parameters from a * transparency log. * See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters * for more details. * The included parameters are the minimal set required to identify a log, * and verify an inclusion proof/promise. */ export interface TransparencyLogInstance { /** The base URL at which can be used to URLs for the client. */ baseUrl: string; /** The hash algorithm used for the Merkle Tree. */ hashAlgorithm: HashAlgorithm; /** * The public key used to verify signatures generated by the log. * This attribute contains the signature algorithm used by the log. */ publicKey: | PublicKey | undefined; /** The unique identifier for this transparency log. */ logId: LogId | undefined; } /** * CertificateAuthority enlists the information required to identify which * CA to use and perform signature verification. */ export interface CertificateAuthority { /** * The root certificate MUST be self-signed, and so the subject and * issuer are the same. */ subject: | DistinguishedName | undefined; /** The URI at which the CA can be accessed. */ uri: string; /** The certificate chain for this CA. */ certChain: | X509CertificateChain | undefined; /** * The time the *entire* chain was valid. This is at max the * longest interval when *all* certificates in the chain were valid, * but it MAY be shorter. Clients MUST check timestamps against *both* * the `valid_for` time range *and* the entire certificate chain. * * The TimeRange should be considered valid *inclusive* of the * endpoints. */ validFor: TimeRange | undefined; } /** * TrustedRoot describes the client's complete set of trusted entities. * How the TrustedRoot is populated is not specified, but can be a * combination of many sources such as TUF repositories, files on disk etc. * * The TrustedRoot is not meant to be used for any artifact verification, only * to capture the complete/global set of trusted verification materials. * When verifying an artifact, based on the artifact and policies, a selection * of keys/authorities are expected to be extracted and provided to the * verification function. This way the set of keys/authorities can be kept to * a minimal set by the policy to gain better control over what signatures * that are allowed. * * The embedded transparency logs, CT logs, CAs and TSAs MUST include any * previously used instance -- otherwise signatures made in the past cannot * be verified. * The currently used instances MUST NOT have their 'end' timestamp set in * their 'valid_for' attribute for easy identification. * All the listed instances SHOULD be sorted by the 'valid_for' in ascending * order, that is, the oldest instance first and the current instance last. */ export interface TrustedRoot { /** MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1 */ mediaType: string; /** A set of trusted Rekor servers. */ tlogs: TransparencyLogInstance[]; /** * A set of trusted certificate authorities (e.g Fulcio), and any * intermediate certificates they provide. * If a CA is issuing multiple intermediate certificate, each * combination shall be represented as separate chain. I.e, a single * root cert may appear in multiple chains but with different * intermediate and/or leaf certificates. * The certificates are intended to be used for verifying artifact * signatures. */ certificateAuthorities: CertificateAuthority[]; /** A set of trusted certificate transparency logs. */ ctlogs: TransparencyLogInstance[]; /** A set of trusted timestamping authorities. */ timestampAuthorities: CertificateAuthority[]; } function createBaseTransparencyLogInstance(): TransparencyLogInstance { return { baseUrl: "", hashAlgorithm: 0, publicKey: undefined, logId: undefined }; } export const TransparencyLogInstance = { fromJSON(object: any): TransparencyLogInstance { return { baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "", hashAlgorithm: isSet(object.hashAlgorithm) ? hashAlgorithmFromJSON(object.hashAlgorithm) : 0, publicKey: isSet(object.publicKey) ? PublicKey.fromJSON(object.publicKey) : undefined, logId: isSet(object.logId) ? LogId.fromJSON(object.logId) : undefined, }; }, toJSON(message: TransparencyLogInstance): unknown { const obj: any = {}; message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl); message.hashAlgorithm !== undefined && (obj.hashAlgorithm = hashAlgorithmToJSON(message.hashAlgorithm)); message.publicKey !== undefined && (obj.publicKey = message.publicKey ? PublicKey.toJSON(message.publicKey) : undefined); message.logId !== undefined && (obj.logId = message.logId ? LogId.toJSON(message.logId) : undefined); return obj; }, }; function createBaseCertificateAuthority(): CertificateAuthority { return { subject: undefined, uri: "", certChain: undefined, validFor: undefined }; } export const CertificateAuthority = { fromJSON(object: any): CertificateAuthority { return { subject: isSet(object.subject) ? DistinguishedName.fromJSON(object.subject) : undefined, uri: isSet(object.uri) ? String(object.uri) : "", certChain: isSet(object.certChain) ? X509CertificateChain.fromJSON(object.certChain) : undefined, validFor: isSet(object.validFor) ? TimeRange.fromJSON(object.validFor) : undefined, }; }, toJSON(message: CertificateAuthority): unknown { const obj: any = {}; message.subject !== undefined && (obj.subject = message.subject ? DistinguishedName.toJSON(message.subject) : undefined); message.uri !== undefined && (obj.uri = message.uri); message.certChain !== undefined && (obj.certChain = message.certChain ? X509CertificateChain.toJSON(message.certChain) : undefined); message.validFor !== undefined && (obj.validFor = message.validFor ? TimeRange.toJSON(message.validFor) : undefined); return obj; }, }; function createBaseTrustedRoot(): TrustedRoot { return { mediaType: "", tlogs: [], certificateAuthorities: [], ctlogs: [], timestampAuthorities: [] }; } export const TrustedRoot = { fromJSON(object: any): TrustedRoot { return { mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", tlogs: Array.isArray(object?.tlogs) ? object.tlogs.map((e: any) => TransparencyLogInstance.fromJSON(e)) : [], certificateAuthorities: Array.isArray(object?.certificateAuthorities) ? object.certificateAuthorities.map((e: any) => CertificateAuthority.fromJSON(e)) : [], ctlogs: Array.isArray(object?.ctlogs) ? object.ctlogs.map((e: any) => TransparencyLogInstance.fromJSON(e)) : [], timestampAuthorities: Array.isArray(object?.timestampAuthorities) ? object.timestampAuthorities.map((e: any) => CertificateAuthority.fromJSON(e)) : [], }; }, toJSON(message: TrustedRoot): unknown { const obj: any = {}; message.mediaType !== undefined && (obj.mediaType = message.mediaType); if (message.tlogs) { obj.tlogs = message.tlogs.map((e) => e ? TransparencyLogInstance.toJSON(e) : undefined); } else { obj.tlogs = []; } if (message.certificateAuthorities) { obj.certificateAuthorities = message.certificateAuthorities.map((e) => e ? CertificateAuthority.toJSON(e) : undefined ); } else { obj.certificateAuthorities = []; } if (message.ctlogs) { obj.ctlogs = message.ctlogs.map((e) => e ? TransparencyLogInstance.toJSON(e) : undefined); } else { obj.ctlogs = []; } if (message.timestampAuthorities) { obj.timestampAuthorities = message.timestampAuthorities.map((e) => e ? CertificateAuthority.toJSON(e) : undefined ); } else { obj.timestampAuthorities = []; } return obj; }, }; function isSet(value: any): boolean { return value !== null && value !== undefined; } sigstore_verification.ts000066400000000000000000000343471455126531500346620ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/__generated__/* eslint-disable */ import { Bundle } from "./sigstore_bundle"; import { ObjectIdentifierValuePair, PublicKey, SubjectAlternativeName } from "./sigstore_common"; import { TrustedRoot } from "./sigstore_trustroot"; /** The identity of a X.509 Certificate signer. */ export interface CertificateIdentity { /** The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) */ issuer: string; san: | SubjectAlternativeName | undefined; /** * An unordered list of OIDs that must be verified. * All OID/values provided in this list MUST exactly match against * the values in the certificate for verification to be successful. */ oids: ObjectIdentifierValuePair[]; } export interface CertificateIdentities { identities: CertificateIdentity[]; } export interface PublicKeyIdentities { publicKeys: PublicKey[]; } /** * A light-weight set of options/policies for identifying trusted signers, * used during verification of a single artifact. */ export interface ArtifactVerificationOptions { signers?: | { $case: "certificateIdentities"; certificateIdentities: CertificateIdentities } | { $case: "publicKeys"; publicKeys: PublicKeyIdentities }; /** * Optional options for artifact transparency log verification. * If none is provided, the default verification options are: * Threshold: 1 * Online verification: false * Disable: false */ tlogOptions?: | ArtifactVerificationOptions_TlogOptions | undefined; /** * Optional options for certificate transparency log verification. * If none is provided, the default verification options are: * Threshold: 1 * Detached SCT: false * Disable: false */ ctlogOptions?: | ArtifactVerificationOptions_CtlogOptions | undefined; /** * Optional options for certificate signed timestamp verification. * If none is provided, the default verification options are: * Threshold: 1 * Disable: false */ tsaOptions?: ArtifactVerificationOptions_TimestampAuthorityOptions | undefined; } export interface ArtifactVerificationOptions_TlogOptions { /** Number of transparency logs the entry must appear on. */ threshold: number; /** Perform an online inclusion proof. */ performOnlineVerification: boolean; /** Disable verification for transparency logs. */ disable: boolean; } export interface ArtifactVerificationOptions_CtlogOptions { /** * The number of ct transparency logs the certificate must * appear on. */ threshold: number; /** * Expect detached SCTs. * This is not supported right now as we can't capture an * detached SCT in the bundle. */ detachedSct: boolean; /** Disable ct transparency log verification */ disable: boolean; } export interface ArtifactVerificationOptions_TimestampAuthorityOptions { /** The number of signed timestamps that are expected. */ threshold: number; /** Disable signed timestamp verification. */ disable: boolean; } export interface Artifact { data?: { $case: "artifactUri"; artifactUri: string } | { $case: "artifact"; artifact: Buffer }; } /** * Input captures all that is needed to call the bundle verification method, * to verify a single artifact referenced by the bundle. */ export interface Input { /** * The verification materials provided during a bundle verification. * The running process is usually preloaded with a "global" * dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to * verifying an artifact (i.e a bundle), and/or based on current * policy, some selection is expected to happen, to filter out the * exact certificate authority to use, which transparency logs are * relevant etc. The result should b ecaptured in the * `artifact_trust_root`. */ artifactTrustRoot: TrustedRoot | undefined; artifactVerificationOptions: ArtifactVerificationOptions | undefined; bundle: | Bundle | undefined; /** * If the bundle contains a message signature, the artifact must be * provided. */ artifact?: Artifact | undefined; } function createBaseCertificateIdentity(): CertificateIdentity { return { issuer: "", san: undefined, oids: [] }; } export const CertificateIdentity = { fromJSON(object: any): CertificateIdentity { return { issuer: isSet(object.issuer) ? String(object.issuer) : "", san: isSet(object.san) ? SubjectAlternativeName.fromJSON(object.san) : undefined, oids: Array.isArray(object?.oids) ? object.oids.map((e: any) => ObjectIdentifierValuePair.fromJSON(e)) : [], }; }, toJSON(message: CertificateIdentity): unknown { const obj: any = {}; message.issuer !== undefined && (obj.issuer = message.issuer); message.san !== undefined && (obj.san = message.san ? SubjectAlternativeName.toJSON(message.san) : undefined); if (message.oids) { obj.oids = message.oids.map((e) => e ? ObjectIdentifierValuePair.toJSON(e) : undefined); } else { obj.oids = []; } return obj; }, }; function createBaseCertificateIdentities(): CertificateIdentities { return { identities: [] }; } export const CertificateIdentities = { fromJSON(object: any): CertificateIdentities { return { identities: Array.isArray(object?.identities) ? object.identities.map((e: any) => CertificateIdentity.fromJSON(e)) : [], }; }, toJSON(message: CertificateIdentities): unknown { const obj: any = {}; if (message.identities) { obj.identities = message.identities.map((e) => e ? CertificateIdentity.toJSON(e) : undefined); } else { obj.identities = []; } return obj; }, }; function createBasePublicKeyIdentities(): PublicKeyIdentities { return { publicKeys: [] }; } export const PublicKeyIdentities = { fromJSON(object: any): PublicKeyIdentities { return { publicKeys: Array.isArray(object?.publicKeys) ? object.publicKeys.map((e: any) => PublicKey.fromJSON(e)) : [], }; }, toJSON(message: PublicKeyIdentities): unknown { const obj: any = {}; if (message.publicKeys) { obj.publicKeys = message.publicKeys.map((e) => e ? PublicKey.toJSON(e) : undefined); } else { obj.publicKeys = []; } return obj; }, }; function createBaseArtifactVerificationOptions(): ArtifactVerificationOptions { return { signers: undefined, tlogOptions: undefined, ctlogOptions: undefined, tsaOptions: undefined }; } export const ArtifactVerificationOptions = { fromJSON(object: any): ArtifactVerificationOptions { return { signers: isSet(object.certificateIdentities) ? { $case: "certificateIdentities", certificateIdentities: CertificateIdentities.fromJSON(object.certificateIdentities), } : isSet(object.publicKeys) ? { $case: "publicKeys", publicKeys: PublicKeyIdentities.fromJSON(object.publicKeys) } : undefined, tlogOptions: isSet(object.tlogOptions) ? ArtifactVerificationOptions_TlogOptions.fromJSON(object.tlogOptions) : undefined, ctlogOptions: isSet(object.ctlogOptions) ? ArtifactVerificationOptions_CtlogOptions.fromJSON(object.ctlogOptions) : undefined, tsaOptions: isSet(object.tsaOptions) ? ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(object.tsaOptions) : undefined, }; }, toJSON(message: ArtifactVerificationOptions): unknown { const obj: any = {}; message.signers?.$case === "certificateIdentities" && (obj.certificateIdentities = message.signers?.certificateIdentities ? CertificateIdentities.toJSON(message.signers?.certificateIdentities) : undefined); message.signers?.$case === "publicKeys" && (obj.publicKeys = message.signers?.publicKeys ? PublicKeyIdentities.toJSON(message.signers?.publicKeys) : undefined); message.tlogOptions !== undefined && (obj.tlogOptions = message.tlogOptions ? ArtifactVerificationOptions_TlogOptions.toJSON(message.tlogOptions) : undefined); message.ctlogOptions !== undefined && (obj.ctlogOptions = message.ctlogOptions ? ArtifactVerificationOptions_CtlogOptions.toJSON(message.ctlogOptions) : undefined); message.tsaOptions !== undefined && (obj.tsaOptions = message.tsaOptions ? ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(message.tsaOptions) : undefined); return obj; }, }; function createBaseArtifactVerificationOptions_TlogOptions(): ArtifactVerificationOptions_TlogOptions { return { threshold: 0, performOnlineVerification: false, disable: false }; } export const ArtifactVerificationOptions_TlogOptions = { fromJSON(object: any): ArtifactVerificationOptions_TlogOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, performOnlineVerification: isSet(object.performOnlineVerification) ? Boolean(object.performOnlineVerification) : false, disable: isSet(object.disable) ? Boolean(object.disable) : false, }; }, toJSON(message: ArtifactVerificationOptions_TlogOptions): unknown { const obj: any = {}; message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); message.performOnlineVerification !== undefined && (obj.performOnlineVerification = message.performOnlineVerification); message.disable !== undefined && (obj.disable = message.disable); return obj; }, }; function createBaseArtifactVerificationOptions_CtlogOptions(): ArtifactVerificationOptions_CtlogOptions { return { threshold: 0, detachedSct: false, disable: false }; } export const ArtifactVerificationOptions_CtlogOptions = { fromJSON(object: any): ArtifactVerificationOptions_CtlogOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, detachedSct: isSet(object.detachedSct) ? Boolean(object.detachedSct) : false, disable: isSet(object.disable) ? Boolean(object.disable) : false, }; }, toJSON(message: ArtifactVerificationOptions_CtlogOptions): unknown { const obj: any = {}; message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); message.detachedSct !== undefined && (obj.detachedSct = message.detachedSct); message.disable !== undefined && (obj.disable = message.disable); return obj; }, }; function createBaseArtifactVerificationOptions_TimestampAuthorityOptions(): ArtifactVerificationOptions_TimestampAuthorityOptions { return { threshold: 0, disable: false }; } export const ArtifactVerificationOptions_TimestampAuthorityOptions = { fromJSON(object: any): ArtifactVerificationOptions_TimestampAuthorityOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, disable: isSet(object.disable) ? Boolean(object.disable) : false, }; }, toJSON(message: ArtifactVerificationOptions_TimestampAuthorityOptions): unknown { const obj: any = {}; message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); message.disable !== undefined && (obj.disable = message.disable); return obj; }, }; function createBaseArtifact(): Artifact { return { data: undefined }; } export const Artifact = { fromJSON(object: any): Artifact { return { data: isSet(object.artifactUri) ? { $case: "artifactUri", artifactUri: String(object.artifactUri) } : isSet(object.artifact) ? { $case: "artifact", artifact: Buffer.from(bytesFromBase64(object.artifact)) } : undefined, }; }, toJSON(message: Artifact): unknown { const obj: any = {}; message.data?.$case === "artifactUri" && (obj.artifactUri = message.data?.artifactUri); message.data?.$case === "artifact" && (obj.artifact = message.data?.artifact !== undefined ? base64FromBytes(message.data?.artifact) : undefined); return obj; }, }; function createBaseInput(): Input { return { artifactTrustRoot: undefined, artifactVerificationOptions: undefined, bundle: undefined, artifact: undefined, }; } export const Input = { fromJSON(object: any): Input { return { artifactTrustRoot: isSet(object.artifactTrustRoot) ? TrustedRoot.fromJSON(object.artifactTrustRoot) : undefined, artifactVerificationOptions: isSet(object.artifactVerificationOptions) ? ArtifactVerificationOptions.fromJSON(object.artifactVerificationOptions) : undefined, bundle: isSet(object.bundle) ? Bundle.fromJSON(object.bundle) : undefined, artifact: isSet(object.artifact) ? Artifact.fromJSON(object.artifact) : undefined, }; }, toJSON(message: Input): unknown { const obj: any = {}; message.artifactTrustRoot !== undefined && (obj.artifactTrustRoot = message.artifactTrustRoot ? TrustedRoot.toJSON(message.artifactTrustRoot) : undefined); message.artifactVerificationOptions !== undefined && (obj.artifactVerificationOptions = message.artifactVerificationOptions ? ArtifactVerificationOptions.toJSON(message.artifactVerificationOptions) : undefined); message.bundle !== undefined && (obj.bundle = message.bundle ? Bundle.toJSON(message.bundle) : undefined); message.artifact !== undefined && (obj.artifact = message.artifact ? Artifact.toJSON(message.artifact) : undefined); return obj; }, }; declare var self: any | undefined; declare var window: any | undefined; declare var global: any | undefined; var tsProtoGlobalThis: any = (() => { if (typeof globalThis !== "undefined") { return globalThis; } if (typeof self !== "undefined") { return self; } if (typeof window !== "undefined") { return window; } if (typeof global !== "undefined") { return global; } throw "Unable to locate global object"; })(); function bytesFromBase64(b64: string): Uint8Array { if (tsProtoGlobalThis.Buffer) { return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); } else { const bin = tsProtoGlobalThis.atob(b64); const arr = new Uint8Array(bin.length); for (let i = 0; i < bin.length; ++i) { arr[i] = bin.charCodeAt(i); } return arr; } } function base64FromBytes(arr: Uint8Array): string { if (tsProtoGlobalThis.Buffer) { return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); } else { const bin: string[] = []; arr.forEach((byte) => { bin.push(String.fromCharCode(byte)); }); return tsProtoGlobalThis.btoa(bin.join("")); } } function isSet(value: any): boolean { return value !== null && value !== undefined; } golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/src/index.ts000066400000000000000000000015371455126531500267100ustar00rootroot00000000000000/* Copyright 2023 The Sigstore Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ export * from './__generated__/envelope'; export * from './__generated__/sigstore_bundle'; export * from './__generated__/sigstore_common'; export * from './__generated__/sigstore_rekor'; export * from './__generated__/sigstore_trustroot'; export * from './__generated__/sigstore_verification'; golang-github-sigstore-protobuf-specs-0.2.1/gen/pb-typescript/tsconfig.json000066400000000000000000000003231455126531500271410ustar00rootroot00000000000000{ "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { "declaration": true, "noImplicitAny": true, "outDir": "./dist" }, "include": ["src/**/*"], "exclude": ["node_modules"] } golang-github-sigstore-protobuf-specs-0.2.1/go.mod000066400000000000000000000004671455126531500221730ustar00rootroot00000000000000module github.com/sigstore/protobuf-specs go 1.18 require ( google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e google.golang.org/protobuf v1.31.0 ) require ( github.com/google/go-cmp v0.5.8 // indirect google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect ) golang-github-sigstore-protobuf-specs-0.2.1/go.sum000066400000000000000000000022661455126531500222170ustar00rootroot00000000000000github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8= google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e h1:z3vDksarJxsAKM5dmEGv0GHwE2hKJ096wZra71Vs4sw= google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= golang-github-sigstore-protobuf-specs-0.2.1/java/000077500000000000000000000000001455126531500217775ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/java/.gitattributes000066400000000000000000000003261455126531500246730ustar00rootroot00000000000000# # https://help.github.com/articles/dealing-with-line-endings/ # # Linux start script should use lf /gradlew text eol=lf # These are Windows script files and should use crlf *.bat text eol=crlf golang-github-sigstore-protobuf-specs-0.2.1/java/.gitignore000066400000000000000000000000551455126531500237670ustar00rootroot00000000000000.gradle /build !gradle-wrapper.jar /.idea golang-github-sigstore-protobuf-specs-0.2.1/java/README.md000066400000000000000000000036531455126531500232650ustar00rootroot00000000000000# Java generator This directory contains the necessary build config for java code generation. The gradle build takes the protos defined in `../protos` and using the grade protobug plugin will generate a single jar. To generate a jar from the protobuf spec run ``` ./gradlew assemble ``` A jar file will be created at `./build/libs/protobuf-specs-SNAPSHOT.jar` ## Releasing ### Generate Release artifacts 1. On creation of a tag in the style `release/java/v1.2.3`, new artifacts will be built and uploaded to a github release `release/java/v1.2.3` 1. Once a release is created, check it and remove the draft label on the github release page. 1. On a machine with your pgp key, `gpg`, `bash` and `cosign`, go to `protobuf-specs/java/scripts` 1. Run `./sign_and_bundle_release.sh v1.2.3` to generate a release bundle for `release/java/v1.2.3` ### Publish on Maven Central 1. Log into https://s01.oss.sonatype.org with credentials that have permissions to upload to `dev.sigstore` 1. Take the release bundle, `release_java_v1.2.3/protobuf-specs-1.2.3-bundle.jar` and upload via the `Staging Upload -> (Upload Mode) Artifact Bundle` 1. Once the bundle is validated and checked, release it via `Staging Repositories`, if any issues occur, drop it and fix the issues before restarting the release process. ## How do I get permissions to upload to Maven Central - Create an account: https://central.sonatype.org/publish/publish-guide/ - Request permissions to publish to dev.sigstore on JIRA ([example](https://issues.sonatype.org/browse/OSSRH-83556)) and get [Bob](https://github.com/bobcallaway) (or [Appu](https://github.com/loosebazooka) to signoff on it. ## Why is the gradle wrapper jar checked in? The file `gradle-wrapper.jar` is usually checked into java projects that are built with gradle. This file is validated by the gradle/wrapper-validation-action in the java-build.yml workflow. More info at: https://github.com/gradle/wrapper-validation-action golang-github-sigstore-protobuf-specs-0.2.1/java/build.gradle.kts000066400000000000000000000072761455126531500250720ustar00rootroot00000000000000import org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication plugins { `java-library` `maven-publish` id("com.google.protobuf") version "0.9.1" id("com.diffplug.spotless") version "6.11.0" } description = "Code generated library for the Sigstore bundle format protobufs" sourceSets { main { proto { srcDir("../protos/") } } } repositories { mavenCentral() } dependencies { implementation("com.google.protobuf:protobuf-java:3.21.9") implementation("com.google.api.grpc:proto-google-common-protos:2.11.0") } // gradle reproducible jar builds tasks.withType().configureEach { isPreserveFileTimestamps = false isReproducibleFileOrder = true } java { withJavadocJar() withSourcesJar() } protobuf { protoc { artifact = "com.google.protobuf:protoc:3.21.9" } } spotless { kotlinGradle { target("*.gradle.kts") // default target for kotlinGradle ktlint() } format("misc") { target("*.md", ".gitignore", "**/*.yaml") trimTrailingWhitespace() indentWithSpaces() endWithNewline() } // we have no non-generated java code } val repoUrl = "https://github.com/sigstore/protobuf-specs" publishing { publications { create("mavenJava") { artifactId = project.name from(components["java"]) versionMapping { usage(Usage.JAVA_RUNTIME) { fromResolutionResult() } usage(Usage.JAVA_API) { fromResolutionOf("runtimeClasspath") } } pom { name.set( (project.findProperty("artifact.name") as? String) ?: project.name ) description.set( project.provider { project.description } ) inceptionYear.set("2022") url.set(repoUrl) organization { name.set("Sigstore") url.set("https://sigstore.dev") } developers { developer { organization.set("Sigstore authors") organizationUrl.set("https://sigstore.dev") } } issueManagement { system.set("GitHub Issues") url.set("$repoUrl/issues") } licenses { license { name.set("Apache-2.0") url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") } } scm { connection.set("scm:git:$repoUrl.git") developerConnection.set("scm:git:$repoUrl.git") url.set(repoUrl) tag.set("HEAD") } } } } } // this task should be used by github actions to create release artifacts along with a slsa // attestation. tasks.register("createReleaseBundle") { val releaseDir = layout.buildDirectory.dir("release") outputs.dir(releaseDir) dependsOn((publishing.publications["mavenJava"] as DefaultMavenPublication).publishableArtifacts) doLast { project.copy { from((publishing.publications["mavenJava"] as DefaultMavenPublication).publishableArtifacts.files) into(releaseDir) rename("pom-default.xml", "${project.name}-${project.version}.pom") rename("module.json", "${project.name}-${project.version}.module") } } } golang-github-sigstore-protobuf-specs-0.2.1/java/gradle.properties000066400000000000000000000000441455126531500253510ustar00rootroot00000000000000group=dev.sigstore version=SNAPSHOT golang-github-sigstore-protobuf-specs-0.2.1/java/gradle/000077500000000000000000000000001455126531500232355ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/java/gradle/wrapper/000077500000000000000000000000001455126531500247155ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/java/gradle/wrapper/gradle-wrapper.jar000066400000000000000000001665241455126531500303450ustar00rootroot00000000000000PK A META-INF/PK Am>=@?META-INF/MANIFEST.MFMLK-. K-*ϳR03-IM+I, dZ)%*%rrPK Aorg/PK A org/gradle/PK Aorg/gradle/wrapper/PK APr -*org/gradle/wrapper/GradleWrapperMain.classXxբr"E;"L1X! $| @Dn%NtF'q NNwz齓8gt }>4+{ >ek"TRrxy*J$WpB?^$ /Vԏs~LUTI*B.Rūp^UqɯQZN[*я7foQVuxZ];T,;ǻTnrxU|0R*F1"R0#*6ᒊ;pُ+rGxX#cr*>OSHGH?*/+*vswki nwkW==])1LJm+jjѤ!,noȩNlPP 6l#P~_9@mH؝3XԐFztnE D*mpnrg2ⵡ$ MSNkbvIp|NA[-2E卭ZxǴ0͜-N7J3sD^}Q.oVBӊJT*&Nu]66G> &O0V>ۘR#3PSX6pmafxV+ThNa='[}{ [G+" \jEGrSh#nv"Jm"в R5h!Rq+md n8Y5wf k:˯L8woTNJUM;dP(KaݘX,';RfSXtj1ADWiQC7fSZM8vRzUDĕ <PK A.q/3#gradle-wrapper-classpath.properties+(JM.)M/JLIMԁ2ˋ Rt3RSJJ2sSmPK A)gradle-wrapper-parameter-names.propertiesPK Aorg/gradle/cli/PK A?<S1org/gradle/cli/AbstractCommandLineConverter.classT]oA= "~C?R*Oh4!aYm` Cߢ/42Pa9{s?PF@;:v Dc@{xY9yx\Ycfs ڑ߱Vg{m[xKH[{ʅ'&?bNӵKV-)%^{m!mQaظ|jUnl㌟R{N}f[ C -kږ=,ȍ؂ak^߫^t ֔-J_,/]ctˡ+;XrCuVQ CW uhCaoܠ1a6C2QľLK &!9a{ Q23Qu {'M~rՐ3|i153 mnDevf߆J~-CH;"d9edc DqָSX`Iw/!):Fy7_|@8_A #FVX! K`R~;x)>=NRnp؜ch⟐ϔ4=c/-ePK A׃X ;org/gradle/cli/AbstractPropertiesCommandLineConverter.classV[WUN20 HԄKKIQJ;L0fOZZ_tA}N.i2Y9};vO6Q0e|`|`w,'? H` = V>Bx&c.cC i?]cЗ1-ci8"qB[׊kcrƔmeBhЋfb~MVd8i ޞf'$ F]p䙶0fv}-QԬB"9U ёѻE#0ff[-PvT4V5%\X3LXQgIWW]p0?:ĒVJFOMA`i ҮqA1\W@ \A܊A)5"ɓ48,FhJ+g ^zKŽa@7e2ZfYTRQxuWx8R E10ogm74Ӂr_q9\WOw/jhz"#z,Zi.ZFkP*؏$}iB+ c na]bᶂ1|( 2>R1>aʠSz5 xA$>UDP~.*8 %>Ä;g+ZEkߌM' g6-0 : NVϟ=!!{LX`e2zFI3U\%Ne5CC]Z]AၺmѸYCYbZ.+&%b `)s4 "(({j^<Q*>\{#%N׃\&9I~r)C09ymjV!:|k"%*5&@TZ[AkI )Zb=Nʆr2j s噜(B`4JY:TCaecU*b2vTzCɘgKEԷNR9r,m:BM}V{"O.6u1᳠~-g~hWKt/Ovs }+ =]hY,l$ ֊7 4O? gԻ h;_!ѸwiPCEӞEVh`ll ,[m'GT&p DAnE!i/8<~[$"V8zb3%+>g*h/V!r'em3=:Irn wN0!؊u2aIPK AD&3org/gradle/cli/CommandLineParser$AfterOptions.classmOA{-r- >W+p"D!$MFxag9.D%2^rҒcffwn׷fqۀQiu4h IStLaTzj6Pɓ5&yյXOlե}G8]x2Crɫ< +M[>.YN w\:JIi0dmxBBr卆Mu0r$fu~^F+[.5k՗-o0$z<AekͨS bVgcg>v@]7|- ƪ-+CG@ϔ0 jE7 7ckމW7xؒ1f00yd835?UѶ= q~ :5hhkmq_2wC^2 \ G@I]TGi4gL,~AbT 4"A;`ȑm:C٤3qhboPK AMu <org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classVrT串:I I|skiK^rը,Ӿ[2xHnbN0Ϲٳ=_~02Nc K2ȑ!aYFø ǪP&Cu!%6>1u(68 woz|a,oٕLVzF5VSawU9^6Lùps_u Wݢd֬ml4jeݾ$-Mn!M$2 -[au(7m2(MSתjڢ/xWCiX;PBNg, YtT)}3%l1T3,zoKf=H9 T_1$wbW5t?fk5s$]%4C Y Gp|@EYx.~H@]*[qrj;;kG柮G&İSEQɪz|q|ypj( mja8 ˔Ww[E^lq6v(=WN##rNYS.8~rWßK*b; Q"QiD@r0M[Ҭ$?!HvCIqf.Ɇ1JᮨoZ }4{JEFG?3x/J#'Gtr)Ipg{(EOJT).>Gd/-GWZo=sP#`K3Q[F]F]pՅڇbYh@~R (!ijJ3n8B# gHWܱa6:Nx*9g\.{b ׹ڸi^E` N$,SDgqc)/hRPK A*ZMForg/gradle/cli/CommandLineParser$CaseInsensitiveStringComparator.classS]OA=wPRˇ"UhAx1MLԏvn/`|EkC9{Ng?&6 Q)`,95=K&lfc*!|m2]Bt%a||ߓzGy)vV&+"M?~"u$ۑV~Q Nnx" %6m܏#nԍ֛uB_Є"[f)ְm*ȧHjfp\p ߩLbs E"Ld'h@Kӟ0}1/d MXEnqsYX'>9|r9\=wP5oy$L̑iftcye}ly:E1k-LYn3q2\uM&:c#2Oȭ㿈(&J`R؁p6k0,X\*wM/PK A|R&=org/gradle/cli/CommandLineParser$KnownOptionParserState.classXwU6ͤK*EqDt;VkEE+. ɐ3uf҂HQpCqP![>u\|I\@-V< gZY͓5ͨ-4Τjת 窬m͵l Znpi S5꿗$뻦 b^)Std%fsTCP`g^ t H@'؄Nr"#^hNoGQ7AUߑt$ YFRk|yaC@gpPn'I<:\(=Ěp,᝛aұV6dhd F^wމ& aࠑW~qpN߽̾2BI 7!?PK A$ľ<org/gradle/cli/CommandLineParser$MissingOptionArgState.classmOPw*LD ! ·'`0W̚o;oB~?ܶK˒s~퟿~Œr:'I*(uZG 7ٌqeМ-rD_K.]Sz3Bjs5]#ņu,nV4\k0#%rw[cU:3 WZ S69^RzxZsu-˲V;TJ?nI/GQw|m.UORn!eCw&à# ֻ @~+:0r`#:L:՞ͭ1𦯉)[PR2q\U%7ǖڒ#63Vt201,K`=org/gradle/cli/CommandLineParser$OptionAwareParserState.classUn@=q$6\%)MK@)p)E E*oĮO x$ J|Mݒ*A./ޝgf퟿PĽ8ȩ0*wTzc\ *L+(cVAQu4ܮ,dȖQ/5̂Ѱ OpC{i\e˶; ` CdթQIh5xƫ 7*\X.Cɶg9Zŵu6jI,s]SMj%} P녲',4!E]&8c$${]pG짍oRNK%ti!ӘЏSnbX[XPa sLf +~a[f:~Z)9hOS csmqr |FdUԩ0L-=ƽ_qkޥvrl0.ϥF|x!JӚ'vt!}rOYY,T6$a|iZ ̋dKTTȇC(Z7D!eSZ2B#oo+5UcCݢ{ B*^v#8GNi$y6+1E83$r]oPK A%̻7org/gradle/cli/CommandLineParser$OptionComparator.classTmOP~Q: 2@.,Ydďe4kI?/~#ƨ_ N6).]}s=~ E%d0#0+bNUJ"E,IHs;'"V8|USk"z6L7eA(;íi;- Vn)L!{䛎]vG Wlp˖y!P~`j2U6uyN_z`QWkH-T T|%|4y`P?UKjwMkwuz-֤$/0L[3xѪM7-O7 IRiu;?ڑ~Sb@ZaBhΟ\ia+6eYgљ{"!c /&q va[hǂZ00 }m j]{a=eўB$>P}4s2|=ѧQ*te躣K.@ >rd d$S3gH|$%!zp'a!xD"2{9 O蹀Sp HswnL8trI"!y3Ⱥ2GYv>i<2<l4!M{nV  #fdY"5>{}FCNS#ZOqϣHINQ2(R8˦Sqv[lB|'9乎OE;McBһ-!%."{N'MzzY%B65[m~kETBZƓq5<]/h}LѾ>McGMHx)PK A`M~U2org/gradle/cli/CommandLineParser$ParserState.classSoPN) s97ս&MLf.а.vF'_|(- AGmdQC-6xbaB{I/zI4\jϓdbs ?4iF^H(*tU?'tUav/Pcgw9`2r;$uTyP/#}@3I8c)O;B / Z &Wti2qfYC!zPڕh&ߗP2egvnӁ$$T@|*>A%W|):T Џ3_qI_q3!Źt^= xc @C!:Z_ eYq>8YMHEFw@@9\"!vCz1v񫮥x&҃k$}ˌf!uTsj]p99+1:*4*4fE!./1Y ?PK A=l)&org/gradle/cli/CommandLineParser.classYi`\őJ7zzeٲ=`l1S>K6XzFψ8B``d MͲaك= !l~ޛPwOwUuUuO{YT:jW5ױh/>)s3 O >ס yRa#||1ׄW%GģcxS5E]%_fFeu֤Pt|e&cuq8&&䞬JO|7#P"tM$(L8?=cq3֔&LMssOA0eAQC(j]Z-um 3f5if ≦mkG0JKͶh̚dcu;13cM0[1׬_ݸa5u֭X( ^N1U&VQQ[٥=IҨ]k G-\FګmWEc`kجn V"E9:Gw6v1|yqe41P<-l҉H(H[Rs,Jؽc[-`,~;DG|Kglloi5M% 9.bI+v"[FURo;R`FN3#mL= 4P%$lu * cLate+r"nuUCiظ̀J]B\ kX5Pj:)Bp(^Hi%n Zkn ݒ_>N &3A32g R4d Z8?lyOm'ˆf@hՌ%sƞUu63iʭ ŕ%p77DL^aE9͚V\EW p vX8)4iFf(Ma}.l?F,N@6 7w3§E5Fp J-fn1R^:t[BYԙd3R÷M΄A-Vvmϼ.(SYnZQ_;S[Zx|ڜ3KFR^9fpUg sPY1O/ }MX k#IRr ܊[ ܀ ܬFD- ;&-i{OP<1Mڹt\͐׍ku;5nHXv!]r1% 0Ґt *1T]Bحt-씸!ǐK2C.+%ª2C!W*or\MxղZmU3Wq\lE,rRz[UV3[r!7(G(Wr|ېjCn*%*Ų!wYX2u]4yӇY <'kP͝%w't3luY9LُC'dR{23$* 0d\/!{^C/hr7ܟŞkCPɈ: \lȃnяEb`*ƹc&{>Vi%=f ٽwbeic^Rĉ^Éww` OF3<,dn>g?_y2|% zX>"Nd1VfY72pLbh1s}6=JqŴ*9DuXUǻ?}e[ւeN(q%B=:FsWz~-)u+Z v{p,|{`8E< r_n۷Cc^{[܉բzv 46<[]kt6SNo;:ԃCqֻ[c`|ݽ(~zvV7\e"z>LP_kp6#+Lh1I`E4c/]AinعnV0=tziH_r3 %?~u'\vB A 7o}mh~ ǡWs _&%@,yő<ހ M3y⼃N wnW})m^YAhO YL+,l"G˱7<7hb>xi!_ph 9Q}( a`F˜Zoeۋ局v}r8i7N"eK{1\NIAU[k|6e)=LgitE:Rt=("4RA~?(N{,$)>ȡ)Y>gGK;Ȯ,J͡%TZX֋rE\ދ O܍€?i.UMj[W\V *Rv"uGYxm;>,.ӇK֑lwlfe/NoE'QbWb#`cm3< ؊_"K *#`x)hbtH):Ll&evH'҅.M^Q~;9˸T7C\)5?z9sr*hp?ۻ0=Q֜F {twtc1~DkUa!t0F!SE/wXS'Md_ø8缁羑gM'9K (=SX-,3,-N=uS9Pi Qc"%p;°s`qx<6V~,z*-wFG|:%f)XJXBV4[J^ ϑ^lT{ pg9܅*+/#ߒZJNxy*uìR6+|*,&VUV} 5^ƇbiҕbYЇ5y\$h:4"i4hpm7H8T ^Rx 0K%kAg鵓r7s~!o_ǜ9`9_K_$,+ J;~);܆%!Myxw#){9%qG2wR0 /r5{,5qBH\ d^pKPΓ7xY+b܋7X:yxY絲F园ɯS-18gO{zSe yNva`aZx 5mCd"QLtLq:ɛ ec%,3w]}sS}~e?2<_p媲>lJ0ݩjA^i uoQEpê8~?oSw/-Oijwg޶K/UGy^}B,ZJ,;;ɢxbf9rKa2J|ߋs=ijS8TPqhQnsʃYQU@O~lm.I=oA`2/-'a*o}CӑMswōiV*,K:&U@cHb{V5kyE=!#&P== kOц?r]?1>gAy{8u ca*^H*R!Vg-yh.#fN>_{EV43$ffN8Ѭ;ldO sN]wai ;{g>.a.=dzA#_;q eV)^?PK A>&org/gradle/cli/ParsedCommandLine.classWiwg~Fċ%vTMc[R8S)-LT(.Ph١li7 `rX;Ɵ}g$Kָ1G}.3ǽ?.v*`!*΢ .bufT,.+*WBM0#h'".T=^a}:|Fkt 0^7/㋸$__V0AVMa q[ ͼ1s#+3ɥ/E; f2n-C#2iҖ U0RҒKMfr)y(Q0r*T>c4yZq%sH˶YhM-C#\U08a~.k *)CxK )LAt\гkWYp#A͙ FA|Wݳw/뀽)xV5KԶx:ԕ|)#wOPccI(V^yU6KbѴ\j3TpUG(|VQH1M 7S8 RΊ|{Y#۶nQ/5^kKouO;=Fm,Rhq35$bwcLOFܙm Ln"9mG7Mhz*gJwrv詔DճEc YeyK?a{?՜qZ:fyȌYcm5 ^Xdkޏဂ6Y"|P[x[w= 1s=>4?RcfUDO38*$c/GW*S.5“~Un |ɘ_=0a 4 WU\0~pWLHZϖ:zypy*rK}jc븪֒[v.2}Ric9SVUPPIΝir+9gS QZyۇOBMkI'ƠG> =7rW=¶~̜gD1[f(O :6yP=𸟳J8Je2msQP0-^^Ц5[y?AC2?TjH܆mo"@1H1tXG1r}kL%װCРh&4o! ;]LHҰe(=Z[];7d?k'Wo A؅속=x5:ICab!Zcx(Dp1')1a8!N**&T=thT_P;='X/ FΙbX@u #Bwvp\}b9ûx?}dT}HH.o!syVOCI/a$qaxA1cx)R_J@{& (+}?Av3xG f97CTEB"]tF.'ޜ軅؜t<õ2i 1i_3%6 ;Aؓq6A-V4RgZlG orN$gdyE:+N:$̕ųxU '\5B%ǻ6 Z3]^ᜐk>lJ ;k>e'*6zEGe)A<],;[S;\Or=l8>Y ߀^9ي NLvczͭ&@S܇Қg\HVvWc .97{XŘ㰗Go )ȑ,I8sQHI 0$Abs9{`_i*^QUt  9%<' tEB^Krvs?`A^EAEXP QP dȹPK AytE,org/gradle/cli/ParsedCommandLineOption.classS]O@=ݯGePaeQ"hHV1YawRlIgN[`Y$ә{=?“4(H#b 冊$4-L%q[器+r⾊ [lpWAɶ(Ha1p#-g,C/{9*I Kxs UEJ%a:w^u"]a*s!"k~E쳟}V_*bTG;-%bXo"p(=@&_2w%^*$APPS =1D:!䉩If%ޱn05W(vbRD $"xj2Dϧxr7k> !V.p].GӱD\8"y RPK A\vB| :org/gradle/cli/ProjectPropertiesCommandLineConverter.classKO@D|?Pâu#Q+$C;1m  JW&.(1D,9vo/[@yl汕G)v }FHWkwLS!]nY7ZK:̿cJDZRysV;H+-)nkS#cruLXgh|BjFYDΏ%L%񎅎*_?ֈ:("<ڄbJՍ ؊tf^*K ߵ XUVi01k p8wZ8T0g?PaΛm=C Ss | 1\Zq-}C_JEˉjE+ w'PK A 8=|9org/gradle/cli/SystemPropertiesCommandLineConverter.classJ@ثmjE5BPąR/P~ӑ$&BJW 'iAY3͜l "lYlE <& d@HgL{:rRs:C*X4NĬQ ۴;hZ3a ѽG!]Gv7S"5eb o}ɸGtFMz9y~X{()spL`7e.KV, TXxɢfDTEGPWJmh~49AjxѰ sh gԙn85].FԒs9Q΢*s/@Ug J*ce+s+1 $p6/t-,;h-.Z >kZPK Aorg/gradle/util/PK Aorg/gradle/util/internal/PK A'&org/gradle/util/internal/ZipSlip.classT[S@JTĨ  *(ⵂ32/KYbd+?/>(dzBΘ=}3͠q'28l)xvi-Ϙ8k✾71CL\".5crW&d cT(s23҂4v.,p1~Wi,c#0*zň/«({2P" rޗq/ zN*Z% ?6[/U$ȿ* 5x}^r_=eDj4|X ٬jYla/Y8Tn;/ܿ+%WQV2 ih0rdrY9eRcv3.20ik) 70< =chf--z]0Fgu>-A!g>fȼFvhK¨:m|S;9CӥZNJGB(."[9̣xQAA$#+Qbh) "ij-6'T$h R8ė mq Nc& tMd60-ɥ׵Mnv6u 0oN?@uǑ tџL(vpiBtjJgBG؛費 VXҡ_PK A%Ӧ/org/gradle/wrapper/BootstrapMainStarter$1.classRn@=Ӹu1Ey@_Iik6U@.,RuL!G 6 (ı ]t1ssչ_x󸳈ᾏM|4isZ}.kތ=ed/cΥei0c =<Ob+7.PmB%M -wźl6i<Z293#ұwںl hx8FEv~ė9P%pw8.R3S ѵAc+jgQEoN SzBzj\: zQ^oPK Ai,$ -org/gradle/wrapper/BootstrapMainStarter.classVSWsٰ,1*BI/VV(-m.!nvfjﭽ< %2ӗv;IIbٳ]7>1IF2^ C0%cA0#aVF d\{2Ǽd\UqBNPp]R2"!c7%|؉^|$A aQʋ .aI~ ee41rtSwN3+ U U䳕"E(ak{wuT-.Z黶9rhu48C, -펖64:n=n/whviX iFZ$K]hO&VoFWc-MDqhƛ:UTT;#RNvRzH$['tk=e&śoh86lsܕP=֣ ed,X: ׶`Զl"zϼNE/wۼ-j=𒶨y1/ [\f UevS/7,xBY|͙ZI,¶Cw\o4 Hn"#RGw Nb(Utm{ۣ*z*ch #9_xWchyG}ը/CCASs/A݇~8# ER7q%B# ܤ@-8q;Dv{K0*GcM%8NMUK;I1D %ĞↄDvNަDgy|px#UcU]@}iP8T(j@ 1*B qg)ԗ_:#Bu}ә#zqF=~t 8ɹ7s'+Do4ҌH5ɜm9f W.&a@[&x;rac" i.4pC*3t<̪ϗ)(g,Q`81ou<^{_TW^Ŋժ{_nv< o!<ꕉksvŕ҂gC+-ĝY}1,U1qל` Vޥqժs:h庯V]nEZS|g\dMRe!!Z\J[ d'̭2cJ&r]qRruJ+8 SXmٚMxor`{.h-gT^*wS٢ߡdl2gPZU m8l) AXF yk50'=ұAZu357ĶS"xn\7!CTDM-%:ho-%+ԱBfuNIQ{EqM%帨v>E[[NMLݠʧ77PPbd15/Nnj3RZl1eShK|^dS:83m1tȦ1$0p1@:X M :)4G!LxG/6pIͩ7x#B_`8w0=mudCC-`Iˡd)V`._ 7R;!aإ3mKH)v##oHվVZNIr.n{7!=IbN7`h a.yD}2^@#Ge! YYcJ"##KxY&-/D154%%VkTD%| @ۥlܧgh Ј|/7/]>(B_PK Aۡ~4org/gradle/wrapper/Download$ProxyAuthenticator.classUsSEMMn74JX1I$EE`aۛxsc?3:8> 8:>W۴;9s9~p%G1ᴁ>3Qqu3U(>༚/t"&t\zp@+o踪CnUyseOlD"ܤخ(XyTGdz!\pKh9rĚM+k {Ixaz͉.2z H`jU&^wYdz=uNŻksDbwg[%)}rwMfŪc0 W2\_ Gz{y528`̻5ϔW,tlg+2x 9_IE) sXбȱ:np,&C_{j] Vn+[q!np8+(!59N"ɐptL2R8uӜ&dYQj9$ق$_phvn2é%Q8WhPYgVe{wm~KTaZMAke~F!r3{h4U)U"άݕⰱDna]x'6aJW RH/a>zYZ޳JDI8^I `+XvBxm%$,%{X ,t9@- {lt鴝)3̾vh'YI|}{s_s/*Q)x?O,R,ЛռB45 ת\\"񯂠7zuP^Ee+CW*ŗ/ͥ*7CHjV2iR4D*6+ܮmfU*wx(A7INAfuܣfܫpHTWyB'y@BQxתKTU-tU6TRyX#*QyXUxTŌd[TOӹ!=5Ǣq=9NTg$e`dtິ9bȠnA,ݳ{Pl{}zcT 7d$6TL=fnգihgo޻+AQ51sUo{(cЮ; v vvCYLu20aqppRGI=0r*wF2Zi/&bfDܲUڌDJCnP˦v:2ܗEbz[m!TČn#٧A=UOF&:͑vL}BhIWzry4SA|ۭB% >O"O|Uq0 cLd\L~Szv1ᔲ:)M+ u݁7g+ U x4%j|؀_$b▧}k¯jmD7E S@P46 uS7qcnnV 0-Zq7P+bT`oT 7t"6h`v>+4дMU!q]VmN4쳫fjPn G')J<`)zd]֍KSKSꥩfE^W;HWE2Ip}yLIr%e(-ei>#v:rMto<9,Ǟ: 7^Ss '8 _E7aŠ SI53PU{pV:|l]9&ܕ ]7jN;;z|I)Eo?{\cXXaYun~W&N"i<)ôo;b!'A@[{=7I*.3.1>)>`̂5Og6>.Xn˳k8WzHz8G{߼<sb3 GWV1(Y9U(lߢyNQ;@R8N@>{cbF!۵?F4Ai3 #F]xJ<*ItJLhhj n)+d$قvAuOg0-nGx/0l|e5;ɗ2=`Hl_|/wic;, zД,vBˠEm3Nb5'GusVEn b<[Q }m0Ɵ O?g >TE'^{ŃS~vݒпK 79-Trc|F2߇փ/E4VX=(ZT.g ȞPx؁Xy\cɐrTTK?IZ,3x%zęc锚VZRZJ&jnjZRZF_-ku|UoH<"%\5w\9M>* B[#T" ,*pXKY>xBzI08 > TYS|5~q]w'9uc48UmpC|H%j RnZGs(i崞j]#綺$NJdt :eO%ͣw(.,S&kϊg}Orti@ N9%7ES*mmVQE^PMlC, F*0 `Kp-98 ҳXy\nƴLv3XQmwst8-KhYߝMΚZsM *ryEoߙ&We5=6btOZo2˯fhҒi ZqZ=x֜-=VoYUZ;ZzCashkZЪ'R7WsK3ttALU3tuT+Cן &El8NW"lZ3&η׎^61TSyq!/? ,>ަS|}g˯x% \i1D@殣U#w׃0m4P"4_n(fNgIY >5{Hf sd #MnEtG72:5t+7mV`>`c)9M' \Kρh=K !h"ze8:nGHb=Y, r@׺^A@@w;SCz]7zSd ;L\,.JQ> `)V芰BoO Uca{E*~wig`gǩc%$h6g~DMO-1 @\mn;E?~~$+︉uK< RdK ?믅Ni2 ! |Wgg1SS?FۭA:̀ P(V@w9dm%\j?@J#ƅ0֯ s5ޥ[(6̶#CtvfZ. t]:n1tb4v9OĪ.r%J[M DŽ,]8kߟ_PU:]3aG\^&at"-EeY˛8\3K tЎBNk؁PK A!9| 3org/gradle/wrapper/ExclusiveFileAccessManager.classWsWYګu|iVMNZ*;JlBNKƎ[t-vjSB[(P`x 3L$x0 }0+9%L=sݿOt]o3;6lKqoF3VB>%lW !8$` Dղ3"x D]AمEU WxcLQV$Cn.O#&A7zx N5@T3(zY4} ] ҳ4?Evqݏ<̏ LNp8>K.1Dg[A|4nkhLpSESv\c~]+蘭vvR5dw=#r<\KT8lo7`.ՐS WĮT U4]~T76v7BZ H ҫ@'c Klϓ31cDQDDwp>Pzp}@8B gmγ*& _$W +kr}FA?~(AZ8:ưq8 ӛ"؅Qc? z5)qjsDPh hF9҈u>c~iMȈvz5HM $?b)nIP$)SݳhѠǧB<q0.Ҷxd(WWw@M߉߭5S< a-sc-gONQM} (1#j R`뛿̀imP/QWM:;"+) QgJلzߢZa?UofwYRb>7~<0u"! xyHhCJaAK8"CFG ^xa(, /)2" oHxD7oaF·|(oN{>a?C?b'~gs_1W ~aS34 q>Jo%Nğ!$DuX)#ZcZNMʼ]OP8MY اIl#e+x3+gח2=rȅ+i/ƌFڋ,l3va9Pәr4j\kQ^V^X)6bk֮@kN[GOZn1٥^HUZq,ۤ6T[m \][ =ٙk.\Bv'-#hTgF"Z.tU|ΜQjS[dy1o\-e&rf.!45guy˂5Bbi  RHP(J$:ƵQ֭1smb.X `w(5m=yue}n6`hʢڧzm˲,!.bxƷ6<FQm~ӝ4-ĀTwI{(I7^ٖ/–|_L*heg+!Yj bI-4|GxWN6[_:m @L"w7;ӳȝD}%.B$ooDY}$|!$IׇOAz(<|I@7z5уtFz|gei,:yp JIz1 i,w/ҸdҨ@ mNҞi,@'Oa͗" Bk4Vؼ&Ι34.ϐV_AMi\IDixW4CIz k4ִh+5_ z^EJjII(@nzdӨ8ߙ4h`}O2Omql+/&,ze- ֱEAB0(F;1՝ЇG1즧>b#6q8"4ưqQ=aD<]5:Z8T`\Kx{p UOj܊$]帍R$Ti|$%=ŕ7]0|$D$DFǨ#LTЈOUSxb^!!xd*AƃG\z<=Sz諚Zn?PK AQ{-org/gradle/wrapper/Install$InstallCheck.class]OAi]l oJ)[ M@/jݰ eain#oDK/Q3Ojh̜y/%<6GN 2-(q@% F{x8 C[Nt\.smyb[>ъtUizNFp7}Һ.}3ldϫ^ LX<~r"<+dziTG+7ԖS[ǻ{w]as=GEmZ[M zqǟ:ua~2*m8Tq W;b!]|ǐ4}O¦ :ɬ pɊ|,v% X0x4ڠU &m:2iT-l$5\7%&& L;:Ftdna 3ǨMbިx; l ';, gL1. VbaB7`Hء,J-A4G-# 90[I8S3l~2/h~C>A҅hו|1D& RՀgَ<É>ω.qt4ΎwHTfE`*.bZ>}BPK A݀4- org/gradle/wrapper/Install.classZ |\U?'37yyҦЅ6kӽtRiҔ4-M$ę7m*P]Q}"*( (↠|sd_z{w9,<!Ni*M4 9N^T34!::E"/tƗh !ʮDuzGl-;|Wj|Kf$Rm^cV>b&V)aMݖgnlټqՖ͍Xy-SQӹN&bƺjZD8U4>.bV3|5/Lӛ≮jv%̞+QӤ&Yn WѶP>m5tI%;5Un%͘xqp [Lg\/ɑ.䭏wXL19mMLfd{zkwa';z{2mku8i3-w`àT´XmcpFt"hϝg*?jR'm)yߒ0w,f˦F,)]m.\%eWLjI 7fZ|D- 'krp"԰̆:|{GޡKmI?`=zs>l$r7aˍV[S`cxTE$3I=}5N@suJڠgOmldQ>XߴMw8`6U1tmQ8??4uwjpS<d>JB%ٹ ,alO{{; H;ѡHMSXAwHG#'4QWd{eƟ3wIX(8<[:Fv;eFT TRQhXաf5莧\-X:aȥ=CZ]1N%p# %i - h%dR<>8,Nˎ;:6YfLvGZۇ7,8z \N=f$caԂ,.v-*C}5n,39zޠ?k=JkAOГ}.5tAߠ8^tAWЕ]Fko oyvQ; "r%DhY[W/)rgs +U ^h 3~~@}+L眦 ɹ vmcA3ևe yt`'2AEZdC2܆s1l~>`hӺ#K,3B4+{e(7NT[l (wm v0n X+&j͝VͲbAیHE"M07ؓc}r4DРTPpb'D{0yl @:.=ؙG;J%bn-Bdi,PRʔ3e{ )LNc& ~oF}4MZ:F)Tѷ.0$4b3ߕ`@zY|Bo ~,Gq l3_8J&ϲ%K | ToH?ս2d $ogOO/FOg ~Qz"P_K~%v1iTS9(კ:93\(;PP+_axr^ ƿ1ƿ3.45(i](7 -kFcj'&_5baD18-7NˠwwOLsBF?3W&Zi|H%̡;|FYՠ'# S2Mq+I՗eһ)vpe~bYi\XL)sILgut7S4m]oFǺ5%s6RkG-{%3_zul Ȳ#>z0'qa * bp5D@YkǪryJt`p '1H{\&ЎM*.ktŐU]v¶)Oecg//r𡅓 _Nb;jؕl@jS\:%h,kg7_pg= Lb R5:#ow$+G/0qe. ĉNumx$e[DZ\iMLjNԸЧDtG1ԛx 5jfjŋhZ5- ۨ? oD56v%7yx*}[&~&u%☐TQ'mLLs %'CKb;--_fLԪh߅nJ˜ #M"Z΂n37x#H(΂y$@YF^M6 !bEaUzh3e97y\W) ["re71ivZB勞ܴa9&WQ#.]M@P9S.bn* <-/U]~2^EW$./TP1HzkQ$zj}4riUWQU'| qC;kh -h-h ] &}>C'VOUz<,]f?餡_YO֣\ä7PtC> iJkEȯ~(;ϓ!rP+h:B'ҩϵiY>W:p$?O׃-yn!ty ݊U' O>yޑǘ3MOt\kMo,NHC޼hFu f,{oz*)3 ZOCwy):@'=K}ž;i$ x}>N iNNi@ n{ &'@9SNT6vbE/Ots#TEžu15_ 7ø`6.خ5,*JhE_reU+PFbVLw]4P4 TF(/7s3F/N_I^л{6>.ШD5z5G暵F~i5 !Q4n)IQ@3_\yVOU~Ob 6LUyy S͓X4"XpAl1 ~r_ ?GAЬ!M<Fɫ8S6TΡi:; ^zҬ=9F;D=K38HS_UT Zsэ]hĪlib`iKk~uK+*biYk N>7:G;]TO2Xt*>- i=' :Y*0ʓ8izrT`']7Hk! F7 t+!j1#K,οN[)7QYJ~Pr?)~9By.Fs?( '/] "Yϓc |,\]Ew#FV,?PK A:o4org/gradle/wrapper/Logger.classko`Unc@&s*]711$KH`wʓ_OFg ?xR5Krw.??hG b1TP4w+ͶU].;`XxfX!R9Ӳ!1,j<8>?4dckqǐ{0#bvtUwxQ; 6m!W\5]1,)@F\s ˵w/'.Hqϰ3:NWfu-Ce"!lU#;m"x*@obw=Cj[$B# %qcI![3̔JgX&ovHIFi QV(Iؔ)r /,*ꊧP*qw(P&n_ݖ7ۛPK A`8org/gradle/wrapper/PathAssembler$LocalDistribution.classQJ@=x+PAA(*(mۥMRP?J*/3sf̜}{y,R6.]0UJ.da7p]1_ 1*BՂrCT_qiXOLZ|- Fd SM>W|+<*>~0Tuh Y&㙉Bb5y]KaOuF~%w-; VZG0T\ue/~֓"n04ψxVs!<~^@?f'"^ e6_ ^ uCěnri\5-Cٖk)XI6M兹əlfe*Z15G⨀1]3-Y咭8?;snblhȅ`*Ƥ^f7TK e%oq]@𔪩ic۽φER5e.c^Ε˹.ʆsoonS.5CT#u^Vϐe4WgQKkaIBEېwts|,X(i ( MeZfC mL4 jEL%lRm&es,е6Ai\TբbZ]'Sۆj]Oe&@Ņr1-@n:W*>AӁ 9K_(: _U&,E3@ЫW/MR ]$`yR7)x@[7M5?1mm#"F񶄯> 'qJH 񈄇1-aѷ5] 2rvRIj~>/I_l~w1N=Ŵ_v?J,/a]@îL1Si,gQiC&e :kkZVR!Vt6jۊu3±?ɸnI']cMngo!6XI5p2J%Uͨ]k: 39nۖŸ+~BĆv/\wit) gU71Kp޿-Т Qs9zM4'9KLDS^Q UsCi~KckC qWp{?6]-hW EiN:XЂ7izH".g2 ;C (sdɓ(&X8¾*pt#KA7LO.=Ћa*c1Qw;z-GxHzxt6п'Rj8uzvKtVG>q"!א]>.J}6$38Om$1K{=y':,8Bȉce%םYA U19:e Qun|Ac W 1{IX6Gst?'דKU 5QƠDvQNʡqZuxF{Ds9\Z!];<:ST"Bo!-p}[S)2BeTjs/#(ct`\:S8tS ')hPK A| 0org/gradle/wrapper/SystemPropertiesHandler.classVSU]!,- -3TR%A(.a,ݸٔW~L}Ǚ2cWڱ& $9s~sޛ?" Q P0Oc(xSNޒڔi3 fh@ԏ99-żT,H;XR=.r~{x_&cr|!:}mn~v":BԚvC 53;a&# 㖙u4Y9]aΘ'Գ(Vi=g:ƆVK9#]Q۶͔nv-mνv^g-*6`Ja#Y" GAN l-|,g+[ *DŧL縥 |+||+Xyvy)'1MnBʶ6w{/(X,(~> Wٹ## I=(DWF$v t$0;/~*xBDV` -n|/#)yeǤ2FIi&^ʫ,=A5ٶTmMfRص/}6-ƷbU $egRevX|3%_ ๡~cg5hOW -a.5T cO_ {LP; e3y؆:J{3Pw@y42ESp~Gw"03V;LM`q=4/Z>u`iN]xG7Y κcA=#7? I4lv14$ ĨnqR!9KM-z9BԯrW)5" ,9z|~_=/!~L08WIH-_{M F1WU> =SpL<`ݖ_bqWPK A=?-org/gradle/wrapper/WrapperConfiguration.classmOAgJK|i " HULCߐ-H&~*M$&3w e&33_:a`@EG xL<2O<%xN8mPk35 QOM5)!Bw~+ 1sM(/;0/w^9sܰ nZd,8t|ZkZMlONlڍiv,.smns =NN8u ѽq$&L*A=HL)BCO*A4dF r_ s )%Ƞ 2)AeE, $!X yw y%^}93 2y~Oȸ`;)H^V0YW^а;98147243Ot KNj-;ޞ-#;[N3}Ht e]rbbAqy1ypȖmGCN$*= 8%g9ݲ =/az629uȐ Nl=qԤ1.aCi[Z:k?̝`iafRݘizoX4֔r!vSF`N3M-1z_arTQ5c!2xݮ\)&* ԉ^-ޫcd {Zn! ]$E锞s=' r|˝4g9yJ YE n ts@fJBU(E2DK2t!cj'-BFY&v\vwdLmz^B6i5~g#M ;{,5;UkUD u=*$$)-^QI?dIe ͞P#1F/Q0'i?e6!#(莄1eL%|%y,dKܢ"|j¡SRqm5U;^GQ˚h&}#Y܎I7w<}EA'LQQWMUόD2 }ʉx>1COG)7raWTN{Rӓ|88aAXTYoe݂zfuytR{:v:Z|`G_8檫x8󨊣~̕7:+x@-I :bqJ޻q(Kq6۷bj &};dm?JpE)@a ڦŕfhr%Q2&xglL->lDM6uFgºߏ C!̣Bh^GЮ hϳ_F~;=U7Ӿ˳_0kZcz8Ivzv0ixUñp,sϢfa\s oе(C BbjJ%%@,,V.ZX@3#8ꚑRM`:BBNcX@ xe,^F88isO[`IQfQ?b^ Ϣa ItV9gw"3X6;kcs9['_@cp qvC,bW/\ťl 9OC(.H']T !ٞ ތīS]hDLyW!p 5 kN=@?)META-INF/MANIFEST.MFPK AAorg/PK A Aorg/gradle/PK AAorg/gradle/wrapper/PK APr -*org/gradle/wrapper/GradleWrapperMain.classPK A.q/3# gradle-wrapper-classpath.propertiesPK A) gradle-wrapper-parameter-names.propertiesPK AA org/gradle/cli/PK A?<S1 org/gradle/cli/AbstractCommandLineConverter.classPK A׃X ;org/gradle/cli/AbstractPropertiesCommandLineConverter.classPK A}yGK14org/gradle/cli/CommandLineArgumentException.classPK Ag)org/gradle/cli/CommandLineConverter.classPK ASf g&*org/gradle/cli/CommandLineOption.classPK A튯(porg/gradle/cli/CommandLineParser$1.classPK A$f{K ;[org/gradle/cli/CommandLineParser$AfterFirstSubCommand.classPK AD&3 org/gradle/cli/CommandLineParser$AfterOptions.classPK AMu <#org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classPK A*ZMFH(org/gradle/cli/CommandLineParser$CaseInsensitiveStringComparator.classPK A|R&=*org/gradle/cli/CommandLineParser$KnownOptionParserState.classPK A$ľ<$2org/gradle/cli/CommandLineParser$MissingOptionArgState.classPK ATK>=#5org/gradle/cli/CommandLineParser$OptionAwareParserState.classPK A%̻7(8org/gradle/cli/CommandLineParser$OptionComparator.classPK AfC88;org/gradle/cli/CommandLineParser$OptionParserState.classPK AE35=org/gradle/cli/CommandLineParser$OptionString.classPK AgAqx=1@org/gradle/cli/CommandLineParser$OptionStringComparator.classPK A`M~U2 Corg/gradle/cli/CommandLineParser$ParserState.classPK ApX k?tEorg/gradle/cli/CommandLineParser$UnknownOptionParserState.classPK A=l)&Horg/gradle/cli/CommandLineParser.classPK A>&[org/gradle/cli/ParsedCommandLine.classPK AytE,corg/gradle/cli/ParsedCommandLineOption.classPK A\vB| :9forg/gradle/cli/ProjectPropertiesCommandLineConverter.classPK A 8=|9 horg/gradle/cli/SystemPropertiesCommandLineConverter.classPK AAiorg/gradle/util/PK AAjorg/gradle/util/internal/PK A'&Ijorg/gradle/util/internal/ZipSlip.classPK A%Ӧ/morg/gradle/wrapper/BootstrapMainStarter$1.classPK Ai,$ -oorg/gradle/wrapper/BootstrapMainStarter.classPK AhQ}#torg/gradle/wrapper/Download$1.classPK Ay[4Auorg/gradle/wrapper/Download$DefaultDownloadProgressListener.classPK Aۡ~4mzorg/gradle/wrapper/Download$ProxyAuthenticator.classPK ApO)&!`~org/gradle/wrapper/Download.classPK AyL1Ȑorg/gradle/wrapper/DownloadProgressListener.classPK A!9| 3org/gradle/wrapper/ExclusiveFileAccessManager.classPK A,y-org/gradle/wrapper/GradleUserHomeLookup.classPK A"org/gradle/wrapper/IDownload.classPK A%V"morg/gradle/wrapper/Install$1.classPK AQ{-org/gradle/wrapper/Install$InstallCheck.classPK A݀4- ɧorg/gradle/wrapper/Install.classPK A:o4ݼorg/gradle/wrapper/Logger.classPK A`8org/gradle/wrapper/PathAssembler$LocalDistribution.classPK A;+&morg/gradle/wrapper/PathAssembler.classPK A| 0org/gradle/wrapper/SystemPropertiesHandler.classPK A=?-org/gradle/wrapper/WrapperConfiguration.classPK AG (org/gradle/wrapper/WrapperExecutor.classPK77#golang-github-sigstore-protobuf-specs-0.2.1/java/gradle/wrapper/gradle-wrapper.properties000066400000000000000000000003121455126531500317430ustar00rootroot00000000000000distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists golang-github-sigstore-protobuf-specs-0.2.1/java/gradlew000077500000000000000000000177741455126531500233720ustar00rootroot00000000000000#!/bin/sh # # Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################## # # Gradle start up script for POSIX generated by Gradle. # # Important for running: # # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is # noncompliant, but you have some other compliant shell such as ksh or # bash, then to run this script, type that shell name before the whole # command line, like: # # ksh Gradle # # Busybox and similar reduced shells will NOT work, because this script # requires all of these POSIX shell features: # * functions; # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», # «${var#prefix}», «${var%suffix}», and «$( cmd )»; # * compound commands having a testable exit status, especially «case»; # * various built-in commands including «command», «set», and «ulimit». # # Important for patching: # # (2) This script targets any POSIX shell, so it avoids extensions provided # by Bash, Ksh, etc; in particular arrays are avoided. # # The "traditional" practice of packing multiple parameters into a # space-separated string is a well documented source of bugs and security # problems, so this is (mostly) avoided, by progressively accumulating # options in "$@", and eventually passing that to Java. # # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; # see the in-line comments for details. # # There are tweaks for specific operating systems such as AIX, CygWin, # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. # ############################################################################## # Attempt to set APP_HOME # Resolve links: $0 may be a link app_path=$0 # Need this for daisy-chained symlinks. while APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path [ -h "$app_path" ] do ls=$( ls -ld "$app_path" ) link=${ls#*' -> '} case $link in #( /*) app_path=$link ;; #( *) app_path=$APP_HOME$link ;; esac done APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit APP_NAME="Gradle" APP_BASE_NAME=${0##*/} # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { echo "$*" } >&2 die () { echo echo "$*" echo exit 1 } >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false case "$( uname )" in #( CYGWIN* ) cygwin=true ;; #( Darwin* ) darwin=true ;; #( MSYS* | MINGW* ) msys=true ;; #( NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD=$JAVA_HOME/jre/sh/java else JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD=java which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac fi # Collect all arguments for the java command, stacking in reverse order: # * args from the command line # * the main class name # * -classpath # * -D...appname settings # * --module-path (only if needed) # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) JAVACMD=$( cygpath --unix "$JAVACMD" ) # Now convert the arguments - kludge to limit ourselves to /bin/sh for arg do if case $arg in #( -*) false ;; # don't mess with options #( /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath [ -e "$t" ] ;; #( *) false ;; esac then arg=$( cygpath --path --ignore --mixed "$arg" ) fi # Roll the args list around exactly as many times as the number of # args, so each arg winds up back in the position where it started, but # possibly modified. # # NB: a `for` loop captures its iteration list before it begins, so # changing the positional parameters here affects neither the number of # iterations, nor the values presented in `arg`. shift # remove old arg set -- "$@" "$arg" # push replacement arg done fi # Collect all arguments for the java command; # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # shell script including quotes and variable substitutions, so put them in # double quotes to make sure that they get re-expanded; and # * put everything else in single quotes, so that it's not re-expanded. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ -classpath "$CLASSPATH" \ org.gradle.wrapper.GradleWrapperMain \ "$@" # Stop when "xargs" is not available. if ! command -v xargs >/dev/null 2>&1 then die "xargs is not available" fi # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. # # In Bash we could simply go: # # readarray ARGS < <( xargs -n1 <<<"$var" ) && # set -- "${ARGS[@]}" "$@" # # but POSIX shell has neither arrays nor command substitution, so instead we # post-process each arg (as a line of input to sed) to backslash-escape any # character that might be a shell metacharacter, then use eval to reverse # that process (while maintaining the separation between arguments), and wrap # the whole thing up as a single "set" statement. # # This will of course break if any of these variables contains a newline or # an unmatched quote. # eval "set -- $( printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | xargs -n1 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | tr '\n' ' ' )" '"$@"' exec "$JAVACMD" "$@" golang-github-sigstore-protobuf-specs-0.2.1/java/gradlew.bat000066400000000000000000000054261455126531500241230ustar00rootroot00000000000000@rem @rem Copyright 2015 the original author or authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem https://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable law or agreed to in writing, software @rem distributed under the License is distributed on an "AS IS" BASIS, @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%"=="" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Resolve any "." and ".." in APP_HOME to make it shorter. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! set EXIT_CODE=%ERRORLEVEL% if %EXIT_CODE% equ 0 set EXIT_CODE=1 if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal :omega golang-github-sigstore-protobuf-specs-0.2.1/java/scripts/000077500000000000000000000000001455126531500234665ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/java/scripts/.gitignore000066400000000000000000000000131455126531500254500ustar00rootroot00000000000000release_*/ golang-github-sigstore-protobuf-specs-0.2.1/java/scripts/sign_and_bundle_release.sh000077500000000000000000000047771455126531500306570ustar00rootroot00000000000000#!/usr/bin/env bash set -e REQUIRED_PROGRAMS=("gpg" "cosign" "jq" "curl" "wget" "jar") usage() { echo -e "Usage: $0 \e[4mVERSION\e[0m" echo -e "\e[4mVERSION\e[0m is part of the tag release/java/, ex v1.0.0" echo -e "Requires" "${REQUIRED_PROGRAMS[@]}" } main() { # accepts exactly one arg if [ $# -ne 1 ]; then usage "$@" exit 1 fi RELEASE_TAG=$1 # check is all required programs are available on system for i in "${REQUIRED_PROGRAMS[@]}" do command -v "$i" >/dev/null 2>&1 || { echo -e "required program $i was not found" >&2 usage "$@" exit 1 } done # download release from github echo "Downloading release release/java/${1} from github" RELEASE_REPO="sigstore/protobuf-specs" RELEASE_URL="https://api.github.com/repos/${RELEASE_REPO}/releases/tags/release/java/${RELEASE_TAG}" RELEASE_INFO=$(curl -s -H "Accept: application/vnd.github+json" "${RELEASE_URL}") RELEASE_VERSION="$(echo "$RELEASE_INFO" | jq -r '.tag_name')" if [ "null" == "$RELEASE_VERSION" ]; then echo "ERROR: could not parse tag_name from release info" echo "$RELEASE_INFO" exit 1 fi RELEASE_DIR="${RELEASE_VERSION//\//_}" echo "Release version is: ${RELEASE_VERSION}" if [ -d "$RELEASE_DIR" ]; then echo "Directory '$RELEASE_DIR' already exists" exit 1 fi # query the json for all the release assets readarray -t ASSET_URLS < <(echo "$RELEASE_INFO" | jq -r '.assets[].browser_download_url') echo "Downloading release artifacts" for i in "${ASSET_URLS[@]}" do echo "$i" wget -q --directory-prefix "$RELEASE_DIR" "$i" done cd "$RELEASE_DIR" # cosign sign all the files echo "Signing with cosign" for file in *; do # skip intoto attestations, they are already signed if [[ "$file" == *.intoto.jsonl ]] ; then continue; fi COSIGN_EXPERIMENTAL=1 cosign sign-blob --yes "$file" --output-signature="$file.sig" --output-certificate="$file.pem" --bundle "$file.bundle" done # then gpg sign all the files (including sigstore files) # this command uses gpgs default password acceptance mechansim accept a passcode echo "Signing with gpg" for file in *; do gpg --batch --detach-sign --armor -o "$file.asc" "$file" done # create a maven central compatible bundle jar echo "Creating maven bundle" POM=$(ls ./*.pom) BUNDLE_NAME=${POM%.pom}-bundle.jar jar -cvf "${BUNDLE_NAME}" ./* echo "Upload $(realpath "$BUNDLE_NAME") to maven central (https://s01.oss.sonatype.org)" } main "$@" golang-github-sigstore-protobuf-specs-0.2.1/java/settings.gradle.kts000066400000000000000000000005531455126531500256220ustar00rootroot00000000000000/* * This file was generated by the Gradle 'init' task. * * The settings file is used to specify which projects to include in your build. * * Detailed information about configuring a multi-project build in Gradle can be found * in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html */ rootProject.name = "protobuf-specs" golang-github-sigstore-protobuf-specs-0.2.1/protos/000077500000000000000000000000001455126531500224045ustar00rootroot00000000000000golang-github-sigstore-protobuf-specs-0.2.1/protos/envelope.proto000066400000000000000000000034151455126531500253110ustar00rootroot00000000000000// https://raw.githubusercontent.com/secure-systems-lab/dsse/9c813476bd36de70a5738c72e784f123ecea16af/envelope.proto // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package io.intoto; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/dsse"; option ruby_package = "Sigstore::DSSE"; // An authenticated message of arbitrary type. message Envelope { // Message to be signed. (In JSON, this is encoded as base64.) // REQUIRED. bytes payload = 1; // String unambiguously identifying how to interpret payload. // REQUIRED. string payloadType = 2; // Signature over: // PAE(type, payload) // Where PAE is defined as: // PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload // + = concatenation // SP = ASCII space [0x20] // "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] // LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros // REQUIRED (length >= 1). repeated Signature signatures = 3; } message Signature { // Signature itself. (In JSON, this is encoded as base64.) // REQUIRED. bytes sig = 1; // *Unauthenticated* hint identifying which public key was used. // OPTIONAL. string keyid = 2; } golang-github-sigstore-protobuf-specs-0.2.1/protos/events.proto000066400000000000000000000042031455126531500247740ustar00rootroot00000000000000// https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/cloudevents.proto // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * CloudEvent Protobuf Format * * - Required context attributes are explicity represented. * - Optional and Extension context attributes are carried in a map structure. * - Data may be represented as binary, text, or protobuf messages. */ syntax = "proto3"; package dev.sigstore.events.v1; import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/events/v1"; option java_package = "dev.sigstore.proto.events.v1"; option java_multiple_files = true; message CloudEvent { // -- CloudEvent Context Attributes // Required Attributes string id = 1; string source = 2; // URI-reference string spec_version = 3; string type = 4; // Optional & Extension Attributes map attributes = 5; // -- CloudEvent Data (Bytes, Text, or Proto) oneof data { bytes binary_data = 6; string text_data = 7; google.protobuf.Any proto_data = 8; } /** * The CloudEvent specification defines * seven attribute value types... */ message CloudEventAttributeValue { oneof attr { bool ce_boolean = 1; int32 ce_integer = 2; string ce_string = 3; bytes ce_bytes = 4; string ce_uri = 5; string ce_uri_ref = 6; google.protobuf.Timestamp ce_timestamp = 7; } } } /** * CloudEvent Protobuf Batch Format * */ message CloudEventBatch { repeated CloudEvent events = 1; } golang-github-sigstore-protobuf-specs-0.2.1/protos/sigstore_bundle.proto000066400000000000000000000110061455126531500266570ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package dev.sigstore.bundle.v1; import "google/api/field_behavior.proto"; // https://raw.githubusercontent.com/secure-systems-lab/dsse/9c813476bd36de70a5738c72e784f123ecea16af/envelope.proto import "envelope.proto"; import "sigstore_common.proto"; import "sigstore_rekor.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/bundle/v1"; option java_package = "dev.sigstore.proto.bundle.v1"; option java_multiple_files = true; option java_outer_classname = "BundleProto"; option ruby_package = "Sigstore::Bundle::V1"; // Notes on versioning. // The primary message ('Bundle') MUST be versioned, by populating the // 'media_type' field. Semver-ish (only major/minor versions) scheme MUST // be used. The current version as specified by this file is: // application/vnd.dev.sigstore.bundle+json;version=0.2 // The semantic version is thus '0.2'. // Various timestamped counter signatures over the artifacts signature. // Currently only RFC3161 signatures are provided. More formats may be added // in the future. message TimestampVerificationData { // A list of RFC3161 signed timestamps provided by the user. // This can be used when the entry has not been stored on a // transparency log, or in conjunction for a stronger trust model. // Clients MUST verify the hashed message in the message imprint // against the signature in the bundle. repeated dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1; } // VerificationMaterial captures details on the materials used to verify // signatures. message VerificationMaterial { oneof content { dev.sigstore.common.v1.PublicKeyIdentifier public_key = 1 [(google.api.field_behavior) = REQUIRED]; dev.sigstore.common.v1.X509CertificateChain x509_certificate_chain = 2 [(google.api.field_behavior) = REQUIRED]; } // An inclusion proof and an optional signed timestamp from the log. // Client verification libraries MAY provide an option to support v0.1 // bundles for backwards compatibility, which may contain an inclusion // promise and not an inclusion proof. In this case, the client MUST // validate the promise. // Verifiers SHOULD NOT allow v0.1 bundles if they're used in an // ecosystem which never produced them. repeated dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3; // Timestamp may also come from // tlog_entries.inclusion_promise.signed_entry_timestamp. TimestampVerificationData timestamp_verification_data = 4; } message Bundle { // MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 // or application/vnd.dev.sigstore.bundle+json;version=0.2 // when encoded as JSON. string media_type = 1; // When a signer is identified by a X.509 certificate, a verifier MUST // verify that the signature was computed at the time the certificate // was valid as described in the Sigstore client spec: "Verification // using a Bundle". // VerificationMaterial verification_material = 2 [(google.api.field_behavior) = REQUIRED]; oneof content { dev.sigstore.common.v1.MessageSignature message_signature = 3 [(google.api.field_behavior) = REQUIRED]; // A DSSE envelope can contain arbitrary payloads. // Verifiers must verify that the payload type is a // supported and expected type. This is part of the DSSE // protocol which is defined here: // io.intoto.Envelope dsse_envelope = 4 [(google.api.field_behavior) = REQUIRED]; } // Reserved for future additions of artifact types. reserved 5 to 50; } golang-github-sigstore-protobuf-specs-0.2.1/protos/sigstore_common.proto000066400000000000000000000174151455126531500267100ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package dev.sigstore.common.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1"; option java_package = "dev.sigstore.proto.common.v1"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option ruby_package = "Sigstore::Common::V1"; // This package defines commonly used message types within the Sigstore // community. // Only a subset of the secure hash standard algorithms are supported. // See for more // details. // UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force // any proto JSON serialization to emit the used hash algorithm, as default // option is to *omit* the default value of an enum (which is the first // value, represented by '0'. enum HashAlgorithm { HASH_ALGORITHM_UNSPECIFIED = 0; SHA2_256 = 1; } // Details of a specific public key, capturing the the key encoding method, // and signature algorithm. // To avoid the possibility of contradicting formats such as PKCS1 with // ED25519 the valid permutations are listed as a linear set instead of a // cartesian set (i.e one combined variable instead of two, one for encoding // and one for the signature algorithm). enum PublicKeyDetails { PUBLIC_KEY_DETAILS_UNSPECIFIED = 0; // RSA PKCS1_RSA_PKCS1V5 = 1; // See RFC8017 PKCS1_RSA_PSS = 2; // See RFC8017 PKIX_RSA_PKCS1V5 = 3; PKIX_RSA_PSS = 4; // ECDSA PKIX_ECDSA_P256_SHA_256 = 5; // See NIST FIPS 186-4 PKIX_ECDSA_P256_HMAC_SHA_256 = 6; // See RFC6979 // Ed 25519 PKIX_ED25519 = 7; // See RFC8032 } // HashOutput captures a digest of a 'message' (generic octet sequence) // and the corresponding hash algorithm used. message HashOutput { HashAlgorithm algorithm = 1; // This is the raw octets of the message digest as computed by // the hash algorithm. bytes digest = 2; } // MessageSignature stores the computed signature over a message. message MessageSignature { // Message digest can be used to identify the artifact. // Clients MUST NOT attempt to use this digest to verify the associated // signature; it is intended solely for identification. HashOutput message_digest = 1; // The raw bytes as returned from the signature algorithm. // The signature algorithm (and so the format of the signature bytes) // are determined by the contents of the 'verification_material', // either a key-pair or a certificate. If using a certificate, the // certificate contains the required information on the signature // algorithm. // When using a key pair, the algorithm MUST be part of the public // key, which MUST be communicated out-of-band. bytes signature = 2 [(google.api.field_behavior) = REQUIRED]; } // LogId captures the identity of a transparency log. message LogId { // The unique id of the log, represented as the SHA-256 hash // of the log's public key, calculated over the DER encoding // of the key represented as SubjectPublicKeyInfo. // See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 bytes key_id = 1 [(google.api.field_behavior) = REQUIRED]; } // This message holds a RFC 3161 timestamp. message RFC3161SignedTimestamp { // Signed timestamp is the DER encoded TimeStampResponse. // See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2 bytes signed_timestamp = 1 [(google.api.field_behavior) = REQUIRED]; } message PublicKey { // DER-encoded public key, encoding method is specified by the // key_details attribute. optional bytes raw_bytes = 1; // Key encoding and signature algorithm to use for this key. PublicKeyDetails key_details = 2; // Optional validity period for this key, *inclusive* of the endpoints. optional TimeRange valid_for = 3; } // PublicKeyIdentifier can be used to identify an (out of band) delivered // key, to verify a signature. message PublicKeyIdentifier { // Optional unauthenticated hint on which key to use. // The format of the hint must be agreed upon out of band by the // signer and the verifiers, and so is not subject to this // specification. // Example use-case is to specify the public key to use, from a // trusted key-ring. // Implementors are RECOMMENDED to derive the value from the public // key as described in RFC 6962. // See: string hint = 1; } // An ASN.1 OBJECT IDENTIFIER message ObjectIdentifier { repeated int32 id = 1 [(google.api.field_behavior) = REQUIRED]; } // An OID and the corresponding (byte) value. message ObjectIdentifierValuePair { ObjectIdentifier oid = 1; bytes value = 2; } message DistinguishedName { string organization = 1; string common_name = 2; } message X509Certificate { // DER-encoded X.509 certificate. bytes raw_bytes = 1 [(google.api.field_behavior) = REQUIRED]; } enum SubjectAlternativeNameType { SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED = 0; EMAIL = 1; URI = 2; // OID 1.3.6.1.4.1.57264.1.7 // See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san // for more details. OTHER_NAME = 3; } message SubjectAlternativeName { SubjectAlternativeNameType type = 1; oneof identity { // A regular expression describing the expected value for // the SAN. string regexp = 2; // The exact value to match against. string value = 3; } } // A chain of X.509 certificates. message X509CertificateChain { // The chain of certificates, with indices 0 to n. // The first certificate in the array must be the leaf // certificate used for signing. // // Signers MUST NOT include their root CA certificates in their embedded // certificate chains, and SHOULD NOT include intermediate CA // certificates that appear in independent roots of trust. // // Verifiers MUST validate the chain carefully to ensure that it chains // up to a root CA certificate that they trust, regardless of whether // the chain includes additional intermediate/root CA certificates. // Verifiers MAY enforce additional constraints, such as requiring that // all intermediate CA certificates appear in an independent root of // trust. // // Verifiers SHOULD handle old or non-complying bundles that have // additional intermediate/root CA certificates. repeated X509Certificate certificates = 1; } // The time range is closed and includes both the start and end times, // (i.e., [start, end]). // End is optional to be able to capture a period that has started but // has no known end. message TimeRange { google.protobuf.Timestamp start = 1; optional google.protobuf.Timestamp end = 2; } golang-github-sigstore-protobuf-specs-0.2.1/protos/sigstore_rekor.proto000066400000000000000000000157241455126531500265430ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package dev.sigstore.rekor.v1; import "google/api/field_behavior.proto"; import "sigstore_common.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/rekor/v1"; option java_package = "dev.sigstore.proto.rekor.v1"; option java_multiple_files = true; option java_outer_classname = "RekorProto"; option ruby_package = "Sigstore::Rekor::V1"; // KindVersion contains the entry's kind and api version. message KindVersion { // Kind is the type of entry being stored in the log. // See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types string kind = 1 [(google.api.field_behavior) = REQUIRED]; // The specific api version of the type. string version = 2 [(google.api.field_behavior) = REQUIRED]; } // The checkpoint contains a signature of the tree head (root hash), // size of the tree, the transparency log's unique identifier (log ID), // hostname and the current time. // The result is a string, the format is described here // https://github.com/transparency-dev/formats/blob/main/log/README.md // The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 // The signature has the same format as // InclusionPromise.signed_entry_timestamp. See below for more details. message Checkpoint { string envelope = 1 [(google.api.field_behavior) = REQUIRED]; } // InclusionProof is the proof returned from the transparency log. Can // be used for offline or online verification against the log. message InclusionProof { // The index of the entry in the tree it was written to. int64 log_index = 1 [(google.api.field_behavior) = REQUIRED]; // The hash digest stored at the root of the merkle tree at the time // the proof was generated. bytes root_hash = 2 [(google.api.field_behavior) = REQUIRED]; // The size of the merkle tree at the time the proof was generated. int64 tree_size = 3 [(google.api.field_behavior) = REQUIRED]; // A list of hashes required to compute the inclusion proof, sorted // in order from leaf to root. // Note that leaf and root hashes are not included. // The root hash is available separately in this message, and the // leaf hash should be calculated by the client. repeated bytes hashes = 4 [(google.api.field_behavior) = REQUIRED]; // Signature of the tree head, as of the time of this proof was // generated. See above info on 'Checkpoint' for more details. Checkpoint checkpoint = 5 [(google.api.field_behavior) = REQUIRED]; } // The inclusion promise is calculated by Rekor. It's calculated as a // signature over a canonical JSON serialization of the persisted entry, the // log ID, log index and the integration timestamp. // See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 // The format of the signature depends on the transparency log's public key. // If the signature algorithm requires a hash function and/or a signature // scheme (e.g. RSA) those has to be retrieved out-of-band from the log's // operators, together with the public key. // This is used to verify the integration timestamp's value and that the log // has promised to include the entry. message InclusionPromise { bytes signed_entry_timestamp = 1 [(google.api.field_behavior) = REQUIRED]; } // TransparencyLogEntry captures all the details required from Rekor to // reconstruct an entry, given that the payload is provided via other means. // This type can easily be created from the existing response from Rekor. // Future iterations could rely on Rekor returning the minimal set of // attributes (excluding the payload) that are required for verifying the // inclusion promise. The inclusion promise (called SignedEntryTimestamp in // the response from Rekor) is similar to a Signed Certificate Timestamp // as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. message TransparencyLogEntry { // The global index of the entry, used when querying the log by index. int64 log_index = 1 [(google.api.field_behavior) = REQUIRED]; // The unique identifier of the log. dev.sigstore.common.v1.LogId log_id = 2 [(google.api.field_behavior) = REQUIRED]; // The kind (type) and version of the object associated with this // entry. These values are required to construct the entry during // verification. KindVersion kind_version = 3 [(google.api.field_behavior) = REQUIRED]; // The UNIX timestamp from the log when the entry was persisted. int64 integrated_time = 4 [(google.api.field_behavior) = REQUIRED]; // The inclusion promise/signed entry timestamp from the log. // Required for v0.1 bundles, and MUST be verified. // Optional for >= v0.2 bundles, and SHOULD be verified when present. // Also may be used as a signed timestamp. InclusionPromise inclusion_promise = 5; // The inclusion proof can be used for offline or online verification // that the entry was appended to the log, and that the log has not been // altered. InclusionProof inclusion_proof = 6 [(google.api.field_behavior) = REQUIRED]; // Optional. The canonicalized transparency log entry, used to // reconstruct the Signed Entry Timestamp (SET) during verification. // The contents of this field are the same as the `body` field in // a Rekor response, meaning that it does **not** include the "full" // canonicalized form (of log index, ID, etc.) which are // exposed as separate fields. The verifier is responsible for // combining the `canonicalized_body`, `log_index`, `log_id`, // and `integrated_time` into the payload that the SET's signature // is generated over. // This field is intended to be used in cases where the SET cannot be // produced determinisitically (e.g. inconsistent JSON field ordering, // differing whitespace, etc). // // If set, clients MUST verify that the signature referenced in the // `canonicalized_body` matches the signature provided in the // `Bundle.content`. // If not set, clients are responsible for constructing an equivalent // payload from other sources to verify the signature. bytes canonicalized_body = 7; } golang-github-sigstore-protobuf-specs-0.2.1/protos/sigstore_trustroot.proto000066400000000000000000000115511455126531500275000ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package dev.sigstore.trustroot.v1; import "sigstore_common.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/trustroot/v1"; option java_package = "dev.sigstore.proto.trustroot.v1"; option java_multiple_files = true; option java_outer_classname = "TrustRootProto"; option ruby_package = "Sigstore::TrustRoot::V1"; // TransparencyLogInstance describes the immutable parameters from a // transparency log. // See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters // for more details. // The included parameters are the minimal set required to identify a log, // and verify an inclusion proof/promise. message TransparencyLogInstance { // The base URL at which can be used to URLs for the client. string base_url = 1; // The hash algorithm used for the Merkle Tree. dev.sigstore.common.v1.HashAlgorithm hash_algorithm = 2; // The public key used to verify signatures generated by the log. // This attribute contains the signature algorithm used by the log. dev.sigstore.common.v1.PublicKey public_key = 3; // The unique identifier for this transparency log. dev.sigstore.common.v1.LogId log_id = 4; } // CertificateAuthority enlists the information required to identify which // CA to use and perform signature verification. message CertificateAuthority { // The root certificate MUST be self-signed, and so the subject and // issuer are the same. dev.sigstore.common.v1.DistinguishedName subject = 1; // The URI at which the CA can be accessed. string uri = 2; // The certificate chain for this CA. dev.sigstore.common.v1.X509CertificateChain cert_chain = 3; // The time the *entire* chain was valid. This is at max the // longest interval when *all* certificates in the chain were valid, // but it MAY be shorter. Clients MUST check timestamps against *both* // the `valid_for` time range *and* the entire certificate chain. // // The TimeRange should be considered valid *inclusive* of the // endpoints. dev.sigstore.common.v1.TimeRange valid_for = 4; } // TrustedRoot describes the client's complete set of trusted entities. // How the TrustedRoot is populated is not specified, but can be a // combination of many sources such as TUF repositories, files on disk etc. // // The TrustedRoot is not meant to be used for any artifact verification, only // to capture the complete/global set of trusted verification materials. // When verifying an artifact, based on the artifact and policies, a selection // of keys/authorities are expected to be extracted and provided to the // verification function. This way the set of keys/authorities can be kept to // a minimal set by the policy to gain better control over what signatures // that are allowed. // // The embedded transparency logs, CT logs, CAs and TSAs MUST include any // previously used instance -- otherwise signatures made in the past cannot // be verified. // The currently used instances MUST NOT have their 'end' timestamp set in // their 'valid_for' attribute for easy identification. // All the listed instances SHOULD be sorted by the 'valid_for' in ascending // order, that is, the oldest instance first and the current instance last. message TrustedRoot { // MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1 string media_type = 1; // A set of trusted Rekor servers. repeated TransparencyLogInstance tlogs = 2; // A set of trusted certificate authorities (e.g Fulcio), and any // intermediate certificates they provide. // If a CA is issuing multiple intermediate certificate, each // combination shall be represented as separate chain. I.e, a single // root cert may appear in multiple chains but with different // intermediate and/or leaf certificates. // The certificates are intended to be used for verifying artifact // signatures. repeated CertificateAuthority certificate_authorities = 3; // A set of trusted certificate transparency logs. repeated TransparencyLogInstance ctlogs = 4; // A set of trusted timestamping authorities. repeated CertificateAuthority timestamp_authorities = 5; } golang-github-sigstore-protobuf-specs-0.2.1/protos/sigstore_verification.proto000066400000000000000000000136231455126531500300770ustar00rootroot00000000000000// Copyright 2022 The Sigstore Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package dev.sigstore.verification.v1; import "sigstore_common.proto"; import "sigstore_trustroot.proto"; import "sigstore_bundle.proto"; option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/verification/v1"; option java_package = "dev.sigstore.proto.verification.v1"; option java_multiple_files = true; option java_outer_classname = "VerificationProto"; option ruby_package = "Sigstore::Verification::V1"; // The identity of a X.509 Certificate signer. message CertificateIdentity { // The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) string issuer = 1; dev.sigstore.common.v1.SubjectAlternativeName san = 2; // An unordered list of OIDs that must be verified. // All OID/values provided in this list MUST exactly match against // the values in the certificate for verification to be successful. repeated dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3; } message CertificateIdentities { repeated CertificateIdentity identities = 1; } message PublicKeyIdentities { repeated dev.sigstore.common.v1.PublicKey public_keys = 1; } // A light-weight set of options/policies for identifying trusted signers, // used during verification of a single artifact. message ArtifactVerificationOptions { message TlogOptions { // Number of transparency logs the entry must appear on. int32 threshold = 1; // Perform an online inclusion proof. bool perform_online_verification = 2; // Disable verification for transparency logs. bool disable = 3; } message CtlogOptions { // The number of ct transparency logs the certificate must // appear on. int32 threshold = 1; // Expect detached SCTs. // This is not supported right now as we can't capture an // detached SCT in the bundle. bool detached_sct = 2; // Disable ct transparency log verification bool disable = 3; } message TimestampAuthorityOptions { // The number of signed timestamps that are expected. int32 threshold = 1; // Disable signed timestamp verification. bool disable = 2; } // At least one identity MUST be provided. Providing zero identities // is an error. If at least one provided identity is found as a // signer, the verification is considered successful. oneof signers { CertificateIdentities certificate_identities = 1; // To simplify verification implementation, the logic for // bundle verification should be implemented as a // higher-order function, where one of argument should be an // interface over the set of trusted public keys, like this: // `Verify(bytes artifact, bytes signature, string key_id)`. // This way the caller is in full control of mapping the // identified (or hinted) key in the bundle to one of the // trusted keys, as this process is inherently application // specific. PublicKeyIdentities public_keys = 2; } // Optional options for artifact transparency log verification. // If none is provided, the default verification options are: // Threshold: 1 // Online verification: false // Disable: false optional TlogOptions tlog_options = 3; // Optional options for certificate transparency log verification. // If none is provided, the default verification options are: // Threshold: 1 // Detached SCT: false // Disable: false optional CtlogOptions ctlog_options = 4; // Optional options for certificate signed timestamp verification. // If none is provided, the default verification options are: // Threshold: 1 // Disable: false optional TimestampAuthorityOptions tsa_options = 5; } message Artifact { oneof data { // Location of the artifact string artifact_uri = 1; // The raw bytes of the artifact bytes artifact = 2; } } // Input captures all that is needed to call the bundle verification method, // to verify a single artifact referenced by the bundle. message Input { // The verification materials provided during a bundle verification. // The running process is usually preloaded with a "global" // dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to // verifying an artifact (i.e a bundle), and/or based on current // policy, some selection is expected to happen, to filter out the // exact certificate authority to use, which transparency logs are // relevant etc. The result should b ecaptured in the // `artifact_trust_root`. dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1; ArtifactVerificationOptions artifact_verification_options = 2; dev.sigstore.bundle.v1.Bundle bundle = 3; // If the bundle contains a message signature, the artifact must be // provided. optional Artifact artifact = 4; }