Read --json from stdin or a file, so request bodies stay out of process arguments
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 32.3k
- Forks
- 2k
- Ø Merge
- 16 Std. 3 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googleworkspace/cli
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
googleworkspace/cli#984 ·
Maintainer antworten meist innerhalb von 1 Tag
-
auth export masks secrets by default with no warning; consumers fail later with invalid_clientOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
googleworkspace/cli#983 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Replace gemini with agyOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
googleworkspace/cli#958 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
googleworkspace/cli#921 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
googleworkspace/cli#920 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in googleworkspace/cli
Ähnliche Issues
-
area:ui bug effort:low P2 source:agent
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
akitaonrails/ai-memory#2314 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
nledford/Ladderback#809 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ElectronicWave/Elemental#265 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug low-priority
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
dividebysandwich/rust-dos#1170 ·
Maintainer antworten meist innerhalb von 1 Tag