Read --json from stdin or a file, so request bodies stay out of process arguments
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start at the CLI argument handling for --json and --params, then reproduce the calendar command with stdin and a file input. Check how current JSON arguments are parsed and how CLI tests cover request bodies. Done means - reads stdin, @path reads a file, existing inline input still works, and request contents no longer appear in process arguments.
由索引模型根据 Issue 内容生成。
描述
Request bodies go in --json '<string>', so while the command runs, whatever is in them shows to every user on the machine through ps or /proc/<pid>/cmdline. For a calendar event that's the title, the description and the guest emails.
Could --json (and ideally --params) accept - to read from stdin, or @path to read a file, like curl's -d @file?
gws calendar events insert --params '{"calendarId": "primary"}' --json - < event.json
Context: I maintain an Omarchy calendar plugin that creates and edits events through gws, and a marketplace security review flagged this. I checked 0.13.2 and the changelog up to 0.22.5 and couldn't find a way around it, only the modelarmor helper reads stdin. If that approach works for you I can open a PR.
- 主要语言
- Rust
- 星标
- 32.3k
- 派生
- 2k
- 平均合并
- 16 小时 3 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleworkspace/cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
googleworkspace/cli#984 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
googleworkspace/cli#983 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
googleworkspace/cli#958 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
googleworkspace/cli#921 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
googleworkspace/cli#920 ·
维护者通常 1 天内回复
查看 googleworkspace/cli 的全部 Issue
相似的 Issue
-
area:cli area:security bug priority:medium
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
status: new topic: ga4gh-sdk type: bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
comp-rbac
难度 2/5 1-3 小时 新手友好度 68/100
ClickHouse/ClickHouse#131875 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
bug(python): read_transaction raises TypeError on a Rewrite with rewritten indices可能已有人在做 @Borg93 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
lance-format/lance#11117 ·
维护者通常 2 天内回复