Skip to content

internal/witness: Enforce non-empty origin - #57

Merged
FiloSottile merged 1 commit into
FiloSottile:mainfrom
niels-moller:nisse/witness-enforce-nonempty-origin
Feb 2, 2026
Merged

internal/witness: Enforce non-empty origin#57
FiloSottile merged 1 commit into
FiloSottile:mainfrom
niels-moller:nisse/witness-enforce-nonempty-origin

Conversation

@niels-moller

Copy link
Copy Markdown
Contributor

And also fail request early if note is malformed with only a single line (no newline after origin).

@niels-moller

Copy link
Copy Markdown
Contributor Author

This still doesn't check all requirements on a valid origin line (no +, no unicode space). It would make some sense to have a torchwood.OriginIsSyntacticallyValid and call that both here and in torchwood.ParseCheckpoint.

@FiloSottile
FiloSottile merged commit 20f69ef into FiloSottile:main Feb 2, 2026
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants