-
Notifications
You must be signed in to change notification settings - Fork 36
Add types and RPCs for WIT-SVID #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4cd6952 to
b58591a
Compare
b58591a to
1db03ba
Compare
| // Required. SPIFFE ID of the JWT-SVID. | ||
| spire.api.types.SPIFFEID id = 1; | ||
|
|
||
| // Required. Public key for the cnf claim. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
192769c to
64018b1
Compare
e909332 to
65ac377
Compare
amartinezfayo
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Result for each X509-SVID requested (order is maintained). | |
| // Result for each WIT-SVID requested (order is maintained). |
proto/spire/api/types/witsvid.proto
Outdated
| // The serialized JWT token. | ||
| string token = 1; | ||
|
|
||
| // The SPIFFE ID of the JWT-SVID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // The SPIFFE ID of the JWT-SVID. | |
| // The SPIFFE ID of the WIT-SVID. |
1d52fec to
17fa8e6
Compare
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>
17fa8e6 to
9c15297
Compare
amartinezfayo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
* 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>
* 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>
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.