Skip to content

Commit

Permalink
Add hint string to X509SVID and JWTSVID data structures (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Carvalho <[email protected]>
  • Loading branch information
guilhermocc authored Feb 25, 2023
1 parent 5e0b692 commit cbbc88f
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 71 deletions.
169 changes: 98 additions & 71 deletions v2/proto/spiffe/workload/workload.pb.go

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

12 changes: 12 additions & 0 deletions v2/proto/spiffe/workload/workload.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ message X509SVID {

// Required. ASN.1 DER encoded X.509 bundle for the trust domain.
bytes bundle = 4;

// Optional. An operator-specified string used to provide guidance on how this
// identity should be used by a workload when more than one SVID is returned.
// For example, `internal` and `external` to indicate an SVID for internal or
// external use, respectively.
string hint = 5;
}

// The X509BundlesRequest message conveys parameters for requesting X.509
Expand Down Expand Up @@ -115,6 +121,12 @@ message JWTSVID {

// Required. Encoded JWT using JWS Compact Serialization.
string svid = 2;

// Optional. An operator-specified string used to provide guidance on how this
// identity should be used by a workload when more than one SVID is returned.
// For example, `internal` and `external` to indicate an SVID for internal or
// external use, respectively.
string hint = 3;
}

// The JWTBundlesRequest message conveys parameters for requesting JWT bundles.
Expand Down

0 comments on commit cbbc88f

Please sign in to comment.