LFX Mentorship 2025_02 test task #7185
antoninbas
started this conversation in
General
Replies: 2 comments 28 replies
-
|
For submissions, please reply to this thread with the requested information |
Beta Was this translation helpful? Give feedback.
27 replies
-
|
I removed the link for past Antrea vulnerabilities (https://github.com/antrea-io/antrea/security/dependabot?q=is%3Aclosed) from the instructions. It is not actually accessible publicly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First, we'd like to thank everyone who is interested in taking part to the LFX Mentorship program with us, and we are excited to welcome new contributors to Project Antrea.
We submitted 2 projects for this iteration of the LFX Mentorship program:
In order to help us find the right candidate, we have prepared simple tasks. It's a good opportunity for you to get familiar with the project proposals, and for us to ensure that you have some of the required skills for a successful mentorship. We do not expect these tasks to take more than a couple of hours.
Remember to apply at https://lfx.linuxfoundation.org/tools/mentorship/ in addition to completing the task.
Task details
For the PacketCapture proposal (#6861)
Steps:
run(o *Options)function.klog.InfoS(look at the rest of the source code for examples).klog.InfoSis a "structured logging" primitive and lets you include key-value pairs with your log message. Your log message should include the following data: 1) your Github username, and 2) the name of the K8s Pod executing the program (antrea-agent and antrea-controller are meant to be run as Pods). Hint: You will need theenv.GetPodName()function from theantrea.io/antrea/pkg/util/envpackage.make. Again you may find it useful to refer to CONTRIBUTING.md.kubectl, dump the logs for each antrea Pod (1 controller Pod and 2 agent Pods) and copy the first 10 lines of each log to a local file at the root of the repository: (controller.txt,agent1.txt,agent2.txt). Among the log lines should be the one you added in step 3.kubectl, exec into theantrea-ovscontainer of the antrea-agent Pod (any one of them) and find out the version of OVS which is installed, using the appropriate OVS command. Write it to to a local file (ovs-version.txt) at the root of the repository. To get the OVS version, you will need to use theovs-vsctlcommand-line utility (find the documentation online).kubectl, exec into theantrea-agentcontainer of the antrea-agent Pod (any one of them) and runantctl get featuregates. Write the output to a local file (antrea-agent-features.txt) at the root of the repository.lfx-mentorshipNamespace.kubectland a YAML manifest nameddeployment.yml, create a single-replica Deployment in thelfx-mentorshipNamespace, using theantrea/toolbox:1.6container image.PacketCaptureCustom Resource (CR) to capture TCP traffic from the toolbox Pod (source) created in the previous step to external IP address 8.8.8.8 (destination). Write the CR definition to a local YAML manifest file (capture.yml) at the root of the repository and apply it usingkubectl. You will need to refer to the Antrea documentation: https://github.com/antrea-io/antrea/blob/main/docs/packetcapture-guide.md. YourPacketCaptureshould be configured as follows:SourceToDestinationkubectl, exec into the toolbox Pod and run the following bash command:for i in {1..10}; do dig +tcp @8.8.8.8 www.google.com; sleep 1; donekubectl, check the status of yourPacketCaptureCR. More precisely, runkubectl get pcap <name> -o yamland save the result to a local file (capture-status.yml) at the root of the repository. If everything went well, you should see thePacketCaptureCompletecondition understatusset to"True". if not, figure out what went wrong and go back to step 12. The status also includes afilePathfield, which indicates the location of the pcapng file storing the results of the capture. For example:filePath: antrea-agent-8lnp8:/tmp/antrea/packetcapture/packets/pc.pcapng. The file is currently stored in the filesystem of the antrea-agent Pod which ran the capture.kubectl cp. Place the local file at the root of the repository and name itcapture.pcapng.pcapngfile usingtcpdump -r(you may have to install tcpdump first), and save the output to a local file (capture.txt) at the root of the repository..txtfiles + the 3.ymlfiles + the.pcapngfile) as a single commit. All the new files should be at the root of the repository. We ask that you:antrea-lfx-mentorship-2025_02-6861.For the Renovate proposal (#7155)
Note that this task is quite open-ended. It is meant to demonstrate usage of Renovate for a Go project. Please try to keep your submission as simple as possible.
Steps:
go run. The only constraint is that the program should have an external dependency on a third-party module for which a Critical or High vulnerability was reported in the past. The dependency should actually be used by your program so pick wisely! Make sure that your program uses an older version of the dependency, which suffers from the vulnerability.Submissions
Upon completing the appropriate task(s), reply to the thread below with the following information:
Make sure that your Antrea Github repository use the correct branch name, as specified above in the task description.
For any queries, please reply reply to this discussion below or post in the
#antreachannel in the K8s Slack workspace. Do not send emails or DMs to ask for assistance, use public channels only. We are happy to provide some assistance if you get stuck or if some instructions are not clear enough.Deadlines
Task Deadline: Submissions must be completed by May 29, 5:00 PM PDT.
LFX Application Deadline: LFX applicants must submit by May 27, 5:00 PM PDT.
Beta Was this translation helpful? Give feedback.
All reactions