Skip to content

Conversation

@sorindumitru
Copy link
Contributor

This contains the types and RPCs for some basic functionality for WIT-SVIDs to work. Extra functionality is required for UpstreamAuthority spire to function and for tainting and revoking keys.

// Required. SPIFFE ID of the JWT-SVID.
spire.api.types.SPIFFEID id = 1;

// Required. Public key for the cnf claim.
Copy link
Member

@arndt-s arndt-s Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should specify the encoding. I propose either JWK incl. private key or ASN1 DER.

// Required. The entry ID for the identity being requested.
string entry_id = 1;

// Required. The ASN.1 DER encoded Certificate Signing Request (CSR). The
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a CSR should be required for requesting a WIT. Similar to comment above I propose to just require the key itself (JWK or ASN DER)

@sorindumitru sorindumitru force-pushed the wit-svid branch 3 times, most recently from 192769c to 64018b1 Compare October 27, 2025 21:31
@sorindumitru sorindumitru force-pushed the wit-svid branch 2 times, most recently from e909332 to 65ac377 Compare November 7, 2025 09:45
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sorindumitru for taking this on, and @arndt-s for the review!
I think it’s looking great, I just found a few copy-paste issues in the comments :)



message BatchNewWITSVIDRequest {
// Required. One or more X509-SVID parameters for X509-SVID entries to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Required. One or more X509-SVID parameters for X509-SVID entries to
// Required. One or more WIT-SVID parameters for WIT-SVID entries to

// The status of creating the WIT-SVID.
spire.api.types.Status status = 1;

// The newly created X509-SVID. This will be set if the status is OK.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// The newly created X509-SVID. This will be set if the status is OK.
// The newly created WIT-SVID. This will be set if the status is OK.

spire.api.types.WITSVID svid = 2;
}

// Result for each X509-SVID requested (order is maintained).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Result for each X509-SVID requested (order is maintained).
// Result for each WIT-SVID requested (order is maintained).

// The serialized JWT token.
string token = 1;

// The SPIFFE ID of the JWT-SVID.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// The SPIFFE ID of the JWT-SVID.
// The SPIFFE ID of the WIT-SVID.

This contains the types and RPCs for some basic functionality for WIT-SVIDs to work. Extra functionality is required for UpstreamAuthority spire to function and for tainting and revoking keys.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@sorindumitru sorindumitru merged commit 13527c3 into spiffe:next Nov 7, 2025
2 checks passed
sorindumitru added a commit to sorindumitru/spire-api-sdk that referenced this pull request Dec 4, 2025
* Add types and RPCs for WIT-SVID

This contains the types and RPCs for some basic functionality for WIT-SVIDs to work. Extra functionality is required for UpstreamAuthority spire to function and for tainting and revoking keys.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Specify desired protoc_gen_go_version on install

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Also add local-authority APIs

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Fixup typos

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Some more typos

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
sorindumitru added a commit that referenced this pull request Dec 8, 2025
* Add types and RPCs for WIT-SVID

This contains the types and RPCs for some basic functionality for WIT-SVIDs to work. Extra functionality is required for UpstreamAuthority spire to function and for tainting and revoking keys.



* Specify desired protoc_gen_go_version on install



* Also add local-authority APIs



* Fixup typos



* Some more typos



---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants