certpool.go panics instead of returning an error on bad PEM #30
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#30
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
internal/shared/certpool.go:25:A corrupt, truncated, or otherwise invalid CA PEM file causes a server (or client) crash at startup rather than a clean, logged error. The caller already handles the
(pool, error)return signature.Fix
Return an error instead of panicking:
AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex