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

DNS failure because lack of privileged container #2287

Open
aviramha opened this issue Mar 4, 2024 · 0 comments
Open

DNS failure because lack of privileged container #2287

aviramha opened this issue Mar 4, 2024 · 0 comments

Comments

@aviramha
Copy link
Member

aviramha commented Mar 4, 2024

A user encountered a case where DNS resolution failed because the agent lacked the privileged flag to access the target container's /etc/resolv.conf.
In this line we just propagate the error, converting it to unknown dns failure error. I'm not sure how we can improve it but it'd be nice if we could check for permission denied then let user know somehow.

let resolv_conf = fs::read(resolv_conf_path).await?;

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

No branches or pull requests

1 participant