-
Notifications
You must be signed in to change notification settings - Fork 522
akamai: fix signs of from and to GET parameters #6384
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
Conversation
The initial_interval manifest option is an unsigned interval, represented as a postive time offset, but the url.params.from template was adding it unaltered to the now time, resulting in a "from" in the future. Similarly, the url.params.to template was calculating now less one minute. Fix the "from" sign and don't offset the "to" time.
🌐 Coverage report
|
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
andrewkroh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I checked the requests in the system tests and they were:
- http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?from=1685461569&to=1685547969
- http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?offset=offset1
- http://elastic-package-service_akamai_1:8080/siem/v1/configs/aaaa?offset=offset2
1685547969 - 1685461569 = 86400 sec = 24h ✅
|
Package akamai - 2.9.1 containing this change is available at https://epr.elastic.co/search?package=akamai |
The initial_interval manifest option is an unsigned interval, represented as a postive time offset, but the url.params.from template was adding it unaltered to the now time, resulting in a "from" in the future. Similarly, the url.params.to template was calculating now less one minute. Fix the "from" sign and don't offset the "to" time.
The initial_interval manifest option is an unsigned interval, represented as a postive time offset, but the url.params.from template was adding it unaltered to the now time, resulting in a "from" in the future. Similarly, the url.params.to template was calculating now less one minute. Fix the "from" sign and don't offset the "to" time.
What does this PR do?
The initial_interval manifest option is an unsigned interval, represented as a postive time offset, but the url.params.from template was adding it unaltered to the now time, resulting in a "from" in the future. Similarly, the url.params.to template was calculating now less one minute. Fix the "from" sign and don't offset the "to" time.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots
References