googleapis / googleapis/enterprise-certificate-proxy

Update Error Message for Missing User Pin in Config File

Open Beginner friendly
#90 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
Go
Stars
33
Forks
22
Avg merge
21m
Merged PRs (30d)
1

Description

Currently, calling `Cred` with a json config file without a user pin throws the following error: "failed to retrieve certificate chain: unexpected EOF." The error message should be made more descriptive to show that certain fields are missing from the config.

Source: https://github.com/googleapis/enterprise-certificate-proxy/blob/main/client/client.go#L159C2-L161C3

Contributor guide

Open the contributing guide

Research direction

Start in client/client.go around lines 159-161 and reproduce Cred with a JSON config file that omits the user pin. Trace where the "unexpected EOF" message is produced and identify which missing configuration fields should be reported. Done means the failure describes the missing config fields instead of only reporting the certificate-chain error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.