Giter VIP home page Giter VIP logo

Comments (7)

eldadru avatar eldadru commented on July 23, 2024 4

@adipascu add "-p" to your command line to invoke ksniff in privileged mode

from ksniff.

jordanwilson230 avatar jordanwilson230 commented on July 23, 2024

@eldadru would this workaround help? https://github.com/jordanwilson230/kubectl-plugins#kubectl-ssh

from ksniff.

eldadru avatar eldadru commented on July 23, 2024

Hi @jordanwilson230 I finally have the time to work on this issue,
I would like ksniff to also support scratch containers so i will use similar approach to what kubectl-ssh does except I won't exec into the target container but attach to his network namespace and perform the actual sniffing on the attached container.

from ksniff.

eldadru avatar eldadru commented on July 23, 2024

Completed as part of #30 , please play with it, test it and report bugs :)

from ksniff.

adipascu avatar adipascu commented on July 23, 2024

I am getting static-tcpdump: any: You don't have permission to capture on that device on a nginx container that defaults to running as the www-data user.

I am running knsiff 1.3.1

from ksniff.

adipascu avatar adipascu commented on July 23, 2024

Thanks! @eldadru why not do it privileged by default?

from ksniff.

Ri1a avatar Ri1a commented on July 23, 2024

@adipascu add "-p" to your command line to invoke ksniff in privileged mode

Getting the following error message:

ERRO[0000] failed to create privileged pod on node: 'minikube'  error="pods \"ksniff-vjtdw\" is forbidden: violates PodSecurity \"baseline:latest\": host namespaces (hostPID=true), hostPath volumes (volumes \"host\", \"container-socket\"), privileged (container \"ksniff-privileged\" must not set securityContext.privileged=true)"
Error: pods "ksniff-vjtdw" is forbidden: violates PodSecurity "baseline:latest": host namespaces (hostPID=true), hostPath volumes (volumes "host", "container-socket"), privileged (container "ksniff-privileged" must not set securityContext.privileged=true)

K8s version: v1.23.3

from ksniff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.