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

[security solution] resolver_generator script uses transport.request without a leading / #68388

Open
pmuellr opened this issue Jun 5, 2020 · 1 comment
Labels
Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM

Comments

@pmuellr
Copy link
Member

pmuellr commented Jun 5, 2020

I recently had to fix some usages of transport.request for alerting, where the paths we were using did not have a leading /. Turns out, that works fine locally, and in CI, but does not work in Cloud. You need to have the path start with a leading / (at least for most uses).

Did a quick search through the code base to see if there were any others, and found this one.

await client.transport.request({ method: 'DELETE', path: `_data_stream/${index}` });

Since this seems to be a stand-alone script vs code used in Kibana, I'm guessing there is no actual problem here, but perhaps it should be changed should this code get moved into Kibana at some point.

@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM
Projects
None yet
Development

No branches or pull requests

3 participants