Validate SignOptions fields against the DKIM2 specification #4
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
turscar/dkim2#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The signing API currently accepts values such as the nonce without validating them against the syntax required by the DKIM2 specification.
Is validation of these fields planned? If not, would you accept a PR that adds specification-compliant validation and returns an error for invalid values?
(from Raademar https://github.com/turscar/dkim2/issues/2)
Probably a good idea. We check parameters fairly thoroughly on mail we're validating, and it'd be nice to be more defensive against generating with bad parameters too.
Fixed in
644f756bfb, with options.Validate.