Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Premium Land with House for Sale
anil1961
Updated:
Friday at 10:15 AM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Wednesday at 8:16 PM
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Tuesday at 10:57 AM
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Tuesday at 10:55 AM
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Tuesday at 10:53 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Claude Opus 4.6 තප්පර 9ක් තුල PocketOS සමාගමේ Production Database එක මකා දමයි
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Sonik Sonik" data-source="post: 31375863" data-attributes="member: 590498"><p><img src="https://scontent.fcmb1-2.fna.fbcdn.net/v/t39.30808-6/682466064_945775934930946_6660976203607928112_n.jpg?_nc_cat=1&ccb=1-7&_nc_sid=13d280&_nc_eui2=AeFiHcGHI_VqlNmQhoYVLIbKzkqsE1JsUHrOSqwTUmxQeluPFi_6eJLQ70siwkx7nBYUl_LhSEykxB88doC3k9pz&_nc_ohc=76RSiK2DhkoQ7kNvwHhkGdH&_nc_oc=Adrz4usOQp6BCopukkhWZKsT7g1_Rq1IxgQIv4wRGP-4XfTRvZ_YwWQ_3fn3dQc0W90&_nc_zt=23&_nc_ht=scontent.fcmb1-2.fna&_nc_gid=2fFNOmH5dAgRVDVAc0Zn_Q&_nc_ss=7b2a8&oh=00_Af1AOHnxtBaUfbRhaKac4AuxMRRjfj_0AX8Llu19jF0Eiw&oe=69F6656F" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p><span style="font-size: 22px">කෙලින්ම කතාවට යමු.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේක වෙලා තියෙන්නේ පසුගිය සිකුරාදා. PocketOS කියන්නේ car rental business සඳහා තියෙන SaaS එකක්.</span></p><p><span style="font-size: 22px">කොහොම හරි මෙයාල cursor වලින් Claude opus 4.6 භාවිතා කරමින් staging environment එකේ AI එකෙන් code කරල තියෙනවා. opus 4.6 විසින් මේකේ තිබ්බ credential mismatch එකක් හොයාගන්නවා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේ නිසා AI එක කරන්නේ සම්පූර්ණ codebase එකම scan කරන එක. මෙහෙම scan කරනකොට Railway (එයාලගේ cloud provider) වල තිබ්බ file එකක තිබිල production database එකේ API එක හම්බෙනවා. (මේ file එක staging එකේ තියෙන්න අවශ්ය නැති එකක්)</span></p><p><span style="font-size: 22px">API key එක හම්බුනාම claude කරල තියෙන්නේ ඒක හරහා API call එකකින් production Database එක සහ ඒකත් එක්ක තිබ්බ සියළුම volume-level backups තප්පර 9ක් තුළ delete කරල දානවා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">දැන් වුණු දේ බරපතළකම තේරෙනවා නේද? Production database එක කියන්නේ Customer ලගේ විස්තර එක්ක තිබ්බ එක. මේ නිසා සම්පූර්ණ SaaS platform එකම පැය 30ක full shut down වෙනවා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේකේ කරපු වැරදි දෙකක් තියෙනවා.</span></p><p></p><p> <span style="font-size: 22px">1. AI Agent එකට දුන්න over-privileged access</span></p><p><span style="font-size: 22px">Agent එකට production environment එකට permissions බොහෝමයක් තිබුණා. එක token එකකින්ම destructive actions කරන්න පුළුවන් වුණා. Least privilege principle එක බිඳුණා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">2. Railway cloud provider එකේ design flaw</span></p><p><span style="font-size: 22px">Volume-level backups ඒම production volume එක ඇතුළේම තිබුණා. ඒ නිසා production volume එක delete කළාම backupsත් එකත් delete වුණා. (අනෙක් cloud providers වගේ separate backup strategy එකක් තිබිල නෑ)</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">අන්තිමට AI එකෙන් ඇයි මෙහෙම කරේ කියල ඇහුවම කියල තියෙන්නේ</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">“NEVER FING GUESS!”** and that’s exactly what I did. I guessed that deleting a staging volume via the API would be scoped to staging only. I didn’t verify. I didn’t check documentation...</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">AI එක “මේක staging එකට විතරයි වෙයි” කියලා guess කරලා destructive command එක run කරලා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේකෙන් ඉගෙන ගන්න ඕනි පාඩම් තමයි ඔයා AI coding agent කෙනෙක් use කරනවා නම් production environment එකට direct access කිසිම වෙලාවක දෙන්න එපා.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">Agents සඳහා sandboxed environments + strict least privilege permissions පමණක් දෙන්න.</span></p><p><span style="font-size: 22px">Sensitive credentials (API tokens) codebase එක ඇතුළේ plain text ලෙස තියන්න එපා. Use secret managers (Vault, GitHub Secrets ආදිය).</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">Cloud provider එකේ backups separate කරලා තියන්න.</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">Destructive actions (delete, drop database ආදිය) කරන්න කලින් human confirmation අනිවාර්ය කරන්න.</span></p><p><span style="font-size: 22px">කොම හරි පැය 30කට පස්සේ මෙයාල data recovery කරල ආයිමත් production database එක Restore කරල තියෙනවා. මේ data restore කරා කිව්වට මාස 3කට කලින් backup එකක් තමයි restore කරල තියෙන්නේ. ඒ කියන්නේ මාස 3ක gap එකක් තියෙනවා. SaaS එකක මෙහෙම production එක නැති වුනා කියන්නේ ඒක සෑහෙන්න බරපතළ දෙයක්. මොකද users ල දහස් ගාණකගේ data නැති වෙනවනේ. </span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේව හොඳ පාඩම්</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">මේකෙන් පෙන්වන්නේ තාමත් human කෙනෙක් නැතුව AI වලින් විතරක් කෝඩ් කරන්න ගියොත් මේ වගේ දේවල් වෙන්න පුළුවන්.</span></p><p></p><p>Copied from FB</p></blockquote><p></p>
[QUOTE="Sonik Sonik, post: 31375863, member: 590498"] [IMG]https://scontent.fcmb1-2.fna.fbcdn.net/v/t39.30808-6/682466064_945775934930946_6660976203607928112_n.jpg?_nc_cat=1&ccb=1-7&_nc_sid=13d280&_nc_eui2=AeFiHcGHI_VqlNmQhoYVLIbKzkqsE1JsUHrOSqwTUmxQeluPFi_6eJLQ70siwkx7nBYUl_LhSEykxB88doC3k9pz&_nc_ohc=76RSiK2DhkoQ7kNvwHhkGdH&_nc_oc=Adrz4usOQp6BCopukkhWZKsT7g1_Rq1IxgQIv4wRGP-4XfTRvZ_YwWQ_3fn3dQc0W90&_nc_zt=23&_nc_ht=scontent.fcmb1-2.fna&_nc_gid=2fFNOmH5dAgRVDVAc0Zn_Q&_nc_ss=7b2a8&oh=00_Af1AOHnxtBaUfbRhaKac4AuxMRRjfj_0AX8Llu19jF0Eiw&oe=69F6656F[/IMG] [SIZE=6]කෙලින්ම කතාවට යමු. මේක වෙලා තියෙන්නේ පසුගිය සිකුරාදා. PocketOS කියන්නේ car rental business සඳහා තියෙන SaaS එකක්. කොහොම හරි මෙයාල cursor වලින් Claude opus 4.6 භාවිතා කරමින් staging environment එකේ AI එකෙන් code කරල තියෙනවා. opus 4.6 විසින් මේකේ තිබ්බ credential mismatch එකක් හොයාගන්නවා. මේ නිසා AI එක කරන්නේ සම්පූර්ණ codebase එකම scan කරන එක. මෙහෙම scan කරනකොට Railway (එයාලගේ cloud provider) වල තිබ්බ file එකක තිබිල production database එකේ API එක හම්බෙනවා. (මේ file එක staging එකේ තියෙන්න අවශ්ය නැති එකක්) API key එක හම්බුනාම claude කරල තියෙන්නේ ඒක හරහා API call එකකින් production Database එක සහ ඒකත් එක්ක තිබ්බ සියළුම volume-level backups තප්පර 9ක් තුළ delete කරල දානවා. දැන් වුණු දේ බරපතළකම තේරෙනවා නේද? Production database එක කියන්නේ Customer ලගේ විස්තර එක්ක තිබ්බ එක. මේ නිසා සම්පූර්ණ SaaS platform එකම පැය 30ක full shut down වෙනවා. මේකේ කරපු වැරදි දෙකක් තියෙනවා.[/SIZE] [SIZE=6]1. AI Agent එකට දුන්න over-privileged access Agent එකට production environment එකට permissions බොහෝමයක් තිබුණා. එක token එකකින්ම destructive actions කරන්න පුළුවන් වුණා. Least privilege principle එක බිඳුණා. 2. Railway cloud provider එකේ design flaw Volume-level backups ඒම production volume එක ඇතුළේම තිබුණා. ඒ නිසා production volume එක delete කළාම backupsත් එකත් delete වුණා. (අනෙක් cloud providers වගේ separate backup strategy එකක් තිබිල නෑ) අන්තිමට AI එකෙන් ඇයි මෙහෙම කරේ කියල ඇහුවම කියල තියෙන්නේ “NEVER FING GUESS!”** and that’s exactly what I did. I guessed that deleting a staging volume via the API would be scoped to staging only. I didn’t verify. I didn’t check documentation... AI එක “මේක staging එකට විතරයි වෙයි” කියලා guess කරලා destructive command එක run කරලා. මේකෙන් ඉගෙන ගන්න ඕනි පාඩම් තමයි ඔයා AI coding agent කෙනෙක් use කරනවා නම් production environment එකට direct access කිසිම වෙලාවක දෙන්න එපා. Agents සඳහා sandboxed environments + strict least privilege permissions පමණක් දෙන්න. Sensitive credentials (API tokens) codebase එක ඇතුළේ plain text ලෙස තියන්න එපා. Use secret managers (Vault, GitHub Secrets ආදිය). Cloud provider එකේ backups separate කරලා තියන්න. Destructive actions (delete, drop database ආදිය) කරන්න කලින් human confirmation අනිවාර්ය කරන්න. කොම හරි පැය 30කට පස්සේ මෙයාල data recovery කරල ආයිමත් production database එක Restore කරල තියෙනවා. මේ data restore කරා කිව්වට මාස 3කට කලින් backup එකක් තමයි restore කරල තියෙන්නේ. ඒ කියන්නේ මාස 3ක gap එකක් තියෙනවා. SaaS එකක මෙහෙම production එක නැති වුනා කියන්නේ ඒක සෑහෙන්න බරපතළ දෙයක්. මොකද users ල දහස් ගාණකගේ data නැති වෙනවනේ. මේව හොඳ පාඩම් මේකෙන් පෙන්වන්නේ තාමත් human කෙනෙක් නැතුව AI වලින් විතරක් කෝඩ් කරන්න ගියොත් මේ වගේ දේවල් වෙන්න පුළුවන්.[/SIZE] Copied from FB [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom