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

Increase expiration buffer time of OIDCTokenProviders cache #7351

Closed
creydr opened this issue Oct 12, 2023 · 1 comment · Fixed by #7355
Closed

Increase expiration buffer time of OIDCTokenProviders cache #7351

creydr opened this issue Oct 12, 2023 · 1 comment · Fixed by #7355
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@creydr
Copy link
Member

creydr commented Oct 12, 2023

Currently the cache of the OIDC token provider has only a buffer of 30 seconds:

const (
expirationBufferTime = time.Second * 30
)

To take also clock screw into account, we should increase this limit to 5 minutes.

@creydr creydr added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Oct 12, 2023
@akagami-harsh
Copy link
Contributor

/assign

akagami-harsh added a commit to akagami-harsh/eventing that referenced this issue Oct 12, 2023
…nProviders cache to 5 minuets

Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
knative-prow bot pushed a commit that referenced this issue Oct 18, 2023
…tes (#7355)

* Fix: Issue #7351 Increasing expiration buffer time of OIDCTokenProviders cache to 5 minuets

Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>

* Update pkg/auth/token_provider.go

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* updating comment on line no 76

---------

Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants