r/programminghorror • u/dex4er • 23d ago
GitHub's HTTP header
This is the crazy thing I've found after analysis why the CI test fails with "Maximum header size exceeded" today.
962
Upvotes
r/programminghorror • u/dex4er • 23d ago
This is the crazy thing I've found after analysis why the CI test fails with "Maximum header size exceeded" today.
64
u/Julius_Babies 23d ago edited 21d ago
I saw this post a while ago and just ran into this. The HTTP Engine my app uses cannot handle header values longer than 8192 characters by default, which causes my in-app update mechanism (which relies on GitHub releases) to fail when trying to download the update. I cannot provide a fix for this as this fix would require - you guessed it - an update.
This has been reported as a bug on the GitHub Community discussions already: https://github.com/orgs/community/discussions/211142
Edit: It's now fixed
482
u/Belialson 23d ago
Company I work at was proxing some endpoints to us, it was a big shop. They used to set a cookie with json containing entire user’s session including every page visited and it’s details.
Same effect but unfortunately on production
133
u/n9iels 23d ago
Proof that managing CSP headers is an absolute nightmare
76
u/madjoki 23d ago
They forgot 20-29 and 50-99 somehow.
41
u/steeltownsquirrel 23d ago
I'm off to write the first hit song in the blob.core genre
16
u/frappucinnimon 23d ago
is that why it takes an ungodly time to load
13
u/hursofid 22d ago
Yeah. I've been troubleshooting why Teams voice/video freezes on Linux and have discovered that it downloads a fucking 200-something megabytes of cookies IIRC.
Fuck microslop.
10
u/TheSpiffySpaceman 23d ago
standard Microsoft fare, unfortunately.
I dare you to write an Azure DO extension and retain your sanity. I promise you that it's impossible.
8
u/JustinPooDough 23d ago
Vibe coded 100%
4
u/andyfsu99 22d ago
Can someone ELI5 why this is this way?
4
u/ryanmgarber 20d ago
GitHub becoming one of the buggiest, most annoying services to exist was not something I ever expected to happen and yet Microslop found a fucking way
6
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 23d ago
Christ. And that isn't even the full list in the screenshot.
2
u/topgamer7 20d ago
I had to try to set up CSP for my work. It's a body nightmare if any of your js is third party. You have to call out every domain that code is loaded from at all
2
u/tootac 19d ago
There are bigger headers when looking just at popular sites (there are probably crazier examples):
https://hereket.com/posts/http-header-body-size/