Skip to content

FEAT: public-key endpoint accepts optional date for historical key lookup#3

Open
YaroslavVlasenko wants to merge 2 commits into
SWAN-community:mainfrom
51Degrees:feature/owid-creator-date
Open

FEAT: public-key endpoint accepts optional date for historical key lookup#3
YaroslavVlasenko wants to merge 2 commits into
SWAN-community:mainfrom
51Degrees:feature/owid-creator-date

Conversation

@YaroslavVlasenko

@YaroslavVlasenko YaroslavVlasenko commented Jun 18, 2026

Copy link
Copy Markdown
  • Adds an optional date (minutes since 2020-01-01 UTC) to OwidController.GetPublicKey, plus a pluggable IPublicKeyStore abstraction.
  • Default ConfigurationPublicKeyStore serves the single configured key (date ignored) - existing single-key consumers are unchanged (the controller's store is optional and defaults to it). DatedKeyStore is a reference implementation of the selection rule (newest key with Created <= date).
  • 404 when no key is active at the requested date; [ApiController] returns 400 for a malformed date.

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.

1 participant