加密项目环境命令
pinset env recipient remove
在证明当前解密权限后,从 profile 删除一个 recipient。
在 GitHub 查看源文档 ↗| 字段 | 说明 |
|---|---|
| 用途 | 在证明当前解密权限后,从 profile 删除一个 recipient。 |
| 语法与参数 | pinset env recipient remove <age1...> --profile <名称> [--cwd <路径>]。 |
| 修改状态 | 是。 以事务方式重新加密并更新配置;配置更新失败时恢复原密文。 |
| 示例 | pinset env recipient remove age1example... --profile production |
| JSON | 不支持。 |
| 关键错误 | recipient 无效、尝试删除最后一个 recipient、无匹配 identity 或重新加密/配置失败。 |
新增或删除 recipient 会改变受信任的环境策略。需同时提交 pinset.toml 和新密文,然后在每台电脑和 CI 中重新执行 pinset trust add。删除 recipient 可阻止该 identity 未来解密,但无法撤回之前已获取的明文。
/docs/commands/env-recipient-removePinset 2.1