Skip to content

Initial validate logic and tests#31

Merged
leelynne merged 7 commits into
mainfrom
leef-validate
Aug 15, 2025
Merged

Initial validate logic and tests#31
leelynne merged 7 commits into
mainfrom
leef-validate

Conversation

@leelynne

@leelynne leelynne commented Aug 9, 2025

Copy link
Copy Markdown
Collaborator

This adds logic to enforce the VerifyProfile settings - allowed algorithms, required metadata, timing related options, etc.

@leelynne leelynne self-assigned this Aug 9, 2025
Comment thread verify.go
RequiredMetadata: []Metadata{MetaCreated, MetaKeyID},
DisallowedMetadata: []Metadata{MetaAlgorithm}, // The algorithm should be looked up from the keyid not an explicit setting.
CreatedValidDuration: time.Minute * 5, // Signatures must have been created within within the last 5 minutes
DateFieldSkew: time.Minute, // If the created parameter is present, the Date header cannot be more than a minute off.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got rid of DateFieldSkew (it was never actually used for enforcement) as this is not part of the spec and is related to an http header and not a signature component.

@leelynne
leelynne merged commit 0754708 into main Aug 15, 2025
2 checks passed
@leelynne
leelynne deleted the leef-validate branch August 15, 2025 22:13
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.

2 participants