-
Notifications
You must be signed in to change notification settings - Fork 780
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
ATS failure when using the URI signing plugin #8874
Comments
@Scumtron can you enable debug and add the following tag to it: PS: Tried this on master. |
@brbzull0, hello!
|
@Scumtron thanks for the details. It seems that the payload in your token is not right: {
"header":{
"typ":"JWT",
"alg":"HS256"
},
"payload":{
"exp":1654240744
}
} If you check the log you'll notice:
Issuer is null(and not present in the payload up above),
Please have a look at the token and how it's being generated. Regards, |
@dsouza93 is going to take a look at this issue. |
I did spend some time on this last week. As noted up above, found out that the |
@Scumtron have you try this fix? |
@brbzull0 Hello. No, i just added the |
ok then, the crash is gone. Can we close this issue or you still need some help around this? @Scumtron |
I have configured the URI Signing Plugin:
If JWT token is invalid - returns error 403
If JWT token is valid - returns empty response (ATS crash and restart)
Tested on ATS versions: 10.0.0, 9.1.2, 8.1.4
remap.config
map https://cache.tld/ http://src.tld/ @plugin=uri_signing.so @pparam=uri_signing.config
uri_signing.config
{ "CDN": { "iss": "CDN", "cdnistt": true, "cdniets": 30, "renewal_kid": "1", "keys": [ { "alg": "HS256", "kid": "0", "kty": "oct", "k": "1ee531596e8d" }, { "alg": "HS256", "kid": "1", "kty": "oct", "k": "1ee531596e9B" } ] } }
Crash log
The text was updated successfully, but these errors were encountered: