diff --git a/.changelog/4081.bugfix.md b/.changelog/4081.bugfix.md new file mode 100644 index 00000000000..dae5ca1596b --- /dev/null +++ b/.changelog/4081.bugfix.md @@ -0,0 +1 @@ +ias/proxy/client: `GetSigRL` don't panic if IAS proxy not configured diff --git a/go/ias/proxy/client/client.go b/go/ias/proxy/client/client.go index 0e5160cbaaf..39fd9718866 100644 --- a/go/ias/proxy/client/client.go +++ b/go/ias/proxy/client/client.go @@ -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) }