Uh oh!
There was an error while loading. Please reload this page.
novnc: Add source IP check - #4736
Conversation
yadvr
commented
Mar 1, 2021
This looks like a good security fix, can we get this in 4.15 if applicable @weizhouapache ? |
weizhouapache
commented
Mar 1, 2021
@rhtyd |
shwstppr
commented
Mar 1, 2021
+1 for having it in 4.15 |
DaanHoogland
left a comment
There was a problem hiding this comment.
two bits i'd like to see in separate methods, but code looks good
DaanHoogland
commented
Mar 1, 2021
+1 for moving to 4.15 |
yadvr
commented
Mar 2, 2021
@weizhouapache can you change base branch of the PR and rebase to 4.15? |
ec3c8e5 to
892b898Compareweizhouapache
commented
Mar 2, 2021
@rhtyd done. |
yadvr
commented
Mar 2, 2021
thnx @weizhouapache |
blueorangutan
commented
Mar 2, 2021
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 2, 2021
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2855 |
yadvr
commented
Mar 2, 2021
@blueorangutan test |
blueorangutan
commented
Mar 2, 2021
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Mar 3, 2021
Trillian test result (tid-3638)
|
yadvr
commented
Mar 3, 2021
@shwstppr can you do manual novnc check with a built env to see if novnc work (basic checks wrt this PR). |
shwstppr
commented
Mar 5, 2021
@blueorangutan package |
blueorangutan
commented
Mar 5, 2021
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 5, 2021
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2867 |
blueorangutan
commented
Mar 6, 2021
Trillian test result (tid-3668)
|
davidjumani
left a comment
There was a problem hiding this comment.
LGTM. Would it be a good idea to inform the user why the connection failed ?
* novnc: Add client IP check for novnc console in cloudstack 4.16 * novnc ip check : Fix restart CPVM or mgt server does not update novnc param * novnc ip check: move to method
* novnc: Add client IP check for novnc console in cloudstack 4.16 * novnc ip check : Fix restart CPVM or mgt server does not update novnc param * novnc ip check: move to method
* novnc: Add client IP check for novnc console in cloudstack 4.16 * novnc ip check : Fix restart CPVM or mgt server does not update novnc param * novnc ip check: move to method
Description
This PR adds a global setting "novnc.console.sourceip.check.enabled", it is false by default. If it is true, The source IP to access novnc console must be same as the IP in request to management server for console URL.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
Open a vm console,
view page source and get exact URL in ifram
access the URL from other server/ip
Current behavior:
succeeds.
New behavior
if novnc.console.sourceip.check.enabled is "false", succeeds.
if novnc.console.sourceip.check.enabled is "true", fails.