letsencrypt / letsencrypt/boulder
Add 'default' tag to component configuration structs
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5.8k
- Forks
- 649
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 24
Description
Our Boulder configurations have some fields that have default values. We should encode these in our configuration structs in a systematic way, using struct tags.
So for instance we might say:
type FooConfig struct {
Color string
Size int `config:"default:10"`
}
When a zero-value for a field is present, it will default to the value provided by the default struct tag, 10 in this instance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating Boulder component configuration structs and the existing configuration-loading path; done means zero-valued fields receive values from systematic default struct tags without changing explicitly configured values, with relevant tests updated or added.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100