Skip to content

Commit

Permalink
Add ca bundle to inbox token request api (#527)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Jan 7, 2025
1 parent 5b47638 commit 167c4b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/identity/v1alpha1/inboxtokenrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type InboxTokenRequestRequest struct{}

type InboxTokenRequestResponse struct {
AgentJWTToken string `json:"agentJwtToken"`
CABundle string `json:"caBundle,omitempty"`
}

func init() {
Expand Down
6 changes: 6 additions & 0 deletions apis/identity/v1alpha1/openapi_generated.go

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

1 change: 1 addition & 0 deletions pkg/identity/b3.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func (c *Client) GetToken() (*identityapi.InboxTokenRequestResponse, error) {
if err = json.Unmarshal(body, tokenResponse); err != nil {
return nil, err
}
tokenResponse.CABundle = string(c.caCert)

return tokenResponse, nil
}
Expand Down

0 comments on commit 167c4b3

Please sign in to comment.