You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Please keep this policy check BEFORE reading any other information about the image.
76
79
// (The multiImage check above only matches the MIME type, which we have received anyway.
77
80
// Actual parsing of anything should be deferred.)
78
-
ifallowed, err:=c.policyContext.IsRunningImageAllowed(ctx, unparsedImage); !allowed||err!=nil { // Be paranoid and fail if either return value indicates so.
81
+
// Apply a timeout to avoid hanging indefinitely on GPG key import operations. see issues.redhat.com/browse/OCPBUGS-57893
82
+
// The timeout context will be used by the cancelable reader to potentially abort GPGME operations.
ifallowed, err:=c.policyContext.IsRunningImageAllowed(policyCtx, unparsedImage); !allowed||err!=nil { // Be paranoid and fail if either return value indicates so.
0 commit comments