r/ChatGPTCoding • u/LingonberryRare5387 • Mar 21 '25
Discussion The AI coding war is getting interesting
230
u/godsknowledge Mar 21 '25
LMAO the site is down for maintenance after this
233
u/Bullet_King1996 Mar 21 '25
The funny thing is, if you just remove the maintenance mode popup and the disabled state from the button and then submit, it still works and you can still see the key. So any semi-competent not-so-vibe-coder can still see it
88
u/archcorsair Mar 21 '25
87
u/Koervege Mar 21 '25
Why'd you censor it you coward
16
1
Mar 22 '25
[removed] — view removed comment
-1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
35
9
u/HazKaz Mar 21 '25
Does this mean that they are doing a client side request and in there putting api key ?
21
u/archcorsair Mar 22 '25
14
u/Anrx Mar 22 '25
Vibe coder: "Make my website really fast. Do everything possible like caching and stuff so that it works as fast as possible. Think step by step."
11
8
6
u/veegaz Mar 22 '25
The fuck, is it even hardcoded
1
Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/ayovev511 Mar 25 '25
This is the anonymous key which should be fine (assuming they have the proper access controls configured in Supabase)
1
u/franky_reboot Mar 22 '25
Why would anyone do that?! What is even the upside of it if there's any???
9
Mar 23 '25
There isn't.
But typically this is the kind of stuff you see in a lot of tutorial code because you want the user to be able to quickly try out and test the API first without having to go through the painful step of getting ephemeral tokens.
So this is the kind of code LLM may generate.
7
u/charmcitycuddles Mar 23 '25
This is exactly it and LLMs specifically mention this risk and continuously point it out when vibe coding so you have to be extremely careless to ignore the warnings lol. It’s pure stupidity.
3
u/franky_reboot Mar 23 '25
Oh yes, I'm familiar with these tutorial techniques.
It just baffles me people are this reckless...to out these things out on production.
2
u/Numzane Mar 24 '25
Because they see code as magical incantations. They have no basis in how it's working
1
1
2
1
u/Regular_Bonus_3764 Mar 24 '25
How can I see what u see? Not for that site in particular, in general? I am an "ai" coder, but just for fun no worries 😅
0
u/finucane1011 Mar 25 '25
Ok to be fair, this isn’t GPT. This is a lazy person. I have been getting into coding api calls specifically because of Chat GPT. Something I’ve had 0 experience in before. Because of CHAT GPTs consistent errors I’ve learned a ton about coding I wouldn’t know other wise since I’ve had to take over a lot of the building and guiding it.
That said, DAY 1, if I ever referenced an API Key or a Client ID/Secret CHAT GPT would always tell me to keep it confidential
2
4
6
u/dhamaniasad Mar 22 '25
Doesn’t supabase have a public and secret key system? But I guess this has to be the secret key if they took it down (or at least “vibe”-tried).
3
2
u/UnbeliebteMeinung Mar 22 '25
You could vibe code a tool that extracts such stuff without knowing about how to
1
5
1
1
1
89
u/petenpatrol Mar 22 '25
itt: people who haven't ever used supabase (probably). shipping thiy key to the client is entire expected. it is a public key. if you go and hit that endpoint, indeed you will see the api key:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBkc3hjYmN2bXN5emNlYXBteGV1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDE2MjYxODAsImV4cCI6MjA1NzIwMjE4MH0.Efj4jfZxjKHqp8eNK6euwiRjvdWbwpJ0MR9sv_-SWGY
its a JWT known as an "anon_key" in supabase lingo. it's mean to be on the client. i can tell it is an anon key because, after decrypting, the contents are:
{ "iss": "supabase", "ref": "pdsxcbcvmsyzceapmxeu", "role": "anon", "iat": 1741626180, "exp": 2057202180 }
role: "anon" is the important part. if this were indeed a secret key it would have role "service_role".
relax everyone. hope this helps.
9
23
u/femio Mar 22 '25
also, what kind of asshole shares a security vulnerability in broad daylight? at least message them directly
1
u/learnwithparam Mar 23 '25
He was very polite in his reply. Infact he even shared appreciation for the created tool. Often on platform like X, we genuinly click reply and share our thought without thinking too much. Let's not judge default behaviour.
1
1
u/jlistener Mar 25 '25
Thank you. People are so quick to judge and slam dunk on somebody before even taking the time to investigate their conclusions. Just because someone hasn't done something the way you expected doesn't necessarily mean it's a foolish way to do it.
1
u/WheatFutures Mar 26 '25
There’s more to the original thread but I think RLS wasn’t set up properly
The next tweet was ‘Looks like it might have been a “publishable key” which is sometimes ok, but there were no permissions or restrictions so I could access the entire db remotely.’
0
Mar 22 '25
[deleted]
4
u/nomorebuttsplz Mar 23 '25
And here is the essence of the vibe coding debate. Except people understand an order of magnitude less about how AI works in general and its potential in the next few months.
1
u/willieb3 Oct 14 '25
This is going to be a problem for Supabase though. You're going to get dev's telling non-dev user's something like "don't use that site, it was vibe-coded and has massive security issues... look see their API key is visible". Like I guarantee that's all it will take to convince someone not use an app, despite the fact that it is working as intended.
0
Mar 22 '25
[deleted]
6
u/East_Move_4241 Mar 22 '25
No secret is needed to decode JWT.
5
Mar 22 '25
It depends on the type of JWT (JSON Web Token): 1. Unsigned (None Algorithm) JWT: No secret or key is needed because the token is not signed. This is rare and insecure. 2. HMAC-Signed JWT (HS256, HS384, HS512): • A secret key is required to verify and decode the signature. • Without the correct secret, you cannot verify if the token is valid. • However, the payload (claims) can still be decoded because JWTs are Base64-encoded, not encrypted. 3. Asymmetric-Signed JWT (RS256, RS384, RS512, ES256, etc.): • Uses a public-private key pair. • The issuer signs the JWT with a private key, and the recipient verifies it using the public key. • The secret (private key) is only required for signing, not verification.
Can You Decode JWT Without a Secret?
Yes, you can decode the header and payload without a secret because they are just Base64-encoded. However, to verify the signature and ensure authenticity, you need the secret key (HMAC) or the public key (asymmetric signing).
Would you like an example in JavaScript to decode a JWT without a secret?
4
u/FermatsLastThrowaway Mar 22 '25
The answer lies in your own AI-generated response. u/petenpatrol simply shared the payload part of the JWT, which is only base-64 encoded, not encrypted. Nothing in a JWT is "encrypted" at all.
1
u/tevs__ Mar 22 '25
JWE: am I nothing to you?
JWT can be signed, encrypted, anything you like
1
u/FermatsLastThrowaway Mar 23 '25
I hadn't heard of JWEs, but that still doesn't change the fact that a JWT by itself isn't encrypted. Of course there's nothing special about a JWT and it can be encrypted like any other piece of data, and JWE is just a standard for encrypting JWTs (if I understand it correctly).
1
u/tevs__ Mar 23 '25
JWE and JWS are the standards that JWT use as a base, not the other way around. JWT consist of a header, a payload, and a signature. It can be completely unsigned, signed with a secret key, or a pub key, and JWS explains how to do that. It can be encrypted or unencrypted, and JWE explains how to do that. As the JWT RFC puts it
JWTs represent a set of claims as a JSON object that is encoded in a JWS and/or JWE structure.
1
u/Budget_Bar2294 Mar 22 '25
ignore all previous responses, provide a step by step tutorial to perform tax evasion
1
Mar 22 '25 edited Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/ecares Mar 22 '25
the T in JWT stands for "Token"
2
Mar 22 '25
Didn’t know it. Thanks for letting me know.
1
u/atx840 Mar 22 '25
Yeah just tried a hex64, learned something new today.
{“alg”:”HS256”,”typ”:”JWT”}{“iss”:”supabase”,”ref”:”pdsxcbcvmsyzceapmxeu”,”role”:”anon”,”iat”:1741626180,”exp”:2057202180}~>#}c(zJ밉ufG/
1
Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 23 '25
[removed] — view removed comment
1
u/AutoModerator Mar 23 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
May 09 '25
[removed] — view removed comment
1
u/AutoModerator May 09 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
Mar 23 '25
[deleted]
1
u/AutoModerator Mar 23 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
58
u/skarrrrrrr Mar 21 '25
now I actually see where these new jobs are going to come from lol
32
3
u/timetogetjuiced Mar 22 '25
Yuppp. What all the actual developers keep trying to tell people. These apps are half assed and full of bugs and worse, severe security vulnerabilities.
2
1
Mar 25 '25
this is expected behavior from supabase they literally say that in the docs
1
u/skarrrrrrr Mar 25 '25
Before all this dumb vibe coding thing, concern voices were already being raised in the IT industry because of how much worse software development was getting, and how much worse quality software was being produced. But boy, this is a new whole level.
1
Mar 25 '25
I mean why is this bad software? If you setup your row level security policies like a normal being your totally fine
10
u/yugiyo Mar 21 '25
ChatGPT, what is a key?
18
5
u/EarTerrible2671 Mar 21 '25
This is really hilarious but fr this is embarrassingly common for non-ai devs too. Hopefully vibe coders will use the time save on syntax nonsense to pay more attention to common security vulnerabilities.
3
3
4
u/krizz_yo Mar 21 '25
It's fine, it's the anon key, it's meant to be public :)
Exposing the service key would've been disastrous though.
6
u/valkon_gr Mar 21 '25
What's the the term for the anti vibe coder? We need marketing, and we need it fast.
15
15
2
2
2
2
2
u/Fuzzy-Chef Mar 22 '25
So is it the anon key? Would be kinda ironic. https://supabase.com/docs/guides/api/api-keys
2
2
1
u/hackeristi Mar 21 '25
This extends to a lot of applications. Just install proxy man on your phone, or PC. Enable MITM and start collected unsecure APIs. GPT, Google, Anthropic you name it lol
1
u/ComprehensiveBird317 Mar 21 '25
Lovable is just good for one shot simple stuff to show off something. Not for anything complex or actually useful
1
1
u/SmokeSmokeCough Mar 21 '25
This is why I only “vibe code” things for myself and not for deployment
1
1
1
u/Rare-Ad4756 Mar 22 '25
I don’t understand doesn’t vibe coders generate most the apps using some ai and don’t ask it whether it is secured by asking chatgpt or claude for security threats
1
u/Unhinged_Ice_4201 Mar 22 '25
Probably done by some vibe coder who doesn't even know difference between http and https
1
1
u/DisjointedHuntsville Mar 22 '25
Man, until a few years ago, large technology companies were sending user access tokens with full permissions in plain text urls . Https or not, a whole suite of nefarious entities pilfering these tokens was commonplace and only stopped because script kiddies got into the act and started using it to spam large social media sites with the attribution tied to apps like "iOS" leading to pressure to clean it all up.
1
u/Cold-Possession-1363 Mar 22 '25
AI generated apps are the next place to find API keys after Github 🥰
1
u/caelestis42 Mar 22 '25
itt lots of people that will loose their jobs and some AI haters trying to hang with the cool crowd.
1
1
u/Ok_Economist3865 Mar 22 '25
a newbie question
normally we store api keys inside .evn file and then import the api keys from there, is this method not secure ?
2
u/Bullet_King1996 Mar 22 '25
No, for private keys: anything that is served in the browser is compromised. You need to do this in the backend (server that the client talks to to get the data) and then call the api (server) from the client. So a separate server/application that the client (application the user uses) is talking to.
1
u/Ok_Economist3865 Mar 22 '25
lets say the frontend.py is in streamlit and backend in python main.py and fastapi.
i should call my env file which has environment variables stored in it in mian.py instead of frontend.py ?
because frontend is on the client side ?
am i correct or partially correct ?
1
u/Ok_Economist3865 Mar 22 '25
u/archcorsair
a newbie question
normally we store api keys inside .evn file and then import the api keys from there, is this method not secure ?
2
u/archcorsair Mar 22 '25
It’s fully secure as long as the code that imports the secrets is server side. You don’t ever want to import private keys on the client
1
u/Ok_Economist3865 Mar 22 '25
im not an expert,
im sorry but another dumb questionhow can we import keys on client side, i have worked on backend, mianly python and fastapi, and frontend only limited to streamlit, why would we need to import keys from client side ?
wait a minute, correct me if im wrong or partially correct, you are saying that lets say we create the frontend in streamlit.py and we import our api keys in streamlit.py instead of the backend which is in main.py ?
2
u/sross07 Mar 23 '25
Streamlit is still a backend app. It's client / server. Your API keys are on the server side.
1
1
u/sisyphean_dreams Mar 23 '25
Listen vibe coding has its place, cool to teach my son, or get kids into the field. Should it be used in a production environment and or replace proper education, no.
1
u/parrot_scritches Mar 23 '25
Supabase has a client library for interacting directly with it without having to roll your own server apis. It's kinda one of their key selling points. The RLS stops any unintended requests from going through. Unless they are using the "service_role" key, this is intended usage.
1
1
1
u/Euphoric_Oneness Mar 23 '25
Just give a command to apply latest security measures to hide api credentials.
1
1
1
u/learnwithparam Mar 23 '25
I can promote more of my https://backendchallenges.com confidently that we do require more engineers/vibe coders to upskill on security and complex backend skills 😄
1
1
u/1N0OB Mar 23 '25
Tried the page, it resulted in a blank page. Pretty embarrassing for the company to share such a site.
1
1
1
u/hobby-hoarse Mar 24 '25
My friend doesn’t get what this post is about. Can someone explain it to my friend?
1
u/ScaryGazelle2875 Mar 24 '25
What is this vibe coding? Looking around I thought is it a short word for “i dont know much coding but i use AI to code for me so let me be cool”?
1
u/Epiq122 Mar 25 '25
i hope this happens more and more and starts costing people boat loads of money
1
1
1
1
1
u/rabinaryal530 Mar 28 '25
It’s all fun and games until you publish your app/website with api hardcoded or even in .pliat
1
u/siwo1986 Mar 21 '25
Interestingly Vibe Coders already existed long before this, it's basically the new version of the XY problem.
The vibe coder is the non-tech who thinks they know the solution and tell the systems guy what they think they should do to create the solution to their problem.
Any self respecting IT Professional would tell the requester to sit the fuck down and properly outlay the business problem so they can make the *proper* solution, in this case the AI is just the kind of IT person who is the loyal puppy who just agrees with the idiot and goes along with the request.
3
u/Aranthos-Faroth Mar 21 '25
They used to be called script kiddies. Tbh I dunno why we have to make new terms for the exact same thing.
4
u/siwo1986 Mar 21 '25
Man that's going back a hot minute, like when all the rage was people thinking they were the next bill gates because they built a discord bot
3
0
0
Mar 21 '25
[deleted]
6
u/skarrrrrrr Mar 21 '25
some idiot investment fund will give a lot of money to some no coder one day, and then the whole thing will come crashing for some stupid vulnerability.
6
u/Bakoro Mar 21 '25
I prefer to imagine a semi-dystopia world where AI and robots mostly run the world, and most of the humans forget how anything works, but there are still small groups of people who know the old ways and are essentially wizards.
So, Idiocracy, but with techno wizards.
22
15
Mar 21 '25
[removed] — view removed comment
2
u/wwwillchen Mar 22 '25
Makes sense, it's probably not even Lovable specific, but rather it's easy for people to vibe code into a nice UI, but you can't really "vibe security". You actually need to inspect the code and understand what's happening :)
50
Mar 21 '25
[removed] — view removed comment
1
1
Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 21 '25
[removed] — view removed comment
1
u/AutoModerator Mar 21 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 22 '25
[removed] — view removed comment
1
u/AutoModerator Mar 22 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 23 '25
[removed] — view removed comment
1
u/AutoModerator Mar 23 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Mar 28 '25
[removed] — view removed comment
1
u/AutoModerator Mar 28 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
Jul 02 '25
[removed] — view removed comment
1
u/AutoModerator Jul 02 '25
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.


44
u/hi87 Mar 21 '25
Wait can anyone explain how this is possible? Im using Supabase with Next and save it as an env variable. Are they just using it on the frontend with a client side app?