-
Notifications
You must be signed in to change notification settings - Fork 16
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
URGENT - Jira Cloud API now blocks GET with Body #143
URGENT - Jira Cloud API now blocks GET with Body #143
Comments
@raviks789 I couldn't find any usage of |
We cannot see in the code where the body is getting inserted either.
Let us know if you need any more information. If it helps, we see the body for: /rest/api/2/field |
@nilmerg I couldn't find any usage of @bmcalary-atlassian, you might be right, setting |
Hi @nilmerg @raviks789, Thanks, |
Unless, and if I'm not mistaken, the library we use doesn't do anything unusual, the patch ensures that no body is passed to http requests with method |
If I use the new RestApi.php file I got the following error with the "--host" var: And the request:
I have to set the value of "--project" to "--host", It no longer gives me errors but the request is the same:
Let me ask to Atlassian (https://community.atlassian.com/t5/Atlassian-Platform-articles/Jira-Confluence-Cloud-APIs-return-403-Error-The-request-could/ba-p/2928153), although the problem of the "--host" var is different than the 403 error· |
@scratttt Ben from Atlassian. I reviewed our Cloudfront logs and can confirm this GET request came with a BODY payload. /rest/api/2/field /rest/api/2/issue/XXXX-1234 (where XXXX-1234 is a placeholder) |
@bmcalary-atlassian could you share those logs? It would help us understand the issue better, as we are not setting the body for GET method anywhere in the code. Also, according to Jira Rest API docs (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post), Forbidden: 403 error is thrown, if the user does not have sufficient permissions to create the issue. @scratttt, you could also check if you have sufficient project permissions. |
Yes, I have. If I run the same command from another server in other country... the issue is open. |
Hello Team, old-network.csv shows logs from our Envoy proxy based solution - which is still active in a few countries. "bytes_in" is BYTES_RECEIVED from https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-dictionaries which is "Body bytes received.". GET requests bytes_in is normally zero for the extreme majority of API calls. IcingaWeb2-Jira/v1.0 is one of the few exceptions where we see a positive value. cloudfront.csv shows logs from our new AWS Cloudfront CDN. We spoke with AWS and "InvalidRequest" means the GET request had a body. I cannot share any more details from our logs. Can I suggest you perform a TLS interception with Charles, MITM Proxy, or https://github.com/monasticacademy/httptap ? |
@bmcalary-atlassian thank you for the logs and your input. It was helpful in debugging this issue. |
Cool! It's working. Thanks @raviks789. @bmcalary-atlassian you can redirect to this fix if you receive issues between Icinga2 - Jira Cloud. Thanks for the help. |
Hello Team,
Ben from Atlassian Networking.
We are rolling out AWS Cloudfront and WAF to address ongoing DDOS attacks. Rollout will be completed within 1 month.
We have detected that IcingaWeb2-Jira/v1.0 is sending 148-246 bytes/characters of (usually) json encoded body with GET requests.
We found a bit of code here
icingaweb2-module-jira/library/Jira/RestApi.php
Lines 499 to 502 in 42e6fa4
We are not exactly sure where or how in your codebase the body is being passed into this GET function, but it is. Both Cloudfront and our Envoy Proxy layer report GET's having body bytes.
We have already begun our rollout, and we already see some requests from IcingaWeb2-Jira/v1.0 being dropped by AWS.
Could you please ensure GET never sets a body.
Kind Regards,
Ben
The text was updated successfully, but these errors were encountered: