EasyEnv
Vibe 编程:从原型到生产
中级第 5 / 12 节30 分钟 · 实操

Keeping Your Product Secure

Vibe 编程:从原型到生产 课程的一部分

前面几课里,你给基础课做的那个项目加上了真正的账户、登录,以及一个可靠的信息存放处。一个产品一旦装着别人的信息,网上的陌生人就会开始来捅它。这一课不是要吓唬你。它是一份很短的清单,列着每个产品都需要锁上的那几扇门,而你锁门的方式,跟你现在造任何东西的方式一样:给 AI 提要求,并让它用大白话把每一处风险解释清楚。

大多数产品不是被天才攻破的,而是从一扇没人想起来要关的门进去的。安全风险说白了就是你的产品可以被拿来对付你或者你用户的某种途径。你不需要背一长串清单。真正的麻烦大多集中在少数几种风险上:有人给你的产品送来一段专门用来把它绕晕的输入,有人用远超真人的速度反复敲它,有人捡到了一把你随手扔在明处的密钥,或者有人上传了一个名不副实的文件。这一课接下来讲的就是这几扇门,一次一扇,外加每一扇朴素的锁法。一条不错的开场提示词,是让 AI 把你的项目过一遍:这是我的应用在做的事。像这样的应用最常见的被攻击方式有哪些,请用大白话解释。 ...

想在真实环境里学习 Vibe 编程:从原型到生产 Keeping Your Product Secure 吗?

点击下方,立即获得一台预装 Vibe 编程:从原型到生产 的 Linux 主机,跟懂你代码的 AI 导师一起完成 Keeping Your Product Secure 的实操练习。

开始这节课Keeping Your Product Secure

你将学到什么

  • Common security risks: the handful that hit most products
  • API security: protecting the endpoints other software calls
  • Input validation: never trust what a user sends, check and clean it
  • Secrets management: keys and passwords in environment variables, never in code
  • File upload security: limit type and size, never trust the filename
  • Rate limiting: capping how often someone can hit your product

用你的语言阅读本课

本课程的所有课时

12 节
  1. 1Preparing Your Product20 分钟
  2. 2Building a Strong Foundation30 分钟
  3. 3Managing Users and Authentication30 分钟
  4. 4Working with Data30 分钟
  5. 5Keeping Your Product Secure30 分钟
  6. 6Testing Before Release30 分钟
  7. 7Working with Multiple AI Agents20 分钟
  8. 8Deploying to Production30 分钟
  9. 9Monitoring Your Product25 分钟
  10. 10Scaling Your Product20 分钟
  11. 11Maintaining and Improving Your Product20 分钟
  12. 12Running a Real Product45 分钟

探索其他课程

Keeping Your Product Secure - Vibe 编程:从原型到生产 (Chinese) | Engineering Courses