Skip to content

build(deps): Bump gaurav-nelson/github-action-markdown-link-check from 1.0.8 to 1.0.9 - #32

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/github_actions/gaurav-nelson/github-action-markdown-link-check-1.0.9
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/github_actions/gaurav-nelson/github-action-markdown-link-check-1.0.9

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 10, 2020

Copy link
Copy Markdown
Contributor

Bumps gaurav-nelson/github-action-markdown-link-check from 1.0.8 to 1.0.9.

Release notes

Sourced from gaurav-nelson/github-action-markdown-link-check's releases.

1.0.9

Commits
  • 7481451 Merge pull request #86 from TriplEight/38_newer_mlc_version
  • 411c322 test: new link to test %20
  • 4a8d49c test: needs a proper link with %20
  • 5251eff bash: update to the hot new dep version
  • e9e3efd md: add tests for URLencoded symbols
  • 53c1dda bash: update dep version
  • 28631ee Added link to 429 config options
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code labels Dec 10, 2020
@dependabot @github

dependabot Bot commented on behalf of github Dec 11, 2020

Copy link
Copy Markdown
Contributor Author

Superseded by #34.

@dependabot dependabot Bot closed this Dec 11, 2020
@dependabot
dependabot Bot deleted the dependabot/github_actions/gaurav-nelson/github-action-markdown-link-check-1.0.9 branch December 11, 2020 11:03
shumkov added a commit that referenced this pull request Aug 17, 2026
…ic (#32)

* fix(types): reject unknown vote-extension types in Commit.ValidateBasic

Every other field of a Commit is either checked by ValidateBasic or covered by the
threshold signature. The vote-extension type is neither, and proto3 enums are open,
so an undefined varint decodes into the generated enum field unchallenged and rides
through every boundary a Commit crosses.

Add the type check. Type only: an extension's contents are threshold-signed, so
they are not ValidateBasic's to police, and the content rules in
VoteExtensions.Validate() were written for a vote, where they are not signed.

ValidVoteExtensionType is placed next to VoteExtensionFromProto so the set of
dispatchable types has one home. A type accepted by one and missing from the other
would be admitted into a struct nothing can convert.

This inverts a property PR #18 deliberately pinned -- that a poison commit must
still decode from the WAL, because a rejection during WAL decode raises
DataCorruptionError and aborts catchupReplay. The inversion is safe because the
rejection moved upstream rather than merely being added: MsgFromProto calls
ValidateBasic at the p2p boundary, so a poison commit is now rejected as it arrives
and walMiddleware never has anything to write. A WAL from an older build could
still hold one, and that case is recoverable via repairWalFile. The block store,
which panics through mustDecodeCommit and has no repair path, is made safe by
verifying the commit at statesync backfill ingress -- this change's predicate, not
an assumption.

commit_extension_unbrick_test.go is rewritten rather than deleted, and states which
property it now pins and why. Two tests in commit_extension_regression_test.go
built their poison through CommitFromProto, which now rejects it; they build the
struct directly instead, because their subject is defence in depth -- what
GetCanonicalVote and VerifyCommit do on the consensus goroutine if a poison commit
arrives by a route that skips ValidateBasic.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(types): one authority for vote-extension type membership

The enum-membership question was answered in two hand-written switches that had to
be kept in step by hand, and Commit.ValidateBasic's rejections were anonymous
strings that three tests pinned by substring.

Membership now has one derivation per layer. tmproto.VoteExtensionType.IsValid
reads the generated name table, so it answers for whatever the .proto defines with
no hand-maintained case list, and (*VoteExtension).Validate uses it - the obvious
place to look for vote-extension validation now checks the type it validates.
VoteExtensionFromProto's dispatch switch is the only remaining case list, and
Commit.ValidateBasic calls it instead of mirroring it, which removes
ValidVoteExtensionType entirely. A table-driven test walks
VoteExtensionType_name and fails if a defined type has no dispatch arm.

Both rejections wrap sentinels: ErrUnknownVoteExtensionType, now owned by the proto
package and aliased in types so a rejection from either side matches one errors.Is
check, and ErrNilVoteExtension, shared with VoteExtensionsFromProto. The tests
assert with ErrorIs and EqualError rather than substrings.

The comment above the check claimed every other Commit field is checked or covered
by the threshold signature. Commit.Hash is a checksum of ThresholdBlockSignature
alone, so nothing binds the extension list's order, count or duplication; the
comment now says only what is true, and a TODO points at the tracking issue.
An INTENTIONAL note records the accepted rollback hazard of an ungated rejection.

Co-Authored-By: Claude Opus 5 <[email protected]>

* docs(types): record the accepted risks around commit extension validation

Two hazards the type check does not close, both accepted rather than fixed:
a block store poisoned before the statesync backfill gate shipped still panics
on load with no repair path, and scripts/scmigrate gates on the returned commit
instead of the error, so it can re-persist such a commit.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(types): make the conversion dispatch the sole vote-extension type gate

Drop the redundant IsValid guard from tmproto.VoteExtension.Validate: every
wire-input path reaches extensions through types.VoteExtensionFromProto's
dispatch switch before Validate can run, so the switch is the one enforcement
gate. IsValid stays as a query helper that reads the generated name table; the
cross-check test pins that the dispatch covers every .proto-defined type. The
ErrUnknownVoteExtensionType sentinel moves back to types/ as the sole
definition now that the proto package no longer returns it.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: align security markers, godocs, and operator docs with shipped behavior

- scmigrate INTENTIONAL marker: the accepted-risk rationale claimed the path
  is not part of the running node's write path; it is wired to the shipped
  'tenderdash key-migrate' subcommand. State the true rationale: the store
  already holds the record, so re-persisting adds no new exposure.
- pre-upgrade-poisoned-store marker: name all three panic surfaces
  (mustDecodeCommit, LoadSeenCommit, LoadBlock), not just mustDecodeCommit.
- mustDecodeCommit panic message: the failure is a proto->commit decode, not
  'converting commit to proto'.
- CommitFromProto godoc: a validation error does not imply a nil result;
  callers must branch on the error, never the value.
- Commit.ValidateBasic godoc: document the ErrNilVoteExtension and
  ErrUnknownVoteExtensionType sentinels callers already depend on.
- Drop private-fork issue references from comments; state the constraints
  self-containedly instead.
- UPGRADING.md: document the three operator-visible consequences of rejecting
  undefined vote-extension types (p2p rejection, startup panic on an already
  poisoned store with no repair path, rollback hazard once a future release
  adds a new extension type).

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(consensus): recover in gossip handlers, return the canonicalization error

Tightening Commit.ValidateBasic makes an already-stored commit with an
unknown extension type unreadable. The accepted risk was recorded as a
startup panic, but startup reads only the last-height seen commit and the
replay range. A commit written by statesync backfill sits below those, so
the node starts normally and the record is reached later, by a gossip
handler loading the height a peer advertised. That handler ran in a bare
goroutine while every other peer-facing path in the node recovers, so one
unreadable historical record let any peer terminate the process by naming
its height, repeatedly. Gossip handlers now recover and log, matching the
consensus reactor, the statesync reactor and the p2p client.

GenericVoteExtension.SignItem returned an error for its first fallible
call and panicked for the other two, one of which is
CanonicalizeVoteExtension. That function keeps its own list of the types
it can canonicalize, separate from the conversion dispatch this PR makes
authoritative, so a type added to the .proto with a dispatch arm but no
canonical form would pass the new gate and then panic on the consensus
goroutine. It now returns the error, which its only caller already
handles.

Drops VoteExtensionType.IsValid: it had no production caller, and both
tests using it asserted a tautology, since IsValid is the same map lookup
they iterated. The dispatch coverage test keeps its value without it.

Corrects UPGRADING.md, which promised a startup panic for the exact
population that does not get one, and adds the WAL case, where repair
rewrites only the most recent segment.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Lukasz Klimek <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Ivan Shumkov <[email protected]>
shumkov added a commit that referenced this pull request Aug 17, 2026
…ic (#32)

* fix(types): reject unknown vote-extension types in Commit.ValidateBasic

Every other field of a Commit is either checked by ValidateBasic or covered by the
threshold signature. The vote-extension type is neither, and proto3 enums are open,
so an undefined varint decodes into the generated enum field unchallenged and rides
through every boundary a Commit crosses.

Add the type check. Type only: an extension's contents are threshold-signed, so
they are not ValidateBasic's to police, and the content rules in
VoteExtensions.Validate() were written for a vote, where they are not signed.

ValidVoteExtensionType is placed next to VoteExtensionFromProto so the set of
dispatchable types has one home. A type accepted by one and missing from the other
would be admitted into a struct nothing can convert.

This inverts a property PR #18 deliberately pinned -- that a poison commit must
still decode from the WAL, because a rejection during WAL decode raises
DataCorruptionError and aborts catchupReplay. The inversion is safe because the
rejection moved upstream rather than merely being added: MsgFromProto calls
ValidateBasic at the p2p boundary, so a poison commit is now rejected as it arrives
and walMiddleware never has anything to write. A WAL from an older build could
still hold one, and that case is recoverable via repairWalFile. The block store,
which panics through mustDecodeCommit and has no repair path, is made safe by
verifying the commit at statesync backfill ingress -- this change's predicate, not
an assumption.

commit_extension_unbrick_test.go is rewritten rather than deleted, and states which
property it now pins and why. Two tests in commit_extension_regression_test.go
built their poison through CommitFromProto, which now rejects it; they build the
struct directly instead, because their subject is defence in depth -- what
GetCanonicalVote and VerifyCommit do on the consensus goroutine if a poison commit
arrives by a route that skips ValidateBasic.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(types): one authority for vote-extension type membership

The enum-membership question was answered in two hand-written switches that had to
be kept in step by hand, and Commit.ValidateBasic's rejections were anonymous
strings that three tests pinned by substring.

Membership now has one derivation per layer. tmproto.VoteExtensionType.IsValid
reads the generated name table, so it answers for whatever the .proto defines with
no hand-maintained case list, and (*VoteExtension).Validate uses it - the obvious
place to look for vote-extension validation now checks the type it validates.
VoteExtensionFromProto's dispatch switch is the only remaining case list, and
Commit.ValidateBasic calls it instead of mirroring it, which removes
ValidVoteExtensionType entirely. A table-driven test walks
VoteExtensionType_name and fails if a defined type has no dispatch arm.

Both rejections wrap sentinels: ErrUnknownVoteExtensionType, now owned by the proto
package and aliased in types so a rejection from either side matches one errors.Is
check, and ErrNilVoteExtension, shared with VoteExtensionsFromProto. The tests
assert with ErrorIs and EqualError rather than substrings.

The comment above the check claimed every other Commit field is checked or covered
by the threshold signature. Commit.Hash is a checksum of ThresholdBlockSignature
alone, so nothing binds the extension list's order, count or duplication; the
comment now says only what is true, and a TODO points at the tracking issue.
An INTENTIONAL note records the accepted rollback hazard of an ungated rejection.

Co-Authored-By: Claude Opus 5 <[email protected]>

* docs(types): record the accepted risks around commit extension validation

Two hazards the type check does not close, both accepted rather than fixed:
a block store poisoned before the statesync backfill gate shipped still panics
on load with no repair path, and scripts/scmigrate gates on the returned commit
instead of the error, so it can re-persist such a commit.

Co-Authored-By: Claude Opus 5 <[email protected]>

* refactor(types): make the conversion dispatch the sole vote-extension type gate

Drop the redundant IsValid guard from tmproto.VoteExtension.Validate: every
wire-input path reaches extensions through types.VoteExtensionFromProto's
dispatch switch before Validate can run, so the switch is the one enforcement
gate. IsValid stays as a query helper that reads the generated name table; the
cross-check test pins that the dispatch covers every .proto-defined type. The
ErrUnknownVoteExtensionType sentinel moves back to types/ as the sole
definition now that the proto package no longer returns it.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: align security markers, godocs, and operator docs with shipped behavior

- scmigrate INTENTIONAL marker: the accepted-risk rationale claimed the path
  is not part of the running node's write path; it is wired to the shipped
  'tenderdash key-migrate' subcommand. State the true rationale: the store
  already holds the record, so re-persisting adds no new exposure.
- pre-upgrade-poisoned-store marker: name all three panic surfaces
  (mustDecodeCommit, LoadSeenCommit, LoadBlock), not just mustDecodeCommit.
- mustDecodeCommit panic message: the failure is a proto->commit decode, not
  'converting commit to proto'.
- CommitFromProto godoc: a validation error does not imply a nil result;
  callers must branch on the error, never the value.
- Commit.ValidateBasic godoc: document the ErrNilVoteExtension and
  ErrUnknownVoteExtensionType sentinels callers already depend on.
- Drop private-fork issue references from comments; state the constraints
  self-containedly instead.
- UPGRADING.md: document the three operator-visible consequences of rejecting
  undefined vote-extension types (p2p rejection, startup panic on an already
  poisoned store with no repair path, rollback hazard once a future release
  adds a new extension type).

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(consensus): recover in gossip handlers, return the canonicalization error

Tightening Commit.ValidateBasic makes an already-stored commit with an
unknown extension type unreadable. The accepted risk was recorded as a
startup panic, but startup reads only the last-height seen commit and the
replay range. A commit written by statesync backfill sits below those, so
the node starts normally and the record is reached later, by a gossip
handler loading the height a peer advertised. That handler ran in a bare
goroutine while every other peer-facing path in the node recovers, so one
unreadable historical record let any peer terminate the process by naming
its height, repeatedly. Gossip handlers now recover and log, matching the
consensus reactor, the statesync reactor and the p2p client.

GenericVoteExtension.SignItem returned an error for its first fallible
call and panicked for the other two, one of which is
CanonicalizeVoteExtension. That function keeps its own list of the types
it can canonicalize, separate from the conversion dispatch this PR makes
authoritative, so a type added to the .proto with a dispatch arm but no
canonical form would pass the new gate and then panic on the consensus
goroutine. It now returns the error, which its only caller already
handles.

Drops VoteExtensionType.IsValid: it had no production caller, and both
tests using it asserted a tautology, since IsValid is the same map lookup
they iterated. The dispatch coverage test keeps its value without it.

Corrects UPGRADING.md, which promised a startup panic for the exact
population that does not get one, and adds the WAL case, where repair
rewrites only the most recent segment.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Lukasz Klimek <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Ivan Shumkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants