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
fix: allow http requests towards code local engine [NEBULA-1541] #4934
Conversation
2d15383
to
aaa0f44
Compare
from the code seems like we already calling this function with baseURL cli/src/lib/plugins/sast/analysis.ts Line 72 in b2682f4
my assumption is we do not, can you maybe change this as well? I am a bit confused what is happening here if no broker in the picture? are we just failing this as |
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.
Approved with some sug and a question
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.
I am not sure I understand what you mean with this @shirlupo:
from the code seems like we already calling this function with baseURL
my assumption is we do not,
Do you mean, why do we set a default parameter (=''
)?
That is a fair question as this will clearly not work. So can localEngineUrl
be undefined? In that case we'd have to properly handle it instead of defaulting to empty string.
I am a bit confused what is happening here if no broker in the picture? are we just failing this as
Snyk Code Local Engine health is not ok
?
There is no broker in the picture either way. This is CLI connecting directly to local engine.
Where would you expect broker (server or client?) to be involved?
I meant the naming of the parameter 'baseUrl' cli/src/lib/plugins/sast/analysis.ts Line 72 in b2682f4
from Matt and Matthew's code it seems like they parse the baseUrl so calling the parameter here baseURL is odd to me
There is a call here to get the version by calling the health check no? |
Ok, I thin
Yes, directly to the local engine (via local-proxy), no broker is needed for this. |
Yep, the parameter fed to this function includes the |
yeah I meant the naming "base" is not right, that's it not biggy :) |
fb38dc6
to
5adbbed
Compare
What does this PR do?
/status
endpoint to respect the protocol of the Local Engine URL set on the org/grouphttp
andhttps
and we want to queryhttp
onlyWhere should the reviewer start?
How should this be manually tested?
Any background context you want to provide?
What are the relevant tickets?
Screenshots
Additional questions