diff --git a/go.mod b/go.mod index 19181c763b..9009c98abf 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( k8s.io/apimachinery v0.27.6 k8s.io/client-go v0.27.6 k8s.io/utils v0.0.0-20230209194617-a36077c30491 - knative.dev/eventing v0.38.1-0.20231017050713-f9314d883fc0 + knative.dev/eventing v0.38.1-0.20231018193256-3ef831c9b7e4 knative.dev/hack v0.0.0-20231016131700-2c938d4918da knative.dev/pkg v0.0.0-20231017113806-d6ab72900ea5 knative.dev/reconciler-test v0.0.0-20231017131250-999d077826b7 diff --git a/go.sum b/go.sum index ec08f1ddd7..8c829d4ff0 100644 --- a/go.sum +++ b/go.sum @@ -934,8 +934,8 @@ k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5F k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg= k8s.io/utils v0.0.0-20230209194617-a36077c30491 h1:r0BAOLElQnnFhE/ApUsg3iHdVYYPBjNSSOMowRZxxsY= k8s.io/utils v0.0.0-20230209194617-a36077c30491/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -knative.dev/eventing v0.38.1-0.20231017050713-f9314d883fc0 h1:CKeg+12rcm3FhN/MYcbe/EDVScgXjhWObnGxrjeOOVw= -knative.dev/eventing v0.38.1-0.20231017050713-f9314d883fc0/go.mod h1:Ug/SwaXMZVkP17peh2SvKA6I3FSjd8RrXdJuJNyBS2Y= +knative.dev/eventing v0.38.1-0.20231018193256-3ef831c9b7e4 h1:t6/2/0GlYfVezhhCjEpENaJSOx5g7aPkcEUxD9N5MSc= +knative.dev/eventing v0.38.1-0.20231018193256-3ef831c9b7e4/go.mod h1:swWS48qpCQbBkj+2iS0rVa7PbQBWLD9YAy3CSHfevaU= knative.dev/hack v0.0.0-20231016131700-2c938d4918da h1:xy+fvuz2LDOMsZ5UwXRaMF70NYUs9fsG+EF5/ierYBg= knative.dev/hack v0.0.0-20231016131700-2c938d4918da/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q= knative.dev/pkg v0.0.0-20231017113806-d6ab72900ea5 h1:9AvFZdEtuwKWDcTV1VSwmrgrRR9f38wbIAm+sNwLivQ= diff --git a/vendor/knative.dev/eventing/pkg/auth/token_provider.go b/vendor/knative.dev/eventing/pkg/auth/token_provider.go index dcff66eb42..d35a6e29f7 100644 --- a/vendor/knative.dev/eventing/pkg/auth/token_provider.go +++ b/vendor/knative.dev/eventing/pkg/auth/token_provider.go @@ -32,7 +32,7 @@ import ( ) const ( - expirationBufferTime = time.Second * 30 + expirationBufferTime = 5 * time.Minute ) type OIDCTokenProvider struct { @@ -73,7 +73,7 @@ func (c *OIDCTokenProvider) GetJWT(serviceAccount types.NamespacedName, audience return "", fmt.Errorf("could not request a token for %s: %w", serviceAccount, err) } - // we need a duration until this token expires, use the expiry time - (now + 30s) + // we need a duration until this token expires, use the expiry time - (now + 5min) // this gives us a buffer so that it doesn't expire between when we retrieve it and when we use it expiryTtl := tokenRequestResponse.Status.ExpirationTimestamp.Time.Sub(time.Now().Add(expirationBufferTime)) diff --git a/vendor/modules.txt b/vendor/modules.txt index 5919de1c1e..0a5cae99fe 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1283,7 +1283,7 @@ k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/strings/slices k8s.io/utils/trace -# knative.dev/eventing v0.38.1-0.20231017050713-f9314d883fc0 +# knative.dev/eventing v0.38.1-0.20231018193256-3ef831c9b7e4 ## explicit; go 1.19 knative.dev/eventing/cmd/heartbeats knative.dev/eventing/pkg/adapter/v2