如何在不泄密的情况下记录环境变量。
记录配置名称、用途和默认值,不暴露真实密钥。标明变量是否必需以及在哪里读取。
按任务需求调整流程。
列出变量名和应用读取位置,记录用途、必需状态和安全示例。区分明确默认值与假设,并将真实密钥排除在文档外。
- 你需要提供什么
- 已脱敏的配置名称和预期行为。
- 你会得到什么
- 不含密钥值的配置参考。
查看输入和结果。
演示用输入和输出 · 教学示例,并非 WebAct 实时运行结果
示例 个输入项
Document APP_PORT (listening port) and SMTP_PASSWORD (mail service credential). Defaults, requiredness and code locations have not been supplied.
完整示例
APP_PORT Purpose: port on which the application listens. Example: 3000 (illustrative, not a confirmed default). Default / required / code location: confirm from the application. SMTP_PASSWORD Purpose: credential for the configured mail service. Example value: <set-through-secret-configuration>. Default / required / code location: confirm from the mail integration. Keep the real credential out of shared examples and version control.
将这份输入载入提示词,再复制到 WebAct 中尝试任务。实际结果可能与示例不同。
决策与问题排查。
秘密配置文档应包含可用凭据吗?
使用占位符并解释批准的提供方式。文档应明确要求,而不泄露秘密。
为什么指南描述了应用没有使用的默认值?
追踪变量到读取位置或提供的配置。标明未知行为,不要根据变量名猜测。
使用自己的资料试一试。
将任务提示词中的示例换成你的材料。保留所需条件,再把任务复制到 WebAct。
自定义并复制任务 ↑