-
Notifications
You must be signed in to change notification settings - Fork 886
feat(configmanager): SeiConfigManager v2 body — validate-passthrough (PLT-775 PR2) #3678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bdchatham
wants to merge
16
commits into
main
Choose a base branch
from
feat/configmanager-v2-body-plt775
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b8e9513
feat(configmanager): SeiConfigManager v2 body — validate-passthrough …
bdchatham b5a71b7
review(configmanager): xreview fixes (doc-drift, louder error advisor…
bdchatham 13b3a44
fix(configmanager): lint errcheck + surface validation warnings (agen…
bdchatham 9756ba4
test(configmanager): cover env-precedence home resolution (DWC-1)
bdchatham 393578d
docs(configmanager): fix stale env-case comment on TestResolveHomeDir…
bdchatham 120a683
docs(configmanager): move narrative to doc.go, trim to human-audience…
bdchatham d0bf870
test(configmanager): rich parity surface — corpus, advisory-invarianc…
bdchatham 35842d9
refactor(configmanager): named-step Apply, shared corpus, reduction doc
bdchatham bf69ff0
test(configmanager): fuzz corpusIdx as uint; de-shadow replaceInFile
bdchatham 3606e93
refactor(configmanager): log advisory diagnostics via seilog, not fmt…
bdchatham 8e3384b
refactor(configmanager): keep advisory diagnostics structured in the log
bdchatham 19d724d
fix(configmanager): recover panics in the advisory validation pass
bdchatham 16e32f4
fix(configmanager): log recovered validation panic at Error, not Warn
bdchatham 0c2b78e
test(configmanager): cover the fresh-home ErrNotExist advisory branch
bdchatham 15781a2
test(configmanager): make quoted-scalar corpus case real, fix overclaim
bdchatham 84c42e5
Merge branch 'main' into feat/configmanager-v2-body-plt775
bdchatham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // Package configmanager selects how seid loads its configuration, behind the | ||
| // SEI_CONFIG_MANAGER gate. Every manager boots the node identically; the only | ||
| // variable is an advisory validation pass that never rewrites a file and never | ||
| // refuses boot. | ||
| // | ||
| // SEI_CONFIG_MANAGER picks the manager: unset or "legacy" uses the legacy | ||
| // loader unchanged; "v2" uses the sei-config-backed manager. root.go calls | ||
| // Select once, during PersistentPreRunE. | ||
| // | ||
| // Both managers boot from the same two channels — serverCtx.Config and | ||
| // serverCtx.Viper — and v2 populates them exactly as legacy does: it re-enters | ||
| // the legacy reader on the operator's own files instead of rewriting them. Its | ||
| // validation pass is advisory because sei-config's read fidelity is still being | ||
| // hardened, and a gap in the model must not fail a valid node. | ||
| // | ||
| // The node boots on those two channels, never on the SeiConfig model; that is | ||
| // why differential tests suffice — proving v2's channels equal legacy's, which | ||
| // legacy is already trusted to boot on, is the whole correctness argument. | ||
| // | ||
| // Two things are deferred: making validation fatal, and authoring a canonical | ||
| // sei.toml to render the legacy files from (the generate path). See PLT-775 and | ||
| // the design (bdchatham-designs designs/config-manager/DESIGN.md). | ||
| package configmanager |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.