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

libnetwork/resolvconf: filter out ipv6 link local #2233

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Nov 7, 2024

One thing I noticed in the recent aardvark-dns bug[1] that we copy link local nameservers into the container. This makes no sense as the link local address contains a zone (interface name/index) and cannot work without it. However a container by design will have a different interface name/index so the address can never work in the normal case.

Only when we do share the host netns then we should keep it.

[1] containers/aardvark-dns#537

One thing I noticed in the recent aardvark-dns bug[1] that we copy link
local nameservers into the container. This makes no sense as the link
local address contains a zone (interface name/index) and cannot work
without it. However a container by design will have a different
interface name/index so the address can never work in the normal case.

Only when we do share the host netns then we should keep it.

[1] containers/aardvark-dns#537

Signed-off-by: Paul Holzinger <[email protected]>
Copy link
Contributor

openshift-ci bot commented Nov 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Nov 7, 2024
@Luap99
Copy link
Member Author

Luap99 commented Nov 7, 2024

@mheon PTAL

@mheon
Copy link
Member

mheon commented Nov 7, 2024

LGTM, though I wonder if it's not time to start thinking about a proper parser for resolv.conf instead of regexes

@Luap99
Copy link
Member Author

Luap99 commented Nov 7, 2024

yeah I would like that too but that seems a lot work work and this here was a simple enough fix.

@rhatdan
Copy link
Member

rhatdan commented Nov 8, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 8, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 9819e05 into containers:main Nov 8, 2024
16 checks passed
@Luap99 Luap99 deleted the resolv-ipv6-link-local branch November 8, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants