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

backoff restarting of the agent-init when PodSecurityContext is set #3804

Closed
smehboub opened this issue Feb 21, 2025 · 0 comments · Fixed by #3803
Closed

backoff restarting of the agent-init when PodSecurityContext is set #3804

smehboub opened this issue Feb 21, 2025 · 0 comments · Fixed by #3803

Comments

@smehboub
Copy link
Contributor

smehboub commented Feb 21, 2025

Hello,

First, thank you very much for this awesome work.

Unfortunately, we won't be able to force all users in our clusters quickly enough to avoid injecting the init container to deploy telepresence and use interception.

Documentation :
https://www.telepresence.io/docs/troubleshooting/#injected-init-container-doesnt-function-properly

Also for security reasons, we recommend deploying applications with a PodSecurityContext with a high UID number.

For example :

pod.spec.securityContext:
  runAsUser: 10001

In this case the securityContext.runAsUser inherit of PodSecurityContext.runAsUser if securityContext.runAsUser is not set, so by wanting to intercept the traffic of an application, we obtain the errors :

2025-02-18 10:30:44.7234 info    Traffic Agent Init v2.21.2
2025-02-18 10:30:44.7263 error   failed to clear chain TEL_PREROUTING_TCP: running [/usr/sbin/iptables -t nat -N TEL_PREROUTING_TCP --wait]: exit status 4: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root)

2025-02-18 10:30:44.7263 error   quit: failed to clear chain TEL_PREROUTING_TCP: running [/usr/sbin/iptables -t nat -N TEL_PREROUTING_TCP --wait]: exit status 4: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root)

To avoid these configuration issues, a PR could resolve this dilemma : #3803

Thanks in advance.
Rgs

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 a pull request may close this issue.

1 participant