Skip to content

Commit

Permalink
gen, protos: multiple tlogs and tsas
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Mar 26, 2024
1 parent d7222cd commit 1478df1
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 84 deletions.
18 changes: 12 additions & 6 deletions gen/jsonschema/schemas/ClientTrustConfig.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,19 @@
"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."
},
"tlogUrl": {
"type": "string",
"description": "A URL to a Rekor-compatible transparency log. This URL **MUST** be the \"base\" URL for the transparency log, which clients should construct appropriate API endpoints on top of."
"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."
},
"tsaUrl": {
"type": "string",
"description": "A URL to an RFC 3161 Time Stamping Authority (TSA). This 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": {
"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,
Expand Down
18 changes: 12 additions & 6 deletions gen/jsonschema/schemas/SigningConfig.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
"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."
},
"tlogUrl": {
"type": "string",
"description": "A URL to a Rekor-compatible transparency log. This URL **MUST** be the \"base\" URL for the transparency log, which clients should construct appropriate API endpoints on top of."
"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."
},
"tsaUrl": {
"type": "string",
"description": "A URL to an RFC 3161 Time Stamping Authority (TSA). This 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": {
"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,
Expand Down
76 changes: 38 additions & 38 deletions gen/pb-go/trustroot/v1/sigstore_trustroot.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gen/pb-ruby/lib/sigstore_trustroot_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,19 @@ pub struct SigningConfig {
/// should perform well-known OpenID Connect discovery against.
#[prost(string, tag = "2")]
pub oidc_url: ::prost::alloc::string::String,
/// A URL to a Rekor-compatible transparency log.
/// One or more URLs to Rekor-compatible transparency log.
///
/// This URL **MUST** be the "base" URL for the 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, tag = "3")]
pub tlog_url: ::prost::alloc::string::String,
/// A URL to an RFC 3161 Time Stamping Authority (TSA).
#[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).
///
/// This URL **MUST** be the **full** URL for the TSA, meaning that it
/// 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, tag = "4")]
pub tsa_url: ::prost::alloc::string::String,
#[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
Expand Down
Binary file not shown.
30 changes: 19 additions & 11 deletions gen/pb-typescript/src/__generated__/sigstore_trustroot.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions protos/sigstore_trustroot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,18 @@ message SigningConfig {
// should perform well-known OpenID Connect discovery against.
string oidc_url = 2;

// A URL to a Rekor-compatible transparency log.
// One or more URLs to Rekor-compatible transparency log.
//
// This URL **MUST** be the "base" URL for the transparency log,
// Each URL **MUST** be the "base" URL for the transparency log,
// which clients should construct appropriate API endpoints on top of.
string tlog_url = 3;
repeated string tlog_urls = 3;

// A URL to an RFC 3161 Time Stamping Authority (TSA).
// One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
//
// This URL **MUST** be the **full** URL for the TSA, meaning that it
// 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.
string tsa_url = 4;
repeated string tsa_urls = 4;
}

// ClientTrustConfig describes the complete state needed by a client
Expand Down

0 comments on commit 1478df1

Please sign in to comment.