secret.Read panics on malformed input (missing colon or unknown proto) #26
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
nagonag
nagonag/ignore
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/cert-proxy#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
cmd/cert-proxy-client/secret/secret.go:16-19,34has two panic paths instead of returning errors.Panic 1 — missing colon in src:
If a user passes
--passout plaintext(no colon), the client crashes with an index out of range panic instead of a helpful error message.Panic 2 — unknown proto:
Fix
Both paths should return
fmt.Errorf(...)instead of panicking.AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex