-
Notifications
You must be signed in to change notification settings - Fork 476
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
Add hint field delegated identity API #4074
Add hint field delegated identity API #4074
Conversation
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
0881a7f
to
039fa18
Compare
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
}, | ||
jwtSVIDsResp: map[spiffeid.ID]*client.JWTSVID{ | ||
id1: { | ||
Token: jwtSVID1.Marshal(), |
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.
NIT: since you are using marshal for the very same token multiple times, what do you think about moving that into a variable? and just use vars here?
Svids: []*types.JWTSVID{ | ||
{ | ||
Token: jwtSVID1.Marshal(), | ||
Id: &types.SPIFFEID{TrustDomain: id1.TrustDomain().String(), Path: id1.Path()}, |
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.
mmm, how about using api.ProtoFromID()?
Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me>
Add hint field delegated identity API Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me> Signed-off-by: Basavaraju-G <basavaraju013@gmail.com>
Add hint field delegated identity API Signed-off-by: Guilherme Carvalho <guilhermocc@proton.me> Signed-off-by: Dmitry Gorochovsky <d.goro@yahoo.com>
Pull Request check list
Affected functionality
Delegated API
FetchJWTSVIDs
andSubscribeToX509SVIDs
methods.Description of change
Add hint field to delegated API responses
Which issue this PR fixes
Ongoing work for #2588
Dependencies
This PR depends on spiffe/spire-api-sdk#39; please review it first before merging this PR.