- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
Incompetent-source!
Security through obscurity is not security. I see no reason why source maps should be unavailable.
depends.
if we’re talking about a personal website nobody will care. if you are a multibillion company and there’s the risk that literally anyone can create a 1:1 clone of your services… yeah that’s a bit of a trouble
Omitting source maps doesn’t prevent that.
no it doesn’t, and I am very aware that if anything runs on someone’s computer then it can get replicated. but it gets slightly harder, also to reverse-engineer it or find potential fallacies. as well as source maps on prod are just a waste of bandwidth
Dunno, this “harder” argument while valid sounds just like false security. That’s why I don’t see much weight in it.
As for bandwidth, source maps are not automatically pulled from server, so it also seems like a false issue to me.
Because source maps show how shitty your organization’s code and overall engineering practices are.
Ding ding ding
Open source code is usually quite nice and well done because money pressure is way less of an issue and everyone knows people will be looking at your code
If you look at the casual code that I have shamelessly made public on my GitLab, that might change your mind on that.
That’s probably also why development is usually really slow and most maintainers can’t keep up/give up.
Nope, it is simply because they are overwhelmed. Either it’s too much work to do after your day job or just too much work for one person.
Our international teams kept enabling sourcemaps and I just had devops lock the directory to vpn access only 🤷
I know sourcemaps aren’t the end of the world as it’s all client side code that lives on the clients computer but it just feels dirty
And now the source code is part of copilot
SVELTE 🥹 (im very happy to see svelte)
Also I’m scared that this person may be risking their github account by posting this, I dunno if it’s legal to “distribute” apples website code yourself. If not, best hope they dont ban your whole account.
I mean… They kinda distributed it themselves /s
Or even sue them
we love svelte
Depending on the exact level of stupidity clinging to the judge on that day, some jurisdictions might consider this “hacking.”
One case from the states that was luckily dismissed: https://uk.pcmag.com/security/136282/missouri-gov-goes-after-reporter-who-found-shockingly-bad-flaw-in-state-website https://www.vice.com/en/article/this-is-the-hacking-investigation-into-journalist-who-clicked-view-source-on-government-website/
Copyrighted content
archived them
on GitHub
Idk man 🧐
Run the countdown to when it’s taken downYep, it’s got a DMCA takedown now
There’s lots of content sitting just below the surface on github. Any time you make a PR on a repo, even if it gets closed or “deleted” by the repo owner, the actual link to the file itself stays there forever if you save it. Github’s own dmca repo even has warez links on it, sitting there for years.
Oh that’s cool, I had no idea! Though does that apply to content removed for DMCAs?
Usually entire repos are disabled in that case. I’ve never tried to access hidden content on a DMCA-removed repo, but I assume it would not work.
You could argue that since it’s publicly available and this repo only archives it that… I don’t know man Copyright law is confusing.
I think you can get some kind of exemption for archival purposes. I know that the Internet Archive has one. But I also know that ultimately Microsoft is responsible for the data hosted on Github, and Microsoft’s interest is to not even risk getting sued.
You’re supposed to disable source maps in prod?
Asking for a friend
if you think your source code is that precious and unique and special, go ahead and worry about it haha
Just to save on wasted bandwidth for the client (and your server) is why I would disable them.
I work for a large software corp and we generally keep them in prod because it makes debugging prod issues much easier. The browser only downloads them when the dev tools are open.
they’re different files generally, the only client that will automatically request them is a debugger.
you turn them off because you don’t want to expose your full source code. if you would be ok making your webpage git repo public then making sourcemaps available is fine.
Isn’t that just effectively un-minified? It’s just the client side code in the first place?
Comments and full-length names make the source way more accessible.
Yeah but even then they should be writing secure code anyways so it doesn’t matter if someone reads it. It’s just ui code. It’s always readable
Nah it’s more complete with comments and all. Here’s a link to a random svelte file:
https://github.com/rxliuli/apps.apple.com/blob/main/src/components/pages/SearchResultsPage.svelte
It’s already down.
This is why you self host a private Gitea instance and have it auto mirror all of your github repos.
I forked it, and my instance automatically grabbed me a forever copy.
Huh, I hate doing front end but I feel like in this team I’d manage. Shit even has comments.
Once the code is minified it’s basically unreadable by humans it’s useless this is far more readily available to anybody who may be curious about the work being done
Learning resource yeah.
Is this interesting for some reason?
It’s how the web worked before minifiers, so kinda but not really.
You just have comments and original variable/function names.
I’m sure someone will argue this helps scrapers or hackers, but really it’s not that big of a deal.
Anyone capable of doing damage already knows how to format and read minified code anyway. I do it in prod all the time when I want to test something with an override, which causes the source map to become invalid.
It help users that make websites styles!
Eg. I have a discord style for fixing their bullshit
Yo gimme a repo link, you can’t blueball us like that
Here it is https://github.com/rxliuli/apps.apple.com

Check archive.ph
I’m gonna download this to my iPhone, just in case.
Try and stop me, Tim Apple!
Gotta say, the Tim Apple line is an all timer by the orange guy.
iirc Apple music’s web ui also has sourcemaps, but I’m not subbed to apple music anymore to check. Its neat, but not really a huge blunder, nor takedown worthy.
Who cares. Comments could be interesting but AI can do this pretty well on most JS these days.
AI is still shit when it comes to obfuscated code. This is before it’s all been obfuscated and become unreadable.
I’ve tried using AI to handle obfuscated scripts and it makes way too many assumptions as to what the code is trying to achieve.
My thoughts, exactly: Why is this a big deal? Imagine the positive press it would be if Apple came out and said, “We did that on purpose. More companies should be this open!”
The security impact of this: Zero (clients are already given the code)
The reputational impact: Could be great! Or could be bad if they play this the wrong way.








