Plugins: Fix issue with propagating ID token downstream for RunStream requests (#104833)

fix issue
This commit is contained in:
Will Browne
2025-05-06 11:41:32 +01:00
committed by GitHub
parent 5526443007
commit a5649b6e1d
3 changed files with 115 additions and 3 deletions
+2
View File
@@ -244,6 +244,8 @@ func getDelay(numErrors int) time.Duration {
// run stream until context canceled or stream finished without an error.
func (s *Manager) runStream(ctx context.Context, cancelFn func(), sr streamRequest) {
ctx = identity.WithRequester(ctx, sr.user)
defer func() { s.stopStream(sr, cancelFn) }()
var numFastErrors int
var delay time.Duration