Skip to content
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

ias/proxy: return error in GetSigRL if mock client is used #4081

Merged
merged 1 commit into from
Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/4081.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ias/proxy/client: `GetSigRL` don't panic if IAS proxy not configured
3 changes: 3 additions & 0 deletions go/ias/proxy/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func (c *proxyClient) GetSPIDInfo(ctx context.Context) (*api.SPIDInfo, error) {
}

func (c *proxyClient) GetSigRL(ctx context.Context, epidGID uint32) ([]byte, error) {
if c.endpoint == nil {
return nil, fmt.Errorf("IAS proxy is not configured, mock used")
}
return c.endpoint.GetSigRL(ctx, epidGID)
}

Expand Down