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

Update host machine ip #300

Merged
merged 5 commits into from
Feb 27, 2019
Merged

Conversation

jaer-tsun
Copy link
Contributor

What this PR does / why we need it:
The 169.254.169.254 IP was incorrectly used to access host machines. This change will allow those calls to work as intended after a patch is released to block non-privileged services.

Copy link
Member

@tamilmani1989 tamilmani1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test manually(doing curl) for all urls and check if its working. ipamqueryurl is not working with 168.63.129.16

cni/network/plugin/main.go Show resolved Hide resolved
Copy link
Member

@tamilmani1989 tamilmani1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaer-tsun said no one using this hostQueryURLForProgrammedVersion. Rest of the changes are tested. So approving it.

hostQueryURL = "http://169.254.169.254/machine/plugins?comp=nmagent&type=getinterfaceinfov1"
hostQueryURLForProgrammedVersion = "http://169.254.169.254/machine/plugins/?comp=nmagent&type=NetworkManagement/interfaces/%s/networkContainers/%s/authenticationToken/%s/api-version/%s"
hostQueryURL = "http://168.63.129.16/machine/plugins?comp=nmagent&type=getinterfaceinfov1"
hostQueryURLForProgrammedVersion = "http://168.63.129.16/machine/plugins/?comp=nmagent&type=NetworkManagement/interfaces/%s/networkContainers/%s/authenticationToken/%s/api-version/%s"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not tested

@jaer-tsun jaer-tsun merged commit e5f6b0d into Azure:master Feb 27, 2019
@jaer-tsun jaer-tsun deleted the updateHostMachineIP branch February 27, 2019 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants