Mario Zechner on Nostr: Asked Claude to give me a Docker Compose config for Nginx that generates basic auth ...
Asked Claude to give me a Docker Compose config for Nginx that generates basic auth credentials based on an environment variable. This is what it generated.
If you forget to set the env, you get user name "admin" and password "admin". Not entirely obvious on first sight.
How many people will just copy & paste such things, me included? LLMs will do so much harm.
Published at
2024-11-29 23:07:51Event JSON
{
"id": "6bda99671c747db7110a4a1d5be9ba2b0c123d816661a760122098a62d1e231c",
"pubkey": "be81b496ea025894275a88346ffbf7d217a8886f108185e401387647eff089b4",
"created_at": 1732921671,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/568/753/016/617/605/original/6dd9f6abb30e39da.png",
"m image/png",
"dim 1340x846",
"blurhash U05E]W~Wi]VrxbxaoJjY9ERi%Mxu-;WAjZoM"
],
[
"proxy",
"https://mastodon.gamedev.place/users/badlogic/statuses/113568754657637140",
"activitypub"
]
],
"content": "Asked Claude to give me a Docker Compose config for Nginx that generates basic auth credentials based on an environment variable. This is what it generated.\n\nIf you forget to set the env, you get user name \"admin\" and password \"admin\". Not entirely obvious on first sight.\n\nHow many people will just copy \u0026 paste such things, me included? LLMs will do so much harm.\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/568/753/016/617/605/original/6dd9f6abb30e39da.png",
"sig": "52a4442dc3c63cfb662c7668bcd2fd5a523c43c462ba544c83d9cdd996164613572ede7bafae07c35be452c75e0eefd164ce63a6af6943b220bd525c1c721667"
}