Lab 4: Trace a request and debug a broken QuickNotes deploy#1100
Open
danielpancake wants to merge 4 commits into
Open
Lab 4: Trace a request and debug a broken QuickNotes deploy#1100danielpancake wants to merge 4 commits into
danielpancake wants to merge 4 commits into
Conversation
Signed-off-by: danielpancake <45727078+danielpancake@users.noreply.github.com>
Signed-off-by: danielpancake <45727078+danielpancake@users.noreply.github.com>
Signed-off-by: danielpancake <45727078+danielpancake@users.noreply.github.com>
Signed-off-by: danielpancake <45727078+danielpancake@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Trace one
POST /notesend-to-end at the packet level and walk an outside-in debug of a deliberately broken QuickNotes deploy.Changes
submissions/lab4.md: Task 1 (annotated packet trace + five debugging commands + 502 reflection) and Task 2 (broken-deploy reproduction, outside-in chain, root cause, blameless postmortem).submissions/attachments/lab4/lab4-trace.txt: fulltcpdumpdecode of the captured request.Testing
Captured live in WSL2 (Ubuntu 24.04); QuickNotes was cross-compiled to a
linux/amd64binary and run inside WSL so loopback traffic was visible totcpdump -i lo.POST /notescaptured on the IPv6 loopback; the decode shows the TCP handshake ([S]/[S.]/[.]), thePOST /notes HTTP/1.1request + JSON body, theHTTP/1.1 201 Createdresponse + JSON, and the[F.]close. All five debug commands (ss,ip route,mtr,dig,journalctl) returned sensible output.:8080; the second failed withlisten tcp :8080: bind: address already in use. Outside-in chain (ps->ss->curl-> firewall ->dig) showed an all-green path with a stale instance holding the port; killing it and restarting restored/healthto200.Checklist
git log --show-signature)submissions/lab4.mdupdated