letsencrypt / letsencrypt/boulder

Add 'default' tag to component configuration structs

Open
#6,768 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.