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

[COR-1114] Fix token validity check logic to use exp field in access… #5998

Conversation

pmahindrakar-oss
Copy link
Contributor

… token (#330)

  • Add logs for token

  • add logs

  • Fixing the validity check logic for token

  • nit

  • nit

  • Adding in memory token source provider

  • nit

  • changed Valid method to log and ignore parseDateClaim error

  • nit

  • Fix unit tests

  • lint

  • fix unit tests

Tracking issue

Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

…token (#330)

* Add logs for token

* add logs

* Fixing the validity check logic for token

* nit

* nit

* Adding in memory token source provider

* nit

* changed Valid method to log and ignore parseDateClaim error

* nit

* Fix unit tests

* lint

* fix unit tests

Signed-off-by: pmahindrakar-oss <[email protected]>
@pmahindrakar-oss pmahindrakar-oss force-pushed the union/upstream-fa58ba162a5b58cc1498edd6f621a5cb6bce0b6d branch from 6fe8e3b to adc3ce2 Compare November 12, 2024 20:25
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 76.05634% with 17 lines in your changes missing coverage. Please review.

Project coverage is 36.93%. Comparing base (3c3ae05) to head (983907e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
flyteidl/clients/go/admin/utils/token_utils.go 66.66% 6 Missing and 2 partials ⚠️
flyteidl/clients/go/admin/token_source_provider.go 77.77% 3 Missing and 3 partials ⚠️
flyteidl/clients/go/admin/auth_interceptor.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5998      +/-   ##
==========================================
- Coverage   36.95%   36.93%   -0.02%     
==========================================
  Files        1310     1312       +2     
  Lines      131451   131502      +51     
==========================================
- Hits        48575    48570       -5     
- Misses      78655    78712      +57     
+ Partials     4221     4220       -1     
Flag Coverage Δ
unittests-datacatalog 51.58% <ø> (ø)
unittests-flyteadmin 54.07% <ø> (ø)
unittests-flytecopilot 22.23% <ø> (ø)
unittests-flytectl 62.39% <ø> (ø)
unittests-flyteidl 6.93% <76.05%> (-0.03%) ⬇️
unittests-flyteplugins 53.83% <ø> (ø)
unittests-flytepropeller 43.08% <ø> (ø)
unittests-flytestdlib 55.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: pmahindrakar-oss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant