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

Add Configured leeway to JWT time validation claims in case of a clock skew #1741

Merged
merged 9 commits into from
Aug 9, 2018

Conversation

letzya
Copy link
Contributor

@letzya letzya commented May 30, 2018

This fix helps to avoid jwt failure but can risk us since it won't validate the time-related claims at all (using disable config fields in api def).

I have added a field that gives leeway ,in seconds, in case there is a clock skew times between the signing server (Idp for instance) and the verifying server, i.e. Tyk.

Have added tests for both type of fields - disable time claims validation and added leeway to time claims validation.

@letzya letzya changed the title Add Configured leeway to JWT time validation claims in case of a clock skew (in tyk.conf) Add Configured leeway to JWT time validation claims in case of a clock skew May 30, 2018
@letzya letzya requested review from buger and dencoded May 30, 2018 01:04
@buger
Copy link
Member

buger commented May 30, 2018

@letzya since your JWT disable validation fields not released yet, and do the similar thing but worse, what do you think about removing them at all?

@letzya
Copy link
Contributor Author

letzya commented May 30, 2018

@buger It potentially could be useful for troubleshooting (when you can't change your jwt).

@buger
Copy link
Member

buger commented Jun 2, 2018

Yes, but your options replace mine. If you set very high clock skew it is same as disabling validation.

@letzya
Copy link
Contributor Author

letzya commented Jun 4, 2018

Ok, will remove it.

@letzya
Copy link
Contributor Author

letzya commented Jun 10, 2018

@buger Removed.

@letzya
Copy link
Contributor Author

letzya commented Aug 3, 2018

@buger Important PR for a client.

@letzya
Copy link
Contributor Author

letzya commented Aug 8, 2018

@buger please review. thanks

@buger
Copy link
Member

buger commented Aug 9, 2018

Looks good 👍

Will go to 2.7.2

@buger buger merged commit 000bfe4 into master Aug 9, 2018
@buger buger deleted the configured_clock_skew branch August 9, 2018 12:34
buger pushed a commit that referenced this pull request Aug 16, 2018
…k skew (#1741)

[This fix ](abb1b35
)helps to avoid jwt failure but can risk us since it won't validate the time-related claims at all (using disable config fields in api def). 

I have added a field that gives leeway ,in seconds, in case there is a clock skew times between the signing server (Idp for instance) and the verifying server, i.e. Tyk.

Have added tests for both type of fields - disable time claims validation and added leeway to time claims validation.
buger pushed a commit that referenced this pull request Sep 25, 2018
…k skew (#1741)

[This fix ](abb1b35
)helps to avoid jwt failure but can risk us since it won't validate the time-related claims at all (using disable config fields in api def). 

I have added a field that gives leeway ,in seconds, in case there is a clock skew times between the signing server (Idp for instance) and the verifying server, i.e. Tyk.

Have added tests for both type of fields - disable time claims validation and added leeway to time claims validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants