pax_global_header00006660000000000000000000000064147377720260014531gustar00rootroot0000000000000052 comment=dadc81ee6ad4fe3988b4b332cb29fd7cf6ead3ee protobuf-specs-0.3.3/000077500000000000000000000000001473777202600145075ustar00rootroot00000000000000protobuf-specs-0.3.3/.gitattributes000066400000000000000000000000321473777202600173750ustar00rootroot00000000000000*.pb.go linguist-generatedprotobuf-specs-0.3.3/.github/000077500000000000000000000000001473777202600160475ustar00rootroot00000000000000protobuf-specs-0.3.3/.github/ISSUE_TEMPLATE/000077500000000000000000000000001473777202600202325ustar00rootroot00000000000000protobuf-specs-0.3.3/.github/ISSUE_TEMPLATE/release-checklist.md000066400000000000000000000035161473777202600241500ustar00rootroot00000000000000--- 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) protobuf-specs-0.3.3/.github/dependabot.yml000066400000000000000000000020261473777202600206770ustar00rootroot00000000000000# # 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" - package-ecosystem: "gradle" directory: "/java" schedule: interval: "daily" groups: protobuf: patterns: - "*protobuf*" protobuf-specs-0.3.3/.github/workflows/000077500000000000000000000000001473777202600201045ustar00rootroot00000000000000protobuf-specs-0.3.3/.github/workflows/generate.yml000066400000000000000000000025711473777202600224260ustar00rootroot00000000000000# # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # 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 protobuf-specs-0.3.3/.github/workflows/gradle-wrapper-validation.yml000066400000000000000000000004751473777202600257010ustar00rootroot00000000000000name: "Validate Gradle Wrapper" on: [push, pull_request] jobs: validation: name: "Validation" runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 protobuf-specs-0.3.3/.github/workflows/java-build.yml000066400000000000000000000027651473777202600226570ustar00rootroot00000000000000# # 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: [11, 17] fail-fast: false runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 with: java-version: ${{ matrix.java-version }} distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 # make sure jar generation works and tests/checks pass - name: Test run: | cd java ./gradlew build protobuf-specs-0.3.3/.github/workflows/java-release.yml000066400000000000000000000042031473777202600231650ustar00rootroot00000000000000name: 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] permissions: id-token: write # to sign with sigstore steps: - name: checkout tag uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up JDK 11 uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 with: java-version: 11 distribution: 'temurin' - name: Build project working-directory: ./java run: | # override the version in gradle.properties # we have to do some post processing with pgp signatures, cause those secrets aren't online yet ./gradlew clean createReleaseBundle -Pversion=${{ needs.strip-tag.outputs.version }} -Prelease -PskipPgpSigning - name: Upload build artifacts uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 with: name: project-release-artifacts path: ./java/build/libs/protobuf-specs-*-bundle.jar if-no-files-found: error create-release: runs-on: ubuntu-latest needs: [build] permissions: contents: write # To draft a release steps: - name: Download gradle release artifacts uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: name: project-release-artifacts path: ./release/ - name: Create release uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 with: name: ${{ github.ref_name }} tag_name: ${{ github.ref_name }} files: ./release/* protobuf-specs-0.3.3/.github/workflows/python-build.yml000066400000000000000000000027101473777202600232450ustar00rootroot00000000000000# # 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.8", "3.9", "3.10", "3.11", "3.12"] fail-fast: false runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.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 protobuf-specs-0.3.3/.github/workflows/python-release.yml000066400000000000000000000012721473777202600235700ustar00rootroot00000000000000on: push: tags: - 'release/python/v*' name: release Python package jobs: pypi: name: upload release to PyPI runs-on: ubuntu-latest permissions: id-token: write # required for trusted publishing to PyPI steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: "3.x" - name: build run: | cd gen/pb-python/ make package - name: publish uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3 with: packages-dir: gen/pb-python/dist/ protobuf-specs-0.3.3/.github/workflows/ruby-build.yml000066400000000000000000000026051473777202600227100ustar00rootroot00000000000000# # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby ${{ matrix.python-version }} uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: ruby-version: ${{ matrix.python-version }} - name: Build run: | gem build sigstore_protobuf_specs.gemspec protobuf-specs-0.3.3/.github/workflows/ruby-release.yml000066400000000000000000000025551473777202600232350ustar00rootroot00000000000000# # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.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}}" protobuf-specs-0.3.3/.github/workflows/rust-build.yml000066400000000000000000000031171473777202600227230ustar00rootroot00000000000000# # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: | make rust - run: | RUST_ACTION="publish -p sigstore_protobuf_specs --dry-run" make rust test: runs-on: ubuntu-latest strategy: matrix: toolchain: - stable steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: | make rust RUST_ACTION=test protobuf-specs-0.3.3/.github/workflows/rust-release.yml000066400000000000000000000017231473777202600232450ustar00rootroot00000000000000# # 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 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: RUST_ACTION='publish -p sigstore_protobuf_specs' make rust env: CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}" protobuf-specs-0.3.3/.github/workflows/typescript-build.yml000066400000000000000000000030231473777202600241300ustar00rootroot00000000000000# # 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: - 16.14.0 - 16.x - 18.17.0 - 18.x - 20.5.0 - 20.x fail-fast: false runs-on: ubuntu-latest defaults: run: working-directory: gen/pb-typescript steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup node ${{ matrix.node-version }} uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 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 protobuf-specs-0.3.3/.github/workflows/typescript-publish.yml000066400000000000000000000030051473777202600244770ustar00rootroot00000000000000# # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup node uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 with: node-version: 18 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 }} protobuf-specs-0.3.3/.gitignore000066400000000000000000000000031473777202600164700ustar00rootroot00000000000000*~ protobuf-specs-0.3.3/CHANGELOG.md000066400000000000000000000133221473777202600163210ustar00rootroot00000000000000# 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] ### Added ### Changed ## 0.3.3 * Allowed specifying artifact digest for verification ([#406](https://github.com/sigstore/protobuf-specs/pull/406) * Added version to `SigningConfig` message ([#383](https://github.com/sigstore/protobuf-specs/pull/383) ### Changed * Docs: Clarify that integration time is only trustworthy with a Signed Entry Timestamp ([#442](https://github.com/sigstore/protobuf-specs/pull/442) * Docs: Clarify inclusion promise requirement ([#380](https://github.com/sigstore/protobuf-specs/pull/380) * Docs: Clarify that artifact digest verification should not be used with in-toto attestations ([#461](https://github.com/sigstore/protobuf-specs/pull/461) ## 0.3.2 * Added `TransparencyLogInstance.checkpoint_key_id` as an optional key identifier for logs that generate checkpoints ([#284](https://github.com/sigstore/protobuf-specs/pull/284)) ### Changed * Docs: Clarified DSSE envelope signature cardinality ([#318](https://github.com/sigstore/protobuf-specs/pull/318)) * Docs: Clarifier behavior of key identifiers ([#284](https://github.com/sigstore/protobuf-specs/pull/284)) ## 0.3.1 * Added client configuration message for signing ([#277](https://github.com/sigstore/protobuf-specs/pull/277)) * Added a new format for the media type that is compatible with OCI registries ([#279](https://github.com/sigstore/protobuf-specs/pull/279)) * Added events.proto for Ruby package ([#264](https://github.com/sigstore/protobuf-specs/pull/264)) * Targeted Node16 for Typescript package ([#230](https://github.com/sigstore/protobuf-specs/pull/230)) ### Changed * Docs: Removed timestamp from checkpoint ([#247](https://github.com/sigstore/protobuf-specs/pull/247)) * Remove EXPERIMENTAL prefix from LMS schemes ([#214](https://github.com/sigstore/protobuf-specs/pull/214)) ### Fixed * Docs: Clarified trust anchor in chain ([#245]([https://github.com/sigstore/protobuf-specs/pull/210](https://github.com/sigstore/protobuf-specs/pull/245)) ## 0.3.0 * Options for more generic observer time ([#179](https://github.com/sigstore/protobuf-specs/pull/179)) * **BREAKING**: `VerificationMaterials.contents` now has an additional `certificate` variant, which is preferred in `0.3` bundles with the Sigstore PGI ([#191](https://github.com/sigstore/protobuf-specs/pull/191)) * Added algorithm registry documentation and updated `PublicKeyDetails` message ([#194](https://github.com/sigstore/protobuf-specs/pull/194), [#212](https://github.com/sigstore/protobuf-specs/pull/212)) * Deterministic ECDSA is **deprecated** * NIST-P384 and NIST-P521 curves **added** * Existing (and underspecified) RSA key types are **deprecated**. New RSA keytypes are defined that specifies size of public modulus and hash algorithm. RSA now only supports [PKCS#1](https://datatracker.ietf.org/doc/html/rfc8017#section-8.2) signature scheme, and PKIX ([SubjectPublicKeyInfo](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1)) encoding. * Experimental support for [LMS](https://datatracker.ietf.org/doc/html/rfc8554) key types. ### Changed * Deprecated support for detached SCTs ([#188](https://github.com/sigstore/protobuf-specs/pull/188)) ### Fixed * Docs: Clarified rotation of verification materials in the trust root ([#210](https://github.com/sigstore/protobuf-specs/pull/210) ## 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. protobuf-specs-0.3.3/CODE_OF_CONDUCT.md000066400000000000000000000062161473777202600173130ustar00rootroot00000000000000# 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/protobuf-specs-0.3.3/COPYRIGHT.txt000066400000000000000000000010631473777202600166200ustar00rootroot00000000000000 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. protobuf-specs-0.3.3/Dockerfile000066400000000000000000000012111473777202600164740ustar00rootroot00000000000000FROM 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 protobuf-specs-0.3.3/Dockerfile.jsonschema000066400000000000000000000010761473777202600206360ustar00rootroot00000000000000# 3.18.2 FROM alpine@sha256:b97e2a89d0b9e4011bb88c02ddf01c544b8c781acf1f4d559e7c8f12f1047ac3 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 protobuf-specs-0.3.3/LICENSE000066400000000000000000000261361473777202600155240ustar00rootroot00000000000000 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. protobuf-specs-0.3.3/Makefile000066400000000000000000000073001473777202600161470ustar00rootroot00000000000000# # 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 RUST_ACTION ?= run -p sigstore-protobuf-specs-codegen # generate all language protobuf code all: go python typescript ruby jsonschema rust # 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" mkdir -p gen/jsonschema/schemas 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" rust: docker-image docker run \ --platform linux/amd64 \ -v ${PWD}:/defs \ -e "RUST_BACKTRACE=1" \ -e "CARGO_REGISTRY_TOKEN" \ --entrypoint bash ${PROTOC_IMAGE} \ -c "cd gen/pb-rust && cargo ${RUST_ACTION}" # 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/target \ gen/jsonschema/schemas docker rmi -f ${PROTOC_IMAGE} help: docker run --pull always --platform linux/amd64 -v ${PWD}:/defs ${PROTOC_IMAGE} protobuf-specs-0.3.3/README.md000066400000000000000000000006551473777202600157740ustar00rootroot00000000000000# 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/`. protobuf-specs-0.3.3/RELEASE.md000066400000000000000000000113741473777202600161170ustar00rootroot00000000000000# 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. protobuf-specs-0.3.3/dev-requirements.txt000066400000000000000000000000371473777202600205470ustar00rootroot00000000000000betterproto[compiler]==2.0.0b7 protobuf-specs-0.3.3/docs/000077500000000000000000000000001473777202600154375ustar00rootroot00000000000000protobuf-specs-0.3.3/docs/algorithm-registry.md000066400000000000000000000076351473777202600216300ustar00rootroot00000000000000# Algorithm Registry This file is designed to act as a source of truth regarding what signing algorithms are recommended across the Sigstore ecosystem. Any changes to this file **must** be reflected in the `PublicKeyDetails` enumeration in [sigstore_common.proto](../protos/sigstore_common.proto). Note that Sigstore clients and services aren't required support all algorithms in this registry and may support algorithms that aren't in the registry. The algorithm registry is more of a guideline than a rule and is meant to serve as a secure set of defaults that the community can follow. Refer to the [Sigstore: Configurable Crypto Algorithms](https://docs.google.com/document/d/18vTKFvTQdRt3OGz6Qd1xf04o-hugRYSup-1EAOWn7MQ/) specification for the design rationale for this registry. ## Signature Algorithms | Algorithm | Name | Usage | Notes | |-----------|----------------------------|-------------| -------------------------------------------------------------------------------- | | RSA | rsa-sign-pkcs1-2048-sha256 | verify only | Not recommended. | | | rsa-sign-pkcs1-3072-sha256 | sign/verify | | | | rsa-sign-pkcs1-4096-sha256 | sign/verify | | | | rsa-sign-pss-2048-sha256 | verify only | Not recommended. | | | rsa-sign-pss-3072-sha256 | sign/verify | | | | rsa-sign-pss-4096-sha256 | sign/verify | | | ECDSA | ecdsa-sha2-256-nistp256 | sign/verify | | | | ecdsa-sha2-384-nistp384 | sign/verify | | | | ecdsa-sha2-512-nistp521 | sign/verify | | | EdDSA | ed25519 | sign/verify | | | | ed25519-ph | sign/verify | Recommended only for `hashedrekord`. | | LMS | lms-sha256 | sign/verify | Stateful; signer selects the `H` parameter. Not recommended for keyless signing. | | LM-OTS | lmots-sha256 | sign/verify | One-time use only; signer selects `n` and `w`. | ### Parameter configuration for LMS and LM-OTS LMS and LM-OTS are both hash-based signature schemes. Both require the signing party to make parameter choices during key generation. In both cases, the selected parameters are encoded in the public key representation. See [RFC 8554 S5.3](https://www.rfc-editor.org/rfc/rfc8554.html#section-5.3) for LMS and [RFC 8554 S4.3](https://www.rfc-editor.org/rfc/rfc8554.html#section-4.3) for LM-OTS public key formats. Additionally, see [RFC 8708 S4](https://www.rfc-editor.org/rfc/rfc8708.html) for `SubjectPublicKeyInfo` and `AlgorithmIdentifier` encodings for both LMS and LM-OTS public keys. ## Hash Algorithms Generally speaking, these hash algorithms are implied by the above signing suites. However, clients *may* need to list or configure them explicitly, e.g. for custom signing schemes or as part of a `hashedrekord` entry. | Algorithm | Name | |-----------|--------------| | SHA2 | sha2-256 | | | sha2-384 | | | sha2-512 | | SHA3 | sha3-256 | | | sha3-384 | protobuf-specs-0.3.3/gen/000077500000000000000000000000001473777202600152605ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/jsonschema/000077500000000000000000000000001473777202600174125ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/jsonschema/jsonschema.sh000077500000000000000000000005131473777202600221020ustar00rootroot00000000000000#!/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 \ "$@" protobuf-specs-0.3.3/gen/jsonschema/schemas/000077500000000000000000000000001473777202600210355ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/jsonschema/schemas/Artifact.schema.json000066400000000000000000000062311473777202600247260ustar00rootroot00000000000000{ "$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" }, "artifactDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Digest of the artifact. SHOULD NOT be used when verifying an in-toto attestation as the subject digest cannot be reconstructed. This option will not work with Ed25519 signatures, use Ed25519Ph or another algorithm instead." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] }, { "required": [ "artifact_digest" ] } ], "title": "Artifact" }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/ArtifactVerificationOptions.schema.json000066400000000000000000000374471473777202600306620ustar00rootroot00000000000000{ "$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 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: 0 Disable: true" }, "integratedTsOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions", "additionalProperties": false, "description": "Optional options for integrated timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true" }, "observerOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions", "additionalProperties": false, "description": "Optional options for observed 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" ] }, { "required": [ "integrated_ts_options" ] }, { "required": [ "observer_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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of external observers of the timestamp. This is a union of RFC3161 signed timestamps, and integrated timestamps from a transparency log, that could include additional timestamp sources in the future." }, "disable": { "type": "boolean", "description": "Disable observer timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Observer Timestamp 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.TlogIntegratedTimestampOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of integrated timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable integrated timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Tlog Integrated Timestamp 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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/Bundle.schema.json000066400000000000000000000606001473777202600244020ustar00rootroot00000000000000{ "$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.v0.3+json when when encoded as JSON. Clients must to be able to accept media type using the previously defined formats: * application/vnd.dev.sigstore.bundle+json;version=0.1 * application/vnd.dev.sigstore.bundle+json;version=0.2 * application/vnd.dev.sigstore.bundle+json;version=0.3" }, "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 If the verification material contains a public key identifier (key hint) and the `content` is a DSSE envelope, the key hints MUST be exactly the same in the verification material and in the DSSE envelope." }, "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 DSSE envelopes in a bundle MUST have exactly one signture. This is a limitation from the DSSE spec, as it can contain multiple signatures. There are two primary reasons: 1. It simplfies the verification logic and policy 2. The bundle (currently) can only contain a single instance of the required verification materials During verification a client MUST reject an envelope if the number of signatures is not equal to one." } }, "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.v0.3+json\n The semantic version is thus '0.3'.", "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.v0.3+json The semantic version is thus '0.3'. 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 }, "certificate": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate", "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" ] }, { "required": [ "certificate" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures. This message may be embedded in a DSSE envelope as a signature extension. Specifically, the `ext` field of the extension will expect this message when the signature extension is for Sigstore. This is identified by the `kind` field in the extension, which must be set to application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. When used as a DSSE extension, if the `public_key` field is used to indicate the key identifier, it MUST match the `keyid` field of the signature the extension is attached to." }, "dev.sigstore.common.v1.HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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 identity of the log, represented by its public key.", "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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" }, "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. The integration time MUST NOT be trusted if inclusion_promise is omitted." }, "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 if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise." }, "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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/CertificateAuthority.schema.json000066400000000000000000000113331473777202600273230ustar00rootroot00000000000000{ "$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 identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate." }, "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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/CertificateIdentities.schema.json000066400000000000000000000100631473777202600274330ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/CertificateIdentity.schema.json000066400000000000000000000070441473777202600271300ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/Checkpoint.schema.json000066400000000000000000000021761473777202600252640ustar00rootroot00000000000000{ "$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 MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/ClientTrustConfig.schema.json000066400000000000000000000457471473777202600266160ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/ClientTrustConfig", "definitions": { "ClientTrustConfig": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json" }, "trustedRoot": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.TrustedRoot", "additionalProperties": false, "description": "The root of trust, which MUST be present." }, "signingConfig": { "$ref": "#/definitions/dev.sigstore.trustroot.v1.SigningConfig", "additionalProperties": false, "description": "Configuration for signing clients, which MUST be present." } }, "additionalProperties": false, "type": "object", "title": "Client Trust Config", "description": "ClientTrustConfig describes the complete state needed by a client to perform both signing and verification operations against a particular instance of Sigstore." }, "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 identity of the log, represented by its public key.", "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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "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 identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate." }, "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.SigningConfig": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json" }, "caUrl": { "type": "string", "description": "A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates. This URL **MUST** be the \"base\" URL for the CA, which clients should construct an appropriate CSR endpoint on top of. For example, if `ca_url` is `https://example.com/ca`, then the client **MAY** construct the CSR endpoint as `https://example.com/ca/api/v2/signingCert`." }, "oidcUrl": { "type": "string", "description": "A URL to an OpenID Connect identity provider. This URL **MUST** be the \"base\" URL for the OIDC IdP, which clients should perform well-known OpenID Connect discovery against." }, "tlogUrls": { "items": { "type": "string" }, "type": "array", "description": "One or more URLs to Rekor-compatible transparency log. Each URL **MUST** be the \"base\" URL for the transparency log, which clients should construct appropriate API endpoints on top of." }, "tsaUrls": { "items": { "type": "string" }, "type": "array", "description": "One ore more URLs to RFC 3161 Time Stamping Authority (TSA). Each URL **MUST** be the **full** URL for the TSA, meaning that it should be suitable for submitting Time Stamp Requests (TSRs) to via HTTP, per RFC 3161." } }, "additionalProperties": false, "type": "object", "title": "Signing Config", "description": "SigningConfig represents the trusted entities/state needed by Sigstore signing. In particular, it primarily contains service URLs that a Sigstore signer may need to connect to for the online aspects of signing." }, "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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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. 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" }, "checkpointKeyId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash." } }, "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.v0.1+json when encoded as JSON. Clients MUST be able to process and parse content with the media type defined in the old format: 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. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first. Only the last instance is allowed to have their 'end' timestamp unset. All previous instances MUST have a closed interval of validity. The last instance MAY have a closed interval. Clients MUST accept instances that overlaps in time, if not clients may experience problems during rotations of verification materials. To be able to manage planned rotations of either transparency logs or certificate authorities, clienst MUST accept lists of instances where the last instance have a 'valid_for' that belongs to the future. This should not be a problem as clients SHOULD first seek the trust root for a suitable instance before creating a per artifact trust root (that is, a sub-set of the complete trust root) that is used for verification." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/CloudEvent.schema.json000066400000000000000000000137501473777202600252450ustar00rootroot00000000000000{ "$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. As of May 2023, there are no widely used type server implementations and no plans to implement one. 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..." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/CloudEventBatch.schema.json000066400000000000000000000150521473777202600262040ustar00rootroot00000000000000{ "$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. As of May 2023, there are no widely used type server implementations and no plans to implement one. 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..." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/DistinguishedName.schema.json000066400000000000000000000007771473777202600266060ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/Envelope.schema.json000066400000000000000000000042551473777202600247520ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/HashOutput.schema.json000066400000000000000000000033311473777202600252730ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/HashOutput", "definitions": { "HashOutput": { "properties": { "algorithm": { "enum": [ "HASH_ALGORITHM_UNSPECIFIED", "SHA2_256", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/InclusionPromise.schema.json000066400000000000000000000022711473777202600264730ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/InclusionProof.schema.json000066400000000000000000000060221473777202600261400ustar00rootroot00000000000000{ "$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 MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/Input.schema.json000066400000000000000000001522551473777202600243000ustar00rootroot00000000000000{ "$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.v0.3+json when when encoded as JSON. Clients must to be able to accept media type using the previously defined formats: * application/vnd.dev.sigstore.bundle+json;version=0.1 * application/vnd.dev.sigstore.bundle+json;version=0.2 * application/vnd.dev.sigstore.bundle+json;version=0.3" }, "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 If the verification material contains a public key identifier (key hint) and the `content` is a DSSE envelope, the key hints MUST be exactly the same in the verification material and in the DSSE envelope." }, "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 DSSE envelopes in a bundle MUST have exactly one signture. This is a limitation from the DSSE spec, as it can contain multiple signatures. There are two primary reasons: 1. It simplfies the verification logic and policy 2. The bundle (currently) can only contain a single instance of the required verification materials During verification a client MUST reject an envelope if the number of signatures is not equal to one." } }, "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.v0.3+json\n The semantic version is thus '0.3'.", "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.v0.3+json The semantic version is thus '0.3'. 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 }, "certificate": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate", "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" ] }, { "required": [ "certificate" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures. This message may be embedded in a DSSE envelope as a signature extension. Specifically, the `ext` field of the extension will expect this message when the signature extension is for Sigstore. This is identified by the `kind` field in the extension, which must be set to application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. When used as a DSSE extension, if the `public_key` field is used to indicate the key identifier, it MUST match the `keyid` field of the signature the extension is attached to." }, "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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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 identity of the log, represented by its public key.", "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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" }, "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. The integration time MUST NOT be trusted if inclusion_promise is omitted." }, "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 if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise." }, "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 identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate." }, "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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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. 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" }, "checkpointKeyId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash." } }, "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.v0.1+json when encoded as JSON. Clients MUST be able to process and parse content with the media type defined in the old format: 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. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first. Only the last instance is allowed to have their 'end' timestamp unset. All previous instances MUST have a closed interval of validity. The last instance MAY have a closed interval. Clients MUST accept instances that overlaps in time, if not clients may experience problems during rotations of verification materials. To be able to manage planned rotations of either transparency logs or certificate authorities, clienst MUST accept lists of instances where the last instance have a 'valid_for' that belongs to the future. This should not be a problem as clients SHOULD first seek the trust root for a suitable instance before creating a per artifact trust root (that is, a sub-set of the complete trust root) that is used for verification." }, "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" }, "artifactDigest": { "$ref": "#/definitions/dev.sigstore.common.v1.HashOutput", "additionalProperties": false, "description": "Digest of the artifact. SHOULD NOT be used when verifying an in-toto attestation as the subject digest cannot be reconstructed. This option will not work with Ed25519 signatures, use Ed25519Ph or another algorithm instead." } }, "additionalProperties": false, "type": "object", "oneOf": [ { "required": [ "artifact_uri" ] }, { "required": [ "artifact" ] }, { "required": [ "artifact_digest" ] } ], "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 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: 0 Disable: true" }, "integratedTsOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions", "additionalProperties": false, "description": "Optional options for integrated timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true" }, "observerOptions": { "$ref": "#/definitions/dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions", "additionalProperties": false, "description": "Optional options for observed 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" ] }, { "required": [ "integrated_ts_options" ] }, { "required": [ "observer_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." }, "disable": { "type": "boolean", "description": "Disable ct transparency log verification" } }, "additionalProperties": false, "type": "object", "title": "Ctlog Options" }, "dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of external observers of the timestamp. This is a union of RFC3161 signed timestamps, and integrated timestamps from a transparency log, that could include additional timestamp sources in the future." }, "disable": { "type": "boolean", "description": "Disable observer timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Observer Timestamp 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.TlogIntegratedTimestampOptions": { "properties": { "threshold": { "type": "integer", "description": "The number of integrated timestamps that are expected." }, "disable": { "type": "boolean", "description": "Disable integrated timestamp verification." } }, "additionalProperties": false, "type": "object", "title": "Tlog Integrated Timestamp 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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/KindVersion.schema.json000066400000000000000000000014471473777202600254300ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/LogId.schema.json000066400000000000000000000012121473777202600241610ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/LogId", "definitions": { "LogId": { "properties": { "keyId": { "type": "string", "description": "The unique identity of the log, represented by its public key.", "format": "binary", "binaryEncoding": "base64" } }, "additionalProperties": false, "type": "object", "title": "Log Id", "description": "LogId captures the identity of a transparency log." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/MessageSignature.schema.json000066400000000000000000000060521473777202600264400ustar00rootroot00000000000000{ "$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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/ObjectIdentifier.schema.json000066400000000000000000000010621473777202600263770ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/ObjectIdentifierValuePair.schema.json000066400000000000000000000023221473777202600302100ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/PublicKey.schema.json000066400000000000000000000074241473777202600250650ustar00rootroot00000000000000{ "$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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/PublicKeyIdentifier.schema.json000066400000000000000000000017671473777202600270740ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/PublicKeyIdentities.schema.json000066400000000000000000000104221473777202600270770ustar00rootroot00000000000000{ "$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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/RFC3161SignedTimestamp.schema.json000066400000000000000000000013651473777202600271370ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/Signature.schema.json000066400000000000000000000014061473777202600251310ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/SigningConfig.schema.json000066400000000000000000000045521473777202600257210ustar00rootroot00000000000000{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/SigningConfig", "definitions": { "SigningConfig": { "properties": { "mediaType": { "type": "string", "description": "MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json" }, "caUrl": { "type": "string", "description": "A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates. This URL **MUST** be the \"base\" URL for the CA, which clients should construct an appropriate CSR endpoint on top of. For example, if `ca_url` is `https://example.com/ca`, then the client **MAY** construct the CSR endpoint as `https://example.com/ca/api/v2/signingCert`." }, "oidcUrl": { "type": "string", "description": "A URL to an OpenID Connect identity provider. This URL **MUST** be the \"base\" URL for the OIDC IdP, which clients should perform well-known OpenID Connect discovery against." }, "tlogUrls": { "items": { "type": "string" }, "type": "array", "description": "One or more URLs to Rekor-compatible transparency log. Each URL **MUST** be the \"base\" URL for the transparency log, which clients should construct appropriate API endpoints on top of." }, "tsaUrls": { "items": { "type": "string" }, "type": "array", "description": "One ore more URLs to RFC 3161 Time Stamping Authority (TSA). Each URL **MUST** be the **full** URL for the TSA, meaning that it should be suitable for submitting Time Stamp Requests (TSRs) to via HTTP, per RFC 3161." } }, "additionalProperties": false, "type": "object", "title": "Signing Config", "description": "SigningConfig represents the trusted entities/state needed by Sigstore signing. In particular, it primarily contains service URLs that a Sigstore signer may need to connect to for the online aspects of signing." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/SubjectAlternativeName.schema.json000066400000000000000000000025011473777202600275640ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/TimeRange.schema.json000066400000000000000000000016351473777202600250470ustar00rootroot00000000000000{ "$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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/TimestampVerificationData.schema.json000066400000000000000000000045151473777202600302740ustar00rootroot00000000000000{ "$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.v0.3+json\n The semantic version is thus '0.3'.", "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.v0.3+json The semantic version is thus '0.3'. 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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/TransparencyLogEntry.schema.json000066400000000000000000000224031473777202600273250ustar00rootroot00000000000000{ "$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. The integration time MUST NOT be trusted if inclusion_promise is omitted." }, "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 if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise." }, "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 identity of the log, represented by its public key.", "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 MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" }, "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/TransparencyLogInstance.schema.json000066400000000000000000000174241473777202600277770ustar00rootroot00000000000000{ "$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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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. 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" }, "checkpointKeyId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash." } }, "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 identity of the log, represented by its public key.", "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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/TrustedRoot.schema.json000066400000000000000000000371321473777202600254730ustar00rootroot00000000000000{ "$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.v0.1+json when encoded as JSON. Clients MUST be able to process and parse content with the media type defined in the old format: 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. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first. Only the last instance is allowed to have their 'end' timestamp unset. All previous instances MUST have a closed interval of validity. The last instance MAY have a closed interval. Clients MUST accept instances that overlaps in time, if not clients may experience problems during rotations of verification materials. To be able to manage planned rotations of either transparency logs or certificate authorities, clienst MUST accept lists of instances where the last instance have a 'valid_for' that belongs to the future. This should not be a problem as clients SHOULD first seek the trust root for a suitable instance before creating a per artifact trust root (that is, a sub-set of the complete trust root) that is used for verification." }, "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 identity of the log, represented by its public key.", "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_RSA_PKCS1V15_2048_SHA256", "PKIX_RSA_PKCS1V15_3072_SHA256", "PKIX_RSA_PKCS1V15_4096_SHA256", "PKIX_RSA_PSS_2048_SHA256", "PKIX_RSA_PSS_3072_SHA256", "PKIX_RSA_PSS_4096_SHA256", "PKIX_ECDSA_P256_HMAC_SHA_256", "PKIX_ECDSA_P256_SHA_256", "PKIX_ECDSA_P384_SHA_384", "PKIX_ECDSA_P521_SHA_512", "PKIX_ED25519", "PKIX_ED25519_PH", "LMS_SHA256", "LMOTS_SHA256" ], "type": "string", "title": "Public Key Details", "description": "Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "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 identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority." }, "certChain": { "$ref": "#/definitions/dev.sigstore.common.v1.X509CertificateChain", "additionalProperties": false, "description": "The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate." }, "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", "SHA2_384", "SHA2_512", "SHA3_256", "SHA3_384" ], "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. 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" }, "checkpointKeyId": { "$ref": "#/definitions/dev.sigstore.common.v1.LogId", "additionalProperties": false, "description": "The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash." } }, "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/VerificationMaterial.schema.json000066400000000000000000000412151473777202600272730ustar00rootroot00000000000000{ "$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 }, "certificate": { "$ref": "#/definitions/dev.sigstore.common.v1.X509Certificate", "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" ] }, { "required": [ "certificate" ] } ], "title": "Verification Material", "description": "VerificationMaterial captures details on the materials used to verify signatures. This message may be embedded in a DSSE envelope as a signature extension. Specifically, the `ext` field of the extension will expect this message when the signature extension is for Sigstore. This is identified by the `kind` field in the extension, which must be set to application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. When used as a DSSE extension, if the `public_key` field is used to indicate the key identifier, it MUST match the `keyid` field of the signature the extension is attached to." }, "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.v0.3+json\n The semantic version is thus '0.3'.", "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.v0.3+json The semantic version is thus '0.3'. 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 identity of the log, represented by its public key.", "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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "dev.sigstore.rekor.v1.Checkpoint": { "properties": { "envelope": { "type": "string" } }, "additionalProperties": false, "type": "object", "title": "Checkpoint", "description": "The checkpoint MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go" }, "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. The integration time MUST NOT be trusted if inclusion_promise is omitted." }, "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 if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise." }, "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." } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/X509Certificate.schema.json000066400000000000000000000010731473777202600260000ustar00rootroot00000000000000{ "$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" } } }protobuf-specs-0.3.3/gen/jsonschema/schemas/X509CertificateChain.schema.json000066400000000000000000000030721473777202600267440ustar00rootroot00000000000000{ "$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": "One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order." } }, "additionalProperties": false, "type": "object", "title": "X 509 Certificate Chain", "description": "A collection of X.509 certificates. This \"chain\" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building." }, "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" } } }protobuf-specs-0.3.3/gen/pb-go/000077500000000000000000000000001473777202600162645ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/bundle/000077500000000000000000000000001473777202600175355ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/bundle/v1/000077500000000000000000000000001473777202600200635ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/bundle/v1/sigstore_bundle.pb.go000066400000000000000000000624711473777202600242140ustar00rootroot00000000000000// 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. This message may be embedded in a DSSE envelope as a signature // extension. Specifically, the `ext` field of the extension will expect this // message when the signature extension is for Sigstore. This is identified by // the `kind` field in the extension, which must be set to // application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. // When used as a DSSE extension, if the `public_key` field is used to indicate // the key identifier, it MUST match the `keyid` field of the signature the // extension is attached to. type VerificationMaterial struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The key material for verification purposes. // // This allows key material to be conveyed in one of three forms: // // 1. An unspecified public key identifier, for retrieving a key // from an out-of-band mechanism (such as a keyring); // // 2. A sequence of one or more X.509 certificates, of which the first member // MUST be a leaf certificate conveying the signing key. Subsequent members // SHOULD be in issuing order, meaning that `n + 1` should be an issuer for `n`. // // Signers MUST NOT include root CA certificates in bundles, and SHOULD NOT // include intermediate CA certificates that appear in an independent root of trust // (such as the Public Good Instance's trusted root). // // Verifiers MUST validate the chain carefully to ensure that it chains up // to a CA certificate that they independently trust. Verifiers SHOULD // handle old or non-complying bundles that have superfluous intermediate and/or // root CA certificates by either ignoring them or explicitly considering them // untrusted for the purposes of chain building. // // 3. A single X.509 certificate, which MUST be a leaf certificate conveying // the signing key. // // When used with the Public Good Instance (PGI) of Sigstore for "keyless" signing // via Fulcio, form (1) MUST NOT be used, regardless of bundle version. Form (1) // MAY be used with the PGI for self-managed keys. // // When used in a `0.1` or `0.2` bundle with the PGI and "keyless" signing, // form (2) MUST be used. // // When used in a `0.3` bundle with the PGI and "keyless" signing, // form (3) MUST be used. // // Types that are assignable to Content: // // *VerificationMaterial_PublicKey // *VerificationMaterial_X509CertificateChain // *VerificationMaterial_Certificate 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) GetCertificate() *v1.X509Certificate { if x, ok := x.GetContent().(*VerificationMaterial_Certificate); ok { return x.Certificate } 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"` } type VerificationMaterial_Certificate struct { Certificate *v1.X509Certificate `protobuf:"bytes,5,opt,name=certificate,proto3,oneof"` } func (*VerificationMaterial_PublicKey) isVerificationMaterial_Content() {} func (*VerificationMaterial_X509CertificateChain) isVerificationMaterial_Content() {} func (*VerificationMaterial_Certificate) isVerificationMaterial_Content() {} type Bundle struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.bundle.v0.3+json when // when encoded as JSON. // Clients must to be able to accept media type using the previously // defined formats: // * application/vnd.dev.sigstore.bundle+json;version=0.1 // * application/vnd.dev.sigstore.bundle+json;version=0.2 // * application/vnd.dev.sigstore.bundle+json;version=0.3 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". // // If the verification material contains a public key identifier // (key hint) and the `content` is a DSSE envelope, the key hints // MUST be exactly the same in the verification material and in the // DSSE envelope. 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: // // DSSE envelopes in a bundle MUST have exactly one signture. // This is a limitation from the DSSE spec, as it can contain // multiple signatures. There are two primary reasons: // 1. It simplfies the verification logic and policy // 2. The bundle (currently) can only contain a single // instance of the required verification materials // // During verification a client MUST reject an envelope if // the number of signatures is not equal to one. 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, 0xf4, 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, 0x50, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 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, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 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 (*v1.X509Certificate)(nil), // 6: dev.sigstore.common.v1.X509Certificate (*v11.TransparencyLogEntry)(nil), // 7: dev.sigstore.rekor.v1.TransparencyLogEntry (*v1.MessageSignature)(nil), // 8: dev.sigstore.common.v1.MessageSignature (*dsse.Envelope)(nil), // 9: 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.certificate:type_name -> dev.sigstore.common.v1.X509Certificate 7, // 4: dev.sigstore.bundle.v1.VerificationMaterial.tlog_entries:type_name -> dev.sigstore.rekor.v1.TransparencyLogEntry 0, // 5: dev.sigstore.bundle.v1.VerificationMaterial.timestamp_verification_data:type_name -> dev.sigstore.bundle.v1.TimestampVerificationData 1, // 6: dev.sigstore.bundle.v1.Bundle.verification_material:type_name -> dev.sigstore.bundle.v1.VerificationMaterial 8, // 7: dev.sigstore.bundle.v1.Bundle.message_signature:type_name -> dev.sigstore.common.v1.MessageSignature 9, // 8: dev.sigstore.bundle.v1.Bundle.dsse_envelope:type_name -> io.intoto.Envelope 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_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), (*VerificationMaterial_Certificate)(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 } protobuf-specs-0.3.3/gen/pb-go/common/000077500000000000000000000000001473777202600175545ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/common/v1/000077500000000000000000000000001473777202600201025ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/common/v1/sigstore_common.pb.go000066400000000000000000001514461473777202600242530ustar00rootroot00000000000000// 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 HashAlgorithm_SHA2_384 HashAlgorithm = 2 HashAlgorithm_SHA2_512 HashAlgorithm = 3 HashAlgorithm_SHA3_256 HashAlgorithm = 4 HashAlgorithm_SHA3_384 HashAlgorithm = 5 ) // Enum value maps for HashAlgorithm. var ( HashAlgorithm_name = map[int32]string{ 0: "HASH_ALGORITHM_UNSPECIFIED", 1: "SHA2_256", 2: "SHA2_384", 3: "SHA2_512", 4: "SHA3_256", 5: "SHA3_384", } HashAlgorithm_value = map[string]int32{ "HASH_ALGORITHM_UNSPECIFIED": 0, "SHA2_256": 1, "SHA2_384": 2, "SHA2_512": 3, "SHA3_256": 4, "SHA3_384": 5, } ) 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. // // PublicKeyDetails captures the public key/hash algorithm combinations // recommended in the Sigstore ecosystem. // // This is modelled as a linear set as we want to provide a small number of // opinionated options instead of allowing every possible permutation. // // Any changes to this enum MUST be reflected in the algorithm registry. // See: docs/algorithm-registry.md // // 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 // // Deprecated: Do not use. PublicKeyDetails_PKCS1_RSA_PKCS1V5 PublicKeyDetails = 1 // See RFC8017 // Deprecated: Do not use. PublicKeyDetails_PKCS1_RSA_PSS PublicKeyDetails = 2 // See RFC8017 // Deprecated: Do not use. PublicKeyDetails_PKIX_RSA_PKCS1V5 PublicKeyDetails = 3 // Deprecated: Do not use. PublicKeyDetails_PKIX_RSA_PSS PublicKeyDetails = 4 // RSA public key in PKIX format, PKCS#1v1.5 signature PublicKeyDetails_PKIX_RSA_PKCS1V15_2048_SHA256 PublicKeyDetails = 9 PublicKeyDetails_PKIX_RSA_PKCS1V15_3072_SHA256 PublicKeyDetails = 10 PublicKeyDetails_PKIX_RSA_PKCS1V15_4096_SHA256 PublicKeyDetails = 11 // RSA public key in PKIX format, RSASSA-PSS signature PublicKeyDetails_PKIX_RSA_PSS_2048_SHA256 PublicKeyDetails = 16 // See RFC4055 PublicKeyDetails_PKIX_RSA_PSS_3072_SHA256 PublicKeyDetails = 17 PublicKeyDetails_PKIX_RSA_PSS_4096_SHA256 PublicKeyDetails = 18 // ECDSA // // Deprecated: Do not use. PublicKeyDetails_PKIX_ECDSA_P256_HMAC_SHA_256 PublicKeyDetails = 6 // See RFC6979 PublicKeyDetails_PKIX_ECDSA_P256_SHA_256 PublicKeyDetails = 5 // See NIST FIPS 186-4 PublicKeyDetails_PKIX_ECDSA_P384_SHA_384 PublicKeyDetails = 12 PublicKeyDetails_PKIX_ECDSA_P521_SHA_512 PublicKeyDetails = 13 // Ed 25519 PublicKeyDetails_PKIX_ED25519 PublicKeyDetails = 7 // See RFC8032 PublicKeyDetails_PKIX_ED25519_PH PublicKeyDetails = 8 // LMS and LM-OTS // // These keys and signatures may be used by private Sigstore // deployments, but are not currently supported by the public // good instance. // // USER WARNING: LMS and LM-OTS are both stateful signature schemes. // Using them correctly requires discretion and careful consideration // to ensure that individual secret keys are not used more than once. // In addition, LM-OTS is a single-use scheme, meaning that it // MUST NOT be used for more than one signature per LM-OTS key. // If you cannot maintain these invariants, you MUST NOT use these // schemes. PublicKeyDetails_LMS_SHA256 PublicKeyDetails = 14 PublicKeyDetails_LMOTS_SHA256 PublicKeyDetails = 15 ) // 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", 9: "PKIX_RSA_PKCS1V15_2048_SHA256", 10: "PKIX_RSA_PKCS1V15_3072_SHA256", 11: "PKIX_RSA_PKCS1V15_4096_SHA256", 16: "PKIX_RSA_PSS_2048_SHA256", 17: "PKIX_RSA_PSS_3072_SHA256", 18: "PKIX_RSA_PSS_4096_SHA256", 6: "PKIX_ECDSA_P256_HMAC_SHA_256", 5: "PKIX_ECDSA_P256_SHA_256", 12: "PKIX_ECDSA_P384_SHA_384", 13: "PKIX_ECDSA_P521_SHA_512", 7: "PKIX_ED25519", 8: "PKIX_ED25519_PH", 14: "LMS_SHA256", 15: "LMOTS_SHA256", } 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_RSA_PKCS1V15_2048_SHA256": 9, "PKIX_RSA_PKCS1V15_3072_SHA256": 10, "PKIX_RSA_PKCS1V15_4096_SHA256": 11, "PKIX_RSA_PSS_2048_SHA256": 16, "PKIX_RSA_PSS_3072_SHA256": 17, "PKIX_RSA_PSS_4096_SHA256": 18, "PKIX_ECDSA_P256_HMAC_SHA_256": 6, "PKIX_ECDSA_P256_SHA_256": 5, "PKIX_ECDSA_P384_SHA_384": 12, "PKIX_ECDSA_P521_SHA_512": 13, "PKIX_ED25519": 7, "PKIX_ED25519_PH": 8, "LMS_SHA256": 14, "LMOTS_SHA256": 15, } ) 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 identity of the log, represented by its public key. 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 collection of X.509 certificates. // // This "chain" can be used in multiple contexts, such as providing a root CA // certificate within a TUF root of trust or multiple untrusted certificates for // the purpose of chain building. type X509CertificateChain struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // One or more DER-encoded certificates. // // In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence // has an imposed order. Unless explicitly specified, there is otherwise no // guaranteed order. 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, 0x75, 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, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x41, 0x32, 0x5f, 0x33, 0x38, 0x34, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x41, 0x32, 0x5f, 0x35, 0x31, 0x32, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x41, 0x33, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x41, 0x33, 0x5f, 0x33, 0x38, 0x34, 0x10, 0x05, 0x2a, 0xa7, 0x04, 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, 0x19, 0x0a, 0x11, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x35, 0x10, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x10, 0x02, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x18, 0x0a, 0x10, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x35, 0x10, 0x03, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x14, 0x0a, 0x0c, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x10, 0x04, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x31, 0x35, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x09, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x31, 0x35, 0x5f, 0x33, 0x30, 0x37, 0x32, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x4b, 0x43, 0x53, 0x31, 0x56, 0x31, 0x35, 0x5f, 0x34, 0x30, 0x39, 0x36, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x0b, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x5f, 0x32, 0x30, 0x34, 0x38, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x10, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x5f, 0x33, 0x30, 0x37, 0x32, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x11, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x50, 0x53, 0x53, 0x5f, 0x34, 0x30, 0x39, 0x36, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x12, 0x12, 0x24, 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, 0x1a, 0x02, 0x08, 0x01, 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, 0x1b, 0x0a, 0x17, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x50, 0x33, 0x38, 0x34, 0x5f, 0x53, 0x48, 0x41, 0x5f, 0x33, 0x38, 0x34, 0x10, 0x0c, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x50, 0x35, 0x32, 0x31, 0x5f, 0x53, 0x48, 0x41, 0x5f, 0x35, 0x31, 0x32, 0x10, 0x0d, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x5f, 0x50, 0x48, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x4d, 0x53, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x0e, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x4d, 0x4f, 0x54, 0x53, 0x5f, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x0f, 0x22, 0x04, 0x08, 0x13, 0x10, 0x32, 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 } protobuf-specs-0.3.3/gen/pb-go/dsse/000077500000000000000000000000001473777202600172225ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/dsse/envelope.pb.go000066400000000000000000000211611473777202600217670ustar00rootroot00000000000000// 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 } protobuf-specs-0.3.3/gen/pb-go/events/000077500000000000000000000000001473777202600175705ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/events/v1/000077500000000000000000000000001473777202600201165ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/events/v1/events.pb.go000066400000000000000000000515601473777202600223600ustar00rootroot00000000000000// 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, 0x6b, 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, 0xea, 0x02, 0x10, 0x53, 0x69, 0x67, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 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 } protobuf-specs-0.3.3/gen/pb-go/rekor/000077500000000000000000000000001473777202600174065ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/rekor/v1/000077500000000000000000000000001473777202600177345ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/rekor/v1/sigstore_rekor.pb.go000066400000000000000000000620431473777202600237310ustar00rootroot00000000000000// 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 MUST contain an origin string as a unique log identifier, // the tree size, and the root hash. It MAY also be followed by optional data, // and clients MUST NOT assume optional data. The checkpoint MUST also contain // a signature over the root hash (tree head). The checkpoint MAY contain additional // signatures, but the first SHOULD be the signature from the log. Checkpoint contents // are concatenated with newlines into a single string. // The checkpoint format is described in // https://github.com/transparency-dev/formats/blob/main/log/README.md // and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. // An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go 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. // The integration time MUST NOT be trusted if inclusion_promise // is omitted. 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 if another suitable source of // time is present (such as another source of signed time, // or the current system time for long-lived certificates). // MUST be verified if no other suitable source of time is present, // and SHOULD be verified otherwise. 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 } protobuf-specs-0.3.3/gen/pb-go/trustroot/000077500000000000000000000000001473777202600203515ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/trustroot/v1/000077500000000000000000000000001473777202600206775ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/trustroot/v1/sigstore_trustroot.pb.go000066400000000000000000001023311473777202600256320ustar00rootroot00000000000000// 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" _ "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) ) // 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. // 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 LogId *v1.LogId `protobuf:"bytes,4,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // The checkpoint key identifier for the log used in a checkpoint. // Optional, not provided for logs that do not generate checkpoints. // For logs that do generate checkpoints, if not set, assume // log_id equals checkpoint_key_id. // Follows the specification described here // for ECDSA and Ed25519 signatures: // https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures // For RSA signatures, the key ID will match the ECDSA format, the // hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT // use RSA-signed checkpoints, since witnesses do not support // RSA signatures. // This is provided for convenience. Clients can also calculate the // checkpoint key ID given the log's public key. // SHOULD be set for logs generating Ed25519 signatures. // SHOULD be 4 bytes long, as a truncated hash. CheckpointKeyId *v1.LogId `protobuf:"bytes,5,opt,name=checkpoint_key_id,json=checkpointKeyId,proto3" json:"checkpoint_key_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 } func (x *TransparencyLogInstance) GetCheckpointKeyId() *v1.LogId { if x != nil { return x.CheckpointKeyId } 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 identifies the certificate authority. // // It is RECOMMENDED that the URI is the base URL for the certificate // authority, that can be provided to any SDK/client provided // by the certificate authority to interact with the certificate // authority. Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The certificate chain for this CA. The last certificate in the chain // MUST be the trust anchor. The trust anchor MAY be a self-signed root // CA certificate or MAY be an intermediate CA certificate. 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. // // All the listed instances SHOULD be sorted by the 'valid_for' in ascending // order, that is, the oldest instance first. Only the last instance is // allowed to have their 'end' timestamp unset. All previous instances MUST // have a closed interval of validity. The last instance MAY have a closed // interval. Clients MUST accept instances that overlaps in time, if not // clients may experience problems during rotations of verification // materials. // // To be able to manage planned rotations of either transparency logs or // certificate authorities, clienst MUST accept lists of instances where // the last instance have a 'valid_for' that belongs to the future. // This should not be a problem as clients SHOULD first seek the trust root // for a suitable instance before creating a per artifact trust root (that // is, a sub-set of the complete trust root) that is used for verification. type TrustedRoot struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json // when encoded as JSON. // Clients MUST be able to process and parse content with the media // type defined in the old format: // 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 } // SigningConfig represents the trusted entities/state needed by Sigstore // signing. In particular, it primarily contains service URLs that a Sigstore // signer may need to connect to for the online aspects of signing. type SigningConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json MediaType string `protobuf:"bytes,5,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // A URL to a Fulcio-compatible CA, capable of receiving // Certificate Signing Requests (CSRs) and responding with // issued certificates. // // This URL **MUST** be the "base" URL for the CA, which clients // should construct an appropriate CSR endpoint on top of. // For example, if `ca_url` is `https://example.com/ca`, then // the client **MAY** construct the CSR endpoint as // `https://example.com/ca/api/v2/signingCert`. CaUrl string `protobuf:"bytes,1,opt,name=ca_url,json=caUrl,proto3" json:"ca_url,omitempty"` // A URL to an OpenID Connect identity provider. // // This URL **MUST** be the "base" URL for the OIDC IdP, which clients // should perform well-known OpenID Connect discovery against. OidcUrl string `protobuf:"bytes,2,opt,name=oidc_url,json=oidcUrl,proto3" json:"oidc_url,omitempty"` // One or more URLs to Rekor-compatible transparency log. // // Each URL **MUST** be the "base" URL for the transparency log, // which clients should construct appropriate API endpoints on top of. TlogUrls []string `protobuf:"bytes,3,rep,name=tlog_urls,json=tlogUrls,proto3" json:"tlog_urls,omitempty"` // One ore more URLs to RFC 3161 Time Stamping Authority (TSA). // // Each URL **MUST** be the **full** URL for the TSA, meaning that it // should be suitable for submitting Time Stamp Requests (TSRs) to // via HTTP, per RFC 3161. TsaUrls []string `protobuf:"bytes,4,rep,name=tsa_urls,json=tsaUrls,proto3" json:"tsa_urls,omitempty"` } func (x *SigningConfig) Reset() { *x = SigningConfig{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_trustroot_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SigningConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*SigningConfig) ProtoMessage() {} func (x *SigningConfig) ProtoReflect() protoreflect.Message { mi := &file_sigstore_trustroot_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 SigningConfig.ProtoReflect.Descriptor instead. func (*SigningConfig) Descriptor() ([]byte, []int) { return file_sigstore_trustroot_proto_rawDescGZIP(), []int{3} } func (x *SigningConfig) GetMediaType() string { if x != nil { return x.MediaType } return "" } func (x *SigningConfig) GetCaUrl() string { if x != nil { return x.CaUrl } return "" } func (x *SigningConfig) GetOidcUrl() string { if x != nil { return x.OidcUrl } return "" } func (x *SigningConfig) GetTlogUrls() []string { if x != nil { return x.TlogUrls } return nil } func (x *SigningConfig) GetTsaUrls() []string { if x != nil { return x.TsaUrls } return nil } // ClientTrustConfig describes the complete state needed by a client // to perform both signing and verification operations against a particular // instance of Sigstore. type ClientTrustConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // The root of trust, which MUST be present. TrustedRoot *TrustedRoot `protobuf:"bytes,2,opt,name=trusted_root,json=trustedRoot,proto3" json:"trusted_root,omitempty"` // Configuration for signing clients, which MUST be present. SigningConfig *SigningConfig `protobuf:"bytes,3,opt,name=signing_config,json=signingConfig,proto3" json:"signing_config,omitempty"` } func (x *ClientTrustConfig) Reset() { *x = ClientTrustConfig{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_trustroot_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ClientTrustConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClientTrustConfig) ProtoMessage() {} func (x *ClientTrustConfig) ProtoReflect() protoreflect.Message { mi := &file_sigstore_trustroot_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 ClientTrustConfig.ProtoReflect.Descriptor instead. func (*ClientTrustConfig) Descriptor() ([]byte, []int) { return file_sigstore_trustroot_proto_rawDescGZIP(), []int{4} } func (x *ClientTrustConfig) GetMediaType() string { if x != nil { return x.MediaType } return "" } func (x *ClientTrustConfig) GetTrustedRoot() *TrustedRoot { if x != nil { return x.TrustedRoot } return nil } func (x *ClientTrustConfig) GetSigningConfig() *SigningConfig { if x != nil { return x.SigningConfig } 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, 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, 0xc5, 0x02, 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, 0x12, 0x49, 0x0a, 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 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, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4b, 0x65, 0x79, 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, 0x22, 0x98, 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x69, 0x64, 0x63, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6c, 0x6f, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6c, 0x6f, 0x67, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x73, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x73, 0x61, 0x55, 0x72, 0x6c, 0x73, 0x22, 0xd8, 0x01, 0x0a, 0x11, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x4e, 0x0a, 0x0c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02, 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, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x54, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 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, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 5) 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 (*SigningConfig)(nil), // 3: dev.sigstore.trustroot.v1.SigningConfig (*ClientTrustConfig)(nil), // 4: dev.sigstore.trustroot.v1.ClientTrustConfig (v1.HashAlgorithm)(0), // 5: dev.sigstore.common.v1.HashAlgorithm (*v1.PublicKey)(nil), // 6: dev.sigstore.common.v1.PublicKey (*v1.LogId)(nil), // 7: dev.sigstore.common.v1.LogId (*v1.DistinguishedName)(nil), // 8: dev.sigstore.common.v1.DistinguishedName (*v1.X509CertificateChain)(nil), // 9: dev.sigstore.common.v1.X509CertificateChain (*v1.TimeRange)(nil), // 10: dev.sigstore.common.v1.TimeRange } var file_sigstore_trustroot_proto_depIdxs = []int32{ 5, // 0: dev.sigstore.trustroot.v1.TransparencyLogInstance.hash_algorithm:type_name -> dev.sigstore.common.v1.HashAlgorithm 6, // 1: dev.sigstore.trustroot.v1.TransparencyLogInstance.public_key:type_name -> dev.sigstore.common.v1.PublicKey 7, // 2: dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id:type_name -> dev.sigstore.common.v1.LogId 7, // 3: dev.sigstore.trustroot.v1.TransparencyLogInstance.checkpoint_key_id:type_name -> dev.sigstore.common.v1.LogId 8, // 4: dev.sigstore.trustroot.v1.CertificateAuthority.subject:type_name -> dev.sigstore.common.v1.DistinguishedName 9, // 5: dev.sigstore.trustroot.v1.CertificateAuthority.cert_chain:type_name -> dev.sigstore.common.v1.X509CertificateChain 10, // 6: dev.sigstore.trustroot.v1.CertificateAuthority.valid_for:type_name -> dev.sigstore.common.v1.TimeRange 0, // 7: dev.sigstore.trustroot.v1.TrustedRoot.tlogs:type_name -> dev.sigstore.trustroot.v1.TransparencyLogInstance 1, // 8: dev.sigstore.trustroot.v1.TrustedRoot.certificate_authorities:type_name -> dev.sigstore.trustroot.v1.CertificateAuthority 0, // 9: dev.sigstore.trustroot.v1.TrustedRoot.ctlogs:type_name -> dev.sigstore.trustroot.v1.TransparencyLogInstance 1, // 10: dev.sigstore.trustroot.v1.TrustedRoot.timestamp_authorities:type_name -> dev.sigstore.trustroot.v1.CertificateAuthority 2, // 11: dev.sigstore.trustroot.v1.ClientTrustConfig.trusted_root:type_name -> dev.sigstore.trustroot.v1.TrustedRoot 3, // 12: dev.sigstore.trustroot.v1.ClientTrustConfig.signing_config:type_name -> dev.sigstore.trustroot.v1.SigningConfig 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_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 } } file_sigstore_trustroot_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SigningConfig); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_trustroot_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClientTrustConfig); 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: 5, 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 } protobuf-specs-0.3.3/gen/pb-go/verification/000077500000000000000000000000001473777202600207465ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/verification/v1/000077500000000000000000000000001473777202600212745ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-go/verification/v1/sigstore_verification.pb.go000066400000000000000000001474711473777202600266420ustar00rootroot00000000000000// 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 // 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: 0 // Disable: true TsaOptions *ArtifactVerificationOptions_TimestampAuthorityOptions `protobuf:"bytes,5,opt,name=tsa_options,json=tsaOptions,proto3,oneof" json:"tsa_options,omitempty"` // Optional options for integrated timestamp verification. // If none is provided, the default verification options are: // Threshold: 0 // Disable: true IntegratedTsOptions *ArtifactVerificationOptions_TlogIntegratedTimestampOptions `protobuf:"bytes,6,opt,name=integrated_ts_options,json=integratedTsOptions,proto3,oneof" json:"integrated_ts_options,omitempty"` // Optional options for observed timestamp verification. // If none is provided, the default verification options are: // Threshold 1 // Disable: false ObserverOptions *ArtifactVerificationOptions_ObserverTimestampOptions `protobuf:"bytes,7,opt,name=observer_options,json=observerOptions,proto3,oneof" json:"observer_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 } func (x *ArtifactVerificationOptions) GetIntegratedTsOptions() *ArtifactVerificationOptions_TlogIntegratedTimestampOptions { if x != nil { return x.IntegratedTsOptions } return nil } func (x *ArtifactVerificationOptions) GetObserverOptions() *ArtifactVerificationOptions_ObserverTimestampOptions { if x != nil { return x.ObserverOptions } 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 // *Artifact_ArtifactDigest 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 } func (x *Artifact) GetArtifactDigest() *v1.HashOutput { if x, ok := x.GetData().(*Artifact_ArtifactDigest); ok { return x.ArtifactDigest } 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"` } type Artifact_ArtifactDigest struct { // Digest of the artifact. SHOULD NOT be used when verifying an // in-toto attestation as the subject digest cannot be // reconstructed. This option will not work with Ed25519 // signatures, use Ed25519Ph or another algorithm instead. ArtifactDigest *v1.HashOutput `protobuf:"bytes,3,opt,name=artifact_digest,json=artifactDigest,proto3,oneof"` } func (*Artifact_ArtifactUri) isArtifact_Data() {} func (*Artifact_Artifact) isArtifact_Data() {} func (*Artifact_ArtifactDigest) 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"` // 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) 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 } type ArtifactVerificationOptions_TlogIntegratedTimestampOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The number of integrated timestamps that are expected. Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // Disable integrated timestamp verification. Disable bool `protobuf:"varint,2,opt,name=disable,proto3" json:"disable,omitempty"` } func (x *ArtifactVerificationOptions_TlogIntegratedTimestampOptions) Reset() { *x = ArtifactVerificationOptions_TlogIntegratedTimestampOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions_TlogIntegratedTimestampOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions_TlogIntegratedTimestampOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions_TlogIntegratedTimestampOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_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 ArtifactVerificationOptions_TlogIntegratedTimestampOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions_TlogIntegratedTimestampOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3, 3} } func (x *ArtifactVerificationOptions_TlogIntegratedTimestampOptions) GetThreshold() int32 { if x != nil { return x.Threshold } return 0 } func (x *ArtifactVerificationOptions_TlogIntegratedTimestampOptions) GetDisable() bool { if x != nil { return x.Disable } return false } type ArtifactVerificationOptions_ObserverTimestampOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The number of external observers of the timestamp. // This is a union of RFC3161 signed timestamps, and // integrated timestamps from a transparency log, that // could include additional timestamp sources in the // future. Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // Disable observer timestamp verification. Disable bool `protobuf:"varint,2,opt,name=disable,proto3" json:"disable,omitempty"` } func (x *ArtifactVerificationOptions_ObserverTimestampOptions) Reset() { *x = ArtifactVerificationOptions_ObserverTimestampOptions{} if protoimpl.UnsafeEnabled { mi := &file_sigstore_verification_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ArtifactVerificationOptions_ObserverTimestampOptions) String() string { return protoimpl.X.MessageStringOf(x) } func (*ArtifactVerificationOptions_ObserverTimestampOptions) ProtoMessage() {} func (x *ArtifactVerificationOptions_ObserverTimestampOptions) ProtoReflect() protoreflect.Message { mi := &file_sigstore_verification_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 ArtifactVerificationOptions_ObserverTimestampOptions.ProtoReflect.Descriptor instead. func (*ArtifactVerificationOptions_ObserverTimestampOptions) Descriptor() ([]byte, []int) { return file_sigstore_verification_proto_rawDescGZIP(), []int{3, 4} } func (x *ArtifactVerificationOptions_ObserverTimestampOptions) GetThreshold() int32 { if x != nil { return x.Threshold } return 0 } func (x *ArtifactVerificationOptions_ObserverTimestampOptions) 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, 0x9c, 0x0b, 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, 0x12, 0x91, 0x01, 0x0a, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x58, 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, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x04, 0x52, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x54, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x82, 0x01, 0x0a, 0x10, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 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, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x05, 0x52, 0x0f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 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, 0x4c, 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, 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, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 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, 0x1a, 0x58, 0x0a, 0x1e, 0x54, 0x6c, 0x6f, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x1a, 0x52, 0x0a, 0x18, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa4, 0x01, 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, 0x12, 0x4d, 0x0a, 0x0f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x03, 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, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x69, 0x67, 0x65, 0x73, 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, 11) 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 (*ArtifactVerificationOptions_TlogIntegratedTimestampOptions)(nil), // 9: dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions (*ArtifactVerificationOptions_ObserverTimestampOptions)(nil), // 10: dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions (*v1.SubjectAlternativeName)(nil), // 11: dev.sigstore.common.v1.SubjectAlternativeName (*v1.ObjectIdentifierValuePair)(nil), // 12: dev.sigstore.common.v1.ObjectIdentifierValuePair (*v1.PublicKey)(nil), // 13: dev.sigstore.common.v1.PublicKey (*v1.HashOutput)(nil), // 14: dev.sigstore.common.v1.HashOutput (*v11.TrustedRoot)(nil), // 15: dev.sigstore.trustroot.v1.TrustedRoot (*v12.Bundle)(nil), // 16: dev.sigstore.bundle.v1.Bundle } var file_sigstore_verification_proto_depIdxs = []int32{ 11, // 0: dev.sigstore.verification.v1.CertificateIdentity.san:type_name -> dev.sigstore.common.v1.SubjectAlternativeName 12, // 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 13, // 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 9, // 9: dev.sigstore.verification.v1.ArtifactVerificationOptions.integrated_ts_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions 10, // 10: dev.sigstore.verification.v1.ArtifactVerificationOptions.observer_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions 14, // 11: dev.sigstore.verification.v1.Artifact.artifact_digest:type_name -> dev.sigstore.common.v1.HashOutput 15, // 12: dev.sigstore.verification.v1.Input.artifact_trust_root:type_name -> dev.sigstore.trustroot.v1.TrustedRoot 3, // 13: dev.sigstore.verification.v1.Input.artifact_verification_options:type_name -> dev.sigstore.verification.v1.ArtifactVerificationOptions 16, // 14: dev.sigstore.verification.v1.Input.bundle:type_name -> dev.sigstore.bundle.v1.Bundle 4, // 15: dev.sigstore.verification.v1.Input.artifact:type_name -> dev.sigstore.verification.v1.Artifact 16, // [16:16] is the sub-list for method output_type 16, // [16:16] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name 16, // [16:16] is the sub-list for extension extendee 0, // [0:16] 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[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions_TlogIntegratedTimestampOptions); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_sigstore_verification_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArtifactVerificationOptions_ObserverTimestampOptions); 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), (*Artifact_ArtifactDigest)(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: 11, 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 } protobuf-specs-0.3.3/gen/pb-python/000077500000000000000000000000001473777202600172005ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/LICENSE000066400000000000000000000261361473777202600202150ustar00rootroot00000000000000 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. protobuf-specs-0.3.3/gen/pb-python/Makefile000066400000000000000000000005421473777202600206410ustar00rootroot00000000000000.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 protobuf-specs-0.3.3/gen/pb-python/README.md000066400000000000000000000003301473777202600204530ustar00rootroot00000000000000sigstore-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. protobuf-specs-0.3.3/gen/pb-python/pyproject.toml000066400000000000000000000022471473777202600221210ustar00rootroot00000000000000[build-system] requires = ["flit_core >=3.2,<4"] build-backend = "flit_core.buildapi" [project] name = "sigstore-protobuf-specs" version = "0.3.4" 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.0b7"] requires-python = ">=3.8" [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"] protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/000077500000000000000000000000001473777202600241545ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/__init__.py000066400000000000000000000000001473777202600262530ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/000077500000000000000000000000001473777202600247325ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/__init__.py000066400000000000000000000000001473777202600270310ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/000077500000000000000000000000001473777202600265715ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/__init__.py000066400000000000000000000000001473777202600306700ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle/000077500000000000000000000000001473777202600300425ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle/__init__.py000066400000000000000000000000001473777202600321410ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle/v1/000077500000000000000000000000001473777202600303705ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/bundle/v1/__init__.py000066400000000000000000000117501473777202600325050ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_bundle.proto # plugin: python-betterproto # This file has been @generated 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. This message may be embedded in a DSSE envelope as a signature extension. Specifically, the `ext` field of the extension will expect this message when the signature extension is for Sigstore. This is identified by the `kind` field in the extension, which must be set to application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. When used as a DSSE extension, if the `public_key` field is used to indicate the key identifier, it MUST match the `keyid` field of the signature the extension is attached to. """ public_key: "__common_v1__.PublicKeyIdentifier" = betterproto.message_field( 1, group="content" ) x509_certificate_chain: "__common_v1__.X509CertificateChain" = ( betterproto.message_field(2, group="content") ) certificate: "__common_v1__.X509Certificate" = betterproto.message_field( 5, 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.v0.3+json when when encoded as JSON. Clients must to be able to accept media type using the previously defined formats: * application/vnd.dev.sigstore.bundle+json;version=0.1 * application/vnd.dev.sigstore.bundle+json;version=0.2 * application/vnd.dev.sigstore.bundle+json;version=0.3 """ 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". If the verification material contains a public key identifier (key hint) and the `content` is a DSSE envelope, the key hints MUST be exactly the same in the verification material and in the DSSE envelope. """ 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: DSSE envelopes in a bundle MUST have exactly one signture. This is a limitation from the DSSE spec, as it can contain multiple signatures. There are two primary reasons: 1. It simplfies the verification logic and policy 2. The bundle (currently) can only contain a single instance of the required verification materials During verification a client MUST reject an envelope if the number of signatures is not equal to one. """ protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common/000077500000000000000000000000001473777202600300615ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common/__init__.py000066400000000000000000000000001473777202600321600ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common/v1/000077500000000000000000000000001473777202600304075ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/common/v1/__init__.py000066400000000000000000000212311473777202600325170ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_common.proto # plugin: python-betterproto # This file has been @generated 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'. """ UNSPECIFIED = 0 SHA2_256 = 1 SHA2_384 = 2 SHA2_512 = 3 SHA3_256 = 4 SHA3_384 = 5 class PublicKeyDetails(betterproto.Enum): """ Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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). """ UNSPECIFIED = 0 PKCS1_RSA_PKCS1V5 = 1 """RSA""" PKCS1_RSA_PSS = 2 PKIX_RSA_PKCS1V5 = 3 PKIX_RSA_PSS = 4 PKIX_RSA_PKCS1V15_2048_SHA256 = 9 """RSA public key in PKIX format, PKCS#1v1.5 signature""" PKIX_RSA_PKCS1V15_3072_SHA256 = 10 PKIX_RSA_PKCS1V15_4096_SHA256 = 11 PKIX_RSA_PSS_2048_SHA256 = 16 """RSA public key in PKIX format, RSASSA-PSS signature""" PKIX_RSA_PSS_3072_SHA256 = 17 PKIX_RSA_PSS_4096_SHA256 = 18 PKIX_ECDSA_P256_HMAC_SHA_256 = 6 """ECDSA""" PKIX_ECDSA_P256_SHA_256 = 5 PKIX_ECDSA_P384_SHA_384 = 12 PKIX_ECDSA_P521_SHA_512 = 13 PKIX_ED25519 = 7 """Ed 25519""" PKIX_ED25519_PH = 8 LMS_SHA256 = 14 """ LMS and LM-OTS These keys and signatures may be used by private Sigstore deployments, but are not currently supported by the public good instance. USER WARNING: LMS and LM-OTS are both stateful signature schemes. Using them correctly requires discretion and careful consideration to ensure that individual secret keys are not used more than once. In addition, LM-OTS is a single-use scheme, meaning that it MUST NOT be used for more than one signature per LM-OTS key. If you cannot maintain these invariants, you MUST NOT use these schemes. """ LMOTS_SHA256 = 15 class SubjectAlternativeNameType(betterproto.Enum): 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 identity of the log, represented by its public key.""" @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) """ 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) """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 collection of X.509 certificates. This "chain" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building. """ certificates: List["X509Certificate"] = betterproto.message_field(1) """ One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order. """ @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) protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events/000077500000000000000000000000001473777202600300755ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events/__init__.py000066400000000000000000000000001473777202600321740ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events/v1/000077500000000000000000000000001473777202600304235ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/events/v1/__init__.py000066400000000000000000000033431473777202600325370ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: events.proto # plugin: python-betterproto # This file has been @generated 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) protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor/000077500000000000000000000000001473777202600277135ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor/__init__.py000066400000000000000000000000001473777202600320120ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor/v1/000077500000000000000000000000001473777202600302415ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/rekor/v1/__init__.py000066400000000000000000000154161473777202600323610ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_rekor.proto # plugin: python-betterproto # This file has been @generated 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 MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go """ 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/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. """ 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. The integration time MUST NOT be trusted if inclusion_promise is omitted. """ 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 if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise. """ 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. """ protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/000077500000000000000000000000001473777202600306565ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/__init__.py000066400000000000000000000000001473777202600327550ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/v1/000077500000000000000000000000001473777202600312045ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/v1/__init__.py000066400000000000000000000225571473777202600333300ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_trustroot.proto # plugin: python-betterproto # This file has been @generated 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. 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 """ checkpoint_key_id: "__common_v1__.LogId" = betterproto.message_field(5) """ The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash. """ @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 identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority. """ cert_chain: "__common_v1__.X509CertificateChain" = betterproto.message_field(3) """ The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate. """ 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. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first. Only the last instance is allowed to have their 'end' timestamp unset. All previous instances MUST have a closed interval of validity. The last instance MAY have a closed interval. Clients MUST accept instances that overlaps in time, if not clients may experience problems during rotations of verification materials. To be able to manage planned rotations of either transparency logs or certificate authorities, clienst MUST accept lists of instances where the last instance have a 'valid_for' that belongs to the future. This should not be a problem as clients SHOULD first seek the trust root for a suitable instance before creating a per artifact trust root (that is, a sub-set of the complete trust root) that is used for verification. """ media_type: str = betterproto.string_field(1) """ MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json when encoded as JSON. Clients MUST be able to process and parse content with the media type defined in the old format: 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.""" @dataclass(eq=False, repr=False) class SigningConfig(betterproto.Message): """ SigningConfig represents the trusted entities/state needed by Sigstore signing. In particular, it primarily contains service URLs that a Sigstore signer may need to connect to for the online aspects of signing. """ media_type: str = betterproto.string_field(5) """MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json""" ca_url: str = betterproto.string_field(1) """ A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates. This URL **MUST** be the "base" URL for the CA, which clients should construct an appropriate CSR endpoint on top of. For example, if `ca_url` is `https://example.com/ca`, then the client **MAY** construct the CSR endpoint as `https://example.com/ca/api/v2/signingCert`. """ oidc_url: str = betterproto.string_field(2) """ A URL to an OpenID Connect identity provider. This URL **MUST** be the "base" URL for the OIDC IdP, which clients should perform well-known OpenID Connect discovery against. """ tlog_urls: List[str] = betterproto.string_field(3) """ One or more URLs to Rekor-compatible transparency log. Each URL **MUST** be the "base" URL for the transparency log, which clients should construct appropriate API endpoints on top of. """ tsa_urls: List[str] = betterproto.string_field(4) """ One ore more URLs to RFC 3161 Time Stamping Authority (TSA). Each URL **MUST** be the **full** URL for the TSA, meaning that it should be suitable for submitting Time Stamp Requests (TSRs) to via HTTP, per RFC 3161. """ @dataclass(eq=False, repr=False) class ClientTrustConfig(betterproto.Message): """ ClientTrustConfig describes the complete state needed by a client to perform both signing and verification operations against a particular instance of Sigstore. """ media_type: str = betterproto.string_field(1) """MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json""" trusted_root: "TrustedRoot" = betterproto.message_field(2) """The root of trust, which MUST be present.""" signing_config: "SigningConfig" = betterproto.message_field(3) """Configuration for signing clients, which MUST be present.""" protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification/000077500000000000000000000000001473777202600312535ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification/__init__.py000066400000000000000000000000001473777202600333520ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification/v1/000077500000000000000000000000001473777202600316015ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/dev/sigstore/verification/v1/__init__.py000066400000000000000000000170161473777202600337170ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: sigstore_verification.proto # plugin: python-betterproto # This file has been @generated 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) ) """ 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) ) """ Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Disable: false """ tsa_options: Optional["ArtifactVerificationOptionsTimestampAuthorityOptions"] = ( betterproto.message_field(5, optional=True) ) """ Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true """ integrated_ts_options: Optional[ "ArtifactVerificationOptionsTlogIntegratedTimestampOptions" ] = betterproto.message_field(6, optional=True) """ Optional options for integrated timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true """ observer_options: Optional[ "ArtifactVerificationOptionsObserverTimestampOptions" ] = betterproto.message_field(7, optional=True) """ Optional options for observed 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. """ 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 ArtifactVerificationOptionsTlogIntegratedTimestampOptions(betterproto.Message): threshold: int = betterproto.int32_field(1) """The number of integrated timestamps that are expected.""" disable: bool = betterproto.bool_field(2) """Disable integrated timestamp verification.""" @dataclass(eq=False, repr=False) class ArtifactVerificationOptionsObserverTimestampOptions(betterproto.Message): threshold: int = betterproto.int32_field(1) """ The number of external observers of the timestamp. This is a union of RFC3161 signed timestamps, and integrated timestamps from a transparency log, that could include additional timestamp sources in the future. """ disable: bool = betterproto.bool_field(2) """Disable observer 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""" artifact_digest: "__common_v1__.HashOutput" = betterproto.message_field( 3, group="data" ) """ Digest of the artifact. SHOULD NOT be used when verifying an in-toto attestation as the subject digest cannot be reconstructed. This option will not work with Ed25519 signatures, use Ed25519Ph or another algorithm instead. """ @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) """ If the bundle contains a message signature, the artifact must be provided. """ protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/google/000077500000000000000000000000001473777202600254305ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/google/__init__.py000066400000000000000000000000001473777202600275270ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/google/api/000077500000000000000000000000001473777202600262015ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/google/api/__init__.py000066400000000000000000000041221473777202600303110ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: google/api/field_behavior.proto # plugin: python-betterproto # This file has been @generated 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. """ 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. """ protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/io/000077500000000000000000000000001473777202600245635ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/io/__init__.py000066400000000000000000000000001473777202600266620ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/io/intoto/000077500000000000000000000000001473777202600260775ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/io/intoto/__init__.py000066400000000000000000000027571473777202600302230ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: envelope.proto # plugin: python-betterproto # This file has been @generated 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. """ protobuf-specs-0.3.3/gen/pb-python/sigstore_protobuf_specs/py.typed000066400000000000000000000000001473777202600256410ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-ruby/000077500000000000000000000000001473777202600166405ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-ruby/LICENSE000066400000000000000000000261361473777202600176550ustar00rootroot00000000000000 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. protobuf-specs-0.3.3/gen/pb-ruby/README.md000066400000000000000000000020131473777202600201130ustar00rootroot00000000000000# 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. protobuf-specs-0.3.3/gen/pb-ruby/lib/000077500000000000000000000000001473777202600174065ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-ruby/lib/envelope_pb.rb000066400000000000000000000014141473777202600222310ustar00rootroot00000000000000# 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 protobuf-specs-0.3.3/gen/pb-ruby/lib/events_pb.rb000066400000000000000000000034321473777202600217220ustar00rootroot00000000000000# 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 Sigstore module Events 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 protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_bundle_pb.rb000066400000000000000000000036731473777202600236150ustar00rootroot00000000000000# 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" optional :certificate, :message, 5, "dev.sigstore.common.v1.X509Certificate" 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 protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_common_pb.rb000066400000000000000000000133661473777202600236340ustar00rootroot00000000000000# 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 value :SHA2_384, 2 value :SHA2_512, 3 value :SHA3_256, 4 value :SHA3_384, 5 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_RSA_PKCS1V15_2048_SHA256, 9 value :PKIX_RSA_PKCS1V15_3072_SHA256, 10 value :PKIX_RSA_PKCS1V15_4096_SHA256, 11 value :PKIX_RSA_PSS_2048_SHA256, 16 value :PKIX_RSA_PSS_3072_SHA256, 17 value :PKIX_RSA_PSS_4096_SHA256, 18 value :PKIX_ECDSA_P256_HMAC_SHA_256, 6 value :PKIX_ECDSA_P256_SHA_256, 5 value :PKIX_ECDSA_P384_SHA_384, 12 value :PKIX_ECDSA_P521_SHA_512, 13 value :PKIX_ED25519, 7 value :PKIX_ED25519_PH, 8 value :LMS_SHA256, 14 value :LMOTS_SHA256, 15 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 protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_protobuf_specs.rb000066400000000000000000000013401473777202600247050ustar00rootroot00000000000000# 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_relative 'sigstore_protobuf_specs/version' Dir['*_pb.rb', base: __dir__].each { |file| require_relative file } protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_protobuf_specs/000077500000000000000000000000001473777202600243625ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_protobuf_specs/version.rb000066400000000000000000000012461473777202600263770ustar00rootroot00000000000000# 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.3.3' end end protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_rekor_pb.rb000066400000000000000000000042021473777202600234530ustar00rootroot00000000000000# 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 protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_trustroot_pb.rb000066400000000000000000000054741473777202600244320ustar00rootroot00000000000000# Generated by the protocol buffer compiler. DO NOT EDIT! # source: sigstore_trustroot.proto require 'google/protobuf' require 'google/api/field_behavior_pb' 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" optional :checkpoint_key_id, :message, 5, "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 add_message "dev.sigstore.trustroot.v1.SigningConfig" do optional :media_type, :string, 5 optional :ca_url, :string, 1 optional :oidc_url, :string, 2 repeated :tlog_urls, :string, 3 repeated :tsa_urls, :string, 4 end add_message "dev.sigstore.trustroot.v1.ClientTrustConfig" do optional :media_type, :string, 1 optional :trusted_root, :message, 2, "dev.sigstore.trustroot.v1.TrustedRoot" optional :signing_config, :message, 3, "dev.sigstore.trustroot.v1.SigningConfig" 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 SigningConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.SigningConfig").msgclass ClientTrustConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.ClientTrustConfig").msgclass end end end protobuf-specs-0.3.3/gen/pb-ruby/lib/sigstore_verification_pb.rb000066400000000000000000000126271473777202600250250ustar00rootroot00000000000000# 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" proto3_optional :integrated_ts_options, :message, 6, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions" proto3_optional :observer_options, :message, 7, "dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions" 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 :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.ArtifactVerificationOptions.TlogIntegratedTimestampOptions" do optional :threshold, :int32, 1 optional :disable, :bool, 2 end add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions" 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 optional :artifact_digest, :message, 3, "dev.sigstore.common.v1.HashOutput" 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 ArtifactVerificationOptions::TlogIntegratedTimestampOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions").msgclass ArtifactVerificationOptions::ObserverTimestampOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions").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 protobuf-specs-0.3.3/gen/pb-ruby/sigstore_protobuf_specs.gemspec000066400000000000000000000024531473777202600251650ustar00rootroot00000000000000require 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 protobuf-specs-0.3.3/gen/pb-rust/000077500000000000000000000000001473777202600166545ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/.gitignore000066400000000000000000000000071473777202600206410ustar00rootroot00000000000000target protobuf-specs-0.3.3/gen/pb-rust/Cargo.lock000066400000000000000000000341141473777202600205640ustar00rootroot00000000000000# This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "aho-corasick" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" dependencies = [ "memchr", ] [[package]] name = "anyhow" version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "base64" version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "bitflags" version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "bytes" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "either" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", "windows-sys", ] [[package]] name = "fastrand" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fixedbitset" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "glob" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "hashbrown" version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "home" version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ "windows-sys", ] [[package]] name = "indexmap" version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" dependencies = [ "equivalent", "hashbrown", ] [[package]] name = "itertools" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" dependencies = [ "either", ] [[package]] name = "itoa" version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "libc" version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "linux-raw-sys" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "log" version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "multimap" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "num-traits" version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", ] [[package]] name = "once_cell" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "ordered-float" version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" dependencies = [ "num-traits", ] [[package]] name = "petgraph" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", "indexmap", ] [[package]] name = "prettyplease" version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" dependencies = [ "proc-macro2", "syn", ] [[package]] name = "proc-macro2" version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] [[package]] name = "prost" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" dependencies = [ "bytes", "prost-derive", ] [[package]] name = "prost-build" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c55e02e35260070b6f716a2423c2ff1c3bb1642ddca6f99e1f26d06268a0e2d2" dependencies = [ "bytes", "heck", "itertools", "log", "multimap", "once_cell", "petgraph", "prettyplease", "prost", "prost-types", "regex", "syn", "tempfile", "which 4.4.2", ] [[package]] name = "prost-derive" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" dependencies = [ "anyhow", "itertools", "proc-macro2", "quote", "syn", ] [[package]] name = "prost-reflect" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "057237efdb71cf4b3f9396302a3d6599a92fa94063ba537b66130980ea9909f3" dependencies = [ "base64", "once_cell", "prost", "prost-reflect-derive", "prost-types", "serde", "serde-value", ] [[package]] name = "prost-reflect-build" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4d0aa0c82e0fc36214c77b4dabe00750b3c41be45055baf2631cbbb7769b8ca" dependencies = [ "prost-build", "prost-reflect", ] [[package]] name = "prost-reflect-derive" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "172da1212c02be2c94901440cb27183cd92bff00ebacca5c323bf7520b8f9c04" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "prost-types" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" dependencies = [ "prost", ] [[package]] name = "quote" version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] [[package]] name = "regex" version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "rustix" version = "0.38.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", "windows-sys", ] [[package]] name = "ryu" version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "serde" version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" dependencies = [ "serde_derive", ] [[package]] name = "serde-value" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" dependencies = [ "ordered-float", "serde", ] [[package]] name = "serde_derive" version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "serde_json" version = "1.0.113" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" dependencies = [ "itoa", "ryu", "serde", ] [[package]] name = "sigstore-protobuf-specs-codegen" version = "0.0.1" dependencies = [ "anyhow", "glob", "prost-build", "prost-reflect-build", "which 6.0.0", ] [[package]] name = "sigstore-protobuf-specs-derive" version = "0.0.1" dependencies = [ "quote", "syn", ] [[package]] name = "sigstore_protobuf_specs" version = "0.3.7" dependencies = [ "anyhow", "glob", "prost", "prost-build", "prost-reflect", "prost-reflect-build", "prost-types", "serde", "serde_json", "sigstore-protobuf-specs-derive", "which 6.0.0", ] [[package]] name = "syn" version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "tempfile" version = "3.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" dependencies = [ "cfg-if", "fastrand", "rustix", "windows-sys", ] [[package]] name = "unicode-ident" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "which" version = "4.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" dependencies = [ "either", "home", "once_cell", "rustix", ] [[package]] name = "which" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fa5e0c10bf77f44aac573e498d1a82d5fbd5e91f6fc0a99e7be4b38e85e101c" dependencies = [ "either", "home", "once_cell", "rustix", "windows-sys", ] [[package]] name = "windows-sys" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ "windows-targets", ] [[package]] name = "windows-targets" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", "windows_i686_gnu", "windows_i686_msvc", "windows_x86_64_gnu", "windows_x86_64_gnullvm", "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" [[package]] name = "windows_aarch64_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" [[package]] name = "windows_i686_gnu" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" [[package]] name = "windows_i686_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" [[package]] name = "windows_x86_64_gnu" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" [[package]] name = "windows_x86_64_gnullvm" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" [[package]] name = "windows_x86_64_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" protobuf-specs-0.3.3/gen/pb-rust/Cargo.toml000066400000000000000000000002541473777202600206050ustar00rootroot00000000000000[workspace] resolver = "2" members = [ "sigstore-protobuf-specs", "sigstore-protobuf-specs-codegen", "sigstore-protobuf-specs-derive", ] license = "Apache-2.0" protobuf-specs-0.3.3/gen/pb-rust/README.md000066400000000000000000000003161473777202600201330ustar00rootroot00000000000000sigstore-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. protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-codegen/000077500000000000000000000000001473777202600250665ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-codegen/Cargo.toml000066400000000000000000000003131473777202600270130ustar00rootroot00000000000000[package] name = "sigstore-protobuf-specs-codegen" version = "0.0.1" edition = "2021" [dependencies] anyhow = "1.0.72" glob = "0.3" prost-build = "0.12.3" prost-reflect-build = "0.12.0" which = "6.0.0" protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-codegen/src/000077500000000000000000000000001473777202600256555ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-codegen/src/main.rs000066400000000000000000000037031473777202600271520ustar00rootroot00000000000000use std::path::Path; /// Find the standard protobuf include directory. fn protobuf_include_path() -> String { let mut protobuf_root = which::which("protoc") .ok() // dirname(/bin/protoc) / ../ .and_then(|path| path.ancestors().nth(2).map(|p| p.to_path_buf())) .expect("protobuf installation directory not found!"); protobuf_root.push("include"); protobuf_root.to_str().unwrap().to_owned() } fn main() -> anyhow::Result<()> { let includes = vec![ concat!(env!("CARGO_MANIFEST_DIR"), "/../../../protos").to_owned(), // WKTs path protobuf_include_path(), // googleapis types path: set `SIGSTORE_PROTOBUF_EXTRA_INCLUDE` to override. std::env::var("SIGSTORE_PROTOBUF_EXTRA_INCLUDE").unwrap_or("/opt/include".to_owned()), ]; for include in &includes { let include = Path::new(include); if !include.is_dir() { panic!("invalid include dir: {:?}", include); } } let mut config = prost_build::Config::new(); config .include_file("mod.rs") .type_attribute( ".", "#[derive(sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto)]", ) // Disable problematic comments interpreted as doctests. .disable_comments([".io.intoto.Envelope"]) .out_dir("sigstore-protobuf-specs/src/generated/"); prost_reflect_build::Builder::new() .file_descriptor_set_bytes("crate::FILE_DESCRIPTOR_SET_BYTES") .file_descriptor_set_path("sigstore-protobuf-specs/src/generated/file_descriptor_set.bin") .compile_protos_with_config( config, &glob::glob(concat!( env!("CARGO_MANIFEST_DIR"), "/../../../protos/*.proto" )) .expect("no protos found!") .flatten() .collect::>(), &includes, )?; Ok(()) } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-derive/000077500000000000000000000000001473777202600247405ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-derive/Cargo.toml000066400000000000000000000010161473777202600266660ustar00rootroot00000000000000[package] name = "sigstore-protobuf-specs-derive" version = "0.0.1" edition = "2021" authors = ["Sigstore Authors "] homepage = "https://github.com/sigstore/protobuf-specs" repository = "https://github.com/sigstore/protobuf-specs" description = "Derive macros for sigstore-protobuf-specs. This is an implementation detail, you do not need this dependency." readme = "../README.md" license = "Apache-2.0" keywords = ["sigstore"] [dependencies] syn = "2.0" quote = "1.0" [lib] proc-macro = true protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-derive/src/000077500000000000000000000000001473777202600255275ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs-derive/src/lib.rs000066400000000000000000000034031473777202600266430ustar00rootroot00000000000000use proc_macro::TokenStream; use quote::quote; use syn::{parse_macro_input, DeriveInput}; #[proc_macro_derive(Serialize_proto)] pub fn derive_serialize(input: TokenStream) -> TokenStream { let input = parse_macro_input!(input as DeriveInput); let ident = input.ident; match input.data { syn::Data::Struct(_) => (), _ => return Default::default(), }; let expanded = quote! { impl serde::Serialize for #ident { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer, { let message = prost_reflect::ReflectMessage::transcode_to_dynamic(self); serde::Serialize::serialize(&message, serializer) } } }; TokenStream::from(expanded) } #[proc_macro_derive(Deserialize_proto)] pub fn derive_deserialize(input: TokenStream) -> TokenStream { let input = parse_macro_input!(input as DeriveInput); let ident = input.ident; match input.data { syn::Data::Struct(_) => (), _ => return Default::default(), }; let expanded = quote! { impl<'de> serde::Deserialize<'de> for #ident { fn deserialize(deserializer: D) -> Result<#ident, D::Error> where D: serde::Deserializer<'de>, { let concrete_msg: #ident = Default::default(); let descriptor = prost_reflect::ReflectMessage::descriptor(&concrete_msg); let dynamic_msg = prost_reflect::DynamicMessage::deserialize(descriptor, deserializer)?; Ok(dynamic_msg.transcode_to().expect("failed to convert DynamicMessage to concrete Message!")) } } }; TokenStream::from(expanded) } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/000077500000000000000000000000001473777202600234645ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/Cargo.lock000066400000000000000000000343331473777202600253770ustar00rootroot00000000000000# This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "aho-corasick" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" dependencies = [ "memchr", ] [[package]] name = "anyhow" version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "base64" version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "bytes" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "either" version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", "windows-sys", ] [[package]] name = "fastrand" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fixedbitset" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "glob" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "hashbrown" version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "home" version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ "windows-sys", ] [[package]] name = "indexmap" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", "hashbrown", ] [[package]] name = "itertools" version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", ] [[package]] name = "itoa" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "libc" version = "0.2.152" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "linux-raw-sys" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "log" version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "multimap" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "num-traits" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ "autocfg", ] [[package]] name = "once_cell" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "ordered-float" version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" dependencies = [ "num-traits", ] [[package]] name = "petgraph" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", "indexmap", ] [[package]] name = "prettyplease" version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" dependencies = [ "proc-macro2", "syn", ] [[package]] name = "proc-macro2" version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] [[package]] name = "prost" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" dependencies = [ "bytes", "prost-derive", ] [[package]] name = "prost-build" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c55e02e35260070b6f716a2423c2ff1c3bb1642ddca6f99e1f26d06268a0e2d2" dependencies = [ "bytes", "heck", "itertools", "log", "multimap", "once_cell", "petgraph", "prettyplease", "prost", "prost-types", "regex", "syn", "tempfile", "which 4.4.2", ] [[package]] name = "prost-derive" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" dependencies = [ "anyhow", "itertools", "proc-macro2", "quote", "syn", ] [[package]] name = "prost-reflect" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "057237efdb71cf4b3f9396302a3d6599a92fa94063ba537b66130980ea9909f3" dependencies = [ "base64", "once_cell", "prost", "prost-reflect-derive", "prost-types", "serde", "serde-value", ] [[package]] name = "prost-reflect-build" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4d0aa0c82e0fc36214c77b4dabe00750b3c41be45055baf2631cbbb7769b8ca" dependencies = [ "prost-build", "prost-reflect", ] [[package]] name = "prost-reflect-derive" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "172da1212c02be2c94901440cb27183cd92bff00ebacca5c323bf7520b8f9c04" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "prost-types" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" dependencies = [ "prost", ] [[package]] name = "quote" version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] [[package]] name = "redox_syscall" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "regex" version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "rustix" version = "0.38.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca" dependencies = [ "bitflags 2.4.2", "errno", "libc", "linux-raw-sys", "windows-sys", ] [[package]] name = "ryu" version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "serde" version = "1.0.171" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9" dependencies = [ "serde_derive", ] [[package]] name = "serde-value" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" dependencies = [ "ordered-float", "serde", ] [[package]] name = "serde_derive" version = "1.0.171" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "serde_json" version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d03b412469450d4404fe8499a268edd7f8b79fecb074b0d812ad64ca21f4031b" dependencies = [ "itoa", "ryu", "serde", ] [[package]] name = "sigstore_protobuf_specs" version = "0.1.0-rc.2" dependencies = [ "anyhow", "glob", "prost", "prost-build", "prost-reflect", "prost-reflect-build", "prost-types", "serde", "serde_json", "which 6.0.0", ] [[package]] name = "syn" version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "tempfile" version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa" dependencies = [ "cfg-if", "fastrand", "redox_syscall", "rustix", "windows-sys", ] [[package]] name = "unicode-ident" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "which" version = "4.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" dependencies = [ "either", "home", "once_cell", "rustix", ] [[package]] name = "which" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fa5e0c10bf77f44aac573e498d1a82d5fbd5e91f6fc0a99e7be4b38e85e101c" dependencies = [ "either", "home", "once_cell", "rustix", "windows-sys", ] [[package]] name = "windows-sys" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ "windows-targets", ] [[package]] name = "windows-targets" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", "windows_i686_gnu", "windows_i686_msvc", "windows_x86_64_gnu", "windows_x86_64_gnullvm", "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" [[package]] name = "windows_aarch64_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" [[package]] name = "windows_i686_gnu" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" [[package]] name = "windows_i686_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" [[package]] name = "windows_x86_64_gnu" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" [[package]] name = "windows_x86_64_gnullvm" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" [[package]] name = "windows_x86_64_msvc" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/Cargo.toml000066400000000000000000000015511473777202600254160ustar00rootroot00000000000000[package] name = "sigstore_protobuf_specs" version = "0.3.7" 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 = "Apache-2.0" keywords = ["sigstore"] categories = ["encoding", "parser-implementations"] [dependencies] prost-types = "0.12.3" prost = "0.12.3" prost-reflect = { version = "0.12.0", features = ["serde", "derive"] } serde = {version = "1.0", features = ["derive"]} serde_json = "1.0" sigstore-protobuf-specs-derive = { version = "0.0.1", path = "../sigstore-protobuf-specs-derive" } [build-dependencies] anyhow = "1.0.72" glob = "0.3" prost-build = "0.12.3" prost-reflect-build = "0.12.0" which = "6.0.0" protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/assets/000077500000000000000000000000001473777202600247665ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/assets/a.txt000066400000000000000000000001571473777202600257520ustar00rootroot00000000000000DO NOT MODIFY ME! this is "a.txt", a sample input for sigstore-protobuf-specs' test suite. DO NOT MODIFY ME! protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/assets/a.txt.sigstore000066400000000000000000000123161473777202600276100ustar00rootroot00000000000000{"mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.2", "verificationMaterial": {"x509CertificateChain": {"certificates": [{"rawBytes": "MIICyjCCAk+gAwIBAgIUShApN6D/p2nhkAUYXANZuDspU40wCgYIKoZIzj0EAwMwNzEVMBMGA1UEChMMc2lnc3RvcmUuZGV2MR4wHAYDVQQDExVzaWdzdG9yZS1pbnRlcm1lZGlhdGUwHhcNMjQwMTI2MTkzNTI5WhcNMjQwMTI2MTk0NTI5WjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETlg64yErozlmXokHJcyN7OjHDBfIS1BXvukXd9PNxYTDkp1j5NdQnm+yH6HqvYLcylvga5iIK7KSprRX6M99I6OCAW4wggFqMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNVHQ4EFgQUeMzvd2GyzazwDGhInM+jtU130QAwHwYDVR0jBBgwFoAU39Ppz1YkEZb5qNjpKFWixi4YZD8wGAYDVR0RAQH/BA4wDIEKYUB0bnkudG93bjAsBgorBgEEAYO/MAEBBB5odHRwczovL2dpdGh1Yi5jb20vbG9naW4vb2F1dGgwLgYKKwYBBAGDvzABCAQgDB5odHRwczovL2dpdGh1Yi5jb20vbG9naW4vb2F1dGgwgYoGCisGAQQB1nkCBAIEfAR6AHgAdgDdPTBqxscRMmMZHhyZZzcCokpeuN48rf+HinKALynujgAAAY1HRSMSAAAEAwBHMEUCIQDODo1nxR9++rHfAZP+AyqwwmikJ27VcHPNPU+Gnq3S5wIgRjGJri32fkFxwf405Kmp3zNcx+s7kEdqV3Q6IUxTxQEwCgYIKoZIzj0EAwMDaQAwZgIxAMBcoQCOXt24cBBo5kCzF3j/SInrNCb4YivLyWrj5/rC5ych+Rygw/FgInM6kOROvAIxAJMiU4OFWWWAjaed8IS1DhG9YFNZnGWdwy7FFhLwwOa6qf4QsXAlUj+YPyrRkwfdng=="}]}, "tlogEntries": [{"logIndex": "66794718", "logId": {"keyId": "wNI9atQGlz+VWfO6LRygH4QUfY/8W4RFwiT5i5WRgB0="}, "kindVersion": {"kind": "hashedrekord", "version": "0.0.1"}, "integratedTime": "1706297730", "inclusionPromise": {"signedEntryTimestamp": "MEQCIA8KjI3qM1FojdnBSPXyII/7Q8NUgRQ0ji86ZNNWT1XqAiAA0msqxS4rN9xCo6jKcjGaKwFuHEwa5Mw1JCwBzLt1gw=="}, "inclusionProof": {"logIndex": "62631287", "rootHash": "1fx8bMb9/1d0q/PdLBgr5EVIs5kz2Shwpy4TFo8Uhis=", "treeSize": "62631288", "hashes": ["A6hYJrNwNazA1eoJIpV498CX76QaBgJWNoCRt1X74JE=", "f9+1RSu6Acof0xeSFOubv4ka3FdHBtpSVrdSbIAjMsQ=", "3ooji9Ujxw5HG1h56HHfj87vS4MOVVFUjVGuvJtW81M=", "HEgnXDufRCuJISdHCQjKnv3wP0PRUtE+AiYjdvZWaxw=", "/FEizqX7NOhA4OdohRvVtM2N5URHa6uesg3p4vEoQ4E=", "WoINPf5XzzezzULe1uVrKF5yQxRALb2KxRHOKi7Dttk=", "FpQhnaN+UmxzFqCood81DHl9WxyOOSpBMfD2FpNVk3k=", "WPXbPb4ACE/BbpP8q1dpTjRmTu4OFOse4d5YHP34YjA=", "+eTYHIbql8gaQnVj1zBqRSbN8d5uLSwQCZSNEu1IEQc=", "Dl6tJTXUpFc8TLlVlAbs+hrhujOBSxEW6PE/3+PwQIc=", "AGGlRS/pLuSZMVaGq6mY5uZswBtCoNSuaHM6P5twGuE=", "8v5YV3W9gmSnYBkC5JADJ4j3NA7GuFPPkPXA9OPNmTg=", "GgcbvbmxENRIPRbgqtWIgdwahX7JwKNl+o6XN+NdICM=", "v6TgT0lJE8lEEO1hEJGAUugTK5CNAqqixlVK80tmkb0=", "HjoTzYu7nFqxAa9lTSDZxoA4a1wJ4P8BT2/QyLM8PH4=", "IsLbMqrjdeHhyZ6XODgAs95aU12MJIbe9XB6kXaMDYw=", "UeXYBoLMUKvbOS7ToMsaoblG4fS/8QPQTTFGIBVeE70=", "mMSG/rXYcJKnikbEtb4EhoZUkAr/wuhv+yAHTcc6iDo=", "aWnEm9c/Gb8operqvTMd3WBQLe+yzT2W4Xt0HICt7Gw="], "checkpoint": {"envelope": "rekor.sigstore.dev - 2605736670972794746\n62631288\n1fx8bMb9/1d0q/PdLBgr5EVIs5kz2Shwpy4TFo8Uhis=\nTimestamp: 1706297730413822848\n\n\u2014 rekor.sigstore.dev wNI9ajBEAiAncCOrkCPoSXfFZt5jqL654xXX/OK7spQ8tkP9NTkexwIgY1HfG6TWamNSwNslbt5TXjgp4cxLiAYBG+n1/fpzu1U=\n"}}, "canonicalizedBody": "eyJhcGlWZXJzaW9uIjoiMC4wLjEiLCJraW5kIjoiaGFzaGVkcmVrb3JkIiwic3BlYyI6eyJkYXRhIjp7Imhhc2giOnsiYWxnb3JpdGhtIjoic2hhMjU2IiwidmFsdWUiOiI2MzI1NzliNTE4M2Q0MThmZjNkYzQ0Mzk5NGZkMzVlMGUxYTJhNmNlODlhMWVlMjJmZGNhNTc3ZjhlOGJjOWMzIn19LCJzaWduYXR1cmUiOnsiY29udGVudCI6Ik1FVUNJUURVdWt0dTZjckpBVHRRZ29Ra2FIb0hxRld0K1h2RGQ0UHZKbERRNWFLbVhBSWdDS1VPOHFjdUxUSTA4UER3NkYwUlNsaEJVamdtQ01FbFgrWENlU2FDanBnPSIsInB1YmxpY0tleSI6eyJjb250ZW50IjoiTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVTjVha05EUVdzclowRjNTVUpCWjBsVlUyaEJjRTQyUkM5d01tNW9hMEZWV1ZoQlRscDFSSE53VlRRd2QwTm5XVWxMYjFwSmVtb3dSVUYzVFhjS1RucEZWazFDVFVkQk1WVkZRMmhOVFdNeWJHNWpNMUoyWTIxVmRWcEhWakpOVWpSM1NFRlpSRlpSVVVSRmVGWjZZVmRrZW1SSE9YbGFVekZ3WW01U2JBcGpiVEZzV2tkc2FHUkhWWGRJYUdOT1RXcFJkMDFVU1RKTlZHdDZUbFJKTlZkb1kwNU5hbEYzVFZSSk1rMVVhekJPVkVrMVYycEJRVTFHYTNkRmQxbElDa3R2V2tsNmFqQkRRVkZaU1V0dldrbDZhakJFUVZGalJGRm5RVVZVYkdjMk5IbEZjbTk2YkcxWWIydElTbU41VGpkUGFraEVRbVpKVXpGQ1dIWjFhMWdLWkRsUVRuaFpWRVJyY0RGcU5VNWtVVzV0SzNsSU5raHhkbGxNWTNsc2RtZGhOV2xKU3pkTFUzQnlVbGcyVFRrNVNUWlBRMEZYTkhkblowWnhUVUUwUndwQk1WVmtSSGRGUWk5M1VVVkJkMGxJWjBSQlZFSm5UbFpJVTFWRlJFUkJTMEpuWjNKQ1owVkdRbEZqUkVGNlFXUkNaMDVXU0ZFMFJVWm5VVlZsVFhwMkNtUXlSM2w2WVhwM1JFZG9TVzVOSzJwMFZURXpNRkZCZDBoM1dVUldVakJxUWtKbmQwWnZRVlV6T1ZCd2VqRlphMFZhWWpWeFRtcHdTMFpYYVhocE5Ga0tXa1E0ZDBkQldVUldVakJTUVZGSUwwSkJOSGRFU1VWTFdWVkNNR0p1YTNWa1J6a3pZbXBCYzBKbmIzSkNaMFZGUVZsUEwwMUJSVUpDUWpWdlpFaFNkd3BqZW05MlRESmtjR1JIYURGWmFUVnFZakl3ZG1KSE9XNWhWelIyWWpKR01XUkhaM2RNWjFsTFMzZFpRa0pCUjBSMmVrRkNRMEZSWjBSQ05XOWtTRkozQ21ONmIzWk1NbVJ3WkVkb01WbHBOV3BpTWpCMllrYzVibUZYTkhaaU1rWXhaRWRuZDJkWmIwZERhWE5IUVZGUlFqRnVhME5DUVVsRlprRlNOa0ZJWjBFS1pHZEVaRkJVUW5GNGMyTlNUVzFOV2tob2VWcGFlbU5EYjJ0d1pYVk9ORGh5Wml0SWFXNUxRVXg1Ym5WcVowRkJRVmt4U0ZKVFRWTkJRVUZGUVhkQ1NBcE5SVlZEU1ZGRVQwUnZNVzU0VWprckszSklaa0ZhVUN0QmVYRjNkMjFwYTBveU4xWmpTRkJPVUZVclIyNXhNMU0xZDBsblVtcEhTbkpwTXpKbWEwWjRDbmRtTkRBMVMyMXdNM3BPWTNncmN6ZHJSV1J4VmpOUk5rbFZlRlI0VVVWM1EyZFpTVXR2V2tsNmFqQkZRWGROUkdGUlFYZGFaMGw0UVUxQ1kyOVJRMDhLV0hReU5HTkNRbTgxYTBONlJqTnFMMU5KYm5KT1EySTBXV2wyVEhsWGNtbzFMM0pETlhsamFDdFNlV2QzTDBablNXNU5ObXRQVWs5MlFVbDRRVXBOYVFwVk5FOUdWMWRYUVdwaFpXUTRTVk14UkdoSE9WbEdUbHB1UjFka2QzazNSa1pvVEhkM1QyRTJjV1kwVVhOWVFXeFZhaXRaVUhseVVtdDNabVJ1WnowOUNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSyJ9fX19"}]}, "messageSignature": {"messageDigest": {"algorithm": "SHA2_256", "digest": "YyV5tRg9QY/z3EQ5lP014OGips6Joe4i/cpXf46LycM="}, "signature": "MEUCIQDUuktu6crJATtQgoQkaHoHqFWt+XvDd4PvJlDQ5aKmXAIgCKUO8qcuLTI08PDw6F0RSlhBUjgmCMElX+XCeSaCjpg="}} protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/000077500000000000000000000000001473777202600242535ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/000077500000000000000000000000001473777202600262115ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.bundle.v1.rs000066400000000000000000000245151473777202600327770ustar00rootroot00000000000000/// Various timestamped counter signatures over the artifacts signature. /// Currently only RFC3161 signatures are provided. More formats may be added /// in the future. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.bundle.v1.TimestampVerificationData")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct 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. #[prost(message, repeated, tag = "1")] pub rfc3161_timestamps: ::prost::alloc::vec::Vec< super::super::common::v1::Rfc3161SignedTimestamp, >, } /// VerificationMaterial captures details on the materials used to verify /// signatures. This message may be embedded in a DSSE envelope as a signature /// extension. Specifically, the `ext` field of the extension will expect this /// message when the signature extension is for Sigstore. This is identified by /// the `kind` field in the extension, which must be set to /// application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. /// When used as a DSSE extension, if the `public_key` field is used to indicate /// the key identifier, it MUST match the `keyid` field of the signature the /// extension is attached to. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.bundle.v1.VerificationMaterial")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VerificationMaterial { /// 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. #[prost(message, repeated, tag = "3")] pub tlog_entries: ::prost::alloc::vec::Vec< super::super::rekor::v1::TransparencyLogEntry, >, /// Timestamp may also come from /// tlog_entries.inclusion_promise.signed_entry_timestamp. #[prost(message, optional, tag = "4")] pub timestamp_verification_data: ::core::option::Option, /// The key material for verification purposes. /// /// This allows key material to be conveyed in one of three forms: /// /// 1. An unspecified public key identifier, for retrieving a key /// from an out-of-band mechanism (such as a keyring); /// /// 2. A sequence of one or more X.509 certificates, of which the first member /// MUST be a leaf certificate conveying the signing key. Subsequent members /// SHOULD be in issuing order, meaning that `n + 1` should be an issuer for `n`. /// /// Signers MUST NOT include root CA certificates in bundles, and SHOULD NOT /// include intermediate CA certificates that appear in an independent root of trust /// (such as the Public Good Instance's trusted root). /// /// Verifiers MUST validate the chain carefully to ensure that it chains up /// to a CA certificate that they independently trust. Verifiers SHOULD /// handle old or non-complying bundles that have superfluous intermediate and/or /// root CA certificates by either ignoring them or explicitly considering them /// untrusted for the purposes of chain building. /// /// 3. A single X.509 certificate, which MUST be a leaf certificate conveying /// the signing key. /// /// When used with the Public Good Instance (PGI) of Sigstore for "keyless" signing /// via Fulcio, form (1) MUST NOT be used, regardless of bundle version. Form (1) /// MAY be used with the PGI for self-managed keys. /// /// When used in a `0.1` or `0.2` bundle with the PGI and "keyless" signing, /// form (2) MUST be used. /// /// When used in a `0.3` bundle with the PGI and "keyless" signing, /// form (3) MUST be used. #[prost(oneof = "verification_material::Content", tags = "1, 2, 5")] pub content: ::core::option::Option, } /// Nested message and enum types in `VerificationMaterial`. pub mod verification_material { /// The key material for verification purposes. /// /// This allows key material to be conveyed in one of three forms: /// /// 1. An unspecified public key identifier, for retrieving a key /// from an out-of-band mechanism (such as a keyring); /// /// 2. A sequence of one or more X.509 certificates, of which the first member /// MUST be a leaf certificate conveying the signing key. Subsequent members /// SHOULD be in issuing order, meaning that `n + 1` should be an issuer for `n`. /// /// Signers MUST NOT include root CA certificates in bundles, and SHOULD NOT /// include intermediate CA certificates that appear in an independent root of trust /// (such as the Public Good Instance's trusted root). /// /// Verifiers MUST validate the chain carefully to ensure that it chains up /// to a CA certificate that they independently trust. Verifiers SHOULD /// handle old or non-complying bundles that have superfluous intermediate and/or /// root CA certificates by either ignoring them or explicitly considering them /// untrusted for the purposes of chain building. /// /// 3. A single X.509 certificate, which MUST be a leaf certificate conveying /// the signing key. /// /// When used with the Public Good Instance (PGI) of Sigstore for "keyless" signing /// via Fulcio, form (1) MUST NOT be used, regardless of bundle version. Form (1) /// MAY be used with the PGI for self-managed keys. /// /// When used in a `0.1` or `0.2` bundle with the PGI and "keyless" signing, /// form (2) MUST be used. /// /// When used in a `0.3` bundle with the PGI and "keyless" signing, /// form (3) MUST be used. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Content { #[prost(message, tag = "1")] PublicKey(super::super::super::common::v1::PublicKeyIdentifier), #[prost(message, tag = "2")] X509CertificateChain(super::super::super::common::v1::X509CertificateChain), #[prost(message, tag = "5")] Certificate(super::super::super::common::v1::X509Certificate), } } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.bundle.v1.Bundle")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bundle { /// MUST be application/vnd.dev.sigstore.bundle.v0.3+json when /// when encoded as JSON. /// Clients must to be able to accept media type using the previously /// defined formats: /// * application/vnd.dev.sigstore.bundle+json;version=0.1 /// * application/vnd.dev.sigstore.bundle+json;version=0.2 /// * application/vnd.dev.sigstore.bundle+json;version=0.3 #[prost(string, tag = "1")] pub media_type: ::prost::alloc::string::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". /// <> /// If the verification material contains a public key identifier /// (key hint) and the `content` is a DSSE envelope, the key hints /// MUST be exactly the same in the verification material and in the /// DSSE envelope. #[prost(message, optional, tag = "2")] pub verification_material: ::core::option::Option, #[prost(oneof = "bundle::Content", tags = "3, 4")] pub content: ::core::option::Option, } /// Nested message and enum types in `Bundle`. pub mod bundle { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Content { #[prost(message, tag = "3")] MessageSignature(super::super::super::common::v1::MessageSignature), /// 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: /// <> /// DSSE envelopes in a bundle MUST have exactly one signture. /// This is a limitation from the DSSE spec, as it can contain /// multiple signatures. There are two primary reasons: /// 1. It simplfies the verification logic and policy /// 2. The bundle (currently) can only contain a single /// instance of the required verification materials /// During verification a client MUST reject an envelope if /// the number of signatures is not equal to one. #[prost(message, tag = "4")] DsseEnvelope(super::super::super::super::super::io::intoto::Envelope), } } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.common.v1.rs000066400000000000000000000506201473777202600330120ustar00rootroot00000000000000/// HashOutput captures a digest of a 'message' (generic octet sequence) /// and the corresponding hash algorithm used. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.HashOutput")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HashOutput { #[prost(enumeration = "HashAlgorithm", tag = "1")] pub algorithm: i32, /// This is the raw octets of the message digest as computed by /// the hash algorithm. #[prost(bytes = "vec", tag = "2")] pub digest: ::prost::alloc::vec::Vec, } /// MessageSignature stores the computed signature over a message. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.MessageSignature")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct 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. #[prost(message, optional, tag = "1")] pub message_digest: ::core::option::Option, /// 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. #[prost(bytes = "vec", tag = "2")] pub signature: ::prost::alloc::vec::Vec, } /// LogId captures the identity of a transparency log. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.LogId")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LogId { /// The unique identity of the log, represented by its public key. #[prost(bytes = "vec", tag = "1")] pub key_id: ::prost::alloc::vec::Vec, } /// This message holds a RFC 3161 timestamp. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.RFC3161SignedTimestamp")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Rfc3161SignedTimestamp { /// Signed timestamp is the DER encoded TimeStampResponse. /// See #[prost(bytes = "vec", tag = "1")] pub signed_timestamp: ::prost::alloc::vec::Vec, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.PublicKey")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PublicKey { /// DER-encoded public key, encoding method is specified by the /// key_details attribute. #[prost(bytes = "vec", optional, tag = "1")] pub raw_bytes: ::core::option::Option<::prost::alloc::vec::Vec>, /// Key encoding and signature algorithm to use for this key. #[prost(enumeration = "PublicKeyDetails", tag = "2")] pub key_details: i32, /// Optional validity period for this key, *inclusive* of the endpoints. #[prost(message, optional, tag = "3")] pub valid_for: ::core::option::Option, } /// PublicKeyIdentifier can be used to identify an (out of band) delivered /// key, to verify a signature. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.PublicKeyIdentifier")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct 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: <> #[prost(string, tag = "1")] pub hint: ::prost::alloc::string::String, } /// An ASN.1 OBJECT IDENTIFIER #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.ObjectIdentifier")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ObjectIdentifier { #[prost(int32, repeated, packed = "false", tag = "1")] pub id: ::prost::alloc::vec::Vec, } /// An OID and the corresponding (byte) value. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.ObjectIdentifierValuePair")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ObjectIdentifierValuePair { #[prost(message, optional, tag = "1")] pub oid: ::core::option::Option, #[prost(bytes = "vec", tag = "2")] pub value: ::prost::alloc::vec::Vec, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.DistinguishedName")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DistinguishedName { #[prost(string, tag = "1")] pub organization: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub common_name: ::prost::alloc::string::String, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.X509Certificate")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct X509Certificate { /// DER-encoded X.509 certificate. #[prost(bytes = "vec", tag = "1")] pub raw_bytes: ::prost::alloc::vec::Vec, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.SubjectAlternativeName")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubjectAlternativeName { #[prost(enumeration = "SubjectAlternativeNameType", tag = "1")] pub r#type: i32, #[prost(oneof = "subject_alternative_name::Identity", tags = "2, 3")] pub identity: ::core::option::Option, } /// Nested message and enum types in `SubjectAlternativeName`. pub mod subject_alternative_name { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Identity { /// A regular expression describing the expected value for /// the SAN. #[prost(string, tag = "2")] Regexp(::prost::alloc::string::String), /// The exact value to match against. #[prost(string, tag = "3")] Value(::prost::alloc::string::String), } } /// A collection of X.509 certificates. /// /// This "chain" can be used in multiple contexts, such as providing a root CA /// certificate within a TUF root of trust or multiple untrusted certificates for /// the purpose of chain building. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.X509CertificateChain")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct X509CertificateChain { /// One or more DER-encoded certificates. /// /// In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence /// has an imposed order. Unless explicitly specified, there is otherwise no /// guaranteed order. #[prost(message, repeated, tag = "1")] pub certificates: ::prost::alloc::vec::Vec, } /// 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. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.common.v1.TimeRange")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimeRange { #[prost(message, optional, tag = "1")] pub start: ::core::option::Option<::prost_types::Timestamp>, #[prost(message, optional, tag = "2")] pub end: ::core::option::Option<::prost_types::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'. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum HashAlgorithm { Unspecified = 0, Sha2256 = 1, Sha2384 = 2, Sha2512 = 3, Sha3256 = 4, Sha3384 = 5, } impl HashAlgorithm { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { HashAlgorithm::Unspecified => "HASH_ALGORITHM_UNSPECIFIED", HashAlgorithm::Sha2256 => "SHA2_256", HashAlgorithm::Sha2384 => "SHA2_384", HashAlgorithm::Sha2512 => "SHA2_512", HashAlgorithm::Sha3256 => "SHA3_256", HashAlgorithm::Sha3384 => "SHA3_384", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "HASH_ALGORITHM_UNSPECIFIED" => Some(Self::Unspecified), "SHA2_256" => Some(Self::Sha2256), "SHA2_384" => Some(Self::Sha2384), "SHA2_512" => Some(Self::Sha2512), "SHA3_256" => Some(Self::Sha3256), "SHA3_384" => Some(Self::Sha3384), _ => None, } } } /// Details of a specific public key, capturing the the key encoding method, /// and signature algorithm. /// /// PublicKeyDetails captures the public key/hash algorithm combinations /// recommended in the Sigstore ecosystem. /// /// This is modelled as a linear set as we want to provide a small number of /// opinionated options instead of allowing every possible permutation. /// /// Any changes to this enum MUST be reflected in the algorithm registry. /// See: docs/algorithm-registry.md /// /// 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). #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum PublicKeyDetails { Unspecified = 0, /// RSA /// /// See RFC8017 Pkcs1RsaPkcs1v5 = 1, /// See RFC8017 Pkcs1RsaPss = 2, PkixRsaPkcs1v5 = 3, PkixRsaPss = 4, /// RSA public key in PKIX format, PKCS#1v1.5 signature PkixRsaPkcs1v152048Sha256 = 9, PkixRsaPkcs1v153072Sha256 = 10, PkixRsaPkcs1v154096Sha256 = 11, /// RSA public key in PKIX format, RSASSA-PSS signature /// /// See RFC4055 PkixRsaPss2048Sha256 = 16, PkixRsaPss3072Sha256 = 17, PkixRsaPss4096Sha256 = 18, /// ECDSA /// /// See RFC6979 PkixEcdsaP256HmacSha256 = 6, /// See NIST FIPS 186-4 PkixEcdsaP256Sha256 = 5, PkixEcdsaP384Sha384 = 12, PkixEcdsaP521Sha512 = 13, /// Ed 25519 /// /// See RFC8032 PkixEd25519 = 7, PkixEd25519Ph = 8, /// LMS and LM-OTS /// /// These keys and signatures may be used by private Sigstore /// deployments, but are not currently supported by the public /// good instance. /// /// USER WARNING: LMS and LM-OTS are both stateful signature schemes. /// Using them correctly requires discretion and careful consideration /// to ensure that individual secret keys are not used more than once. /// In addition, LM-OTS is a single-use scheme, meaning that it /// MUST NOT be used for more than one signature per LM-OTS key. /// If you cannot maintain these invariants, you MUST NOT use these /// schemes. LmsSha256 = 14, LmotsSha256 = 15, } impl PublicKeyDetails { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { PublicKeyDetails::Unspecified => "PUBLIC_KEY_DETAILS_UNSPECIFIED", PublicKeyDetails::Pkcs1RsaPkcs1v5 => "PKCS1_RSA_PKCS1V5", PublicKeyDetails::Pkcs1RsaPss => "PKCS1_RSA_PSS", PublicKeyDetails::PkixRsaPkcs1v5 => "PKIX_RSA_PKCS1V5", PublicKeyDetails::PkixRsaPss => "PKIX_RSA_PSS", PublicKeyDetails::PkixRsaPkcs1v152048Sha256 => { "PKIX_RSA_PKCS1V15_2048_SHA256" } PublicKeyDetails::PkixRsaPkcs1v153072Sha256 => { "PKIX_RSA_PKCS1V15_3072_SHA256" } PublicKeyDetails::PkixRsaPkcs1v154096Sha256 => { "PKIX_RSA_PKCS1V15_4096_SHA256" } PublicKeyDetails::PkixRsaPss2048Sha256 => "PKIX_RSA_PSS_2048_SHA256", PublicKeyDetails::PkixRsaPss3072Sha256 => "PKIX_RSA_PSS_3072_SHA256", PublicKeyDetails::PkixRsaPss4096Sha256 => "PKIX_RSA_PSS_4096_SHA256", PublicKeyDetails::PkixEcdsaP256HmacSha256 => "PKIX_ECDSA_P256_HMAC_SHA_256", PublicKeyDetails::PkixEcdsaP256Sha256 => "PKIX_ECDSA_P256_SHA_256", PublicKeyDetails::PkixEcdsaP384Sha384 => "PKIX_ECDSA_P384_SHA_384", PublicKeyDetails::PkixEcdsaP521Sha512 => "PKIX_ECDSA_P521_SHA_512", PublicKeyDetails::PkixEd25519 => "PKIX_ED25519", PublicKeyDetails::PkixEd25519Ph => "PKIX_ED25519_PH", PublicKeyDetails::LmsSha256 => "LMS_SHA256", PublicKeyDetails::LmotsSha256 => "LMOTS_SHA256", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "PUBLIC_KEY_DETAILS_UNSPECIFIED" => Some(Self::Unspecified), "PKCS1_RSA_PKCS1V5" => Some(Self::Pkcs1RsaPkcs1v5), "PKCS1_RSA_PSS" => Some(Self::Pkcs1RsaPss), "PKIX_RSA_PKCS1V5" => Some(Self::PkixRsaPkcs1v5), "PKIX_RSA_PSS" => Some(Self::PkixRsaPss), "PKIX_RSA_PKCS1V15_2048_SHA256" => Some(Self::PkixRsaPkcs1v152048Sha256), "PKIX_RSA_PKCS1V15_3072_SHA256" => Some(Self::PkixRsaPkcs1v153072Sha256), "PKIX_RSA_PKCS1V15_4096_SHA256" => Some(Self::PkixRsaPkcs1v154096Sha256), "PKIX_RSA_PSS_2048_SHA256" => Some(Self::PkixRsaPss2048Sha256), "PKIX_RSA_PSS_3072_SHA256" => Some(Self::PkixRsaPss3072Sha256), "PKIX_RSA_PSS_4096_SHA256" => Some(Self::PkixRsaPss4096Sha256), "PKIX_ECDSA_P256_HMAC_SHA_256" => Some(Self::PkixEcdsaP256HmacSha256), "PKIX_ECDSA_P256_SHA_256" => Some(Self::PkixEcdsaP256Sha256), "PKIX_ECDSA_P384_SHA_384" => Some(Self::PkixEcdsaP384Sha384), "PKIX_ECDSA_P521_SHA_512" => Some(Self::PkixEcdsaP521Sha512), "PKIX_ED25519" => Some(Self::PkixEd25519), "PKIX_ED25519_PH" => Some(Self::PkixEd25519Ph), "LMS_SHA256" => Some(Self::LmsSha256), "LMOTS_SHA256" => Some(Self::LmotsSha256), _ => None, } } } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum SubjectAlternativeNameType { Unspecified = 0, Email = 1, Uri = 2, /// OID 1.3.6.1.4.1.57264.1.7 /// See /// for more details. OtherName = 3, } impl SubjectAlternativeNameType { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { SubjectAlternativeNameType::Unspecified => { "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED" } SubjectAlternativeNameType::Email => "EMAIL", SubjectAlternativeNameType::Uri => "URI", SubjectAlternativeNameType::OtherName => "OTHER_NAME", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED" => Some(Self::Unspecified), "EMAIL" => Some(Self::Email), "URI" => Some(Self::Uri), "OTHER_NAME" => Some(Self::OtherName), _ => None, } } } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.events.v1.rs000066400000000000000000000100221473777202600330160ustar00rootroot00000000000000#[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.events.v1.CloudEvent")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CloudEvent { /// Required Attributes #[prost(string, tag = "1")] pub id: ::prost::alloc::string::String, /// URI-reference #[prost(string, tag = "2")] pub source: ::prost::alloc::string::String, #[prost(string, tag = "3")] pub spec_version: ::prost::alloc::string::String, #[prost(string, tag = "4")] pub r#type: ::prost::alloc::string::String, /// Optional & Extension Attributes #[prost(map = "string, message", tag = "5")] pub attributes: ::std::collections::HashMap< ::prost::alloc::string::String, cloud_event::CloudEventAttributeValue, >, /// -- CloudEvent Data (Bytes, Text, or Proto) #[prost(oneof = "cloud_event::Data", tags = "6, 7, 8")] pub data: ::core::option::Option, } /// Nested message and enum types in `CloudEvent`. pub mod cloud_event { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CloudEventAttributeValue { #[prost( oneof = "cloud_event_attribute_value::Attr", tags = "1, 2, 3, 4, 5, 6, 7" )] pub attr: ::core::option::Option, } /// Nested message and enum types in `CloudEventAttributeValue`. pub mod cloud_event_attribute_value { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Attr { #[prost(bool, tag = "1")] CeBoolean(bool), #[prost(int32, tag = "2")] CeInteger(i32), #[prost(string, tag = "3")] CeString(::prost::alloc::string::String), #[prost(bytes, tag = "4")] CeBytes(::prost::alloc::vec::Vec), #[prost(string, tag = "5")] CeUri(::prost::alloc::string::String), #[prost(string, tag = "6")] CeUriRef(::prost::alloc::string::String), #[prost(message, tag = "7")] CeTimestamp(::prost_types::Timestamp), } } /// -- CloudEvent Data (Bytes, Text, or Proto) #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Data { #[prost(bytes, tag = "6")] BinaryData(::prost::alloc::vec::Vec), #[prost(string, tag = "7")] TextData(::prost::alloc::string::String), #[prost(message, tag = "8")] ProtoData(::prost_types::Any), } } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.events.v1.CloudEventBatch")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CloudEventBatch { #[prost(message, repeated, tag = "1")] pub events: ::prost::alloc::vec::Vec, } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.rekor.v1.rs000066400000000000000000000212431473777202600326430ustar00rootroot00000000000000/// KindVersion contains the entry's kind and api version. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.rekor.v1.KindVersion")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct KindVersion { /// Kind is the type of entry being stored in the log. /// See here for a list: #[prost(string, tag = "1")] pub kind: ::prost::alloc::string::String, /// The specific api version of the type. #[prost(string, tag = "2")] pub version: ::prost::alloc::string::String, } /// The checkpoint MUST contain an origin string as a unique log identifier, /// the tree size, and the root hash. It MAY also be followed by optional data, /// and clients MUST NOT assume optional data. The checkpoint MUST also contain /// a signature over the root hash (tree head). The checkpoint MAY contain additional /// signatures, but the first SHOULD be the signature from the log. Checkpoint contents /// are concatenated with newlines into a single string. /// The checkpoint format is described in /// /// and /// An example implementation can be found in #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.rekor.v1.Checkpoint")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Checkpoint { #[prost(string, tag = "1")] pub envelope: ::prost::alloc::string::String, } /// InclusionProof is the proof returned from the transparency log. Can /// be used for offline or online verification against the log. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.rekor.v1.InclusionProof")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InclusionProof { /// The index of the entry in the tree it was written to. #[prost(int64, tag = "1")] pub log_index: i64, /// The hash digest stored at the root of the merkle tree at the time /// the proof was generated. #[prost(bytes = "vec", tag = "2")] pub root_hash: ::prost::alloc::vec::Vec, /// The size of the merkle tree at the time the proof was generated. #[prost(int64, tag = "3")] pub tree_size: i64, /// 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. #[prost(bytes = "vec", repeated, tag = "4")] pub hashes: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec>, /// Signature of the tree head, as of the time of this proof was /// generated. See above info on 'Checkpoint' for more details. #[prost(message, optional, tag = "5")] pub checkpoint: ::core::option::Option, } /// 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 /// 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. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.rekor.v1.InclusionPromise")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InclusionPromise { #[prost(bytes = "vec", tag = "1")] pub signed_entry_timestamp: ::prost::alloc::vec::Vec, } /// 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 #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.rekor.v1.TransparencyLogEntry")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransparencyLogEntry { /// The global index of the entry, used when querying the log by index. #[prost(int64, tag = "1")] pub log_index: i64, /// The unique identifier of the log. #[prost(message, optional, tag = "2")] pub log_id: ::core::option::Option, /// The kind (type) and version of the object associated with this /// entry. These values are required to construct the entry during /// verification. #[prost(message, optional, tag = "3")] pub kind_version: ::core::option::Option, /// The UNIX timestamp from the log when the entry was persisted. /// The integration time MUST NOT be trusted if inclusion_promise /// is omitted. #[prost(int64, tag = "4")] pub integrated_time: i64, /// The inclusion promise/signed entry timestamp from the log. /// Required for v0.1 bundles, and MUST be verified. /// Optional for >= v0.2 bundles if another suitable source of /// time is present (such as another source of signed time, /// or the current system time for long-lived certificates). /// MUST be verified if no other suitable source of time is present, /// and SHOULD be verified otherwise. #[prost(message, optional, tag = "5")] pub inclusion_promise: ::core::option::Option, /// 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. #[prost(message, optional, tag = "6")] pub inclusion_proof: ::core::option::Option, /// 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. #[prost(bytes = "vec", tag = "7")] pub canonicalized_body: ::prost::alloc::vec::Vec, } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/dev.sigstore.trustroot.v1.rs000066400000000000000000000273121473777202600336110ustar00rootroot00000000000000/// TransparencyLogInstance describes the immutable parameters from a /// transparency log. /// See /// for more details. /// The included parameters are the minimal set required to identify a log, /// and verify an inclusion proof/promise. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.trustroot.v1.TransparencyLogInstance")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransparencyLogInstance { /// The base URL at which can be used to URLs for the client. #[prost(string, tag = "1")] pub base_url: ::prost::alloc::string::String, /// The hash algorithm used for the Merkle Tree. #[prost(enumeration = "super::super::common::v1::HashAlgorithm", tag = "2")] pub hash_algorithm: i32, /// The public key used to verify signatures generated by the log. /// This attribute contains the signature algorithm used by the log. #[prost(message, optional, tag = "3")] pub public_key: ::core::option::Option, /// The unique identifier for this transparency 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 #[prost(message, optional, tag = "4")] pub log_id: ::core::option::Option, /// The checkpoint key identifier for the log used in a checkpoint. /// Optional, not provided for logs that do not generate checkpoints. /// For logs that do generate checkpoints, if not set, assume /// log_id equals checkpoint_key_id. /// Follows the specification described here /// for ECDSA and Ed25519 signatures: /// /// For RSA signatures, the key ID will match the ECDSA format, the /// hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT /// use RSA-signed checkpoints, since witnesses do not support /// RSA signatures. /// This is provided for convenience. Clients can also calculate the /// checkpoint key ID given the log's public key. /// SHOULD be set for logs generating Ed25519 signatures. /// SHOULD be 4 bytes long, as a truncated hash. #[prost(message, optional, tag = "5")] pub checkpoint_key_id: ::core::option::Option, } /// CertificateAuthority enlists the information required to identify which /// CA to use and perform signature verification. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.trustroot.v1.CertificateAuthority")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CertificateAuthority { /// The root certificate MUST be self-signed, and so the subject and /// issuer are the same. #[prost(message, optional, tag = "1")] pub subject: ::core::option::Option, /// The URI identifies the certificate authority. /// /// It is RECOMMENDED that the URI is the base URL for the certificate /// authority, that can be provided to any SDK/client provided /// by the certificate authority to interact with the certificate /// authority. #[prost(string, tag = "2")] pub uri: ::prost::alloc::string::String, /// The certificate chain for this CA. The last certificate in the chain /// MUST be the trust anchor. The trust anchor MAY be a self-signed root /// CA certificate or MAY be an intermediate CA certificate. #[prost(message, optional, tag = "3")] pub cert_chain: ::core::option::Option< super::super::common::v1::X509CertificateChain, >, /// 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. #[prost(message, optional, tag = "4")] pub valid_for: ::core::option::Option, } /// 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. /// /// All the listed instances SHOULD be sorted by the 'valid_for' in ascending /// order, that is, the oldest instance first. Only the last instance is /// allowed to have their 'end' timestamp unset. All previous instances MUST /// have a closed interval of validity. The last instance MAY have a closed /// interval. Clients MUST accept instances that overlaps in time, if not /// clients may experience problems during rotations of verification /// materials. /// /// To be able to manage planned rotations of either transparency logs or /// certificate authorities, clienst MUST accept lists of instances where /// the last instance have a 'valid_for' that belongs to the future. /// This should not be a problem as clients SHOULD first seek the trust root /// for a suitable instance before creating a per artifact trust root (that /// is, a sub-set of the complete trust root) that is used for verification. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.trustroot.v1.TrustedRoot")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrustedRoot { /// MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json /// when encoded as JSON. /// Clients MUST be able to process and parse content with the media /// type defined in the old format: /// application/vnd.dev.sigstore.trustedroot+json;version=0.1 #[prost(string, tag = "1")] pub media_type: ::prost::alloc::string::String, /// A set of trusted Rekor servers. #[prost(message, repeated, tag = "2")] pub tlogs: ::prost::alloc::vec::Vec, /// 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. #[prost(message, repeated, tag = "3")] pub certificate_authorities: ::prost::alloc::vec::Vec, /// A set of trusted certificate transparency logs. #[prost(message, repeated, tag = "4")] pub ctlogs: ::prost::alloc::vec::Vec, /// A set of trusted timestamping authorities. #[prost(message, repeated, tag = "5")] pub timestamp_authorities: ::prost::alloc::vec::Vec, } /// SigningConfig represents the trusted entities/state needed by Sigstore /// signing. In particular, it primarily contains service URLs that a Sigstore /// signer may need to connect to for the online aspects of signing. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.trustroot.v1.SigningConfig")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningConfig { /// MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json #[prost(string, tag = "5")] pub media_type: ::prost::alloc::string::String, /// A URL to a Fulcio-compatible CA, capable of receiving /// Certificate Signing Requests (CSRs) and responding with /// issued certificates. /// /// This URL **MUST** be the "base" URL for the CA, which clients /// should construct an appropriate CSR endpoint on top of. /// For example, if `ca_url` is ` then /// the client **MAY** construct the CSR endpoint as /// ` #[prost(string, tag = "1")] pub ca_url: ::prost::alloc::string::String, /// A URL to an OpenID Connect identity provider. /// /// This URL **MUST** be the "base" URL for the OIDC IdP, which clients /// should perform well-known OpenID Connect discovery against. #[prost(string, tag = "2")] pub oidc_url: ::prost::alloc::string::String, /// One or more URLs to Rekor-compatible transparency log. /// /// Each URL **MUST** be the "base" URL for the transparency log, /// which clients should construct appropriate API endpoints on top of. #[prost(string, repeated, tag = "3")] pub tlog_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// One ore more URLs to RFC 3161 Time Stamping Authority (TSA). /// /// Each URL **MUST** be the **full** URL for the TSA, meaning that it /// should be suitable for submitting Time Stamp Requests (TSRs) to /// via HTTP, per RFC 3161. #[prost(string, repeated, tag = "4")] pub tsa_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// ClientTrustConfig describes the complete state needed by a client /// to perform both signing and verification operations against a particular /// instance of Sigstore. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.trustroot.v1.ClientTrustConfig")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientTrustConfig { /// MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json #[prost(string, tag = "1")] pub media_type: ::prost::alloc::string::String, /// The root of trust, which MUST be present. #[prost(message, optional, tag = "2")] pub trusted_root: ::core::option::Option, /// Configuration for signing clients, which MUST be present. #[prost(message, optional, tag = "3")] pub signing_config: ::core::option::Option, } dev.sigstore.verification.v1.rs000066400000000000000000000327001473777202600341240ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/// The identity of a X.509 Certificate signer. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.verification.v1.CertificateIdentity")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CertificateIdentity { /// The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) #[prost(string, tag = "1")] pub issuer: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] pub san: ::core::option::Option, /// 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. #[prost(message, repeated, tag = "3")] pub oids: ::prost::alloc::vec::Vec< super::super::common::v1::ObjectIdentifierValuePair, >, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.verification.v1.CertificateIdentities")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CertificateIdentities { #[prost(message, repeated, tag = "1")] pub identities: ::prost::alloc::vec::Vec, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.verification.v1.PublicKeyIdentities")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PublicKeyIdentities { #[prost(message, repeated, tag = "1")] pub public_keys: ::prost::alloc::vec::Vec, } /// A light-weight set of options/policies for identifying trusted signers, /// used during verification of a single artifact. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ArtifactVerificationOptions { /// Optional options for artifact transparency log verification. /// If none is provided, the default verification options are: /// Threshold: 1 /// Online verification: false /// Disable: false #[prost(message, optional, tag = "3")] pub tlog_options: ::core::option::Option, /// Optional options for certificate transparency log verification. /// If none is provided, the default verification options are: /// Threshold: 1 /// Disable: false #[prost(message, optional, tag = "4")] pub ctlog_options: ::core::option::Option< artifact_verification_options::CtlogOptions, >, /// Optional options for certificate signed timestamp verification. /// If none is provided, the default verification options are: /// Threshold: 0 /// Disable: true #[prost(message, optional, tag = "5")] pub tsa_options: ::core::option::Option< artifact_verification_options::TimestampAuthorityOptions, >, /// Optional options for integrated timestamp verification. /// If none is provided, the default verification options are: /// Threshold: 0 /// Disable: true #[prost(message, optional, tag = "6")] pub integrated_ts_options: ::core::option::Option< artifact_verification_options::TlogIntegratedTimestampOptions, >, /// Optional options for observed timestamp verification. /// If none is provided, the default verification options are: /// Threshold 1 /// Disable: false #[prost(message, optional, tag = "7")] pub observer_options: ::core::option::Option< artifact_verification_options::ObserverTimestampOptions, >, /// 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. #[prost(oneof = "artifact_verification_options::Signers", tags = "1, 2")] pub signers: ::core::option::Option, } /// Nested message and enum types in `ArtifactVerificationOptions`. pub mod artifact_verification_options { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TlogOptions { /// Number of transparency logs the entry must appear on. #[prost(int32, tag = "1")] pub threshold: i32, /// Perform an online inclusion proof. #[prost(bool, tag = "2")] pub perform_online_verification: bool, /// Disable verification for transparency logs. #[prost(bool, tag = "3")] pub disable: bool, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CtlogOptions { /// The number of ct transparency logs the certificate must /// appear on. #[prost(int32, tag = "1")] pub threshold: i32, /// Disable ct transparency log verification #[prost(bool, tag = "3")] pub disable: bool, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampAuthorityOptions { /// The number of signed timestamps that are expected. #[prost(int32, tag = "1")] pub threshold: i32, /// Disable signed timestamp verification. #[prost(bool, tag = "2")] pub disable: bool, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TlogIntegratedTimestampOptions { /// The number of integrated timestamps that are expected. #[prost(int32, tag = "1")] pub threshold: i32, /// Disable integrated timestamp verification. #[prost(bool, tag = "2")] pub disable: bool, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect( message_name = "dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions" )] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ObserverTimestampOptions { /// The number of external observers of the timestamp. /// This is a union of RFC3161 signed timestamps, and /// integrated timestamps from a transparency log, that /// could include additional timestamp sources in the /// future. #[prost(int32, tag = "1")] pub threshold: i32, /// Disable observer timestamp verification. #[prost(bool, tag = "2")] pub disable: bool, } /// 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. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Signers { #[prost(message, tag = "1")] CertificateIdentities(super::CertificateIdentities), /// 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. #[prost(message, tag = "2")] PublicKeys(super::PublicKeyIdentities), } } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.verification.v1.Artifact")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Artifact { #[prost(oneof = "artifact::Data", tags = "1, 2, 3")] pub data: ::core::option::Option, } /// Nested message and enum types in `Artifact`. pub mod artifact { #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Data { /// Location of the artifact #[prost(string, tag = "1")] ArtifactUri(::prost::alloc::string::String), /// The raw bytes of the artifact #[prost(bytes, tag = "2")] Artifact(::prost::alloc::vec::Vec), /// Digest of the artifact. SHOULD NOT be used when verifying an /// in-toto attestation as the subject digest cannot be /// reconstructed. This option will not work with Ed25519 /// signatures, use Ed25519Ph or another algorithm instead. #[prost(message, tag = "3")] ArtifactDigest(super::super::super::common::v1::HashOutput), } } /// Input captures all that is needed to call the bundle verification method, /// to verify a single artifact referenced by the bundle. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "dev.sigstore.verification.v1.Input")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct 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`. #[prost(message, optional, tag = "1")] pub artifact_trust_root: ::core::option::Option< super::super::trustroot::v1::TrustedRoot, >, #[prost(message, optional, tag = "2")] pub artifact_verification_options: ::core::option::Option< ArtifactVerificationOptions, >, #[prost(message, optional, tag = "3")] pub bundle: ::core::option::Option, /// If the bundle contains a message signature, the artifact must be /// provided. #[prost(message, optional, tag = "4")] pub artifact: ::core::option::Option, } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/file_descriptor_set.bin000066400000000000000000003505641473777202600327500ustar00rootroot00000000000000 µ envelope.proto io.intoto"| Envelope payload ( Rpayload payloadType ( R payloadType4 signatures ( 2.io.intoto.SignatureR signatures"3 Signature sig ( Rsig keyid ( RkeyidBDZ1github.com/sigstore/protobuf-specs/gen/pb-go/dsseêSigstore::DSSEJ– 3 •  2s https://raw.githubusercontent.com/secure-systems-lab/dsse/9c813476bd36de70a5738c72e784f123ecea16af/envelope.proto 2• 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.    H  H  ' -' 9 )- An authenticated message of arbitrary type.  U H Message to be signed. (In JSON, this is encoded as base64.) REQUIRED.    T G String unambiguously identifying how to interpret payload. REQUIRED.     § ($™ 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). ( (  ( ("# +3 + Q .D Signature itself. (In JSON, this is encoded as base64.) REQUIRED. . . . W 2J *Unauthenticated* hint identifying which public key was used. OPTIONAL. 2 2  2bproto3 Ù, google/protobuf/any.protogoogle.protobuf"6 Any type_url ( RtypeUrl value ( RvalueBv com.google.protobufBAnyProtoPZ,google.golang.org/protobuf/types/known/anypb¢GPBªGoogle.Protobuf.WellKnownTypesJò*  Ì  2Á Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. All rights reserved. https://developers.google.com/protocol-buffers/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     "; %";  #C  #C  $, $,  %) %)  &"  &"  '! $'! ö |è `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" } | × ™È 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. ™ ™  ™ W œI Must be a valid serialized protocol buffer of the above specified type. œ œ œbproto3 Ç1 google/protobuf/timestamp.protogoogle.protobuf"; Timestamp seconds (Rseconds nanos (RnanosB… com.google.protobufBTimestampProtoPZ2google.golang.org/protobuf/types/known/timestamppbø¢GPBªGoogle.Protobuf.WellKnownTypesJÅ/ ’ Ì  2Á Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. All rights reserved. https://developers.google.com/protocol-buffers/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     "; %";  # #  $I  $I  %, %,  &/ &/  '"  '"  (! $(! Þ ‡’Ï 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. ‡  ‹Ž 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. ‹ ‹ ‹ å ‘Ö 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. ‘ ‘ ‘bproto3 ´ events.protodev.sigstore.events.v1google/protobuf/any.protogoogle/protobuf/timestamp.proto"Ù CloudEvent id ( Rid source ( Rsource! spec_version ( R specVersion type ( RtypeR attributes ( 22.dev.sigstore.events.v1.CloudEvent.AttributesEntryR attributes! binary_data ( HR binaryData text_data ( HRtextData5 proto_data ( 2.google.protobuf.AnyHR protoDataz AttributesEntry key ( RkeyQ value ( 2;.dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValueRvalue:8š CloudEventAttributeValue ce_boolean (HR ceBoolean ce_integer (HR ceInteger ce_string ( HRceString ce_bytes ( HRceBytes ce_uri ( HRceUri ce_uri_ref ( HRceUriRef? ce_timestamp ( 2.google.protobuf.TimestampHR ceTimestampB attrB data"M CloudEventBatch: events ( 2".dev.sigstore.events.v1.CloudEventReventsBk dev.sigstore.proto.events.v1PZ6github.com/sigstore/protobuf-specs/gen/pb-go/events/v1êSigstore::EventsJ¯ P ä  2W https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/cloudevents.proto 2• 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. 2è* 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.   $ *  N  N  6 6  #  #   * - * "G "  F ' Required Attributes 2" -- CloudEvent Context Attributes ' ' '  (" URI-reference ( (  ( ) ) )  ) * * *  * . -8! Optional & Extension Attributes -( -)3 -67 : 04, -- CloudEvent Data (Bytes, Text, or Proto) 0 1 1 1  1 2 2 2  2 3( 3 3# 3&' V ;F2H* The CloudEvent specification defines seven attribute value types... ; #  =E  =  >  >  >   > ?  ?  ?   ? @  @  @  @ A  A  A   A B  B  B  B C  C  C  C D2  D  D!-  D01 1 NP2%* CloudEvent Protobuf Batch Format N  O" O O  O O !bproto3 Ò‰ google/protobuf/descriptor.protogoogle.protobuf"M FileDescriptorSet8 file ( 2$.google.protobuf.FileDescriptorProtoRfile"ä FileDescriptorProto name ( Rname package ( Rpackage dependency ( R dependency+ public_dependency (RpublicDependency' weak_dependency (RweakDependencyC message_type ( 2 .google.protobuf.DescriptorProtoR messageTypeA enum_type ( 2$.google.protobuf.EnumDescriptorProtoRenumTypeA service ( 2'.google.protobuf.ServiceDescriptorProtoRserviceC extension ( 2%.google.protobuf.FieldDescriptorProtoR extension6 options ( 2.google.protobuf.FileOptionsRoptionsI source_code_info ( 2.google.protobuf.SourceCodeInfoRsourceCodeInfo syntax ( Rsyntax"¹ DescriptorProto name ( Rname; field ( 2%.google.protobuf.FieldDescriptorProtoRfieldC extension ( 2%.google.protobuf.FieldDescriptorProtoR extensionA nested_type ( 2 .google.protobuf.DescriptorProtoR nestedTypeA enum_type ( 2$.google.protobuf.EnumDescriptorProtoRenumTypeX extension_range ( 2/.google.protobuf.DescriptorProto.ExtensionRangeRextensionRangeD oneof_decl ( 2%.google.protobuf.OneofDescriptorProtoR oneofDecl9 options ( 2.google.protobuf.MessageOptionsRoptionsU reserved_range ( 2..google.protobuf.DescriptorProto.ReservedRangeR reservedRange# reserved_name ( R reservedNamez ExtensionRange start (Rstart end (Rend@ options ( 2&.google.protobuf.ExtensionRangeOptionsRoptions7 ReservedRange start (Rstart end (Rend"| ExtensionRangeOptionsX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€"Á FieldDescriptorProto name ( Rname number (RnumberA label (2+.google.protobuf.FieldDescriptorProto.LabelRlabel> type (2*.google.protobuf.FieldDescriptorProto.TypeRtype type_name ( RtypeName extendee ( Rextendee# default_value ( R defaultValue oneof_index (R oneofIndex json_name ( RjsonName7 options ( 2.google.protobuf.FieldOptionsRoptions' proto3_optional (Rproto3Optional"¶ Type TYPE_DOUBLE TYPE_FLOAT TYPE_INT64 TYPE_UINT64 TYPE_INT32 TYPE_FIXED64 TYPE_FIXED32 TYPE_BOOL TYPE_STRING  TYPE_GROUP  TYPE_MESSAGE  TYPE_BYTES  TYPE_UINT32  TYPE_ENUM TYPE_SFIXED32 TYPE_SFIXED64 TYPE_SINT32 TYPE_SINT64"C Label LABEL_OPTIONAL LABEL_REQUIRED LABEL_REPEATED"c OneofDescriptorProto name ( Rname7 options ( 2.google.protobuf.OneofOptionsRoptions"ã EnumDescriptorProto name ( Rname? value ( 2).google.protobuf.EnumValueDescriptorProtoRvalue6 options ( 2.google.protobuf.EnumOptionsRoptions] reserved_range ( 26.google.protobuf.EnumDescriptorProto.EnumReservedRangeR reservedRange# reserved_name ( R reservedName; EnumReservedRange start (Rstart end (Rend"ƒ EnumValueDescriptorProto name ( Rname number (Rnumber; options ( 2!.google.protobuf.EnumValueOptionsRoptions"§ ServiceDescriptorProto name ( Rname> method ( 2&.google.protobuf.MethodDescriptorProtoRmethod9 options ( 2.google.protobuf.ServiceOptionsRoptions"‰ MethodDescriptorProto name ( Rname input_type ( R inputType output_type ( R outputType8 options ( 2.google.protobuf.MethodOptionsRoptions0 client_streaming (:falseRclientStreaming0 server_streaming (:falseRserverStreaming"‘ FileOptions! java_package ( R javaPackage0 java_outer_classname ( RjavaOuterClassname5 java_multiple_files (:falseRjavaMultipleFilesD java_generate_equals_and_hash (BRjavaGenerateEqualsAndHash: java_string_check_utf8 (:falseRjavaStringCheckUtf8S optimize_for (2).google.protobuf.FileOptions.OptimizeMode:SPEEDR optimizeFor go_package ( R goPackage5 cc_generic_services (:falseRccGenericServices9 java_generic_services (:falseRjavaGenericServices5 py_generic_services (:falseRpyGenericServices7 php_generic_services* (:falseRphpGenericServices% deprecated (:falseR deprecated. cc_enable_arenas (:trueRccEnableArenas* objc_class_prefix$ ( RobjcClassPrefix) csharp_namespace% ( RcsharpNamespace! swift_prefix' ( R swiftPrefix( php_class_prefix( ( RphpClassPrefix# php_namespace) ( R phpNamespace4 php_metadata_namespace, ( RphpMetadataNamespace! ruby_package- ( R rubyPackageX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption": OptimizeMode SPEED CODE_SIZE LITE_RUNTIME* 耀€€J&'"ã MessageOptions< message_set_wire_format (:falseRmessageSetWireFormatL no_standard_descriptor_accessor (:falseRnoStandardDescriptorAccessor% deprecated (:falseR deprecated map_entry (RmapEntryX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€JJJJ J  "’ FieldOptionsA ctype (2#.google.protobuf.FieldOptions.CType:STRINGRctype packed (RpackedG jstype (2$.google.protobuf.FieldOptions.JSType: JS_NORMALRjstype lazy (:falseRlazy. unverified_lazy (:falseRunverifiedLazy% deprecated (:falseR deprecated weak (:falseRweakX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption"/ CType STRING CORD STRING_PIECE"5 JSType JS_NORMAL JS_STRING JS_NUMBER* 耀€€J"s OneofOptionsX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€"À EnumOptions allow_alias (R allowAlias% deprecated (:falseR deprecatedX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€J"ž EnumValueOptions% deprecated (:falseR deprecatedX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€"œ ServiceOptions% deprecated! (:falseR deprecatedX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* 耀€€"à MethodOptions% deprecated! (:falseR deprecatedq idempotency_level" (2/.google.protobuf.MethodOptions.IdempotencyLevel:IDEMPOTENCY_UNKNOWNRidempotencyLevelX uninterpreted_optionç ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption"P IdempotencyLevel IDEMPOTENCY_UNKNOWN NO_SIDE_EFFECTS IDEMPOTENT* 耀€€"š UninterpretedOptionA name ( 2-.google.protobuf.UninterpretedOption.NamePartRname) identifier_value ( RidentifierValue, positive_int_value (RpositiveIntValue, negative_int_value (RnegativeIntValue! double_value (R doubleValue! string_value ( R stringValue' aggregate_value ( RaggregateValueJ NamePart name_part ( RnamePart! is_extension (R isExtension"§ SourceCodeInfoD location ( 2(.google.protobuf.SourceCodeInfo.LocationRlocationÎ Location path (BRpath span (BRspan) leading_comments ( RleadingComments+ trailing_comments ( RtrailingComments: leading_detached_comments ( RleadingDetachedComments"Ñ GeneratedCodeInfoM annotation ( 2-.google.protobuf.GeneratedCodeInfo.AnnotationR annotationm Annotation path (BRpath source_file ( R sourceFile begin (Rbegin end (RendB~ com.google.protobufBDescriptorProtosHZ-google.golang.org/protobuf/types/descriptorpbø¢GPBªGoogle.Protobuf.ReflectionJÛÍ '˜ ª  '2Á Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. All rights reserved. https://developers.google.com/protocol-buffers/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2Û Author: kenton@google.com (Kenton Varda) Based on original Protocol Buffers design by Sanjay Ghemawat, Jeff Dean, and others. The messages in this file describe the definitions found in .proto files. A valid .proto file can be translated directly to a FileDescriptorProto without any other information (e.g. without reading its imports).  )  +D  +D  ,, ,,  -1 -1  .7 %.7  /! $/!  0 0  4   4t descriptor.proto must be optimized for speed because reflection-based algorithms don't work during bootstrapping. j 8:^ The protocol compiler can output a FileDescriptorSet containing the .proto files it parses. 8 9( 9 9  9# 9&' / =Z# Describes a complete .proto file. = 9 >", file name, relative to root of source tree > >  > > * ?" e.g. "foo", "foo.bar", etc. ? ?  ? ? 4 B!' Names of files imported by this file. B B  B B Q D(D Indexes of the public imported files in the dependency list above. D D  D" D%' z G&m Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use. G G  G G#% 6 J,) All top-level definitions in this file. J J  J' J*+ K- K K  K( K+, L. L L ! L") L,- M. M M  M ) M,-  O#  O  O   O  O!" ô  U/æ 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.  U  U   U*  U-. ]  YP The syntax of the proto file. The supported values are "proto2" and "proto3".  Y  Y   Y  Y ' ]} Describes a message type. ] ^ ^ ^  ^ ^ `* ` `  ` % `() a. a a  a ) a,- c+ c c  c& c)* d- d d  d( d+, fk f   g" Inclusive.  g  g   g  g  h" Exclusive.  h  h   h  h j/  j  j "  j#*  j-. l. l l  l) l,- n/ n n  n * n-. p& p p  p! p$% ª ux› 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. u   v" Inclusive.  v  v   v  v  w" Exclusive.  w  w   w  w y, y y  y' y*+ ‚  |%u Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.  |  |   |  |"$ †  O :A The parser stores options it doesn't recognize here. See above.    3 69 Z …M Clients can define custom options in extensions of this message. See above. …  …  … 3 ‰í% Describes a field within a message. ‰  Š© Š S C 0 is reserved for errors. Order is weird for historical reasons.      Ž  Ž  Ž w ‘g Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.  ‘  ‘  ’  ’  ’ w •g Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.  •  •  –  –  –  —  —  —  ˜  ˜  ˜  ™  ™  ™ â  žÑ 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.   ž   ž -  Ÿ" Length-delimited aggregate.   Ÿ   Ÿ #  ¢ New in version 2.   ¢   ¢   £   £   £   ¤   ¤   ¤  ¥  ¥  ¥  ¦  ¦  ¦ ' §" Uses ZigZag encoding.  §  § ' ¨" Uses ZigZag encoding.  ¨  ¨  «° « * ­ 0 is reserved for errors  ­  ­  ®  ®  ®  ¯  ¯  ¯ ² ² ²  ² ² ³ ³ ³  ³ ³ ´ ´ ´  ´ ´ œ ¸ 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. ¸ ¸  ¸ ¸ · ¿ ¨ 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). ¿ ¿  ¿ ¿ ~ Ãp For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name. à à  à à ‘ É$‚ 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. É É  É É"# „ Í!v If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof. Í Í  Í Í ú Ó!ë 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. Ó Ó  Ó Ó  Õ$  Õ  Õ   Õ  Õ"# ³  ì%¤ 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`.  ì  ì   ì  ì"$ " ðó Describes a oneof. ð ñ ñ ñ  ñ ñ ò$ ò ò  ò ò"# ' ö Describes an enum type. ö ÷ ÷ ÷  ÷ ÷ ù. ù ù # ù$) ù,- û# û û  û û!" ¯ ƒ†ž 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. ƒ   „" Inclusive.  „  „   „  „  …" Inclusive.  …  …   …  … ª ‹0› 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. ‹ ‹  ‹+ ‹./ l $^ Reserved enum value names, which may not be reused. A given name may only be reserved once.     "# 1 “˜# Describes a value within an enum. “ ” ” ”  ” ” • • •  • • —( — —  —# —&' $ ›  Describes a service. › œ œ œ  œ œ ,   !' *+ Ÿ& Ÿ Ÿ  Ÿ! Ÿ$% 0  £±" Describes a method of a service.  £  ¤  ¤  ¤   ¤  ¤ —  ¨!ˆ Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.  ¨  ¨   ¨  ¨  ©"  ©  ©   ©  © !  «%  «  «   «  «#$ E  ®77 Identifies if client streams multiple client messages  ®  ®   ®  ®#$  ®%6  ®05 E  °77 Identifies if server streams multiple server messages  °  °   °  °#$  °%6  °05 ¯  ÔÏ2N =================================================================== Options 2Ð Each of the definitions above may have "options" attached. These are just annotations which may cause code to be generated slightly differently or may contain hints for code that manipulates protocol messages. Clients may define custom options as extensions of the *Options messages. These extensions may not yet be known at parsing time, so the parser cannot store the values in them. Instead it stores them in a field in the *Options message called uninterpreted_option. This field must have the same name across all *Options messages. We then use this field to populate the extensions when we build a descriptor, at which point all protos have been parsed and so all extensions are known. Extension numbers for custom options may be chosen as follows: * For options which will only be used within a single application or organization, or for experimental options, use field numbers 50000 through 99999. It is up to you to ensure that you do not use the same number for multiple options. * For options which will be published and used publicly by multiple independent entities, e-mail protobuf-global-extension-registry@google.com to reserve extension numbers. Simply provide your project name (e.g. Objective-C plugin) and your project website (if available) -- there's no need to explain how you intend to use them. Usually you only need one extension number. You can declare multiple options with only one extension number by putting them in a sub-message. See the Custom Options section of the docs for examples: https://developers.google.com/protocol-buffers/docs/proto#options If this turns out to be popular, a web service will be set up to automatically assign option numbers.  Ô ô  Ú#å 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.  Ú  Ú   Ú  Ú!" ñ  â+â 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.  â  â   â&  â)* ¦  ê;— 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.  ê  ê   ê#  ê&(  ê):  ê49 )  íE This option does nothing.  í  í   í-  í02  í3D   í4C æ  õ>× 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.  õ  õ   õ&  õ)+  õ,=  õ7< L  ùþ< Generated classes can be optimized for speed or code size.  ù D  ú"4 Generate complete code for parsing, serialization,   ú   ú G  ü etc. "/ Use ReflectionOps to implement these methods.   ü   ü G  ý"7 Generate code using MessageLite and the lite runtime.   ý   ý  ÿ;  ÿ  ÿ   ÿ$  ÿ'(  ÿ):  ÿ49 â  †"Ó 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.  †  †   †  †! Ô  •;Å 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.  •  •   •#  •&(  •):  •49  –=  –  –   –%  –(*  –+<  –6;   —;   —   —    —#   —&(   —):   —49   ˜<   ˜   ˜    ˜$   ˜')   ˜*;   ˜5: ó   ž2ä 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.   ž   ž    ž   ž   ž 1   ž+0    ¢7q Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.   ¢   ¢    ¢   ¢#%   ¢&6   ¢15 ’   §)ƒ Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.   §   §    §#   §&( I  ª(; Namespace for generated classes; defaults to the package.  ª  ª   ª"  ª%' ‘  °$‚ 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.  °  °   °  °!# ~  ´(p Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.  ´  ´   ´"  ´%' ¾  ¹%¯ 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.  ¹  ¹   ¹  ¹"$ Ê  ¾.» 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.  ¾  ¾   ¾(  ¾+-   Ã$³ 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.  à  à   à  Ã!# |  È:n The parser stores options it doesn't recognize here. See the documentation for the "Options" section above.  È  È   È3  È69 ‡  Ìz Clients can define custom options in extensions of this message. See the documentation for the "Options" section above.  Ì   Ì   Ì  Î  Î  Î  Î  Ñ“  Ñ Ø  ä>É 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.  ä  ä   ä'  ä*+  ä,=  ä7< ë  éFÜ 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".  é  é   é/  é23  é4E  é?D î  ï1ß 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.  ï  ï   ï  ï  ï0  ï*/  ñ  ñ  ñ  ñ  ñ  ñ  ñ  ñ  ñ  ñ    ˆ‘ 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.  ˆ  ˆ   ˆ  ˆ $  Š " javalite_serializable  Š  Š  Š   ‹ " javanano_as_lite  ‹  ‹  ‹ O  :A The parser stores options it doesn't recognize here. See above.       3  69 Z  ’M Clients can define custom options in extensions of this message. See above.  ’   ’   ’  •û  • £  š.” 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!  š  š   š  š  š-  š&,   ›¢  ›    Default mode.          Ÿ   Ÿ   Ÿ   ¡   ¡   ¡ Ú  ¨Ë 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.  ¨  ¨   ¨  ¨ š  µ3‹ 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.  µ  µ   µ  µ  µ2  µ(1   ¶¿  ¶ '  ¸ Use the default type.   ¸   ¸ )  » Use JavaScript strings.   »   » )  ¾ Use JavaScript numbers.   ¾   ¾ Ö  ã+Ç 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.  ã  ã   ã  ã  ã*  ã$) ¯  è7  unverified_lazy does no correctness checks on the byte stream. This should only be used where lazy with verification is prohibitive for performance reasons.  è  è   è  è"$  è%6  è05 è  î1Ù 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.  î  î   î  î  î0  î*/ ?  ñ,1 For Google-internal migration only. Do not use.  ñ  ñ   ñ  ñ  ñ+  ñ%* O  õ:A The parser stores options it doesn't recognize here. See above.  õ  õ   õ3  õ69 Z  øM Clients can define custom options in extensions of this message. See above.  ø   ø   ø   ú " removed jtype  ú  ú  ú  ýƒ  ý O  ÿ:A The parser stores options it doesn't recognize here. See above.  ÿ  ÿ   ÿ3  ÿ69 Z  ‚M Clients can define custom options in extensions of this message. See above.  ‚   ‚   ‚ …˜ … ` ‰ R Set this option to true to allow mapping different tag names to the same value. ‰ ‰  ‰ ‰ å 1Ö 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.      0 */   ‘ " javanano_as_lite  ‘  ‘  ‘ O ”:A The parser stores options it doesn't recognize here. See above. ” ”  ”3 ”69 Z —M Clients can define custom options in extensions of this message. See above. —  —  — š¦ š ÷ Ÿ1è 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. Ÿ Ÿ  Ÿ Ÿ Ÿ0 Ÿ*/ O ¢:A The parser stores options it doesn't recognize here. See above. ¢ ¢  ¢3 ¢69 Z ¥M Clients can define custom options in extensions of this message. See above. ¥  ¥  ¥ ¨º ¨ Ù ³2ß 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. 2è Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers. ³ ³  ³ ³ ³ 1 ³+0 O ¶:A The parser stores options it doesn't recognize here. See above. ¶ ¶  ¶3 ¶69 Z ¹M Clients can define custom options in extensions of this message. See above. ¹  ¹  ¹ ¼Ù ¼ Ö Ç2Ü 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. 2è Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers. Ç Ç  Ç Ç Ç 1 Ç+0 ð ÌÐß 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. Ì  Í  Í  Í $ Î" implies idempotent  Î  Î 7 Ï"' idempotent, but may have side effects  Ï  Ï  ÑÒ& Ñ Ñ  Ñ- Ñ02 Ò% Ò$ O Õ:A The parser stores options it doesn't recognize here. See above. Õ Õ  Õ3 Õ69 Z ØM Clients can define custom options in extensions of this message. See above. Ø  Ø  Ø ‹ âöü 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. â Ë èëº 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". è   é"  é  é   é  é !  ê#  ê  ê   ê  ê!" ì ì ì  ì ì œ ð' The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set. ð ð  ð" ð%& ñ) ñ ñ  ñ$ ñ'( ò( ò ò  ò# ò&' ó# ó ó  ó ó!" ô" ô ô  ô ô ! õ& õ õ  õ! õ$% Ú ýþj Encapsulates information about the original source file from which a FileDescriptorProto was generated. 2` =================================================================== Optional source code info ý ‚ ©!ó 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. © ©  © ©  ªý ª  ‰ Â,ø 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).           Â+  Â* Ò É,Á 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.  É  É   É  É  É+  É* ¥ ú)” 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.  ú  ú   ú$  ú'(  û*  û  û   û%  û()  ü2  ü  ü   ü-  ü01 î ƒ˜ß 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. ƒ x †%j An Annotation connects some span of text in generated code to an element of its generating .proto file. † †  † †#$  ‡— ‡   Š, Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.  Š  Š   Š  Š  Š+  Š* O $? Identifies the filesystem path to the original source .proto.         "# w ‘g Identifies the starting offset in bytes in the generated code that relates to the identified object.  ‘  ‘   ‘  ‘ Û –Ê 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).  –  –   –  – ê google/api/field_behavior.proto google.api google/protobuf/descriptor.proto* FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED OPTIONAL REQUIRED OUTPUT_ONLY INPUT_ONLY IMMUTABLE UNORDERED_LIST:` field_behavior.google.protobuf.FieldOptionsœ (2.google.api.FieldBehaviorR fieldBehaviorBp com.google.apiBFieldBehaviorProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIJª S ¼  2± Copyright 2020 Google LLC 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.   *  X  X  "  "  3 3  ' '  " $" ( Ú ':Î A designation of a specific field behavior (required, output only, etc.) in protobuf messages. Examples: string name = 1 [(google.api.field_behavior) = REQUIRED]; State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; google.protobuf.Duration ttl = 1 [(google.api.field_behavior) = INPUT_ONLY]; google.protobuf.Timestamp expire_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY, (google.api.field_behavior) = IMMUTABLE]; # ' ' # '$2 '59 ê 0SÝ 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. 0 ? 2!2 Conventional default for enums. Do not use this. 2 2 ¡ 7“ Specifically denotes a field as optional. While all fields in protocol buffers are optional, this may be specified for emphasis if appropriate. 7 7  À <² 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`). < <  ý Bï 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). B B ž G Denotes a field as input only. This indicates that the field is provided in requests, and the corresponding field is not included in output. G G £ L• 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. L L ’ R„ 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. R Rbproto3 ´Y sigstore_common.protodev.sigstore.common.v1google/api/field_behavior.protogoogle/protobuf/timestamp.proto"i HashOutputC algorithm (2%.dev.sigstore.common.v1.HashAlgorithmR algorithm digest ( Rdigest"€ MessageSignatureI message_digest ( 2".dev.sigstore.common.v1.HashOutputR messageDigest! signature ( BàAR signature"# LogId key_id ( BàARkeyId"H RFC3161SignedTimestamp. signed_timestamp ( BàARsignedTimestamp"Ù PublicKey raw_bytes ( HRrawBytesˆI key_details (2(.dev.sigstore.common.v1.PublicKeyDetailsR keyDetailsC valid_for ( 2!.dev.sigstore.common.v1.TimeRangeHRvalidForˆB _raw_bytesB _valid_for") PublicKeyIdentifier hint ( Rhint"' ObjectIdentifier id (BàARid"m ObjectIdentifierValuePair: oid ( 2(.dev.sigstore.common.v1.ObjectIdentifierRoid value ( Rvalue"X DistinguishedName" organization ( R organization common_name ( R commonName"3 X509Certificate raw_bytes ( BàARrawBytes"ž SubjectAlternativeNameF type (22.dev.sigstore.common.v1.SubjectAlternativeNameTypeRtype regexp ( HRregexp value ( HRvalueB identity"c X509CertificateChainK certificates ( 2'.dev.sigstore.common.v1.X509CertificateR certificates"x TimeRange0 start ( 2.google.protobuf.TimestampRstart1 end ( 2.google.protobuf.TimestampHRendˆB _end*u HashAlgorithm HASH_ALGORITHM_UNSPECIFIED SHA2_256 SHA2_384 SHA2_512 SHA3_256 SHA3_384*§ PublicKeyDetails" PUBLIC_KEY_DETAILS_UNSPECIFIED PKCS1_RSA_PKCS1V5 PKCS1_RSA_PSS PKIX_RSA_PKCS1V5 PKIX_RSA_PSS! PKIX_RSA_PKCS1V15_2048_SHA256 ! PKIX_RSA_PKCS1V15_3072_SHA256 ! PKIX_RSA_PKCS1V15_4096_SHA256  PKIX_RSA_PSS_2048_SHA256 PKIX_RSA_PSS_3072_SHA256 PKIX_RSA_PSS_4096_SHA256$ PKIX_ECDSA_P256_HMAC_SHA_256 PKIX_ECDSA_P256_SHA_256 PKIX_ECDSA_P384_SHA_384  PKIX_ECDSA_P521_SHA_512  PKIX_ED25519 PKIX_ED25519_PH LMS_SHA256 LMOTS_SHA256"2*o SubjectAlternativeNameType- )SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED EMAIL URI OTHER_NAMEB| dev.sigstore.proto.common.v1B CommonProtoPZ6github.com/sigstore/protobuf-specs/gen/pb-go/common/v1êSigstore::Common::V1JG ê Ç  2¼ 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.   ) )  M  M  5 5  "  "  , ,  - -- ñ $+ 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'. 2R This package defines commonly used message types within the Sigstore community. $ %' %" %%& & & & ' ' ' ( ( ( ) ) ) * * * Ú =iÍ Details of a specific public key, capturing the the key encoding method, and signature algorithm. PublicKeyDetails captures the public key/hash algorithm combinations recommended in the Sigstore ecosystem. This is modelled as a linear set as we want to provide a small number of opinionated options instead of allowing every possible permutation. Any changes to this enum MUST be reflected in the algorithm registry. See: docs/algorithm-registry.md 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). = >+ >& >)* ! @2 RSA " See RFC8017 @ @ @1 @0  A." See RFC8017 A A A- A, B1 B B B0 B/ C- C C C, C+ B E*5 RSA public key in PKIX format, PKCS#1v1.5 signature E% E() F+ F% F(* G+ G% G(* Q I&5 RSA public key in PKIX format, RSASSA-PSS signature " See RFC4055 I I#%  J&  J  J#%  K&  K  K#% #  N= ECDSA " See RFC6979  N$  N'(  N)<  N*; "  O$" See NIST FIPS 186-4  O  O"#  P%  P  P"$ Q% Q Q"$ & T Ed 25519 " See RFC8032 T T U U U ¸ dª LMS and LM-OTS These keys and signatures may be used by private Sigstore deployments, but are not currently supported by the public good instance. USER WARNING: LMS and LM-OTS are both stateful signature schemes. Using them correctly requires discretion and careful consideration to ensure that individual secret keys are not used more than once. In addition, LM-OTS is a single-use scheme, meaning that it MUST NOT be used for more than one signature per LM-OTS key. If you cannot maintain these invariants, you MUST NOT use these schemes. d d e e e T hH Reserved for future additions of public key/signature algorithm types. h h h ~ mrr HashOutput captures a digest of a 'message' (generic octet sequence) and the corresponding hash algorithm used. m n$ n n n"# _ qR This is the raw octets of the message digest as computed by the hash algorithm. q q q M uƒ@ MessageSignature stores the computed signature over a message. u À y&² 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. y y! y$% È ‚E¹ 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. ‚ ‚ ‚ ‚D  œ‚C B †‰4 LogId captures the identity of a transparency log. † N ˆB@ The unique identity of the log, represented by its public key. ˆ ˆ ˆ ˆA  œˆ@ 8 Œ* This message holds a RFC 3161 timestamp. Œ … Lw Signed timestamp is the DER encoded TimeStampResponse. See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2   !" #K  œ$J ’š ’ c •%U DER-encoded public key, encoding method is specified by the key_details attribute. • • • •#$ I —); Key encoding and signature algorithm to use for this key. — —$ —'( T ™)F Optional validity period for this key, *inclusive* of the endpoints. ™ ™ ™$ ™'( s ž©e PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature. ž ¸ ¨© 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: ¨ ¨ ¨ * ¬® An ASN.1 OBJECT IDENTIFIER ¬ ­G ­ ­ ­ ­ ­F  œ­E : ±´, An OID and the corresponding (byte) value. ±! ²! ² ² ² ³ ³ ³ ³ ¶¹ ¶ · · · · ¸ ¸ ¸ ¸  »¾  » .  ½E DER-encoded X.509 certificate.  ½  ½  ½  ½D   œ½C ÀÈ À Á6 Á1 Á45    à à à  ÇŽ 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. Ç Ç  ÊÓ  Ê  Ë,  Ë"  Ë#'  Ë*+   ÌÒ  Ì P  Ï"B A regular expression describing the expected value for the SAN.  Ï  Ï  Ï ! 1  Ñ!# The exact value to match against.  Ñ  Ñ  Ñ ð  Úáá A collection of X.509 certificates. This "chain" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building.  Ú í  à2Þ One or more DER-encoded certificates. In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence has an imposed order. Unless explicitly specified, there is otherwise no guaranteed order.  à  à  à!-  à01 à  çê´ 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.  ç  è,  è!  è"'  è*+  é3  é  é*  é+.  é12bproto3 á? sigstore_rekor.protodev.sigstore.rekor.v1google/api/field_behavior.protosigstore_common.proto"E KindVersion kind ( BàARkind version ( BàARversion"- Checkpoint envelope ( BàARenvelope"Û InclusionProof log_index (BàARlogIndex root_hash ( BàARrootHash tree_size (BàARtreeSize hashes ( BàARhashesF checkpoint ( 2!.dev.sigstore.rekor.v1.CheckpointBàAR checkpoint"M InclusionPromise9 signed_entry_timestamp ( BàARsignedEntryTimestamp"Ç TransparencyLogEntry log_index (BàARlogIndex9 log_id ( 2.dev.sigstore.common.v1.LogIdBàARlogIdJ kind_version ( 2".dev.sigstore.rekor.v1.KindVersionBàAR kindVersion, integrated_time (BàARintegratedTimeT inclusion_promise ( 2'.dev.sigstore.rekor.v1.InclusionPromiseRinclusionPromiseS inclusion_proof ( 2%.dev.sigstore.rekor.v1.InclusionProofBàARinclusionProof- canonicalized_body ( RcanonicalizedBodyBx dev.sigstore.proto.rekor.v1B RekorProtoPZ5github.com/sigstore/protobuf-specs/gen/pb-go/rekor/v1êSigstore::Rekor::V1JŠ7 ‰ Ç  2¼ 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.   )   L  L  4 4  "  "  + +  , -, D "8 KindVersion contains the entry's kind and api version.  Ž A€ 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    @  œ? 4 !D' The specific api version of the type. ! ! ! !C  œ!B ê .0Ý The checkpoint MUST contain an origin string as a unique log identifier, the tree size, and the root hash. It MAY also be followed by optional data, and clients MUST NOT assume optional data. The checkpoint MUST also contain a signature over the root hash (tree head). The checkpoint MAY contain additional signatures, but the first SHOULD be the signature from the log. Checkpoint contents are concatenated with newlines into a single string. The checkpoint format is described in https://github.com/transparency-dev/formats/blob/main/log/README.md and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go . /E / / / /D  œ/C  4E‚ InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log. 4 D 6E7 The index of the entry in the tree it was written to. 6 6 6 6D  œ6C j 9E] The hash digest stored at the root of the merkle tree at the time the proof was generated. 9 9 9 9D  œ9C O ;EB The size of the merkle tree at the time the proof was generated. ; ; ; ;D  œ;C Ž AK€ 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. A A A A ! A"J  œA#I ˆ DK{ Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details. D D D ! D"J  œD#I ® QS¡ 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. Q RR R R$ R'( R)Q  œR*P Ð ]‰Â 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. ] R _EE The global index of the entry, used when querying the log by index. _ _ _ _D  œ_C 0 aY# The unique identifier of the log. a$ a%+ a./ a0X  œa1W  eN The kind (type) and version of the object associated with this entry. These values are required to construct the entry during verification. e e e#$ e%M  œe&L ™ iK‹ The UNIX timestamp from the log when the entry was persisted. The integration time MUST NOT be trusted if inclusion_promise is omitted. i i i ! i"J  œi#I  q/‚ The inclusion promise/signed entry timestamp from the log. Required for v0.1 bundles, and MUST be verified. Optional for >= v0.2 bundles if another suitable source of time is present (such as another source of signed time, or the current system time for long-lived certificates). MUST be verified if no other suitable source of time is present, and SHOULD be verified otherwise. q q* q-. £ uT• 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. u u& u)* u+S  œu,R È ˆ%¹ 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. ˆ ˆ ˆ#$bproto3 ±? sigstore_bundle.protodev.sigstore.bundle.v1google/api/field_behavior.protoenvelope.protosigstore_common.protosigstore_rekor.proto"z TimestampVerificationData] rfc3161_timestamps ( 2..dev.sigstore.common.v1.RFC3161SignedTimestampRrfc3161Timestamps"ô VerificationMaterialQ public_key ( 2+.dev.sigstore.common.v1.PublicKeyIdentifierBàAHR publicKeyi x509_certificate_chain ( 2,.dev.sigstore.common.v1.X509CertificateChainBàAHRx509CertificateChainP certificate ( 2'.dev.sigstore.common.v1.X509CertificateBàAHR certificateN tlog_entries ( 2+.dev.sigstore.rekor.v1.TransparencyLogEntryR tlogEntriesq timestamp_verification_data ( 21.dev.sigstore.bundle.v1.TimestampVerificationDataRtimestampVerificationDataB content"¿ Bundle media_type ( R mediaTypef verification_material ( 2,.dev.sigstore.bundle.v1.VerificationMaterialBàARverificationMaterial\ message_signature ( 2(.dev.sigstore.common.v1.MessageSignatureBàAHRmessageSignature? dsse_envelope ( 2.io.intoto.EnvelopeBàAHR dsseEnvelopeB contentJ3B| dev.sigstore.proto.bundle.v1B BundleProtoPZ6github.com/sigstore/protobuf-specs/gen/pb-go/bundle/v1êSigstore::Bundle::V1Jæ5 ” Ç  2¼ 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.   ) ~ s https://raw.githubusercontent.com/secure-systems-lab/dsse/9c813476bd36de70a5738c72e784f123ecea16af/envelope.proto    M  M  5 5  "  "  , ,  - -- ä (/¡ Various timestamped counter signatures over the artifacts signature. Currently only RFC3161 signatures are provided. More formats may be added in the future. 2³ 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.v0.3+json The semantic version is thus '0.3'. (! © .V› 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. . .> .?Q .TU ò :lå VerificationMaterial captures details on the materials used to verify signatures. This message may be embedded in a DSSE envelope as a signature extension. Specifically, the `ext` field of the extension will expect this message when the signature extension is for Sigstore. This is identified by the `kind` field in the extension, which must be set to application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. When used as a DSSE extension, if the `public_key` field is used to indicate the key identifier, it MUST match the `keyid` field of the signature the extension is attached to. : “ \` „ The key material for verification purposes. This allows key material to be conveyed in one of three forms: 1. An unspecified public key identifier, for retrieving a key from an out-of-band mechanism (such as a keyring); 2. A sequence of one or more X.509 certificates, of which the first member MUST be a leaf certificate conveying the signing key. Subsequent members SHOULD be in issuing order, meaning that `n + 1` should be an issuer for `n`. Signers MUST NOT include root CA certificates in bundles, and SHOULD NOT include intermediate CA certificates that appear in an independent root of trust (such as the Public Good Instance's trusted root). Verifiers MUST validate the chain carefully to ensure that it chains up to a CA certificate that they independently trust. Verifiers SHOULD handle old or non-complying bundles that have superfluous intermediate and/or root CA certificates by either ignoring them or explicitly considering them untrusted for the purposes of chain building. 3. A single X.509 certificate, which MUST be a leaf certificate conveying the signing key. When used with the Public Good Instance (PGI) of Sigstore for "keyless" signing via Fulcio, form (1) MUST NOT be used, regardless of bundle version. Form (1) MAY be used with the PGI for self-managed keys. When used in a `0.1` or `0.2` bundle with the PGI and "keyless" signing, form (2) MUST be used. When used in a `0.3` bundle with the PGI and "keyless" signing, form (3) MUST be used. \ ]s ]: ];E ]HI ]Jr  œ]Kq ^€ ^; ^ If the verification material contains a public key identifier (key hint) and the `content` is a DSSE envelope, the key hints MUST be exactly the same in the verification material and in the DSSE envelope. € €2 €56 €7_  œ€8^  ‘  ‚w ‚7 ‚8I ‚LM ‚Nv  œ‚Ou Á ^² 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: DSSE envelopes in a bundle MUST have exactly one signture. This is a limitation from the DSSE spec, as it can contain multiple signatures. There are two primary reasons: 1. It simplfies the verification logic and policy 2. The bundle (currently) can only contain a single instance of the required verification materials During verification a client MUST reject an envelope if the number of signatures is not equal to one. " #0 34 5]  œ6\ ?  “2 Reserved for future additions of artifact types.  “  “  “bproto3 þR sigstore_trustroot.protodev.sigstore.trustroot.v1google/api/field_behavior.protosigstore_common.proto"Å TransparencyLogInstance base_url ( RbaseUrlL hash_algorithm (2%.dev.sigstore.common.v1.HashAlgorithmR hashAlgorithm@ public_key ( 2!.dev.sigstore.common.v1.PublicKeyR publicKey4 log_id ( 2.dev.sigstore.common.v1.LogIdRlogIdI checkpoint_key_id ( 2.dev.sigstore.common.v1.LogIdRcheckpointKeyId"ú CertificateAuthorityC subject ( 2).dev.sigstore.common.v1.DistinguishedNameRsubject uri ( RuriK cert_chain ( 2,.dev.sigstore.common.v1.X509CertificateChainR certChain> valid_for ( 2!.dev.sigstore.common.v1.TimeRangeRvalidFor"’ TrustedRoot media_type ( R mediaTypeH tlogs ( 22.dev.sigstore.trustroot.v1.TransparencyLogInstanceRtlogsh certificate_authorities ( 2/.dev.sigstore.trustroot.v1.CertificateAuthorityRcertificateAuthoritiesJ ctlogs ( 22.dev.sigstore.trustroot.v1.TransparencyLogInstanceRctlogsd timestamp_authorities ( 2/.dev.sigstore.trustroot.v1.CertificateAuthorityRtimestampAuthorities"˜ SigningConfig media_type ( R mediaType ca_url ( RcaUrl oidc_url ( RoidcUrl tlog_urls ( RtlogUrls tsa_urls ( RtsaUrls"Ø ClientTrustConfig media_type ( R mediaTypeN trusted_root ( 2&.dev.sigstore.trustroot.v1.TrustedRootBàAR trustedRootT signing_config ( 2(.dev.sigstore.trustroot.v1.SigningConfigBàAR signingConfigBˆ dev.sigstore.proto.trustroot.v1BTrustRootProtoPZ9github.com/sigstore/protobuf-specs/gen/pb-go/trustroot/v1êSigstore::TrustRoot::V1J«F Ä Ç  2¼ 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.  " )   P  P  8 8  "  "  / /  0 -0 ¬  >Ÿ 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.   H "; The base URL at which can be used to URLs for the client. " " " ; $@. The hash algorithm used for the Merkle Tree. $, $-; $>?  '8‚ The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log. '( ')3 '67 … -0÷ The unique identifier for this transparency 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 -$ -%+ -./ ¨ =;š The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash. =$ =%6 =9: „ BYx CertificateAuthority enlists the information required to identify which CA to use and perform signature verification. B e E=X The root certificate MUST be self-signed, and so the subject and issuer are the same. E0 E18 E;< ‰ Lû The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority. L L L Ô PCÆ The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate. P3 P4> PAB Û X7Í 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. X( X)2 X56 ¸ yª 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. All the listed instances SHOULD be sorted by the 'valid_for' in ascending order, that is, the oldest instance first. Only the last instance is allowed to have their 'end' timestamp unset. All previous instances MUST have a closed interval of validity. The last instance MAY have a closed interval. Clients MUST accept instances that overlaps in time, if not clients may experience problems during rotations of verification materials. To be able to manage planned rotations of either transparency logs or certificate authorities, clienst MUST accept lists of instances where the last instance have a 'valid_for' that belongs to the future. This should not be a problem as clients SHOULD first seek the trust root for a suitable instance before creating a per artifact trust root (that is, a sub-set of the complete trust root) that is used for verification. y ÿ ñ MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json when encoded as JSON. Clients MUST be able to process and parse content with the media type defined in the old format: application/vnd.dev.sigstore.trustedroot+json;version=0.1    / 3! A set of trusted Rekor servers.  ( ). 12 © ŠBš 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. Š Š% Š&= Š@A ? Œ41 A set of trusted certificate transparency logs. Œ Œ( Œ)/ Œ23 : Ž@, A set of trusted timestamping authorities. Ž Ž% Ž&; Ž>? å •¶Ö SigningConfig represents the trusted entities/state needed by Sigstore signing. In particular, it primarily contains service URLs that a Sigstore signer may need to connect to for the online aspects of signing. • L —> MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json — — — ª ¢› A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates. This URL **MUST** be the "base" URL for the CA, which clients should construct an appropriate CSR endpoint on top of. For example, if `ca_url` is `https://example.com/ca`, then the client **MAY** construct the CSR endpoint as `https://example.com/ca/api/v2/signingCert`. ¢ ¢ ¢ Á ¨² A URL to an OpenID Connect identity provider. This URL **MUST** be the "base" URL for the OIDC IdP, which clients should perform well-known OpenID Connect discovery against. ¨ ¨ ¨ Ì ®&½ One or more URLs to Rekor-compatible transparency log. Each URL **MUST** be the "base" URL for the transparency log, which clients should construct appropriate API endpoints on top of. ® ® ®! ®$% ì µ%Ý One ore more URLs to RFC 3161 Time Stamping Authority (TSA). Each URL **MUST** be the **full** URL for the TSA, meaning that it should be suitable for submitting Time Stamp Requests (TSRs) to via HTTP, per RFC 3161. µ µ µ µ#$ ³ »Ä¤ ClientTrustConfig describes the complete state needed by a client to perform both signing and verification operations against a particular instance of Sigstore. » P ½B MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json ½ ½ ½ 9 ÀN+ The root of trust, which MUST be present. À À À#$ À%M  œÀ&L I ÃR; Configuration for signing clients, which MUST be present. à Ã$ Ã'( Ã)Q  œÃ*Pbproto3 ÉH sigstore_verification.protodev.sigstore.verification.v1sigstore_common.protosigstore_trustroot.protosigstore_bundle.proto"¶ CertificateIdentity issuer ( Rissuer@ san ( 2..dev.sigstore.common.v1.SubjectAlternativeNameRsanE oids ( 21.dev.sigstore.common.v1.ObjectIdentifierValuePairRoids"j CertificateIdentitiesQ identities ( 21.dev.sigstore.verification.v1.CertificateIdentityR identities"Y PublicKeyIdentitiesB public_keys ( 2!.dev.sigstore.common.v1.PublicKeyR publicKeys"œ ArtifactVerificationOptionsl certificate_identities ( 23.dev.sigstore.verification.v1.CertificateIdentitiesHRcertificateIdentitiesT public_keys ( 21.dev.sigstore.verification.v1.PublicKeyIdentitiesHR publicKeysm tlog_options ( 2E.dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptionsHR tlogOptionsˆp ctlog_options ( 2F.dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptionsHR ctlogOptionsˆy tsa_options ( 2S.dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptionsHR tsaOptionsˆ‘ integrated_ts_options ( 2X.dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptionsHRintegratedTsOptionsˆ‚ observer_options ( 2R.dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptionsHRobserverOptionsˆ… TlogOptions threshold (R threshold> perform_online_verification (RperformOnlineVerification disable (RdisableL CtlogOptions threshold (R threshold disable (RdisableJS TimestampAuthorityOptions threshold (R threshold disable (RdisableX TlogIntegratedTimestampOptions threshold (R threshold disable (RdisableR ObserverTimestampOptions threshold (R threshold disable (RdisableB signersB _tlog_optionsB _ctlog_optionsB _tsa_optionsB _integrated_ts_optionsB _observer_options"¤ Artifact# artifact_uri ( HR artifactUri artifact ( HRartifactM artifact_digest ( 2".dev.sigstore.common.v1.HashOutputHRartifactDigestB data"ì InputV artifact_trust_root ( 2&.dev.sigstore.trustroot.v1.TrustedRootRartifactTrustRoot} artifact_verification_options ( 29.dev.sigstore.verification.v1.ArtifactVerificationOptionsRartifactVerificationOptions6 bundle ( 2.dev.sigstore.bundle.v1.BundleRbundleG artifact ( 2&.dev.sigstore.verification.v1.ArtifactHRartifactˆB _artifactB” "dev.sigstore.proto.verification.v1BVerificationProtoPZ 5 69 <= à #Kµ 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. # #A #BF #IJ &( & '4 ' '$ '%/ '23 *, * +B + +1 +2= +@A † 0‚y A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact. 0# 18 1 F 3$7 Number of transparency logs the entry must appear on.  3  3  3"# 3 55$ Perform an online inclusion proof.  5  50  534 < 7!- Disable verification for transparency logs.  7  7  7 9@ 9 T <$E The number of ct transparency logs the certificate must appear on.  <  <  <"# 5  ="' Deprecated: Support for detached SCTs  =   =   = 9 ?!* Disable ct transparency log verification  ?  ?  ? AF A) C C$4 The number of signed timestamps that are expected.  C  C  C"# 7 E!( Disable signed timestamp verification.  E  E  E GL G. G I$8 The number of integrated timestamps that are expected.  I  I  I"# ; K!, Disable integrated timestamp verification.  K  K  K MV M( è S$Ø The number of external observers of the timestamp. This is a union of RFC3161 signed timestamps, and integrated timestamps from a transparency log, that could include additional timestamp sources in the future.  S  S  S"# 9 U!* Disable observer timestamp verification.  U  U  U Ä [g µ 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. [ \A \% \&< \?@ Ú f4Ì 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. f# f$/ f23  m.´ Optional options for artifact transparency log verification. If none is provided, the default verification options are: Threshold: 1 Online verification: false Disable: false m m m) m,- © r0› Optional options for certificate transparency log verification. If none is provided, the default verification options are: Threshold: 1 Disable: false r r r+ r./ ¨ w;š Optional options for certificate signed timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true w w* w+6 w9:   |J’ Optional options for integrated timestamp verification. If none is provided, the default verification options are: Threshold: 0 Disable: true | |/ |0E |HI Ÿ ? Optional options for observed timestamp verification. If none is provided, the default verification options are: Threshold 1 Disable: false  ) *: => „ „  … … ( ‡( Location of the artifact ‡ ‡# ‡&' - ‰# The raw bytes of the artifact ‰ ‰ ‰!" ò ŽFã Digest of the artifact. SHOULD NOT be used when verifying an in-toto attestation as the subject digest cannot be reconstructed. This option will not work with Ed25519 signatures, use Ed25519Ph or another algorithm instead. Ž1 Ž2A ŽDE ‘ ”£‚ Input captures all that is needed to call the bundle verification method, to verify a single artifact referenced by the bundle. ” Ó FÄ 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`. - .A DE žF ž# ž$A žDE Ÿ1 Ÿ% Ÿ&, Ÿ/0 [ ¢'M If the bundle contains a message signature, the artifact must be provided. ¢ ¢ ¢" ¢%&bproto3protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/google.api.rs000066400000000000000000000065241473777202600306120ustar00rootroot00000000000000/// 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. #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum FieldBehavior { /// Conventional default for enums. Do not use this. Unspecified = 0, /// Specifically denotes a field as optional. /// While all fields in protocol buffers are optional, this may be specified /// for emphasis if appropriate. Optional = 1, /// 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, /// 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). OutputOnly = 3, /// Denotes a field as input only. /// This indicates that the field is provided in requests, and the /// corresponding field is not included in output. InputOnly = 4, /// 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, /// 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. UnorderedList = 6, } impl FieldBehavior { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { FieldBehavior::Unspecified => "FIELD_BEHAVIOR_UNSPECIFIED", FieldBehavior::Optional => "OPTIONAL", FieldBehavior::Required => "REQUIRED", FieldBehavior::OutputOnly => "OUTPUT_ONLY", FieldBehavior::InputOnly => "INPUT_ONLY", FieldBehavior::Immutable => "IMMUTABLE", FieldBehavior::UnorderedList => "UNORDERED_LIST", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "FIELD_BEHAVIOR_UNSPECIFIED" => Some(Self::Unspecified), "OPTIONAL" => Some(Self::Optional), "REQUIRED" => Some(Self::Required), "OUTPUT_ONLY" => Some(Self::OutputOnly), "INPUT_ONLY" => Some(Self::InputOnly), "IMMUTABLE" => Some(Self::Immutable), "UNORDERED_LIST" => Some(Self::UnorderedList), _ => None, } } } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/io.intoto.rs000066400000000000000000000026331473777202600305050ustar00rootroot00000000000000#[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "io.intoto.Envelope")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Envelope { #[prost(bytes = "vec", tag = "1")] pub payload: ::prost::alloc::vec::Vec, #[prost(string, tag = "2")] pub payload_type: ::prost::alloc::string::String, #[prost(message, repeated, tag = "3")] pub signatures: ::prost::alloc::vec::Vec, } #[derive( sigstore_protobuf_specs_derive::Deserialize_proto, sigstore_protobuf_specs_derive::Serialize_proto )] #[derive(::prost_reflect::ReflectMessage)] #[prost_reflect(message_name = "io.intoto.Signature")] #[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Signature { /// Signature itself. (In JSON, this is encoded as base64.) /// REQUIRED. #[prost(bytes = "vec", tag = "1")] pub sig: ::prost::alloc::vec::Vec, /// *Unauthenticated* hint identifying which public key was used. /// OPTIONAL. #[prost(string, tag = "2")] pub keyid: ::prost::alloc::string::String, } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/generated/mod.rs000066400000000000000000000017351473777202600273440ustar00rootroot00000000000000pub mod dev { pub mod sigstore { pub mod bundle { pub mod v1 { include!("dev.sigstore.bundle.v1.rs"); } } pub mod common { pub mod v1 { include!("dev.sigstore.common.v1.rs"); } } pub mod events { pub mod v1 { include!("dev.sigstore.events.v1.rs"); } } pub mod rekor { pub mod v1 { include!("dev.sigstore.rekor.v1.rs"); } } pub mod trustroot { pub mod v1 { include!("dev.sigstore.trustroot.v1.rs"); } } pub mod verification { pub mod v1 { include!("dev.sigstore.verification.v1.rs"); } } } } pub mod google { pub mod api { include!("google.api.rs"); } } pub mod io { pub mod intoto { include!("io.intoto.rs"); } } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/src/lib.rs000066400000000000000000000003011473777202600253610ustar00rootroot00000000000000static FILE_DESCRIPTOR_SET_BYTES: &'static [u8] = include_bytes!(concat!( env!("CARGO_MANIFEST_DIR"), "/src/generated/file_descriptor_set.bin" )); mod generated; pub use generated::*; protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/tests/000077500000000000000000000000001473777202600246265ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/tests/integration.rs000066400000000000000000000042151473777202600275210ustar00rootroot00000000000000use std::io; use sigstore_protobuf_specs::dev::sigstore::bundle::v1::Bundle; macro_rules! include_asset { ($path:literal) => { include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/", $path)) }; } struct SpaceSeparatorFormatter; impl serde_json::ser::Formatter for SpaceSeparatorFormatter { fn begin_array_value(&mut self, writer: &mut W, first: bool) -> io::Result<()> where W: ?Sized + io::Write, { if first { Ok(()) } else { writer.write_all(b", ") } } fn begin_object_value(&mut self, writer: &mut W) -> io::Result<()> where W: ?Sized + io::Write, { writer.write_all(b": ") } fn begin_object_key(&mut self, writer: &mut W, first: bool) -> io::Result<()> where W: ?Sized + io::Write, { if first { Ok(()) } else { writer.write_all(b", ") } } fn write_string_fragment(&mut self, writer: &mut W, fragment: &str) -> io::Result<()> where W: ?Sized + io::Write, { // Replace em-dashes with a unicode escape. serde_json unescapes it. writer.write_all(fragment.replace("\u{2014}", "\\u2014").as_bytes()) } } /// Test re-serializing a known-good bundle from sigstore-python. #[test] fn bundle_roundtrip() { // Deserialize bundle, trimming trailing whitespace. let input = include_asset!("a.txt.sigstore").trim_end(); let bundle: Bundle = serde_json::from_str(input).expect("failed to deserialize Bundle!"); // Re-serialize bundle with our python-like formatter. let formatter = SpaceSeparatorFormatter {}; let mut result = Vec::new(); let mut ser = serde_json::Serializer::with_formatter(&mut result, formatter); serde::Serialize::serialize(&bundle, &mut ser).expect("failed to re-serialize Bundle!"); // Notwithstanding the workarounds above, our serialized bundle should be // byte-for-byte identical to the input bundle. let result = std::str::from_utf8(&result).unwrap(); assert_eq!( input, &result[..], "re-serialized Bundle does not match original!" ); } protobuf-specs-0.3.3/gen/pb-rust/sigstore-protobuf-specs/tests/unit.rs000066400000000000000000000040031473777202600261500ustar00rootroot00000000000000use sigstore_protobuf_specs::dev::sigstore::common::v1::{HashOutput, LogId, MessageSignature}; /// HashOutput, a structure using only primitive types #[test] fn primitives() { let hash_output_json = r#"{"digest":"AQID"}"#; let hash_output_rs = HashOutput { algorithm: 0i32, digest: vec![1u8, 2u8, 3u8], }; let serialize = serde_json::to_string(&hash_output_rs); assert!(serialize.is_ok()); assert_eq!(serialize.unwrap(), hash_output_json); let deserialize = serde_json::from_str::(hash_output_json); assert!(deserialize.is_ok()); assert_eq!(deserialize.unwrap(), hash_output_rs); } /// LogId, a structure with a field using camelCase #[test] fn camel_case() { let log_id_json = r#"{"keyId":"AA=="}"#; let log_id_rs = LogId { key_id: vec![0] }; let serialize = serde_json::to_string(&log_id_rs); assert!(serialize.is_ok()); assert_eq!(serialize.unwrap(), log_id_json); let deserialize = serde_json::from_str::(log_id_json); assert!(deserialize.is_ok()); assert_eq!(deserialize.unwrap(), log_id_rs); } /// MessageSignature, nested structure #[test] fn nested() { let message_signature_json = r#"{ "messageDigest": { "algorithm": "SHA2_256", "digest": "AQID" }, "signature": "AQ==" }"#; let message_signature_rs = MessageSignature { message_digest: Some(HashOutput { algorithm: 1i32, digest: vec![1u8, 2u8, 3u8], }), signature: vec![1u8], }; let serialize = serde_json::to_string(&message_signature_rs); assert!(serialize.is_ok()); assert_eq!( serialize.unwrap(), message_signature_json .chars() .filter(|c| !c.is_whitespace()) .collect::() ); let deserialize = serde_json::from_str::(&message_signature_json); assert!(deserialize.is_ok()); assert_eq!(deserialize.unwrap(), message_signature_rs); } protobuf-specs-0.3.3/gen/pb-typescript/000077500000000000000000000000001473777202600200655ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/.gitignore000066400000000000000000000000241473777202600220510ustar00rootroot00000000000000dist/ node_modules/ protobuf-specs-0.3.3/gen/pb-typescript/LICENSE000066400000000000000000000261271473777202600211020ustar00rootroot00000000000000 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. protobuf-specs-0.3.3/gen/pb-typescript/README.md000066400000000000000000000002711473777202600213440ustar00rootroot00000000000000# @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. protobuf-specs-0.3.3/gen/pb-typescript/package-lock.json000066400000000000000000000043721473777202600233070ustar00rootroot00000000000000{ "name": "@sigstore/protobuf-specs", "version": "0.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sigstore/protobuf-specs", "version": "0.3.0", "license": "Apache-2.0", "devDependencies": { "@tsconfig/node16": "^16.1.1", "@types/node": "^18.14.0", "typescript": "^4.9.5" }, "engines": { "node": "^16.14.0 || >=18.0.0" } }, "node_modules/@tsconfig/node16": { "version": "16.1.1", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", "dev": true }, "node_modules/@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 }, "node_modules/typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { "node": ">=4.2.0" } } }, "dependencies": { "@tsconfig/node16": { "version": "16.1.1", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", "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 } } } protobuf-specs-0.3.3/gen/pb-typescript/package.json000066400000000000000000000013311473777202600223510ustar00rootroot00000000000000{ "name": "@sigstore/protobuf-specs", "version": "0.3.3", "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/node16": "^16.1.1", "@types/node": "^18.14.0", "typescript": "^4.9.5" }, "engines": { "node": "^16.14.0 || >=18.0.0" } } protobuf-specs-0.3.3/gen/pb-typescript/src/000077500000000000000000000000001473777202600206545ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/000077500000000000000000000000001473777202600234065ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/envelope.ts000066400000000000000000000074551473777202600256060ustar00rootroot00000000000000/* 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/events.ts000066400000000000000000000175351473777202600252750ustar00rootroot00000000000000/* 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/000077500000000000000000000000001473777202600246625ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/api/000077500000000000000000000000001473777202600254335ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/api/field_behavior.ts000066400000000000000000000074621473777202600307560ustar00rootroot00000000000000/* 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"; })(); protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/protobuf/000077500000000000000000000000001473777202600265225ustar00rootroot00000000000000protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/protobuf/any.ts000066400000000000000000000132531473777202600276650ustar00rootroot00000000000000/* 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/protobuf/descriptor.ts000066400000000000000000002317671473777202600312700ustar00rootroot00000000000000/* 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/google/protobuf/timestamp.ts000066400000000000000000000117531473777202600311040ustar00rootroot00000000000000/* 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/sigstore_bundle.ts000066400000000000000000000175571473777202600271650ustar00rootroot00000000000000/* eslint-disable */ import { Envelope } from "./envelope"; import { MessageSignature, PublicKeyIdentifier, RFC3161SignedTimestamp, X509Certificate, 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. This message may be embedded in a DSSE envelope as a signature * extension. Specifically, the `ext` field of the extension will expect this * message when the signature extension is for Sigstore. This is identified by * the `kind` field in the extension, which must be set to * application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. * When used as a DSSE extension, if the `public_key` field is used to indicate * the key identifier, it MUST match the `keyid` field of the signature the * extension is attached to. */ export interface VerificationMaterial { content?: | { $case: "publicKey"; publicKey: PublicKeyIdentifier } | { $case: "x509CertificateChain"; x509CertificateChain: X509CertificateChain } | { $case: "certificate"; certificate: X509Certificate }; /** * 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.v0.3+json when * when encoded as JSON. * Clients must to be able to accept media type using the previously * defined formats: * * application/vnd.dev.sigstore.bundle+json;version=0.1 * * application/vnd.dev.sigstore.bundle+json;version=0.2 * * application/vnd.dev.sigstore.bundle+json;version=0.3 */ 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". * * If the verification material contains a public key identifier * (key hint) and the `content` is a DSSE envelope, the key hints * MUST be exactly the same in the verification material and in the * DSSE envelope. */ 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), } : isSet(object.certificate) ? { $case: "certificate", certificate: X509Certificate.fromJSON(object.certificate) } : 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); message.content?.$case === "certificate" && (obj.certificate = message.content?.certificate ? X509Certificate.toJSON(message.content?.certificate) : 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/sigstore_common.ts000066400000000000000000000572001473777202600271710ustar00rootroot00000000000000/* 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, SHA2_384 = 2, SHA2_512 = 3, SHA3_256 = 4, SHA3_384 = 5, } 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; case 2: case "SHA2_384": return HashAlgorithm.SHA2_384; case 3: case "SHA2_512": return HashAlgorithm.SHA2_512; case 4: case "SHA3_256": return HashAlgorithm.SHA3_256; case 5: case "SHA3_384": return HashAlgorithm.SHA3_384; 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"; case HashAlgorithm.SHA2_384: return "SHA2_384"; case HashAlgorithm.SHA2_512: return "SHA2_512"; case HashAlgorithm.SHA3_256: return "SHA3_256"; case HashAlgorithm.SHA3_384: return "SHA3_384"; 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. * * PublicKeyDetails captures the public key/hash algorithm combinations * recommended in the Sigstore ecosystem. * * This is modelled as a linear set as we want to provide a small number of * opinionated options instead of allowing every possible permutation. * * Any changes to this enum MUST be reflected in the algorithm registry. * See: docs/algorithm-registry.md * * 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 * * @deprecated */ PKCS1_RSA_PKCS1V5 = 1, /** * PKCS1_RSA_PSS - See RFC8017 * * @deprecated */ PKCS1_RSA_PSS = 2, /** @deprecated */ PKIX_RSA_PKCS1V5 = 3, /** @deprecated */ PKIX_RSA_PSS = 4, /** PKIX_RSA_PKCS1V15_2048_SHA256 - RSA public key in PKIX format, PKCS#1v1.5 signature */ PKIX_RSA_PKCS1V15_2048_SHA256 = 9, PKIX_RSA_PKCS1V15_3072_SHA256 = 10, PKIX_RSA_PKCS1V15_4096_SHA256 = 11, /** PKIX_RSA_PSS_2048_SHA256 - RSA public key in PKIX format, RSASSA-PSS signature */ PKIX_RSA_PSS_2048_SHA256 = 16, PKIX_RSA_PSS_3072_SHA256 = 17, PKIX_RSA_PSS_4096_SHA256 = 18, /** * PKIX_ECDSA_P256_HMAC_SHA_256 - ECDSA * * @deprecated */ PKIX_ECDSA_P256_HMAC_SHA_256 = 6, /** PKIX_ECDSA_P256_SHA_256 - See NIST FIPS 186-4 */ PKIX_ECDSA_P256_SHA_256 = 5, PKIX_ECDSA_P384_SHA_384 = 12, PKIX_ECDSA_P521_SHA_512 = 13, /** PKIX_ED25519 - Ed 25519 */ PKIX_ED25519 = 7, PKIX_ED25519_PH = 8, /** * LMS_SHA256 - LMS and LM-OTS * * These keys and signatures may be used by private Sigstore * deployments, but are not currently supported by the public * good instance. * * USER WARNING: LMS and LM-OTS are both stateful signature schemes. * Using them correctly requires discretion and careful consideration * to ensure that individual secret keys are not used more than once. * In addition, LM-OTS is a single-use scheme, meaning that it * MUST NOT be used for more than one signature per LM-OTS key. * If you cannot maintain these invariants, you MUST NOT use these * schemes. */ LMS_SHA256 = 14, LMOTS_SHA256 = 15, } 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 9: case "PKIX_RSA_PKCS1V15_2048_SHA256": return PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256; case 10: case "PKIX_RSA_PKCS1V15_3072_SHA256": return PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256; case 11: case "PKIX_RSA_PKCS1V15_4096_SHA256": return PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256; case 16: case "PKIX_RSA_PSS_2048_SHA256": return PublicKeyDetails.PKIX_RSA_PSS_2048_SHA256; case 17: case "PKIX_RSA_PSS_3072_SHA256": return PublicKeyDetails.PKIX_RSA_PSS_3072_SHA256; case 18: case "PKIX_RSA_PSS_4096_SHA256": return PublicKeyDetails.PKIX_RSA_PSS_4096_SHA256; case 6: case "PKIX_ECDSA_P256_HMAC_SHA_256": return PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256; case 5: case "PKIX_ECDSA_P256_SHA_256": return PublicKeyDetails.PKIX_ECDSA_P256_SHA_256; case 12: case "PKIX_ECDSA_P384_SHA_384": return PublicKeyDetails.PKIX_ECDSA_P384_SHA_384; case 13: case "PKIX_ECDSA_P521_SHA_512": return PublicKeyDetails.PKIX_ECDSA_P521_SHA_512; case 7: case "PKIX_ED25519": return PublicKeyDetails.PKIX_ED25519; case 8: case "PKIX_ED25519_PH": return PublicKeyDetails.PKIX_ED25519_PH; case 14: case "LMS_SHA256": return PublicKeyDetails.LMS_SHA256; case 15: case "LMOTS_SHA256": return PublicKeyDetails.LMOTS_SHA256; 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_RSA_PKCS1V15_2048_SHA256: return "PKIX_RSA_PKCS1V15_2048_SHA256"; case PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256: return "PKIX_RSA_PKCS1V15_3072_SHA256"; case PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256: return "PKIX_RSA_PKCS1V15_4096_SHA256"; case PublicKeyDetails.PKIX_RSA_PSS_2048_SHA256: return "PKIX_RSA_PSS_2048_SHA256"; case PublicKeyDetails.PKIX_RSA_PSS_3072_SHA256: return "PKIX_RSA_PSS_3072_SHA256"; case PublicKeyDetails.PKIX_RSA_PSS_4096_SHA256: return "PKIX_RSA_PSS_4096_SHA256"; case PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256: return "PKIX_ECDSA_P256_HMAC_SHA_256"; case PublicKeyDetails.PKIX_ECDSA_P256_SHA_256: return "PKIX_ECDSA_P256_SHA_256"; case PublicKeyDetails.PKIX_ECDSA_P384_SHA_384: return "PKIX_ECDSA_P384_SHA_384"; case PublicKeyDetails.PKIX_ECDSA_P521_SHA_512: return "PKIX_ECDSA_P521_SHA_512"; case PublicKeyDetails.PKIX_ED25519: return "PKIX_ED25519"; case PublicKeyDetails.PKIX_ED25519_PH: return "PKIX_ED25519_PH"; case PublicKeyDetails.LMS_SHA256: return "LMS_SHA256"; case PublicKeyDetails.LMOTS_SHA256: return "LMOTS_SHA256"; 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 identity of the log, represented by its public key. */ 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 collection of X.509 certificates. * * This "chain" can be used in multiple contexts, such as providing a root CA * certificate within a TUF root of trust or multiple untrusted certificates for * the purpose of chain building. */ export interface X509CertificateChain { /** * One or more DER-encoded certificates. * * In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence * has an imposed order. Unless explicitly specified, there is otherwise no * guaranteed order. */ 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/sigstore_rekor.ts000066400000000000000000000301301473777202600270140ustar00rootroot00000000000000/* 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 MUST contain an origin string as a unique log identifier, * the tree size, and the root hash. It MAY also be followed by optional data, * and clients MUST NOT assume optional data. The checkpoint MUST also contain * a signature over the root hash (tree head). The checkpoint MAY contain additional * signatures, but the first SHOULD be the signature from the log. Checkpoint contents * are concatenated with newlines into a single string. * The checkpoint format is described in * https://github.com/transparency-dev/formats/blob/main/log/README.md * and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. * An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go */ 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. * The integration time MUST NOT be trusted if inclusion_promise * is omitted. */ 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 if another suitable source of * time is present (such as another source of signed time, * or the current system time for long-lived certificates). * MUST be verified if no other suitable source of time is present, * and SHOULD be verified otherwise. */ 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/sigstore_trustroot.ts000066400000000000000000000355421473777202600277730ustar00rootroot00000000000000/* 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. * 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 */ logId: | LogId | undefined; /** * The checkpoint key identifier for the log used in a checkpoint. * Optional, not provided for logs that do not generate checkpoints. * For logs that do generate checkpoints, if not set, assume * log_id equals checkpoint_key_id. * Follows the specification described here * for ECDSA and Ed25519 signatures: * https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures * For RSA signatures, the key ID will match the ECDSA format, the * hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT * use RSA-signed checkpoints, since witnesses do not support * RSA signatures. * This is provided for convenience. Clients can also calculate the * checkpoint key ID given the log's public key. * SHOULD be set for logs generating Ed25519 signatures. * SHOULD be 4 bytes long, as a truncated hash. */ checkpointKeyId: 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 identifies the certificate authority. * * It is RECOMMENDED that the URI is the base URL for the certificate * authority, that can be provided to any SDK/client provided * by the certificate authority to interact with the certificate * authority. */ uri: string; /** * The certificate chain for this CA. The last certificate in the chain * MUST be the trust anchor. The trust anchor MAY be a self-signed root * CA certificate or MAY be an intermediate CA certificate. */ 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. * * All the listed instances SHOULD be sorted by the 'valid_for' in ascending * order, that is, the oldest instance first. Only the last instance is * allowed to have their 'end' timestamp unset. All previous instances MUST * have a closed interval of validity. The last instance MAY have a closed * interval. Clients MUST accept instances that overlaps in time, if not * clients may experience problems during rotations of verification * materials. * * To be able to manage planned rotations of either transparency logs or * certificate authorities, clienst MUST accept lists of instances where * the last instance have a 'valid_for' that belongs to the future. * This should not be a problem as clients SHOULD first seek the trust root * for a suitable instance before creating a per artifact trust root (that * is, a sub-set of the complete trust root) that is used for verification. */ export interface TrustedRoot { /** * MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json * when encoded as JSON. * Clients MUST be able to process and parse content with the media * type defined in the old format: * 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[]; } /** * SigningConfig represents the trusted entities/state needed by Sigstore * signing. In particular, it primarily contains service URLs that a Sigstore * signer may need to connect to for the online aspects of signing. */ export interface SigningConfig { /** MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json */ mediaType: string; /** * A URL to a Fulcio-compatible CA, capable of receiving * Certificate Signing Requests (CSRs) and responding with * issued certificates. * * This URL **MUST** be the "base" URL for the CA, which clients * should construct an appropriate CSR endpoint on top of. * For example, if `ca_url` is `https://example.com/ca`, then * the client **MAY** construct the CSR endpoint as * `https://example.com/ca/api/v2/signingCert`. */ caUrl: string; /** * A URL to an OpenID Connect identity provider. * * This URL **MUST** be the "base" URL for the OIDC IdP, which clients * should perform well-known OpenID Connect discovery against. */ oidcUrl: string; /** * One or more URLs to Rekor-compatible transparency log. * * Each URL **MUST** be the "base" URL for the transparency log, * which clients should construct appropriate API endpoints on top of. */ tlogUrls: string[]; /** * One ore more URLs to RFC 3161 Time Stamping Authority (TSA). * * Each URL **MUST** be the **full** URL for the TSA, meaning that it * should be suitable for submitting Time Stamp Requests (TSRs) to * via HTTP, per RFC 3161. */ tsaUrls: string[]; } /** * ClientTrustConfig describes the complete state needed by a client * to perform both signing and verification operations against a particular * instance of Sigstore. */ export interface ClientTrustConfig { /** MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json */ mediaType: string; /** The root of trust, which MUST be present. */ trustedRoot: | TrustedRoot | undefined; /** Configuration for signing clients, which MUST be present. */ signingConfig: SigningConfig | undefined; } function createBaseTransparencyLogInstance(): TransparencyLogInstance { return { baseUrl: "", hashAlgorithm: 0, publicKey: undefined, logId: undefined, checkpointKeyId: 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, checkpointKeyId: isSet(object.checkpointKeyId) ? LogId.fromJSON(object.checkpointKeyId) : 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); message.checkpointKeyId !== undefined && (obj.checkpointKeyId = message.checkpointKeyId ? LogId.toJSON(message.checkpointKeyId) : 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 createBaseSigningConfig(): SigningConfig { return { mediaType: "", caUrl: "", oidcUrl: "", tlogUrls: [], tsaUrls: [] }; } export const SigningConfig = { fromJSON(object: any): SigningConfig { return { mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", caUrl: isSet(object.caUrl) ? String(object.caUrl) : "", oidcUrl: isSet(object.oidcUrl) ? String(object.oidcUrl) : "", tlogUrls: Array.isArray(object?.tlogUrls) ? object.tlogUrls.map((e: any) => String(e)) : [], tsaUrls: Array.isArray(object?.tsaUrls) ? object.tsaUrls.map((e: any) => String(e)) : [], }; }, toJSON(message: SigningConfig): unknown { const obj: any = {}; message.mediaType !== undefined && (obj.mediaType = message.mediaType); message.caUrl !== undefined && (obj.caUrl = message.caUrl); message.oidcUrl !== undefined && (obj.oidcUrl = message.oidcUrl); if (message.tlogUrls) { obj.tlogUrls = message.tlogUrls.map((e) => e); } else { obj.tlogUrls = []; } if (message.tsaUrls) { obj.tsaUrls = message.tsaUrls.map((e) => e); } else { obj.tsaUrls = []; } return obj; }, }; function createBaseClientTrustConfig(): ClientTrustConfig { return { mediaType: "", trustedRoot: undefined, signingConfig: undefined }; } export const ClientTrustConfig = { fromJSON(object: any): ClientTrustConfig { return { mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", trustedRoot: isSet(object.trustedRoot) ? TrustedRoot.fromJSON(object.trustedRoot) : undefined, signingConfig: isSet(object.signingConfig) ? SigningConfig.fromJSON(object.signingConfig) : undefined, }; }, toJSON(message: ClientTrustConfig): unknown { const obj: any = {}; message.mediaType !== undefined && (obj.mediaType = message.mediaType); message.trustedRoot !== undefined && (obj.trustedRoot = message.trustedRoot ? TrustedRoot.toJSON(message.trustedRoot) : undefined); message.signingConfig !== undefined && (obj.signingConfig = message.signingConfig ? SigningConfig.toJSON(message.signingConfig) : undefined); return obj; }, }; function isSet(value: any): boolean { return value !== null && value !== undefined; } protobuf-specs-0.3.3/gen/pb-typescript/src/__generated__/sigstore_verification.ts000066400000000000000000000435351473777202600303710ustar00rootroot00000000000000/* eslint-disable */ import { Bundle } from "./sigstore_bundle"; import { HashOutput, 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 * Disable: false */ ctlogOptions?: | ArtifactVerificationOptions_CtlogOptions | undefined; /** * Optional options for certificate signed timestamp verification. * If none is provided, the default verification options are: * Threshold: 0 * Disable: true */ tsaOptions?: | ArtifactVerificationOptions_TimestampAuthorityOptions | undefined; /** * Optional options for integrated timestamp verification. * If none is provided, the default verification options are: * Threshold: 0 * Disable: true */ integratedTsOptions?: | ArtifactVerificationOptions_TlogIntegratedTimestampOptions | undefined; /** * Optional options for observed timestamp verification. * If none is provided, the default verification options are: * Threshold 1 * Disable: false */ observerOptions?: ArtifactVerificationOptions_ObserverTimestampOptions | 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; /** 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 ArtifactVerificationOptions_TlogIntegratedTimestampOptions { /** The number of integrated timestamps that are expected. */ threshold: number; /** Disable integrated timestamp verification. */ disable: boolean; } export interface ArtifactVerificationOptions_ObserverTimestampOptions { /** * The number of external observers of the timestamp. * This is a union of RFC3161 signed timestamps, and * integrated timestamps from a transparency log, that * could include additional timestamp sources in the * future. */ threshold: number; /** Disable observer timestamp verification. */ disable: boolean; } export interface Artifact { data?: { $case: "artifactUri"; artifactUri: string } | { $case: "artifact"; artifact: Buffer } | { $case: "artifactDigest"; artifactDigest: HashOutput; }; } /** * 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, integratedTsOptions: undefined, observerOptions: 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, integratedTsOptions: isSet(object.integratedTsOptions) ? ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(object.integratedTsOptions) : undefined, observerOptions: isSet(object.observerOptions) ? ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(object.observerOptions) : 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); message.integratedTsOptions !== undefined && (obj.integratedTsOptions = message.integratedTsOptions ? ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(message.integratedTsOptions) : undefined); message.observerOptions !== undefined && (obj.observerOptions = message.observerOptions ? ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(message.observerOptions) : 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, disable: false }; } export const ArtifactVerificationOptions_CtlogOptions = { fromJSON(object: any): ArtifactVerificationOptions_CtlogOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, 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.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 createBaseArtifactVerificationOptions_TlogIntegratedTimestampOptions(): ArtifactVerificationOptions_TlogIntegratedTimestampOptions { return { threshold: 0, disable: false }; } export const ArtifactVerificationOptions_TlogIntegratedTimestampOptions = { fromJSON(object: any): ArtifactVerificationOptions_TlogIntegratedTimestampOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, disable: isSet(object.disable) ? Boolean(object.disable) : false, }; }, toJSON(message: ArtifactVerificationOptions_TlogIntegratedTimestampOptions): unknown { const obj: any = {}; message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); message.disable !== undefined && (obj.disable = message.disable); return obj; }, }; function createBaseArtifactVerificationOptions_ObserverTimestampOptions(): ArtifactVerificationOptions_ObserverTimestampOptions { return { threshold: 0, disable: false }; } export const ArtifactVerificationOptions_ObserverTimestampOptions = { fromJSON(object: any): ArtifactVerificationOptions_ObserverTimestampOptions { return { threshold: isSet(object.threshold) ? Number(object.threshold) : 0, disable: isSet(object.disable) ? Boolean(object.disable) : false, }; }, toJSON(message: ArtifactVerificationOptions_ObserverTimestampOptions): 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)) } : isSet(object.artifactDigest) ? { $case: "artifactDigest", artifactDigest: HashOutput.fromJSON(object.artifactDigest) } : 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); message.data?.$case === "artifactDigest" && (obj.artifactDigest = message.data?.artifactDigest ? HashOutput.toJSON(message.data?.artifactDigest) : 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; } protobuf-specs-0.3.3/gen/pb-typescript/src/index.ts000066400000000000000000000015371473777202600223410ustar00rootroot00000000000000/* 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'; protobuf-specs-0.3.3/gen/pb-typescript/tsconfig.json000066400000000000000000000003231473777202600225720ustar00rootroot00000000000000{ "extends": "@tsconfig/node16/tsconfig.json", "compilerOptions": { "declaration": true, "noImplicitAny": true, "outDir": "./dist" }, "include": ["src/**/*"], "exclude": ["node_modules"] } protobuf-specs-0.3.3/go.mod000066400000000000000000000004711473777202600156170ustar00rootroot00000000000000module github.com/sigstore/protobuf-specs go 1.22.0 require ( google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e google.golang.org/protobuf v1.36.2 ) require ( github.com/google/go-cmp v0.5.8 // indirect google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect ) protobuf-specs-0.3.3/go.sum000066400000000000000000000014701473777202600156440ustar00rootroot00000000000000github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 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.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU= google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= protobuf-specs-0.3.3/java/000077500000000000000000000000001473777202600154305ustar00rootroot00000000000000protobuf-specs-0.3.3/java/.gitattributes000066400000000000000000000003261473777202600203240ustar00rootroot00000000000000# # 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 protobuf-specs-0.3.3/java/.gitignore000066400000000000000000000000551473777202600174200ustar00rootroot00000000000000.gradle /build !gradle-wrapper.jar /.idea protobuf-specs-0.3.3/java/README.md000066400000000000000000000036531473777202600167160ustar00rootroot00000000000000# 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 protobuf-specs-0.3.3/java/build.gradle.kts000066400000000000000000000072641473777202600205200ustar00rootroot00000000000000plugins { `java-library` `maven-publish` id("dev.sigstore.sign") version "1.2.0" id("com.diffplug.spotless") version "7.0.1" `signing` } description = "Sigstore protobuf spec protos bundled into a jar" repositories { mavenCentral() } sourceSets { main { resources { srcDirs("../protos") } } } // gradle reproducible jar builds tasks.withType().configureEach { isPreserveFileTimestamps = false isReproducibleFileOrder = true } java { withJavadocJar() withSourcesJar() } 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("proto") { artifactId = project.name from(components["java"]) 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") } } } } repositories { maven { name = "releaseStaging" url = uri(layout.buildDirectory.dir("releaseStaging")) } } } tasks.register("createReleaseBundle") { dependsOn("publishProtoPublicationToReleaseStagingRepository") from(layout.buildDirectory.dir("releaseStaging/dev/sigstore/protobuf-specs/$version")) { include("*.jar") include("*.pom") include("*.module") include("*.sigstore") include("*.sigstore.json") include("*.asc") } archiveFileName = "${project.name}-${project.version}-bundle.jar" } signing { val signingKey: String? by project val signingPassword: String? by project useInMemoryPgpKeys(signingKey, signingPassword) sign(publishing.publications["proto"]) } tasks.withType().configureEach { onlyIf("Is a release") { project.hasProperty("release") } onlyIf("PGP Signing is not skipped") { !project.hasProperty("skipPgpSigning") } } tasks.withType().configureEach { onlyIf("Is a release") { project.hasProperty("release") } onlyIf("Sigstore Signing is not skipped") { !project.hasProperty("skipSigstoreSigning") } } protobuf-specs-0.3.3/java/gradle.properties000066400000000000000000000000441473777202600210020ustar00rootroot00000000000000group=dev.sigstore version=SNAPSHOT protobuf-specs-0.3.3/java/gradle/000077500000000000000000000000001473777202600166665ustar00rootroot00000000000000protobuf-specs-0.3.3/java/gradle/wrapper/000077500000000000000000000000001473777202600203465ustar00rootroot00000000000000protobuf-specs-0.3.3/java/gradle/wrapper/gradle-wrapper.jar000066400000000000000000001246751473777202600237770ustar00rootroot00000000000000PK! META-INF/LICENSEUTÝZ[sÛ6~ϯÀhfgìFI»íî¶}Rc§U7•3’½™>B$(aC,@ZÖþú=Ü(ÉNöu=™Ö¢‰ƒƒsùÎwôJ|égÑËr¯Ä]ªÎ©W/¼ù/e6øvþ¶¿Én”ö(¾}ûö»g퇡ÿñÍ›Ãá0—´ÍÜØÝ›†·ro^áÂûÛõï±X݈ww«›åýònµïïÖâas[ˆõíÇõÝÍÃ;|\Ð[7ËÍýzùó>!ßÌŪu§PÎÍ_ymfþD3áö²iD«d'8é lë„ì*Qš®âU¢6VŒNªޚj,ñqáEổvƒÕÛŸ éD…[ªJlb£Jò È·fÜíÅÂÔðAÃ{¦[Õ §z{¦Xiú£Õ»ý Ì¡SV€J°PG!Çao¬þíçå\Z1ìå `Ó•°°ÛÑKÞ™j'qK¢Ï”;< i¯„,IJÐÌïz1^ð jåxk0è`MSiUøÐÒžŸŽ]ËJÓ¶¦ó’ü‹â ‡=Ëá çâ½±¤G?ÚÞ@Ä$«F‡ͼ”ʼn+}ÍKÍAÙÜgÁK¨„îø÷B F”œŽïy)ü'²€­ìäN¡óp_7–{¯X!{EÇïÓ¾’dç–9hŒ&r¥ArÛë%ÕºköÊ–(úêû·¹¦í ˜‡ ƒÀêèp“U.H‘[ÕJ ®œHÏôL.ÿÃŒ3qkñ7;»Î½ÿÐ&ºQ–y|xê ´Õ½[í<Å'¹å,Ô6°[ )éÕžFZoU­¬…åôך,þ·hM¥áh’²*8Xwe3’) EgÑèVãîàGgêá€áåhCpJÖ¹G‚¼~¡ù_ëÝhéïà–Feðq·ý7„¹ê²;ò3pÇØP~ÔÖ´ðÇr/;Ð:$DEçðMŠž4þc-¤`ó¸bz@/ãä˜6½Æ„2¤œ?æ"Î'ÎÑ NúÈèíPçn«*-Åpìóc2öó(à!iL8„‘–R@wá1ØtþX­¬H¥nä¶ ùŸáRhŠXJJ2âB@70¼á-/k2«¬-d¡ ­qPO²íagXÐaÎ ñÍEß+Øù ’©1‡ëd…eõ#XñQ 4ˆ›FîqÙþô^Û (¾•×Q*V¸F?DcnEîÂ\8ìu¹ÏÀœ5@ €Ì´êQ“+1ŠÁ4>O„ >ïæ<›¼0¬rÊA¤õ%lfJ X¦wºƒ]Î}~ŽÇ§êIúâÔ|ÞzÍÞw$ÞW «Z©c~ª^ZŠ´ £UV5Gȃî3n Ñ‚qÒÉV]§k"[Ë’ŠD‘ÕÈhÔ3¥Ð:ÊÔÉëïÊ}¿èñÓˆ)›í è.ÔÒ¨ ›ø„b¸òL$H2lZNù"KŠQßÀÖM€m7n;h#Âñ3Z¼LåîÅj‘DeÚã}«À˜5˜âyòòuÕ^Ìâ™f^×û˰H5€Öè…­l(Ž×uD>ÆÎ[_`äFWÉPh§Á¥d!û»âÅR±+ßþ%uƒ‹ ” -+Y‘ ¹£Tër‡š;*,!%ÕHÿ»+³•ȵr£ŒL¢ ³6Ú 8n9:ªò´cKxéiä'B¼TšÔS0Âô¬!á(®×åhFÉÛJû¡Ï&v(—rz×öC(¢È°#Áj¶{K‘çê|vžÂ'ü:;dà)On@ÄÇödS±e¶ â (£"$¥ó}R:õçñÓà¶¥{s¹F›¥Ñ·sñ Ò*Üö]<~`Vb3rqõ±z±™ÉÒ,GeURd! 3±8â@á”Àðz5€eBøô5ÕA#×èL÷š<ïàÄøñ5°»ÃÆÉe3_×VÁ' ÄîÑ”ägÕÜ÷¸aè¶`äXq|†t Îûq kÁЍ}#!ÐãЙK­£'žXä}[Nó#Y>ÛñB9'laý5sÐG‰ ûà+X¦ú ZŽ!P$PÐqCt-z>kæ= ë l/±¼ õѦ®‘çAP À/ÿÅØqÀeÏ fÂÉÐ죰«ìûÛMÓÓÉʈ]^µ²‘ìÍïf‡+’ܺ7;È^ç¤Õ”µô Ò¡öå‰审 6òàIdõ´ìtA8w¸¾Ú‚úLò¦Êù-èŠPëæbY£ÿc/ä©0¦£S½cäN⟠ä|ã~• VäÖÖ8÷š †Ç(͈ü‰?ƒç¥häÁzÀ£6jÇE,”Oœà_8ª ¬¸ó­v’S&çñ‚?Zbª †©Ø4e ͨϔÐh¤ó%/°*®˜¢è½+ÒÂVÁÃ|Ѻ ûÄŠ¡à»¹X«|24§­[yLÈvŠB€ƒ:p› ½ÀòÈ%Ha³@Žâ üßÄŠ 3 %¡ ½ßs†øunæÌßD¸•ŽC>è!RóŠ eªŽÏ-B¬ãd6ˆ¬*üÝb¿“Gd&%¨î-ô5™P°õ8"?õS8Þ¨*ÕUchë$b°pÿÜyŠidà0Ä3\L&šVAÏÄ<ÀާñdžyîÞ⢉RWA´•†õLN_™+Pˆ?G®2Žä4²Ö ˽ÀàÓhï•‹ÉîŠL}A›"¥MMÍâñ™V$ŸÎÅT"y¸u6ÍK œÝVMªpdÝ8K&*q4ËÄN夘8ä{jvüM÷ª‰º¹xè Š:ršz‚Jí/IÌ.Hâ|ãxÊ"³aV6Æzvt•˜>îx:Èaª·Í§ÏÿKkæi©™ ‹`êZ…ÛG^¿2.Š·7T_¶†›2LÛµwXFH57B9pªR|„i¹ÄoÄ삤`ÅØí §£À?ú ¡ŽL=©2ƒxÞh«vÒò½ÒiïáïþPˆCXÌxte9¦ÜÙÞ_¨1} ײŹYd48õRögúþ#èäc˜_A4‘’ÚT«þµ¿=‚îÀ'XÒÉ¥PøM‹×Ó¨ XxG ô®ˆMNjÏæ³!›‚ß|5¸PØRŸ‹í¨uÂKÛZ|þ v9Æ$ˆªnÜÀRç-V‚ò"5/i V$‡ùÜwIÕ+Ô‡§-jþ6Ž/'νƹ@þl±ËÍLü¼Ø,7Á¸Ÿ–÷¿Þ=Ü‹O‹õz±º_ÞnÄÝ:¿–¿{/«?Ä?—« ;šo€Ÿp:êÒI4áJ•ISÑœTœ:B“K¦¢†ÈžC,ó~yÿá¶«¯^/Wï×ËÕ/·¿ß®î ñûíúݯ åâçå‡åýBï—÷«Û }`áe|\¬ÁakññaýñnsËÕ–o ¼Yý{ØTÓ­ÝÌpW8 ðœ5½ÕHÏéÀ5D¾Bñ—7›—ò´Ñ9àDxÜ×Ú²;SêØ&3¨û{V𯿭çÍ,ÇÞ?æð9˜}Ðr«º<_bå@ºô`ð¨¡a'èv6j 7Y@C>2èÔ®ÑÀ¾Ju]ÄÛîb2Ê“Ÿ/Æûœé7zK„Ž”Ûá<"Þ[„-ü‚£ÛñËùÁè9)8” .k4mì'äZÙÊÝt†«ÃWÒ—\¯ðn=»}†„bËW H`x¦‹r^h@hœ¹Þ8®¶|gŽU<Öj¼5>mtÉšcĘ‘ŸèÎ;3ÃÕ|bpõâxÐ ÝØ1ÕA7ùìð3eÓ÷§„È FT¼–º-W#ÙÔc—È Á ßÁ[ Þܼ±r8‡HÐOq^F¦ËêQÓ%ií¿¾à¾ÜàÅsü0‹kZ! /î¼H…:KŠO{¤îÓt=½,|ñº-°Ðro OAiÒ9¹l§™+ð¶ZžÔ‘†²+¢ç1¨G¿#Åj;üjIˆ±Y› »0ÛÆO¡ˆ·¼AØAæËW-pÌß_造±ÁøÕ°âV2Œì™ Nç£o´tMv9·¿¡!®Œ@š`”ô%¦“nQ¢§IQ~&Œ=“®Ÿ1á9ßÉ6u´M¥jhWx0ãêÂè\Ú–(ëhŔΣµé¶ÌOŽ“¡+Çf•‡¨ÅùÜx{ôd#èˆH6dþEcF£.À·«¬«—¾÷ê¿PK°·£é ¾'PK! META-INF/MANIFEST.MFUTóMÌËLK-.Ñ K-*ÎÌϳR0Ô3àåòÌ-ÈIÍMÍ+I, ê†d–ä¤Z)¸%¦ä¤*„%¤ñrñrPKm±>=@?PK!1 org/gradle/cli/CommandLineArgumentException.classUTMOÍJ1ž´µ­µ^/sRÛíRëa­"HÑSO-xO³Ó46É.ÉnÄ>ˆoáIðàøPâ,(:ßÏü}~½Àì3xÙngÉ_¹F—ò1—KÞç2³¹6¢Ð™‹l–"ñ Š€$®Dˆä å:”6ðñR˜€}ž«ÈŠ<ÒÕ \\œ§‹y}òÛ¿,!"¬D4¬,Ni‡èµSÄnÐÚE|2 ’(Å ncЙg¥—x§ 2èe^ÅÊ‹Ô`,Ž'™µÂ¥SštãUiÑ·óêî4=ˆˆp*ž•®ÐÿéMÍ+ítqÍàðxúgÕY—'÷]hÃnZÐaИÐ0„‚U0JR©v @ yÚ{ƒ½×Gj êßPK“`zX!pPK!& org/gradle/cli/CommandLineOption.classUTeR]OA=…¥í (‚Ÿ¸~µ¥ËʇZÀøBü ©ÖXÁø2ݶÛÝfwK4Fþ‡þ_ÕˆMŒÏþ‡zw¡¶„—¹3wÎ=çΙûëÏ·æ°Ìð~oïyéVãæŽp-mI3·´¢fz¦tx(=Wox– ¼/ÁA—uèf]˜;A«hK[Ü DQkÚzƒ7uqˆÚâ‚U›'¬_j×oµ‡Aë³ĵ¥+„/]›²»ÂH‹ò¥™ù™’n‰]ííCªêµ|S<”Ž`˜ò|Û°}n9Â0i¬xw­21UšQ³  ÃÛ|—wm£RÛf¨ ŸAñbDÀ0ZŽ­P:ÆcÔ«"$#TîÛ­†põ×M’Ê”;,+‚¤-˜¾ŒyFºÕ0zA’¶ïµš2¬3ôß“® ï“`®K±,ƒp9¿ÎЛ˯«B&#¤xª+c)d1¢bÉ$úp–a°#ºîIKÁ$CbmóÙç‘Nâ.¨HE»>\R1xT8Eív WCáóš#h 2:…žÏ0žËw5ºzœ_Vq ×Ó¸Šm–÷ rä. ÅSñ*ŒŸõBEÓiäQ¤æÜ8=Öæîúbžánøµ#7Ì·,†lîtm¤²€Û‘AwhLlVÚœ=ñŽÎ'Vh1K~(4þ d"_iÇ"Ãâ¨â ÅLdÅÊ a˜Ö%:UÑ^Ц ›/0úÙÍŒïcâ3.îãòÿó•CÜd(OBgx‡Éíf~bþÉL¿âîÆ‡¿¿?±T ‹ÇŠŒb_`ãk+ö ÷PK×™n³PK!3 org/gradle/cli/CommandLineParser$AfterOptions.classUT•SmOÓP~.ʺ1@|+È6( â‡ÆILL0¢˜ñÅܶw]¡½]n;”ù!þ?h‚’hâðGO·–,¶É=·ç<Ï9OÏ=÷÷Ÿ¿9¢:7—ˆt=)„ò¤KÞ¡"ªEþòâòbÙtÄñqŒAß›ÊÏ<_0˜¡rK®âŽ/J¶ï•6 àÒ©P¦\EBͬ×b¡¶‰ðHC?ÃBOJÛlÇ<2ö„Á¨\HЂ;çÒ¬1 >ö¤?a˜Í÷†vúóÏ ;YèÈêÐ0œÅÒi `„a4à‡– 9*nÿÃD¾²ÇxÉçÒ-mÇIÏÖ » áü·Û×…yQâå–´žk ýãJOÖk¹/ÃwòYÃ覭g¯zK=/²ÝÒ)“¸FçÊÍPžöæi·þ_z†é^‚5Übȉ÷±âëÊmBÆ_»t3öüÒºRü°âEñZwp7Û˜fïÐ`0¤¸ã\€-kOØ1 @3˜Õqh 6è–1Œ$"6›%Ô+nùK4TÝu†±dÆh×O{Zóô5…úÈfŠÕÔ róß0úÉ3Fï•(G6õ¥>wbã¸Ú‰ÍQÙ‘Ÿ˜¬1:ÿ¶x‚ë_Z5 ´’Í´êßÀͩةš+V‰qŒ{óß1÷挣St€öi²¬•¾©¿PKd¢½ Z¶PK!< org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classUTµUkOÓP~ …Z”‹x¿ŒŠ ¶• SÌà-Ð8%&š³î°UzYÚ4F†‰~öh¢b$^¾™ø£Œo×AòÅ-k×ç<ï{ž÷rÞþøùé €QÜ`xõüùìSµÈõ%a—Ô U_TSªîXUÃä¾áØšå”á®0÷-V¸§é¡/y5ËS'¹é‰”Z-k¯jFàCÇÏ”ŠâºÙßö‹5Ó$À«pm$ ØeÃÂ5ì2¡ËÂõh/³Ùá¬VËê³609ïÔ\]\3LÁ0æ¸åtÙå%S¤uÓHO;–ÅíÒ yºÍ]O¸ýSbÑq‰íz~¾Vl¬Kha8i{«Ä;¹ÂÝ’÷¹/$´2´úÃë?Í ÎD¹Éû¼aþE†ëƒÑô¿u¸´Ž—šWІövì‚¢@Ænö0t86)týP7ÃÂàÌ#¾ÌÓ&·Ë鼤6·Š”ÔHĺPLÚ­Â]$t3Äw¦g>ˆiŸŒô2Ä¢¶‘p€a¯SßË›z:aè ×|ÃLßà^e–Ws áp;âCצe ÇšËÂgX/ôVñ‘Ð}JÓ&HÁ ÄdGß¶:Ãøà¶­ÚàÒµÛŠöCyà 3¬F7 3£›œÛº™!é·º‹äm­[ZÛ¢ ­c&­¼æwèg¸Ù²3±Œ­j¥ =Öme³ª©ÅÉÓ^Õv¸}ýÓ5{s¸/IºªË%6Ïj\Án>ƒlyâ¤+°2ÄâWéÇ7è`˜ï;`ý†©oCÚuéaï ­ÄLª–¡uvh%Á d#ª‘çÃ’ø!uDå]݈uÚ¶:×W(l×MÝÝÁpªiŽaÏêì‘Í-œæ~†@Óîæ~ X„„% ‹*Ä%aCU“¯ØÄr¬±õµ¨Æ*5¨o×É¢N¼)2d\#ÞB2àZñv=U¦evÚ™|–›.CW“Ï ¡š™X‚湦C™3 MTjáÖ¾±%½¾äânCuœa´Ô¢†3‡ý–®Ih%’úR{wʸA(ۉaáåÐ%l¡ÜÔ£î°GÕn7⦠¶âfú¯j•LiĽƒ‡xÚíhÞ/cÚ¥AAÎà¢6ohš#2nÁŽ Q}+CË•-‹)Øy$Í u^‘MB7ÃöNSáÙœ;¦)TFUGÉÙÖˆ®qM²l¥Ð}Qƒ|+~ã*×;°“8!•¬JùÞV!ß*R®%cîLÃbÕxe¹'ˆ.Ķt_¢YÜQLËU\õ0WTs:&BÚC‰¨Ún?âG ’îì±{ù¤<Ý}"OI†›fÍKBwÂæ!y+ Ç?ÐD¾ê¹pi«Š‚èÇ=5ÃÝ;Ug¦™â=ÖïÈ2ª»ÃŠÆ´­{ÒvO\ƒ Ë.§¹+¯·%ÜÄ}XAc·Ä¡¡RÞ€*ºjÊ@Íåh[2D+¶ý.#¸¸oˆ¡ÆµŠeqSÅ2†.tÑ-s½ 1ºkfùP)³r ×úD:]cET‹JVeg8¡æ” §‚’T_v,a„Š‹’ɰ¡Òp(É8‚± Fñ™Ì†³8¡ŠÉÙÜ¡âðEN9Ø$ÎáQö1*þBx2ž²fg¸fÆ„Ô%<%òªi†ÁÐØTâ°Û2 B+v–hœgðlžÆs4Hý!.ãOb2.Çóµ8ŠUÅ‘ëYúÛæ%†‰¼áê4 §ëÚQF¹Í¯zö¼B£»ÜV]ËfXZ¬ï–Ý9Eü^PÞ  .?—ð1A_ob&È8}uxïP& .¯Ã齇? ½¿0Ôfl+Ÿ 6“ñ7ŸÇ÷Ë Áãòd§Šªo)QŠ.ñ^ÜTgp6ˆÛñ!qoó¬5BtþC,Sø'1é‹´Þbò>öú‰8§è¦OKª]Q=ùì ·ûÔAƒcm ‰>p«Q/¶9½Õ‹]î=i“{OÚãÞ“ö¾§IŒaý~æ}K$6„SVMaé,Oí™ÂÊðV·L`Mdk£XטÀza!šv$¥¢£z±Ò}cö-IæÓ3YjÜ7ë®0Eo8˜¨±÷ªîO:HùîKµ¦pÿ8Ò©öê¯Q×h¬žDf %‰¦V4&q8Yà)œ"º×ÅÉ|V‚¬{ZÆ‘Lâá¯p4•Ó¿Ç£ãxòsüq¼Û_Ø>Žé±òÀ)´à5¼|óÏbM…œ¼Z̉þÍxËçx—Q{5Fèí¯ _ak¹ŒŠœŸ½ø£ïñƒIœžÖŒ‡‹šÍ„q]O„tÿNhž$¥DÄWºø]4Rt× Ø"ÎN\üà*ÞÏ‘óïÉùú™,šXYV¢9Ú‰ú]$é§ö¦1(MRƒä©=ŽSƒ”Qù#‰Ù©„H¯*c ~™ßPKC'|¢L—PK!= org/gradle/cli/CommandLineParser$OptionAwareParserState.classUT…TkOÓP~”!Œ›€¨PA7¶2nʸ™ D‚_ÈY{(…¶#§BŒüƒÔpI4ñø£Œo(—%k“žÓç}Þ罜·ýýçÇ/£˜cø||¼šý¨¸¾'\CRõm5­êEgß²¹o]Í)‚p)lÁ=AÆîiúŽÐ÷¼’ã©SÛÜöDZÝ75‡ïkV ! “ãFaŒ¸2{å¿]²m¼®×´\!¤åš„éQ,³CcCYÍê§z0†èZ±$uñÚ²ÃDQšSrÃݶ2óEÇá®±DJ+\zBö/ï9ç>py‰¬ùÜ  éªÎ7<êôÿué–Àݸ&3ÍPçïX^ÿpöp{Ær-–áM¢:½zøä»¢hˆ ÷‰ň¡9 ñê L­ Í?**Túå†1´'–vùÏØÜ53k~p.ÓÉ÷ JbÎKjC©zÜ'¿Û]Dq¸OóàÅðQt£‡ZWtóE÷JüU%ñª_?jVoµúô2܇¾ä9i–áúV]ò-;““’-Yž?ƒŠ'ô¡Ÿ¡µAÁS†7Œ[Y.ì ݧÎÄ@2Šg¼›ÙJ¤)ÌòÊúâr~+Ÿ{»°µ’[__XÍ3t]KO SR]¾/¤K)!†á/g `”¡Þþ¼Í=ª²5‘¼–åHãxÅ^0hU›Û¦¨åódîÌd剋a*ŠIÐ …çéSgh Lù’SrlSè‡Sƒx0„@s<˜SBB`äßHÏ—ôÖƒ0!dÜÜL¢)tŽ–ô)Ú¾!¸âhGÇ%ó1iÕЪ¤Z:Ïðð mféYGkpÇñˆHeò ‰äþÁÍ´` u†ÔÆ š¾cdã ?1¹9H¦sÌ|ý§ÔMZµ´o#)´Qr„ô^Ä]”ú PK´”[£×JPK!8 org/gradle/cli/CommandLineParser$OptionParserState.classUT•PMO1细PJ9q誇¤bY =¤€Z$D¥( ¦Ê¡7ïîdãàõ®lo„„à‡ô_ôT©‡þ€þ¨ŠqDo>øß›yž™ß~þ€ØbðíîîsÿÆ yt…*ö½hâíxQ–æBr+2å§YŒÄk”È ’8實]™"5Þá„Kƒ;^žø)Ï}á<0|ÿ.{”«ûõ“BJ"Ì”ûû.E%B!j¡bç¨ ýE|··Û÷cœ{· ` š£¬Ðž ‰ 2‰æ±Ä ’"8ÍÒ”«x@N—\Ôo.r×óßÇÈr‹u¨0hÏøœ’«$¸gÙ:ÔÔŽ…ö„A¹Ó¯Bž5¡M•Î§î¸ U·2E>ÚñÚ~Ð ƒ½Nwðß6þiàˆfÈ•)*ËàcgðØÍȺ=Ù±• =çæÑ•Føºøˆ*s‰––U9¥Å3Xs&Ã" Qá¡ÄÊk¬îÔ€¹©éÞ¤×:!#¬¾ý+ßÞvòêRÞ&,-åçNfðjéA1-¹k°X699| |éxÊ*Ó]‚ò=PKu[z?¢}PK!3 org/gradle/cli/CommandLineParser$OptionString.classUTuR]OA=Ck[êji« ¢+J[º4ˆŒ’øD„ˆ”3»;ÝìWf·}1ò?ôøª ”D€?Êx·-ñ£5“ÌÞ9sÏ™{ÏÞ?¿~ðÃÇÓÓ×ÍwºÉ­áÛú¦nµõºn^(]ËÀ7¼À„+á  ºìðȰ:Â:‰º^¤o¶¹‰º:†ÇCC&Â|úÄ67(W5/ùí®ëu¸±ž¤øŽô…PÒwí Ñ[„7×6Öš†-zúûC~?è*K¼”®`0å4ÅmW4,W6¶Ïã¾½CJ{\EB-ï†IÍûq¢›Ešaæ˜÷xÃå¾ÓØ5…g‘aHqå0”v~_)[ ™` AÁ3éËø9ÃJeî|ÀÂ7,µjoKå èg˜íãQ•O(àÚŸðgâ2ÔiÏÐw¸RƒrR¿PK×é CPK!2 org/gradle/cli/CommandLineParser$ParserState.classUT…QËJ1½±µÕjµ¾W.\´Òqð±¨\( BQ±âÂ]fævÍ$%3-ˆè‡ø®~€%ÞÔú‚‚“ssÏɹɽoï/¯° ÎkwŽÏƒT¡³íM§ê:n ÉS¡•ë)oP"OÈOÜ …ÁMÒ‰g»Ée‚U§¹1o»Âz ¿µú¤5µ¯óÍŽ””HZÜ]³ …h„Š(ÛE“P-Ê×V7Vknˆ]ç~ƒBCwL€GB"ƒª6‘Jô)¼Ç\…ur:ã&A³ü ”§˜‡,ƒÒ5ïrOry§þ5ir r»B‰tA¦\¹‡-@ ²åãÊe†m\Šù­deÒӶ탹rýǯ‘ÚËïT®µú£» p²þïs> =j‡Á˜V'Z}•Út¥ÿÿZ–´ú%9T!uâ€ÆÆ`Ò&N:±æ‚û³KÔœ<Ø/ÌvŽÖ9ÚM2Âá•g{²|ÉÒã}z‘p¨O-Í`¾ïA1 j&¡70r²8 3=Õìw…boOÏ ­CùPKÉɉ§ÎPK!? org/gradle/cli/CommandLineParser$UnknownOptionParserState.classUT•SíNQ=—¶Ê –oWÔ¶t»|˜XÀ˜ ‰ÑØ€Å@LÌíîeYØæî5FÄgð‡&ø>”qn)Ò Iß{gæœ93³÷÷ŸŸ¿Ìa†áËÁÁËò'½Ê­=Øú¢nmëEÝ ýšëñØ ÃmA~)<Á#AÁÖŽ°ö¢ºé‹ÛÜ‹DQ¯9†Ïk†«8Duá¾]§\Y>Áo×=Ñ7fUJà¸Ò òî Q-ò—Kó¥²a‹}ýs7Cf=¬KKLžF¹ã GAáà]>ÇÓ&·Êé|é®Ð<ûåGÇó¹é\fd`z43>>0–cˆ ûàºg˜iG”ÅBz”{žp¬~:qŠ»äS’à^5\^2…ÎÀn3°k¾õÊbÁ“v“ŸëÜ­ŒðšôÀMÓž¿iÍZö¼•oœaØwÁ° ïC Ñ~+‚8†‚f†æm> ã0š#ˆà­&ìÅQ†ÐJ½áàÀF¦Y“‚Uc8ª ×p„žY ¾àq¯îú×ÝŽà]´„q'"c¿tÙÊÐ’˜ºüõTí~Æ´êÕ“ë«Ôôd{ï1Û…&ï3(v¡¥Ã!5¸éoß•âNãƒ0N¡-‚šd0íDOƒ\†ó‰É¼íÞ †‰÷ýšmyܰÜ!±ÈpdsPŽè—L¤Ð%ÉMSMS!œùOã4nSÐMèzÜñÜ Ã«lñµùú‡q牌*÷h:†îÍØl…;q¯.,Mì@ÉHãQÒ‹>IIÿœ¯‚\\¿Æà²,è%|Â߸nÐ4E™›§\¯ ËXЄOŽ‚+ “YnY¶§r]Wd«m§Ý6•»*·Ö,š\Z梺ʥÊÍZ…SWÐÌjªFépªèÒLªm©6ÿ1ÝÖÂU*áŒíP| ½;Ð5¹C5¶£"¸†O%¥×w!ÝŸœÏÂÈbˆ¡ïf$1~9Õy*§Œ›ahÍo:dÐ!Ó\_Tu1C}¥(ÿFõɯ’{c­‰üªe‡/ÒPˆî.1r:±{þþ! £ìoâV㘠IlÝmä^ c $Fн&,[E¨ ¤§)Üi"äÛô…¶|I‚bP¹gSËMlepÕNNJÐÂà ý‹nßW0CaÐg!'¼*hÙ2 † E†Ã‰öí9G0 S⪤Lµ:Ázv˜Ó7÷ʺ+59Ê÷èÊ,}nHeUrõjI8ãR¸q†ÄE¡^1©5ÀÁ˜@²4Km¥'ÃÛþ{€V¤ÉôïÒÛIÿˆ&‹+ˆ¾ÄáâÐ Ž$± !¼³ŽmÅ{(ºw'ƒžAÆ_ ñ Éø1:й þ‹ÚKÏ•ŽW—N´|‡¯’'ÎöŸãX,¸Œ—p#Œž]FÏÒ?")–‘y‚¦oìéë?_"[ þ ¥8ˆ Ñä ®`ø·-öÜ.öÑ ûX±8ÒñŸ¯`ò9¦—!†;~Æ]†'8ž¤iñï8—£ÀRËp&ž¾þ»ó{Ÿ1þÔõ·´~ìg ËþPKŒ™é¯cPK!& org/gradle/cli/ParsedCommandLine.classUTUÛvUþv“vÒéXh P@$DJÛ{ÓØÖ"ФE¢Ô@=LfvÒi'3qfÒË%Ëðä¸Åµjf©\yáò¼ôE¬ÿΓ¥ö"ÿß?ßÚß·w~ûëÇŸLÃdxòøñÝäWᜪíqKχµ|8ÖìbÉ0Uϰ­xÑÖ9ÅnrÕåôåŽêƵ®í¹å¢žÏ«¦ËcáR!^TKqCÔ๹Y=7CX'ÙÌÏ—M“«`Xœ;†U è>w\êEñääÌd2®óýð×09c—ß0LβB¢à¨ºÉši$ËõU»XT-=Eõ$øŽïªûjÂT­Bb3·Ë5OBÃ1»$ÖqWe<Ñ•áDª,{†™¸©º;iµ´À0Xr¸Ë-o³ï„e¸'`/Úû\ä=G]v å"eS`¸%oÙqÔG)Ù}‹†ex×Nw©qOÁ1 Édê˜SÂIÃ* ¿½8Ý¢bÎÈ8+P2êMJÝ{‹öê2ž„Œ‹"ã ÜÛ ÃãŽêÙŽ˜x¢eä[ø‚‚Q\Æ‚ßK˜`H5tDµíî+ˆ"6€â ~«>Ù¬ÝBUNà›ê$¿…ö: f.ÿ—DšØ+2®ŠÃ• ü5×Ãm 69QÄœŒYÌ·‰«®# ‹´S©L+$Ç;7èŒt]ó® BßcP¾,Û_¶ôÛ¶a1L·Šd9ç’Æ4oÕ6MÊ£™ÛªÕ"‰þgl¥l˜:'&Þ—±&¶¾FÔhÊ™tw>ÀMÁaO,ÀmRªZ*Ñ£ÀïìÒٸф¶I!-úl0°±î†<»yëÚynSp‘ò‘‚¬Ê¤<º3+;uc¡öûUµ_B à=ú=rˆŸÕÚ å6Ú,Ðú~² Ê;ÀùçØZ?À%2©\ “îû Rv{ÃÉø£™ÞX&˜?ǧÍBŸáóF¡+T¨‡ìD„£ÞÚK:ƒõ_ÑyVÏúE™u_4,D(¿‚Ý_j%XmÉøþPKë2w:áPK!, org/gradle/cli/ParsedCommandLineOption.classUTmÍJÃ@…ÏmÚmmuë" Q1†ª‹øƒ 7Áå4¹MÇN’2“DôA| "(ø>”8)¸ss¹÷œoΙïŸ/{Xexy~¾½Æ”ÅÞ‘ ½/ÊÓ‰¼yæ§yLFW$‰k2æˆk?Q4Öeª½£!—šv¼Iâ§|â‹*ƒ‡ñ`ß°*ü;?,¥4‚q¿[!Y"2"%²Ä¨SRÚì2z¸»¿ú1M½§:ƒs“—*¢s!‰a#WI(K ")‚+®4ŽókÜ«â".Up—Ê :M ;štx®’¶wx;å)lƒüb˜€I7ÃUúû“ð1zo¸#ì"p­]#ìâ¡kí+>n¹Ö·#bü/L»ÖÁœ!–]ëpλÖÑq]k¦@¦\‹¨üIkî9NüƒŸFX²~.bÛÜ¿_àìƒòKš%·e;ö+ÿâÊëB×5zN’rYuŒô•pe„V¢èJïPKù$OÿœPK!A org/gradle/internal/file/locking/ExclusiveFileAccessManager.classUTePMOÛ@}[LBRHiùî"ŒÅÇ!T©BåDUµHô¼^Oœ%ëu´kG ªüþž9¡ràÈUulzèf4ï½y3;îîìb]àçõõ×Ñ÷0‘jJ6 B5·BUä3md© åEJŒ;2$=19‘>RRS_å><Kãi+œeQ.g‘®=(y·Ÿ&{¬u£çþqe ~"£Zb3m‰œ¶£sržg1>ÚÞÛE)ÍÃKݳ¢rŠN´!ÃÂeqædj(Ö¶$g¥‰ÇLŦPS¶Š?^*Sy=o>(EÞ’Vfä´V/ä\ÆF²òsrAª °(°x¤­.ß ,llž÷°„Nºƒ\^%tl O_*M¥¹Xß8mLt7„L nž³ø?8ÀK¶ªËVÑYÆ kÿ–àuiV_9Àš@ë˜O…´yzý^@ÔËp|ÃÕ€³àÜÞbù¦tÐCÿ‰~ûD¯ ÐþÆ+_h}»a°Å¢>^3É_l|þPKyµwʇPK!> org/gradle/util/internal/WrapperDistributionUrlConverter.classUT…Q]oÓ0=fÝ2ºƒ­ãûc᥃¦ÆCX/CHHC UõÑInSoŽ9N_û!üŠ=u“xEâG!œu4°dY÷øœ{ÿøòÀ¬2|Þßß?z÷H%Þ†½ŽçY!$7"W~–'dqM’xIörÄK?Q¼WVYém ¹,©ã©ŸñÂuŠž=M¢uËÕá©~XIirÄýÇ5E¥Bi¡R‹ŽI—ÖËâaw½ú ½Oó` Í~^é˜^ I a®Ó Õ<‘TFÈ@(CZq|м(H¿¥Ñ"ªêÁw´ÜÌ•íl) ‹»|ÌÉU¼v)6æVâ)錔áQ{ëX ò vïmý–÷M=wom )2ÁÎöëƒûgí É0÷\(a^0´ÚÿпwáâB ¸Èp>%Ó·ïšÙ Ëíµ¿é.q¹&_9u:ÍÁ²5ø%ï‹¡ˆßqm\¬L5Wîÿ?Ðñ@×›háìÉm ûní3A]ÜÂíšt‡¡±i¿·±ŠY8¨—Íy»îÙª‹fìéaa0xóð—&Xú†¥#´:\;ÄÍ îtNÔ5ûf~PKb§ŠÁ£PK!/ org/gradle/wrapper/BootstrapMainStarter$1.classUTmQËnA¬!5Æ@$ëÂÁ޼^™p0 Ê!Hœ‚°Äqiï¶×ãÌήfÆæ€È‡ð \¸€Äࣽ¸Liª«ª{z¾ÿøú ÀCÜSøpyùrô.žPvÁ6ãl÷ã¬*km(èÊ&e•³ðŽ “g)ÎÈ'ÙŒ³ ¿(}|<%ã¹×ERRè&ƒ'å“#ѺÑoÿtaŒ~Fɰ‘ØB[f§m!ì’—^ÂGƒQ’ó2~ß‚Rh«…Ëø™6¬Ð«\‘ŽrÃé[GuÍ.=«ªàƒ\ž“¶ã@.°{0Œ°®°5§%¥†l‘¾˜Ì9 6öW¬®Ò&ÓRÙd‹'BKaó‰¶:œ*¬u{¯:hãF:R ,ã:(Üïžÿí?9ÿÓcš×œô^+\ ™ZXY•K‡osr-lý3Ö•%ÂŽBTR©WØëþ/´ƒ;Økcû ëOe§bC†S¸.yMP¦•ó®Ü¶•àÆáÜü¬¨[¸ý«¼+ò5Á¨¿³ýWµ¢¤ðPKœEÒšŽPK!A org/gradle/wrapper/Download$DefaultDownloadProgressListener.classUTSQoÓVþ.iêÖsKJ(TÕ£, MC)+¡+CJ ëÔ ¢H“Ø}ã¸uììÚN‘¼ì‡=ñðÈ3ÒZ*&Áž6iûOÓÎ50:ÄÐlÉçÜs¿{¾sÎçûÇ_/^8¯Ý»·V¹c¶¸µ)|Û\2­¶9kZA·çzü¿•PªC=)ún‡ÿ`5éG ¬Fõœw}7ú’áXþ#ÖRùºQdth30„áa¤1n@Ç'ÊË00¢¼C Yû [#âQ.whÂfHçWV 냗šH†ÑwcºÎ£Ž†£DÕå·´V+Ô äð©Žc˜Vq×7ðÙëõñ¸)y5œ`ÐúÜ‹Åj›ŠÈ× õ÷1Uyt|Ž"ÃáÿìYÃ,MGE|*ûT~OjF6ıð-QÝKp9Aó–'ˆde%œ"’üòGP§jáÈ;ÄZìGnW|}Û=u/4|Á0¹·„l%)^‹rVÇ"*$éÜ– Æt8Ï0žœqƒrmuO:Ò{`™î Ãþ:]oânKÈ*æéœFʤ0¦$&oL œhEò’ݧTÃ~ú^¢UÆ‹ÍïžãÀÉmL°mLmcòY"ñ˜ªæ øO Ò ü˜~ð߯ÁßÑÌè{ú~î~0©ÍŸR·vaîb&£{·:ÍÅôCT7™M?A¹˜M“?‘Mïâäæ33‹é_Qʦwpæ&>Åȵ_°Ø,>ǹW¹é1¢àª„½©Èš×~Ãp17½ƒ ϨÏ)œ@•‰=‹«‰]ÁZbôU–á2=J39Jþ õ»A>ýÉ4RPK€Ó%)äPK!4 org/gradle/wrapper/Download$ProxyAuthenticator.classUTTÛRÓP]–  âýPÓÒ‹\ÔR¼A/àÈTeìøàœ&§m4MêI 2Ž|ˆà³:ZF™q|Ò?Êq‡‹ÓVf$'ÉÞkïµÎ>+ùõûë7ãX`x»¾žK¿Ö Üx!SËhFQ‹k†[©Z6÷-×IT\SP\ [pOP²Ì½„QÆ ¯Vñ´L‘ÛžˆkÕR¢Â« +è! S“fa‚°2½[_¬Ù6¼2OŒ§d9BHË)QtEH¸(žNN$Ó S¬hoÂ` ÊC·& 1oÙ‚!éÊRª$¹i‹ÔªäÕª©9wÕ±]nŽ,I÷ÕÚLÍ/ Ç· î»2„†¡ç|…§á§Zr oÍóE…*©“o ¡oq _ó-;uŸW§:¯ZŽå_gÐ[rÑe†v=º¬Bª „atuáúŽ–„¿Ä=oÕ•f5m“aX.þÕµ7ˆ˜#Ô!'^Ö„G‚­UizcaÓ†FšÓ*b0Ðtˆad?!f8°”{ð$Ïp~¿$Gq¬ Gp¼I,éãÜ"…ÅR„ð'q*ušAmÌ„p–¡;˜t}×pm†ÁÝb›;¥ÔC?p 5ƈ ç·fgk–m :Ù tôÐÉqL†„þo«»ïÔI £A‹8Ù/Y lõØ2Œ$CØw·Á*.JtŒ1ô4Ù"„ ²í…ÆØÈû ð\~ïNHÅ%\îÆ$®ÐÌZU…0Åл-c×)a;Èj×NÿÇF!Ü Éún¶Ì匔|¡C>ͪ˜Á¬‚ ²4É=Æó4»íë[ nb^E?‚ƒ»CåYú 1F&ÑO„Q†!² =?úlÑ:)Zêÿ‚t¾#“¿ÿS±VÐÕÐÂOt\_ØÄÍ `=Î29x°§ñ@Å€æZ¬¢©":XQ_Õ“)5¡Xª®“zŒÝà ®˜œ‡3âÑa34+š•„Éë+Rñ`RIU!ƒlÞØ@{Æÿ`:‘ ‚9¤׉-Z\Õ87T-NÔn˜¤‹è¡ ¡Æ`ŒTÜìcð†õ´å;ÔgX©ñ†¸¡Ä¼aÔPR)n4lÓGµ„®Ä$¸J÷+#JCBÑâ ×ìçQKB CIBǹAütØ‹ÍÄœ2ô¸ÁM³C5-® †+ 1ä4VnãƒJ:aåðî9ìB¤9NßIZ!FKå&öiKM4t*)Ú´TãÖ¨n ÷ªI®§-ÖÆpaT×È+Vxž€ºê< çškòÈ»sÈ^6(ÁO.¹BÕTk CquM¿˱‹e(gX^H¶„‹<\³Œñ0'˪ó•©Ù‡‹±Ò‹.aX2kIÂjâU-n(–N.-ŸÅÛ–¥“/\Œ ‚Á?]B%ƒD™×ÅÇ,Ûêë}¸ k£ Õ .Í&/ÏÉÎË’\‹:±¯žaÙ,ßWn'’"ĹÕÎÇ}X+ö6`ÙléaKäç\¹•änÀF/$\N{‰½_I¤¹/r4’‘)ÌÆêù&ͧ´» Í"*W0¬¯^ s Ľ­¦_XVÁ«}ða‰øjahþ?’ZÂ6†Õ ™ãäÓ/¶c§^,ZÛ|XŠ ÄW;Ã%”Ûƒj6¾5m Qn©Q»ßøÐ)’Ñ. ¸© ò>Cµ5Ú§¤RièëiËù+‡2øòq = ‹(&aêSI J¯ˆT}$’¨»tÓòa·C{±CëÖ '¯ÈÒë±G¬ìÍ®(Ö/qvïsb}]š”,ŠC`XLĆOÒA|ˆ9têX©êù‰s>”¶ÿÍñ}\(b¸øÜzOšœäÛÇ¢<%¼,a?UÃ…ÚjL¶t9¥&—Éu$j¶ºwÈÐG•ÏêÓ¼†Ní5?áqÍRÆòÞHnȲR¡”zŸÉ ÌYÝÂnNiŠB\4™Ë NÁ2ÅØbŒ`œz«oæ+8ÀZ(Ûç& è47SªžÓ¥ƒ¾Ü‹ƒxõ°™ƒÎa}]X&·²5DÉKÛY[m¯Æ­^Ü‚×@%kQL5:»jæä}>ÖѪk¹€6’82Ú9d({HÇo˜u):±”p;©œ½»[1Mº„b¼‘.Ÿ¹-i5Åÿf/î×D‰`Òb Á©2¿Yfù)XoÅÛ„ˆ·S¨n]xã;ÄÆÃâçr§ÀĉڴA݇w:ö.·rî&›øišEVʺ/Þ‹{¼¸ïc¸u÷Öž®¶®rŸIJå]½½Ý²íyvdî`YÑdU3y”–ñ¹(›X6db’wÚ•cÔ) u -ö„än{jl¦J“Ó3 Ã!>ÀøT‡¨hv™s¢¼Zÿ0îõâ(>Be$ × õ&Ûnî#8'òàã"w H68HÑgðYq®S Í=WåŒÚÓä,n#½ÙñÀƒÏ1íi‘ðX–³| _¤ˆ¨Úˆ>L×Âæºç<ÛÝ—ñ¸_ÂW(÷ûzw=øªs)µŒ[b>,/ä×=-><‰¯‹ôÿƒ,6Œ…Æ’‰Ð€ªÅBÛK±ÆS¼Õ™9Å9¿ES^Šx-Ç-ª¦ã|'¿ùÍjA¾K-ˆš_•!7­ìôH]yÍyÝ"¿§½ø~ÀpC®C‹j)PX¦<ªZC ®jÊšnÉf:•¢›.9¢ÓSB¾¦¿“ ïG¹YÐ6!ï–ú1"ª$¢izýpÑp¶ÆI*õ;%F¨çéäŸeŽPöáâÁ/²•Iž#þŠ&Ý iJ’{ðJ`Bfç,*Ftȃ?ˆYÃ>樢'ÀZþL÷G•ÙPeÊÕUf³ý_“÷éÁ_)£u#©Xs2ª@þȨ™9öoø»HŒÐÝJ‰-Þ(ô6ëJ'¸Ñ+îy¬£yL¢'£ eb¢¤¯21ÙÙæJÒ|G°„VK cøaûPL<@¸vË"퓸0ƒUS¸”¡£n 5 wa3}N¢!éœÂz† 6uMa3ÃxXçQ,©·1"wÖë3¸r÷ѳ§jAüÑlŽ-YekI¹PVYÙ»wWÕÇÖúãhÆöH{Ý$vÕÇ5«Ž£#ƒk'lîEèÆuYî[G¼jáˆA;£½‘Î nØ’ÁK›\D›Ü 6•ÔÖÕ¯ ¸î@É$ÔcíÓŽø“µ“H=b YLoƒì.PrÿÌUU1ý¡øßPK° e *PK!- org/gradle/wrapper/GradleUserHomeLookup.classUTR]OA=C+Ý~ XQPTdU( ÛâCEb‚Rà¡ÓZŸšéîívé~ev·†ù!þ c‚F€?Êx·hŒâƒ/3sÏœsï¹wæÛ÷Ï_ÜÇŠÀ»ããvãÞ—Öˆ[ßÔ­¾®[¡¹žLÜ00üÐ&Æy$câË¡Œ kHÖ(NýXßH/¦u=r _F†›å þÃvƒ¹ªñK?H=x({%pÜ€H¹Ãè˜T̵oÔ7ê æ±þVƒ(uÂTY´ëz$°*Çt”´=2_+E¤Ì½IØIí‡>µÂp”FäfåXšž ó HVRÀ´ÀÂNsw»ÛzÑÛkoï´š½n§Ùîí:ë뉄ytOêpÊ<šÚ9(^Ãð«é0×à­_¥^ØÍ&ÌVpÀLÂÿ ]æ %ëËfˆðÌ\Ù§A#}Ô/¸8« 6´B×Âzº?—„ v Ÿ*ÃSRH&(é¦Ã¶ø:•”×åâFV¥4VÚT‚ +2C™¬‘ C«t„i¶E&—'Ãñ ²ß1Õcdý6 ¿àC~³ÏŸ0üÛ¯ìôŒ†þ°-9$v›’CGôDΨmPézœ32Ñt¼ ŸªrÎðFz“àó†b[§7§Óúbð_ ]=#xaZQ¢Ýb ‡KYÁ›è-½™Þ:]—–Ä&iT¡·Ay¶é™ˆ«Ð;Õm«fZ†lVá(áRÈN}ÇÝJïNò¯Óa[¡ƒ–BàR “¹m5 ;™ƒÈô.n§gòÊÃØ>ûnn¡÷ˆZžÆuä}½ÞÏ´îõ‚ay‹Ñg¦ípîÉõöº‹ikà,Nkcoš 1M¹~îÖèôŤhÙ®#k¤õ^‘Ü>ĤÆÅ[ÖL ©&+¨£°õ|„î© ÓG‹TJöú8²Ú‹.ãXÖ o„î0Ý[AŸ O¢N¤¬åÒzRð}ŠîpŸfª]}Ùž¬žç÷Ã_“úP¯÷tvgÁÃË&c°óYzP£èsLR0¨ÒI¦àë×Ü ùH¡çªó‡4¥‡¡•`pÿÕMëTú<^’zÅ5ã¡G7ut ¥!“ëÍÜ»:ÐQ6[Ð_Dæ5S%Òî;Çðº¢Ú'éÇ>I§…ÊžbZóÏã+ô ²Y]áÍiHxQàx)åâËô¬F_¢¯€ZàòLmAŸM «TúTOÅŒc;ûàeP^‡‡¾AÏ ]}SørÇLêü¶yMª™j.¤q¦–ržóÏrûzQpû]‹[Á¬Åë÷‘½–£.ˆrwj‹gDüÅ<ôC»Äý©º€<(~Rì-~š‹˜íé´¸Ÿjô3Q:+¢f*‹F4³ÃòÐ/DCu;ý’iÁTQZrñDLÔß_£ø ~£ÑK¢5q‰þ;…,+þ d éïé‚Ä‘?²¦½é¡?‰Fæ%ú3Œ…i±¨^ý•îšù›¥u¨q0adÑ;¼b›÷¿ÁI³EvÀÊ0ä?è„•þ2š©.³ÐxèŒÐð‚æZtŠæhOÅ<,‰žâv”¶¤VéTØYè\Æ›ª©abg“‡V5v±[(оô\¼cZ6˜h/؃ªÀ³˜.<7…ç !„§äB½ƒ+Ý<—«Šs)€Âó4®¹š›T^0CN±Â ꩌ¡Á1˜›ÚVÒôŒe¿$—óÆhq;c´˜WN« cÄpáæD…dr•™“—ó —1¦‹Ùƒi#Ïï§Qp=àZ7‹qC-†‚‡­ÁâŠüiOf‡<ÜÿãjÆL!gâ×^ÃÂÅÓòîxiZ×Ì L*húõ„ðíÇ¢FÁZ˜Ù¬úQýÉ\"‡‹ûíÖ£AåÆEÀ]P€Š™FÆŸ2³?bøõÔ È&tå3Ì{¶¡ï ›æáÜ ÂD¶µoiÞÞ}hkws[¸ýОžöîCÛvv¶{¸­oæ–ñƹA4Î VãÌmöŒY°Ï\óœR”¾…·ŠØØ²SÏTy;l ²FꈇÃ6 f—ÊÂù“FÞÉ´,P:†Í0zð0¸›iUÅØñ=áfÛH ¤:Þm_LÝŸ~jm¹¾’¯ä½ïá«Ð–95lö÷‹Cö‰Ò³Ïæò€Æûù ˜|!ሇDÒkbÌ/5eH.?ÚÑœh£¸¾/’ÍʲZ™š£ì3 £Œúç‚û÷ÅQcK²Ò”£Z-˜\Z·ÓpÜ tÌ3‹Ê µaK˜zLáDy—,GUaô%³1©5Ó‡wÇ“†)’ wxx¯s³Éh3€×#bºeê3ÈZÖBYÎiœdÌMk夶m´© n‡­¼cž^äŽT&‹ÁTá7”Î1Å}q Êr²×r¶7!´ËšmÜɬoÔøÆPu𬠟Åe7Kx)œt“Æoä· ‰ÅEƒÙ›³[ÆÙSîƒøf~›0ËÛa¤F•oARÀüší°û*¿Ó.˜®¹ Ó”’ÑûŒ=é8Ó’®eÆIßÁï ÆP5+k6÷´vt~·u¤m—¨ü>x`émX§‘ÉèýF[¼ß%í¸¬,£¤Ä-ÛꙓUyàç|·Æw1f!´Z†²Âåä@íþˆ?,äü")7CrǼØß"ŠÒGùcíãŲ†6~ ±%Þß‘ÊVRÌ:Äßÿ'–>lqŸÆ÷ò§Eô¸øu¿h’çs'›¦EÏ *=(2¶É˜S”]Ý;···îVùäHë&ŠGlÈQ@^´±¶×Æì5î{íQx¹q,šÈeâG¬kÙæhêéÔSÐb²i²_Å!Y:¥'ì별= õ6¶ÏˆÝ>Æ_pÃág:æ`Z¾Zá'˜Òg ”R/*çîje÷Êf:Û §5~’Ÿ²o]Ò >” ¥…›~†¿¤‘Â_†s4$¢‡UÆôáJŽaP÷ð×ìœþu8d}|½‚™Fƒñœ½ŽÉã¼ ŠÝ¹T9pR£ðmLA­f.³Š4mÀÕüƒÖmš?V¤æï3Ó~¡v¿0€_å˜æ€ëæÞŒ™Èe Û²/Z׆ü]Ÿ…šÒS¦È¸V ½ÝÃ?àŠêû#'‰?sZ6;ˆ¿õXq®€º»Q)ͤmI뮓†ù8}Tå_hüsQo5¡ª=•2P–&]¼FíÕŒe³T÷k~I þ†iñYAþœ4› CJ‘Jf"-öA÷üGÏ/3múø©ÂM*­[ƒÖ„™1®r‰¡‰ëœnmˆáÌjHÿÊÓø/ü÷’‰b÷̆²ˆ©Å™IÆ È"Ûø?M嫌©EŽÂC=|†ûOJTôвò)’e¾Ôx$SŒä0¯8ñ^URPÔËxz‹if‘ôAñõÄš³1Ž®V$·&i"»¸ÈâøymiÄ¥ô¤PNV‹ýS.Â%4 n%Í.N‘…ï Vp„Q Fi®¸ðõ¾3„=’W|‹X&ÍC3=%œŠó‘=Ç›±I;âÂmZ Ú[àe¡äÓ¤Òyj·/dÙ_ú)dl+è¥%šT)]€ „š ‚̶ÝÔë({.•j`@iɈÏ:p°cÙvÏ Ì|ž´BºP ¯„GÃb …¦7¡çRÑ4Þv/ì¥JµÂBÀ,d¢¯Ó|r“T'Õ =`¶ñ–¹ëV¤FÜõÅ¡ÓȘtsÊû§Qž|VÚè·ž6ºFºX£ imÉD)”"‰ï+ñÔó0ÐÆ2CäÌ—Ç%c—´AÚ¨I를+*bÑ#]*¢RÂ`Ô>‘:âÛ˜aÝ‚ÛjõÕìßÞÜí§ŠË“K§åŠÌÊUßocQɧðZF?ex-NBR³Ô‚®ABö­(ôºâf^•ÚÅgÀ2×O“îO¤­è$ÌP~øøŽùêñ,€¬ì?^«ýº•ÁüYÓ*!P#–(øâwGûãÎþ|¢J]8zBKF  Ý~ûšÂïÂuö‹C„ƒy´˜DÝ(1RS}¡ºú'Æ8»B µNŒ´Öøƒƒö0]ÖŠ\‡¥&Ât2ž2üQánƒ(`–˜…dæß®§ý}i3éš1£²-µWÜÒœ…µˆ`m_±},t =C©¬~l¢êJŠŸr-]¦åómFß3—ŠÙwjÒÕÅë f2Æ7Y|œE 4]¹d¯‘Þ-x ¥ä$Å*¯ˆ9Rñ¥^"÷Ÿñ«‚HõV9ó4'OÕyZ”§¥‘pžVVÕæ©ñ¸òbÝ(]òmb SÕÞ1jŠtÖåióµÕ‡WÕß·âßöªpUWžºGhOž®²ÿ†Çh_äÀ®:(Ÿ$ÝùÕE"Žªh\eôä)^Uw’ÌâêuX͈սŕVŽŠ•HÕ«Þp’n¥›Çèí‘sö¿ní7ˆý¹MyúÖ:X ÐlÐj§|õë‰<}O Ò,$¿@’'@}Škl׃ôã»h!€ÿËv SÅý,2B?? C*¤ö©yúÕqš'h‰ßEÞæ ´Cnå¶ ÞâsŽÑKŸûPÕoGèwyz9O{OCè<ýý8y‹‚Úl¼öŒ/¯†œÎujµêƒº^»çµ“>gµ*_#$­V-QCªEV-!k3ój >5ÃgNÁNz)³¯ŠS¢3òUhyfñ{OS,²Ö5F·ƒó®¨Êåyö öæyþ„µ©£ÄÖ^^˜çE‘uêÝT)èyyqž—î>óœÏŧ8ªU!"_S0µµý9Ÿ Š#WVE…žxöÞ\'ŽSØrVE± ¹,VË7 Ÿ°_ÖÊ¥ÂíðæÈóz0ƒ¨&cŒ7F¼¼i„/=eÿ¼Lü|[÷z¹}”;pÖiª¡‘œÀñ¹ ?½¼c”»fØc­8AE„f0"^ë¼¼k„{F9Ä‚ÏY²Âû#]±ê:DSQ:ühá«ó¬w<1ÆÑH¤~Œ—EF86Âý'øpç'¬?ÁXb”áëÇø‘NDÞߒκ~sp„ß øH× ~‡ O›Á°—oÍóm‘uÊݱgû\Õ¶Î…í¼|{qOƒLÊ0Íò¹ÕŠe™`dFùÎ<¿7¤zùý£üÁHÈ _â{òü‰1¾N$¯Ã맪U0ô™¹Ëóü€å[ ^? ÏGÓˇl )Âxê >*Ы•4Ÿ3ä†`ÅJ Ò{êBî Oõ¹¥  t‚§%ÂBƒB5÷ þ|$¤©¹}ΰQ+[Yïs×M"tª”Pá§kœæ þâ? û ¦O®‡>ŸÎó³V ŽtŠ ¹ª;–|Û-_ÇÆv¤+Ï߸‹V…1iß²ò‰ŒŸÜúC^þŽˆ;þ^ïû§¸‹Cˆ±ÏãŸ$½üÓ›õõN)>å)ÚSXï|÷Ý´mŒ±‚ë—õààWyþ­åEŠt=EKæ ñ þVÒÓ7òkäíð)]Ã<ù© Æ=óÀŽavû”Óôº¼ÄðhArÃ:þ•Ç0ëÛ¢Öy%U$„¨­·„¨©“´HçˆTQŸ—æD:OÓÜúGå“VïXÓ9LNî¬?M»Ç¤ÊÈ0 ªòRu§ü-Ž8ê{F¥Eyiñˆä•–ãä€WZ•—°[ ;¼ÒE=^i5Ö/ÁŠ‚•U=Œ·M{óÒeŸz³–w8ê¶yÕ¨Ô&T6yî:UÔ1Œã•¶XÆùi^êðJ;„•Ý%*_,jkͧòJvNôJ;'`ÇÜ3ì^éŠU#ÒîS“8®ÇW9ž"ÉUÅu ˜ûOÑ<´ ³U·tÑr H‡äûå“ʳ’.Ê_´žÏÈ/ˆ§«ÒµÐ•#r­t5Xϵ®õÖs“«Õz¶º¶¸ <;\aëy…k¿õ<ä2¬ç ®›”Ëñ¼Éu›‡ëNñT.W¶[ÏNe—õìVbÖ³_¹Q<ÑÄDñ_í°›$Ñ.rÐ>’É@Ã' ¡í¹ Ï»ÐèÜC¡–Ò'ÉC÷Ñ,ºŸfÓ×h=GsY£J®¢*éÓ䕦yÒ)ª–§ùŽÅ´Àá§…ŽäsÔÒyŽu´ÈÑJç;vÑbÇ-q¤èÇ[Éïx-u|“j£e²ƒ–Ë ­çÐ…r­”ë©V^K«äõT'7S½|åƒÔ G©Q¾™.’?F«åaZ#ßOË/ÐZùÏt‰ü ­“_£õÎ¥´Á¹Š6:ƒrn¡MÎ0]ê¼–šœºÌy„.w¾‡6;ï£fW%µ¸ÖR«ëNjs½Ú]ÏÓ¥¶*·Ò6å+Ô¡¼HÛ•—¡+ÌëЗDŽÿPKÝ»‡ ©)PK!" org/gradle/wrapper/Install$1.classUTW |[eÿIÓ{{›m}¬ÛÒ½ºnƒ®mÚ½Z¶0[R(e¬%Û¤Ü&·íÝ’Ürs³n¼DDDµQP©è˜]Z(0@Ý`€¢¨<œ¼Á¢¨¨€›ç|Iº´Ëæúû¥çžïûÎû|çœoÿÁ°X¬Øqå•k—]VÙ©‡¶±pe 2ÔUY[²¢½fDwL+æZaƒÖm#bèqƒ6{ô¸?Ôc„¶ÄÑxe KÄÚÊÞnTïõ›ÌÃè\¾4ܹ„ÎÚË2ô]‰H„â=º‰u›1ðÍX7­n5ì8É¢õeuKê–ùÃÆÖÊ+T­ÍJØ!ãL3b̰ìîún[GŒú>[ïí5ìúæXÜÑ#‘y‹ä mÖ·êõ=Ö]^çf#ä(Ș)WŽ©Y±P¶˜SßDdzgÄP áV=2/b…ôȳ7%mb‹$3­zÆO(ä3a3î¬6mÒ f› öÔz;2J3œúõk›‰¨˜‘Ô.³;aK ,hÉaH{ 6e%ú|§ÇŒÏ[HÆç"J[ÏçV˜1Ó9UÀ®«w.,£Þ±X·Ž .ð¢%ð Ì …ü5Õ oêËçÅLä¯é^LBÍpW1])fkPP!G®'ÿM®ZÐ2>†d7Ûó&tΙŠVQ†0c©'àD óQ%0õ0Ë6‡snUÂŒ„ [Aµ†¯»V=jŒ× uœ˜ùQÇÌêÉÓìƒXXÀ_uäÁ#iÓ¢ˆÅ",fiKÈø:k‹ŠÕ±R§¼8‰Ô`™ÀÜœ#Eº.À q^šqÊHr”eo—ŽÝàÅ)8•wO#uÍ8sñbeji•À$2vegÜŠ$cîôx±:eÝåGO £ ©‡BFœ2r!ådwÕ13èÿYq âyiØÄ…†|׌³5œ…sNlÓ°”õZañı¸jÁÆñµà2\Îò®ÈDCrYiÛºd¯à®â:àÖÃáqáH!¾UWãS|îʱº(¸–âa:¹Ñ¢$š2FÛæô:éq>[ˆÏàz2èÈ}Ÿ§¤ þÚjls¼øN-Ä ø"ǘ\¸ syáfòcÄêî6HÐô\w¨En’´[pk9þËdõjNJ«Šp¦TT¨ø*—‘.;;|Gå¤àvò ‰ôâ>þ5|<žJHÙ ‹Ç¥ûêNÜÅAÿ&ïì|òâÛÜ 6ãîLUOgŠ‚ïPUw¬•mMÍÍ™¢ø]®K÷à{äQšÌ®í«­¾XÄÒÃMéD !ÇÕ9žúù}ü€õ»—²9»Ôìmáæ´l5ŒïÇ.&üaªi¤êçIZ«‹Ë£b˜Û *»•JDåÑ{Eæ¦xñ F˜ËCdmFêªDW—aᵆ.ûÕ#™ÄIk”Y4Gd“x\ÃcøWˆÑÝMzÿ'ö`/%/U¥p Íd^<ÁÆìÁ“žPÄŠÓÊSܦ÷àiJ’&+ WÄ,§¢‹¯ekO•ʦŸR:æÈ¡LÈ’uèŸ:‚«‚mŸ|¤±ÐÝè-ó–Þ…Ù>µÌ»8˜ •.ôi>úútû5^1pèUŸP}êøœ@êãF~,á¯/ ­£¤·‘™)_$ña|«}àГ¤_þ ’Øé÷)ø$3ðR{YAþØëSöá±Zy*P$;…œÄ{÷ LJꈔêS}š? ê䬓rÈö71Åc¤Ý~<„}Iì¨I<ãSÊZÙO>^ØSÌ¢t”üŒ Ư’x¡ä¥Qk2ûjGÉièk£[" ä5ªe®‹ƒwˆ…eꎃg"O¿’ÙάøSE í` ãZò»a¼µ ï$ñ÷’&ñŸ~Šž’–zü%’5¢uÿ æ?ŒwƒAŸ§#è.9Ô–W*D›§1?)òÊò;Ú†„’…”*IQÜ-l|ëˆ( úhaê('ëGÄ Ú3ÉuûÉÑ{QåË/³jÞÃP‚·Oi#×$Å\ ÜÖѯœYÌ£)þaQDýaª„þ½˜ãËËøÆÓQ*êÇeAmuMR,n——%LàüVÿ}#bi3H4ìáïTKÅI’ö…R±<HÚÇBzÜ*.'Ó~„;i†e8ˆ$|û$ÜOÃ—ðŠ„¯ãM ߯»~ C걚„ÄT ËÅ +År Ok%ŒŠ^ñ$žð ñ”8ˆgij? ^gèºÚu½ëqš„ï‹•®›\·Hœ!ã·ºú%ÎñÛ]÷Hœ!ã;]÷Jœ!ã»\»%Îñ!דgÈøÓ®ç$Îñ]/Kœ!㯺Þ8CÆßr½'q†Œt»%Îpª†MT7£<»œCÕµnlD½Ö=ôDÌǵTao†Š»©b~h ÅjxE7&ˆ(&º0ÉuŠ\ëPìÚ€×E(u9˜ì> eî³1ŽSÝë1Í}!|îMRŽ[Vq÷ÿPK"˜‘à ºPK!- org/gradle/wrapper/Install$InstallCheck.classUTe‘ËJ1†ÿXµZÇj½mÜ‚V;^õ‚AAAp™ÎœN£™ É´.DÄ·p!‚ À‡ÏTEDäœóç;Bòþñú`sçÍ;·%ƒJBwÇ Únà Ò8SZæ*M¼8 ‰uCš¤%ÞìHë nl7¶îN[jK 7‹¼Xfž*<¨µ½¶6™5ÍŸùvWklGzë’D*!2*‰X푱|ë͵͵¦RϽ¨\¤]СÒ$°”šÈŒ 5ù·Ffÿ8±¹Ôzñ;+cP`òZö¤¯eùg­k ò2†Ùïkü(Ù¯zÒgTêþ»,´¥Ò]C§d­Œ˜˜:ùu¹È‹Û25¼§•ï ,,ÿ5ø×/JËõKª”1á`££BÍAcE5-0xÀ¯„unÊü3¨Wµ‚á,8Œó:ËݦÆÊ‰ŠSæp`œµQ;Xs˜‘ÃpBC¬íèÌ{‡©ƒ:å<ث馔ÇÑ•ø mÒh³¸o¡éî2(a;ãaÚRÒr+´Ö³€ts,5;8vÈm¶ÑvÙßÍ´x¦ŽAº‡)hº»å"aÚI­ é^ºé±”É£Y09æPA.]ßê®fmÃZ¶ÍØ–§›VT·ÆÁVÒÉ4ÜŽèî3cÙ¨gG‡M+5Îè/7Ý8Í7Þ¢ž¡\òwúàŠaÛÉë°éöØ\@­qù\aÚM÷k´‹`Zÿ="(HýLkcoŠHNí¡“ß57húôö‹ù ªç5_Ùj.ŒcGóÿWÛÄ‘@»x¼¿m®EÂtˆ‹*’ræPˆÞ&8¾m5ŒÑkÛÔÔÇöB±AOwÖm ÒQŽ æÚfÚÄÒó’2âÙ]—Åjªú!ú°ð~DªÆÛ èŒÂtA2ì.ú¨=”›~¼”œŸaZìô ¹v®àR¡Ãô¬HXK?É<úÀŲ́6,j× €è°$dïlµZ­4:¥šêê~Œèúê̓£:a°_sllôÆ£ˆÆq9«”,’ådÑQ^G²ŠJ×5]¯#™ … +[¢ºÕÊa ƒ©ãÊۣÎG”{NÁ•,窾¯C.ÝU}›ÃN®;Úê¶Z•x¦ì’JÓÓy²Ò£v«Ü1ÑžŒŸÌYÑO¡§»é̓Ë3óºcLäégfÐ B£çéò’{Q„k„êÛœjš§küLè¼HŸÇ2L?G?¯¡]ú‚°`=n"¶ï¨Y{næ½vt>lŽ•ú—Ë]‘ì4,OêSdF;²Û*ä G™:LÒ”ð¿4C^K®³xìµcwÎÈC* þYi>C×ЖqÆ+/Ì’é ôËô+Âþ«ÈÜs´Þ 5ǃôëС±%L/KH|Ž^AèÎÛ¢JðrtyH襢-)æ7ÑϹú° -‘Åt×÷üPò·èó½J¿-'£‹ªËŸD•Å]§»_B©8¡·0<,µ¿àUeÞßcº­ÚM3W_£¯ˆ_"7=[ÍP†ÖhôeúCôfªÄL¯2uÆRµMW¹ÌÌ:€ûü1ý‰¸öOá•ZéÏ·Ó(O0ø_Høsúºü<)»ý5E µ\˜~‘~IúWèÓúìB.«j¶bˆ†èo$"üR¾CôwLŒ:ý¸ë¼Ï™ }KÚ{$Lß–xú'úgdÛƒxpJT‡è_+åMùèШcŸÖ‡ÞÿÅ`›rA Ó Tþƒþ«ºî¯ äÿ?zH<( /3:_`Y†×yø`¿ ¬EyËòJoÐ¥±¶Y îÇ€/\¤Ž14J!|»ª’]ˆƒè&nñn r=`/x=ì˜L·Çfi3sæ…ÖXãE³JÚ¼½oUIã%p/­Ô•[ºî¨Wru4âG¥½­ÑWGôcÑx ùòn[ˆ3Lñ[Cu:‹–j Л‡‘§CbÐF­`òfeäMŸE2\’2-c_!?d8‡DmDUÂÛ>j¿ÿà«Aþú£h˜ƒÅ´9óFëÁï]O›¤Æ«´,=0IÍñ+´"q…"íWhÕ%ŸzZMkJ›øl©]˜ˆéÎ#EZ´)JLÐ}‰"mL¼Bu7¾¿J›Ó©IºûÚNßV³Ís´&Þìß”î©ëv9ç牯%â/Ñ[˜ÎSÔÿY ¦|탽ñ)zpà*íI§8>I{'èÃàü«Ùç°Å}/Ñ‘èuÖb~m:Š7¦'éa({žb uþ‰«tL|ãÇÒ©—iIâšÿYªOø6MŸ_©>bhÎ‹Ô Î$>1ŸÄoö®ƒÐ<Î|t Æz/¬ü f'`ý×à—oÜ7ÀWOÊ–Z‡uñÜÚ_!ÿ¥Æá)Êí»JVºÛŸ˜¤·7,¥Ï„º¿XìtzkÝ3Ô˜Œ|ÍuEzbÖ¦4×-¸(fÿZ2â/ÒÙ"ýöŸÃþIzÊ·5ÐH^{Ž:’ÍÍ tãì½'ÝÍ?Žû.Œø—n(Òû@<¦>xä\ùR»È9ŸÞW¤‡J‰t‘.ÂÙÏ¥‚b”ô±n¿/>èO Úë’ƒ?ñ—,ô|öùÙëJ‹ë°@3­¤-¸Ùj”g¡møÝ2m¯ÅàÀ^^Åw½´ßetöbź5®ü•ùqÓ:ß½«¸Íjñl<±z;E—.PÀ÷â¹Ðýup^|± \4Keo-GÇsWéJ:½j‹ôiÁÝuÁÝ9|ü2ŸKïÉ0}²H¿1E_PÀùâyZ"—úÝ#7¾8AGÛ“WéËÂù•´xf’¾ LÒékÝþÿ,}”–TüõÚÄo&Óe'½Žÿ7Þ9ÇI¯_o/Ò_^’ŸëˆP ñÚ«,´LÑU´…ZÑVE·ÓNEwÓES´_уtLÑctÖ%ÒiXÑQ²-Ð{•_á{?}DÑ’_4øØÄêäŽoTlˆ¹ ÊíSô×—Òûâéˤ%Ž7~s’þ†ÿ?íåïÄ T¤)³&7þ›býïé•ë8‹àŸ:doÉVßA„¨ ’¹ør{<­By Qd_éD`»È°ä›¸®$J¹êâ‘òAíÇ›8„“¦xq‘*:¬Ú'æFæbŸ¸“»ýÜP,+âÕî ¸ùªx”×ÚWò?-qÁwy]ßu¼Èí—yC‘ïV¿]Eîî4Äàü½E¾w«¿¾+TߥEí aD¨7Å}E¾ÿ=¶\[j?u¬+¤wáSÇÇ2~ _ÿôÇ)¼\kö?õôZ‘\.“FWè2§0µ\+òÁH°Ý×DB—Öš¸ñì@$ØíŸ ·L»¯Òé&>4ɇ¯'"ÁH y™jâ·áúØ!†bª8ÌyôÈ%dï-²Mì»6ñ#°(74ñq|&Õ‡š8[²t|’G®WK~™B÷³¿|Á+¯Ç¯S„F豩è£ðmžÎ¨±PŸ¡'xÆBWcüz^…Êøú„ •ñ'é’ •±D¯Œ…Êøeú¼ •ñ×éj,TÆo ”±PŒÙÇ 2VTÆíÜ¥ÆBeœá§•ž¥¸húß ¬>J 8E>Î`Ì*K- ßwPK?>©g¨ÚPK! org/gradle/wrapper/Logger.classUT…“kOA†ßèB)B¹ ×[[XVÀ•ÓÄ„¤Qc F¾M·‡íÂ^Ê^0ÆÈáW¨ÑšøÁà2ž¡EHÚ†Ýììî™÷9™?ý° SàôääMé“^—Ö!ù }[·öõ5Ý ¼–ãÊØ |à Äñ\’ñdSF†Õ$ë0J¼HßÞ—nDkzË6<Ù2•ƒêO7ê[¬ Kçü~⺈šÒØPßv|¢ÐñmŽS±ÇKë[ë%£AÇúçQt-HB‹^8. ,¡mÚ¡l¸d~e«E¡Y l›B ÃSòXš®ômóUý€¬XCJ`ö"úœ ¿!ë.i9JŠÄž@ê©ã;ñ3áü^aW`(_ØÍ ƒëih˜Ì ñ1Œ Ë3n` Ìå«yk±ZGYq—j¨}Œbò4Ì1$ì3×AœÀ|Íú˜)’^9ƒXÃ<fú4ä´– ¸~˘Mc ·¸dy¶G—k©4eX££„|‹Ê…j¿Å—Ì«ž"W +ß»›Ù†WC},(Ë‡Üø|e`æ…ÿs}U‚Uîj…w¡Àd•7ÝËÄ«SøVáØàžjã'«šÌçb„¿3˜àÑà¿y\ãHßÿÄTB]YÌ`¶«Éu5“Åï˜>Eún®¶qû\¸‚;]a¡+Ìv„ãá½wÅ/Xç1Åo°Ha÷»Ø*†ùf:؄––ÛÈ÷‚Cg`a°_®µ^Œ£ÊwèPK]öµo;PK!& org/gradle/wrapper/PathAssembler.classUTUÏJÃ@ÆgMÿÄZEŸ@ÙS+MC­‡´Š ‚'AQè}³™&Ûn6a7­±â[x<ø>”8=8 óñýö›YöóëýN`ÁËfs=ñXÈ%š„O¹œó—E^*-*U˜ /$nQ£pH—™pÌP.Ý*w|:Úဗi‹2PõŒ'§I<¦¬þæç+­ ¸L£:bRe­2)Ñ5ZGo†ãa$¸æÏ>0‡be%^+ Ž ›†©‰ÆðÑŠ²DÞ‰*»tóX£mCƒÁþB¬E¨…IÃÛx²jC‹Aë\U]08ìÝüTÖ[Ïþ»þŒ×ëϺàC§mØaи¢/Àšdëbt|ئ¾Kî€Ô#m¿A÷õ7Pƒ-ð¾PKê)“>$jPK!0 org/gradle/wrapper/SystemPropertiesHandler.classUTT[wUþŽM;q´´”B knÓE -x‹ô‚ P/x29I†Nf²ÎLZX]²üôÁW^yš,ÌZòà›¾ùüÖ}RÚ¦—f­ÌÌùö}ïoŸßÿþåW—Ð`Ø|òd¹¸‘ªpkU¸ÕÔtʪ¥ò)Ëk¶l‡¶çM¯*—ÂÜ$lpß°ÂZõÛM?5]ãŽ/ò©VÝhò–a+¢rårµ2Eº²¸c_k;~ƒ•Š[·]!¤íÖ ]Ò§X„'§&‹FU¬¥~Œ‚1èe¯--qÓvCÖ“õB]òª# ë’·ZBÊý@4oK-ü9î’Xjˆ0 ?äk¼àp·^Xª<V aˆa´.‚ƒV çÓó=mÛ+¨`3™íc;°Â÷ ¼5Ãpü¨Agºj»vð1Ã@:s/Ž8Žéˆá †x¿O äjûÛÅêý8F0ªã8N0œØs½——†“:Æ•§ñ~O%·Õʼ©á4¥u0ù^oéHàm†ˆãñ*é=¥>ûžî;8«Â$-ÇóE)UBç)áUñ¸,¤¿'ÍÄñ.&”á{ Çö‰4d¢v $<ÉprŸméNrÈÇ…Á0rX®¡À ßÅ£ Ž‹á}\¢Š\¨e;^ûFL>/ã¥÷!exT%qì î6JºE\Ñ¡aš!æïrb2Š«ûس­®&¬û—¿b´=céÃ>ÕT?Åg:>Áu†×ývÅ•ÂXºtdŸcViߤ^;´Ê1‘£ÇJJð%ëjéÃåÙy,¨±,’! š¡x„áÿtu_)./3$ö¤Ëm7°›bö‘%Zê’Ðpg‡¡}¥]oÛNU­â=Z¯Y)=™\o7©èHâdk—æÉ±öZ_ÿKK{t¾¯cßP“Ôâ»Dhã?Ú±/ *å;|¯\ˆyZ¸`jQ\ %qF,h•ª¬PSÖÔdE+2œ×™Â¨Á0X¦F²Pf… £V1Ä•U 6#V¥d…V“2ÏÁòË Å|µzÆáK5EÁ £L“s\¢J²Ê˜.«ÎÖ™nàZ8Ÿ™MÏf’EV?ú€ðç´š^`Ïe…ˆjº”’tZTXêR§Õ*ÓSï,»­©%YªéÍ={ÁC xNë4¥PUJäÏYÁôB/¡(¦.çk\G °ßT©ÌLf÷V‘joá „÷ÿeÊ™|Çíº7Ô,nÊ•éüâR®V!à}/W­Lܳ´\ñRÓ/ÞʦÕLdÀH*r‘šl§%Ñ¡®`ô„@ïš¬Êæ:îXüH€!öƒnãV^d7wöwÏs»Ù³—¯v}0*€nõAŒèwJÅ÷gøà®‚¼/@Àò0`y¢Aqï¡aäÞ#3w®•.»^;¾)ôq}‚À t]o`(w+æ á&ŽujãG©­Š¶ç°fGÛ´Û"@¿uÞ4ŠŒDxý?qÚç7ZVÄZÆŽXƒF^·µ{† Olj ¡£›Ú4^€1ã?Oì„§ñlãkƒ9<—_8¾ Þô¿M+ض߶ÛØ›ß´Øz´Aôð¦áw GiÌJÐFÇǧ§ßa$|§‘ð½Œso‚{“¡h°SžD¿ÿ… q;AºðЛ˜nÀ´Ÿ¤¡å ô$¾A䋞…”qðÇ®ø¸ƒÏ¹ãã>ïŠ/8ø¢;¾ààK®ø„ƒ?qÇ'<ãŠO:ø²;>éà+°ê‚O}¶Ãkð´`w|6\ð¨ƒ?ƒM7Ün,ÞKüvA÷PKæÉîPPK!( org/gradle/wrapper/WrapperExecutor.classUTVùwUþž]BXÊ£Ð6Mv •ÐJ7S„:M^Ò¡“™83i î ŠûJÅQTP˜V*òƒçðƒ”Çûf’&iSçääÎ{ï~wùî{÷½þ½õ€ ¸Í0vútoóÉÀ€âj"°-OB¸–ÎÈŠdÊšNk Nó:W¸dpZ”Œp|LJŒlÚlKJŠÁCL*œ–2aYØà[7%6’®ÞœÇ'³ŠBÆ ^/TÔ”¬r®ËjŠf‡¹n/šonÚØÔNðáÀ)7ƒ'ªeõ8ß#+œ! é©HJ— ŒèR&ÃõÈ!Gîåñ¬©é.T2,<& KERS‘îcÊPW_j¯| *êz1 =p¡†÷èÍ…E /æÍA–xáÆñµÌ 抯 Þâ8\XEAòQÙ0 ÛuŸ÷ãVÃO(š”(„çE ÁI/¹2fuµß õ”r&JÍ…;Õ;D½„"ì“3NÑbNL}4mM?ãàáòú§ð'’ƒ˜Â;Ó O%ª!í.nŽhúÐ~9͵¬iÑv/R:2Ce}»˜hÁÈŒöx1$”¨´*4Ê0¬ Ë%ENH&ŸvJ¼ÐÅù¯…!p}¢!´ +ŒΘçh“—Qð¤](AoV5)šÝ£qžqšÕó ¡6-«$üªfúE£ñ纛¿ÐŠýI]KûëÖuMnœ.éðNQ]x‘úWRÓÓ’Y~oî˜~+”?//ã^« ÁÿßaûumD öáôé×=8…7hãTŠÒ<˰´¸ç´«™¬IF¹”vá­BÉ·$ÇæÛœÃ;ÔUËÝ.¼Gd ÆhàE–m+àCÞÇGùÈJU\ø„¡*®hbË~&.›Oqžš\¢´ªn|ΰ¶\«(¾¾.¿dØÙ¥ù‡%%Ëý#²9èâÇí*ú ËI™'ü²Z¶ÞÄA¾Þ_ &v v¿¥«H-ÙÓn|Çà²=t'E3k/Ð%\Eýx.¬¶Ó]’WŠTs–†HGë*~öà'üB….¿õݸ&àå{Î%ü&Bø½$„VM£gm›Ô%ìr3³„A‡pXøƒJßFO+*U½¤º²é®ïÛë錺èWqñÓW¸ömIO’.‘X@ÿ“sa*iöïÆ`c0ŒÃ7‰ÚX¬k‹obéM,¿‰•<‹á`86óG¸Ð¶Pßi!DŸ,lñ5Ó`{¨ßÂcÚ|»iôdn´××I£žP……¨…ƒ¾§ix8·xÔ÷,â¹QÒÂ1 i ÏY0-ŒX8y«:'q*Vy®XWEcÔ÷Bx¯…ÆqæÎuJ-€V\Á›hC·-{pÄ–G1dK'lygly–þ…QÈ“‚QRArÙ$ÎÅ:CÁq¼²ð±…±ë$ÇîÞ\Ò^ØÄÒ'‡ìE5î#¹%xË},|uޠ﫤l¯‰ÈiaåÞ*~¬£Âw!ZŒú¾i¤Æqñ!þ¤Y©¡ïŶ¤k=@? 0META-INF/MANIFEST.MFUTPK!“`zX!p1 »org/gradle/cli/CommandLineArgumentException.classUTPK!×™n³& Dorg/gradle/cli/CommandLineOption.classUTPK!d¢½ Z¶3 org/gradle/cli/CommandLineParser$AfterOptions.classUTPK!‹ã1,]< Óorg/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classUTPK!éÚ³ßb= rorg/gradle/cli/CommandLineParser$KnownOptionParserState.classUTPK!C'|¢L—< Å org/gradle/cli/CommandLineParser$MissingOptionArgState.classUTPK!´”[£×J= „#org/gradle/cli/CommandLineParser$OptionAwareParserState.classUTPK!u[z?¢}8 Ï&org/gradle/cli/CommandLineParser$OptionParserState.classUTPK!×é C3 à(org/gradle/cli/CommandLineParser$OptionString.classUTPK!Éɉ§Î2 W+org/gradle/cli/CommandLineParser$ParserState.classUTPK!KÏ– sÇ? g-org/gradle/cli/CommandLineParser$UnknownOptionParserState.classUTPK!Œ™é¯c& P0org/gradle/cli/CommandLineParser.classUTPK!ë2w:á& \5org/gradle/cli/ParsedCommandLine.classUTPK!ZÝvmT¬, ó9org/gradle/cli/ParsedCommandLineOption.classUTPK!ù$Oÿœ3 ª;org/gradle/internal/file/PathTraversalChecker.classUTPK!yµwʇA ?org/gradle/internal/file/locking/ExclusiveFileAccessManager.classUTPK!b§ŠÁ£> Aorg/gradle/util/internal/WrapperDistributionUrlConverter.classUTPK!œEÒšŽ/ HCorg/gradle/wrapper/BootstrapMainStarter$1.classUTPK!€Ó%)äA ©g¨Ú {org/gradle/wrapper/Install.classUTPK!]öµo; ~Šorg/gradle/wrapper/Logger.classUTPK!ê)“>$j& org/gradle/wrapper/PathAssembler.classUTPK!Öã%¬šN0 Žorg/gradle/wrapper/SystemPropertiesHandler.classUTPK!æÉîP- ‘’org/gradle/wrapper/WrapperConfiguration.classUTPK!YaèSÅ ( ã•org/gradle/wrapper/WrapperExecutor.classUTPK!! •œprotobuf-specs-0.3.3/java/gradle/wrapper/gradle-wrapper.properties000066400000000000000000000003721473777202600254020ustar00rootroot00000000000000distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists protobuf-specs-0.3.3/java/gradlew000077500000000000000000000207641473777202600170140ustar00rootroot00000000000000#!/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/HEAD/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 # This is normally unused # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # 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 if ! command -v java >/dev/null 2>&1 then 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 fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. # shellcheck disable=SC2039,SC3045 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 # 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"' # Collect all arguments for the java command: # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # and any embedded shellness will be escaped. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # treated as '${Hostname}' itself on the command line. 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" "$@" protobuf-specs-0.3.3/java/gradlew.bat000066400000000000000000000055461473777202600175570ustar00rootroot00000000000000@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=. @rem This is normally unused 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. 1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 echo. 1>&2 echo Please set the JAVA_HOME variable in your environment to match the 1>&2 echo location of your Java installation. 1>&2 goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute echo. 1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 echo. 1>&2 echo Please set the JAVA_HOME variable in your environment to match the 1>&2 echo location of your Java installation. 1>&2 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 protobuf-specs-0.3.3/java/scripts/000077500000000000000000000000001473777202600171175ustar00rootroot00000000000000protobuf-specs-0.3.3/java/scripts/.gitignore000066400000000000000000000000131473777202600211010ustar00rootroot00000000000000release_*/ protobuf-specs-0.3.3/java/scripts/sign_and_bundle_release.sh000077500000000000000000000044641473777202600243010ustar00rootroot00000000000000#!/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" jar -xf *.jar rm protobuf-specs-*-bundle.jar rm META-INF/MANIFEST.MF rmdir META-INF # 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 if [[ $file == *.sigstore.json ]]; then continue; fi 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 "$@" protobuf-specs-0.3.3/java/settings.gradle.kts000066400000000000000000000005531473777202600212530ustar00rootroot00000000000000/* * 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" protobuf-specs-0.3.3/protos/000077500000000000000000000000001473777202600160355ustar00rootroot00000000000000protobuf-specs-0.3.3/protos/envelope.proto000066400000000000000000000034151473777202600207420ustar00rootroot00000000000000// 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; } protobuf-specs-0.3.3/protos/events.proto000066400000000000000000000042401473777202600204260ustar00rootroot00000000000000// 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; option ruby_package = "Sigstore::Events"; 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; } protobuf-specs-0.3.3/protos/sigstore_bundle.proto000066400000000000000000000200011473777202600223030ustar00rootroot00000000000000// 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.v0.3+json // The semantic version is thus '0.3'. // 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. This message may be embedded in a DSSE envelope as a signature // extension. Specifically, the `ext` field of the extension will expect this // message when the signature extension is for Sigstore. This is identified by // the `kind` field in the extension, which must be set to // application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. // When used as a DSSE extension, if the `public_key` field is used to indicate // the key identifier, it MUST match the `keyid` field of the signature the // extension is attached to. message VerificationMaterial { // The key material for verification purposes. // // This allows key material to be conveyed in one of three forms: // // 1. An unspecified public key identifier, for retrieving a key // from an out-of-band mechanism (such as a keyring); // // 2. A sequence of one or more X.509 certificates, of which the first member // MUST be a leaf certificate conveying the signing key. Subsequent members // SHOULD be in issuing order, meaning that `n + 1` should be an issuer for `n`. // // Signers MUST NOT include root CA certificates in bundles, and SHOULD NOT // include intermediate CA certificates that appear in an independent root of trust // (such as the Public Good Instance's trusted root). // // Verifiers MUST validate the chain carefully to ensure that it chains up // to a CA certificate that they independently trust. Verifiers SHOULD // handle old or non-complying bundles that have superfluous intermediate and/or // root CA certificates by either ignoring them or explicitly considering them // untrusted for the purposes of chain building. // // 3. A single X.509 certificate, which MUST be a leaf certificate conveying // the signing key. // // When used with the Public Good Instance (PGI) of Sigstore for "keyless" signing // via Fulcio, form (1) MUST NOT be used, regardless of bundle version. Form (1) // MAY be used with the PGI for self-managed keys. // // When used in a `0.1` or `0.2` bundle with the PGI and "keyless" signing, // form (2) MUST be used. // // When used in a `0.3` bundle with the PGI and "keyless" signing, // form (3) MUST be used. 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]; dev.sigstore.common.v1.X509Certificate certificate = 5 [(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.v0.3+json when // when encoded as JSON. // Clients must to be able to accept media type using the previously // defined formats: // * application/vnd.dev.sigstore.bundle+json;version=0.1 // * application/vnd.dev.sigstore.bundle+json;version=0.2 // * application/vnd.dev.sigstore.bundle+json;version=0.3 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". // // If the verification material contains a public key identifier // (key hint) and the `content` is a DSSE envelope, the key hints // MUST be exactly the same in the verification material and in the // DSSE envelope. 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: // // DSSE envelopes in a bundle MUST have exactly one signture. // This is a limitation from the DSSE spec, as it can contain // multiple signatures. There are two primary reasons: // 1. It simplfies the verification logic and policy // 2. The bundle (currently) can only contain a single // instance of the required verification materials // During verification a client MUST reject an envelope if // the number of signatures is not equal to one. io.intoto.Envelope dsse_envelope = 4 [(google.api.field_behavior) = REQUIRED]; } // Reserved for future additions of artifact types. reserved 5 to 50; } protobuf-specs-0.3.3/protos/sigstore_common.proto000066400000000000000000000217471473777202600223440ustar00rootroot00000000000000// 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; SHA2_384 = 2; SHA2_512 = 3; SHA3_256 = 4; SHA3_384 = 5; } // Details of a specific public key, capturing the the key encoding method, // and signature algorithm. // // PublicKeyDetails captures the public key/hash algorithm combinations // recommended in the Sigstore ecosystem. // // This is modelled as a linear set as we want to provide a small number of // opinionated options instead of allowing every possible permutation. // // Any changes to this enum MUST be reflected in the algorithm registry. // See: docs/algorithm-registry.md // // 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 [deprecated = true]; // See RFC8017 PKCS1_RSA_PSS = 2 [deprecated = true]; // See RFC8017 PKIX_RSA_PKCS1V5 = 3 [deprecated = true]; PKIX_RSA_PSS = 4 [deprecated = true]; // RSA public key in PKIX format, PKCS#1v1.5 signature PKIX_RSA_PKCS1V15_2048_SHA256 = 9; PKIX_RSA_PKCS1V15_3072_SHA256 = 10; PKIX_RSA_PKCS1V15_4096_SHA256 = 11; // RSA public key in PKIX format, RSASSA-PSS signature PKIX_RSA_PSS_2048_SHA256 = 16; // See RFC4055 PKIX_RSA_PSS_3072_SHA256 = 17; PKIX_RSA_PSS_4096_SHA256 = 18; // ECDSA PKIX_ECDSA_P256_HMAC_SHA_256 = 6 [deprecated = true]; // See RFC6979 PKIX_ECDSA_P256_SHA_256 = 5; // See NIST FIPS 186-4 PKIX_ECDSA_P384_SHA_384 = 12; PKIX_ECDSA_P521_SHA_512 = 13; // Ed 25519 PKIX_ED25519 = 7; // See RFC8032 PKIX_ED25519_PH = 8; // LMS and LM-OTS // // These keys and signatures may be used by private Sigstore // deployments, but are not currently supported by the public // good instance. // // USER WARNING: LMS and LM-OTS are both stateful signature schemes. // Using them correctly requires discretion and careful consideration // to ensure that individual secret keys are not used more than once. // In addition, LM-OTS is a single-use scheme, meaning that it // MUST NOT be used for more than one signature per LM-OTS key. // If you cannot maintain these invariants, you MUST NOT use these // schemes. LMS_SHA256 = 14; LMOTS_SHA256 = 15; // Reserved for future additions of public key/signature algorithm types. reserved 19 to 50; } // 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 identity of the log, represented by its public key. 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 collection of X.509 certificates. // // This "chain" can be used in multiple contexts, such as providing a root CA // certificate within a TUF root of trust or multiple untrusted certificates for // the purpose of chain building. message X509CertificateChain { // One or more DER-encoded certificates. // // In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence // has an imposed order. Unless explicitly specified, there is otherwise no // guaranteed order. 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; } protobuf-specs-0.3.3/protos/sigstore_rekor.proto000066400000000000000000000167071473777202600221760ustar00rootroot00000000000000// 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 MUST contain an origin string as a unique log identifier, // the tree size, and the root hash. It MAY also be followed by optional data, // and clients MUST NOT assume optional data. The checkpoint MUST also contain // a signature over the root hash (tree head). The checkpoint MAY contain additional // signatures, but the first SHOULD be the signature from the log. Checkpoint contents // are concatenated with newlines into a single string. // The checkpoint format is described in // https://github.com/transparency-dev/formats/blob/main/log/README.md // and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. // An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go 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. // The integration time MUST NOT be trusted if inclusion_promise // is omitted. 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 if another suitable source of // time is present (such as another source of signed time, // or the current system time for long-lived certificates). // MUST be verified if no other suitable source of time is present, // and SHOULD be verified otherwise. 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; } protobuf-specs-0.3.3/protos/sigstore_trustroot.proto000066400000000000000000000231421473777202600231300ustar00rootroot00000000000000// 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 "google/api/field_behavior.proto"; 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. // 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 dev.sigstore.common.v1.LogId log_id = 4; // The checkpoint key identifier for the log used in a checkpoint. // Optional, not provided for logs that do not generate checkpoints. // For logs that do generate checkpoints, if not set, assume // log_id equals checkpoint_key_id. // Follows the specification described here // for ECDSA and Ed25519 signatures: // https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures // For RSA signatures, the key ID will match the ECDSA format, the // hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT // use RSA-signed checkpoints, since witnesses do not support // RSA signatures. // This is provided for convenience. Clients can also calculate the // checkpoint key ID given the log's public key. // SHOULD be set for logs generating Ed25519 signatures. // SHOULD be 4 bytes long, as a truncated hash. dev.sigstore.common.v1.LogId checkpoint_key_id = 5; } // 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 identifies the certificate authority. // // It is RECOMMENDED that the URI is the base URL for the certificate // authority, that can be provided to any SDK/client provided // by the certificate authority to interact with the certificate // authority. string uri = 2; // The certificate chain for this CA. The last certificate in the chain // MUST be the trust anchor. The trust anchor MAY be a self-signed root // CA certificate or MAY be an intermediate CA certificate. 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. // // All the listed instances SHOULD be sorted by the 'valid_for' in ascending // order, that is, the oldest instance first. Only the last instance is // allowed to have their 'end' timestamp unset. All previous instances MUST // have a closed interval of validity. The last instance MAY have a closed // interval. Clients MUST accept instances that overlaps in time, if not // clients may experience problems during rotations of verification // materials. // // To be able to manage planned rotations of either transparency logs or // certificate authorities, clienst MUST accept lists of instances where // the last instance have a 'valid_for' that belongs to the future. // This should not be a problem as clients SHOULD first seek the trust root // for a suitable instance before creating a per artifact trust root (that // is, a sub-set of the complete trust root) that is used for verification. message TrustedRoot { // MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json // when encoded as JSON. // Clients MUST be able to process and parse content with the media // type defined in the old format: // 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; } // SigningConfig represents the trusted entities/state needed by Sigstore // signing. In particular, it primarily contains service URLs that a Sigstore // signer may need to connect to for the online aspects of signing. message SigningConfig { // MUST be application/vnd.dev.sigstore.signingconfig.v0.1+json string media_type = 5; // A URL to a Fulcio-compatible CA, capable of receiving // Certificate Signing Requests (CSRs) and responding with // issued certificates. // // This URL **MUST** be the "base" URL for the CA, which clients // should construct an appropriate CSR endpoint on top of. // For example, if `ca_url` is `https://example.com/ca`, then // the client **MAY** construct the CSR endpoint as // `https://example.com/ca/api/v2/signingCert`. string ca_url = 1; // A URL to an OpenID Connect identity provider. // // This URL **MUST** be the "base" URL for the OIDC IdP, which clients // should perform well-known OpenID Connect discovery against. string oidc_url = 2; // One or more URLs to Rekor-compatible transparency log. // // Each URL **MUST** be the "base" URL for the transparency log, // which clients should construct appropriate API endpoints on top of. repeated string tlog_urls = 3; // One ore more URLs to RFC 3161 Time Stamping Authority (TSA). // // Each URL **MUST** be the **full** URL for the TSA, meaning that it // should be suitable for submitting Time Stamp Requests (TSRs) to // via HTTP, per RFC 3161. repeated string tsa_urls = 4; } // ClientTrustConfig describes the complete state needed by a client // to perform both signing and verification operations against a particular // instance of Sigstore. message ClientTrustConfig { // MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json string media_type = 1; // The root of trust, which MUST be present. TrustedRoot trusted_root = 2 [(google.api.field_behavior) = REQUIRED]; // Configuration for signing clients, which MUST be present. SigningConfig signing_config = 3 [(google.api.field_behavior) = REQUIRED]; } protobuf-specs-0.3.3/protos/sigstore_verification.proto000066400000000000000000000165211473777202600235300ustar00rootroot00000000000000// 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; reserved 2; // Deprecated: Support for detached SCTs // 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; } message TlogIntegratedTimestampOptions{ // The number of integrated timestamps that are expected. int32 threshold = 1; // Disable integrated timestamp verification. bool disable = 2; } message ObserverTimestampOptions { // The number of external observers of the timestamp. // This is a union of RFC3161 signed timestamps, and // integrated timestamps from a transparency log, that // could include additional timestamp sources in the // future. int32 threshold = 1; // Disable observer 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 // Disable: false optional CtlogOptions ctlog_options = 4; // Optional options for certificate signed timestamp verification. // If none is provided, the default verification options are: // Threshold: 0 // Disable: true optional TimestampAuthorityOptions tsa_options = 5; // Optional options for integrated timestamp verification. // If none is provided, the default verification options are: // Threshold: 0 // Disable: true optional TlogIntegratedTimestampOptions integrated_ts_options = 6; // Optional options for observed timestamp verification. // If none is provided, the default verification options are: // Threshold 1 // Disable: false optional ObserverTimestampOptions observer_options = 7; } message Artifact { oneof data { // Location of the artifact string artifact_uri = 1; // The raw bytes of the artifact bytes artifact = 2; // Digest of the artifact. SHOULD NOT be used when verifying an // in-toto attestation as the subject digest cannot be // reconstructed. This option will not work with Ed25519 // signatures, use Ed25519Ph or another algorithm instead. dev.sigstore.common.v1.HashOutput artifact_digest = 3; } } // 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; }