Create new key submit interface
The current key submit endpoint makes things very opaque, and puts a lot of the implementation difficulty on the integrators. To make this less of a problem, we need a new key submit endpoint, this endpoint should:
- Take a keyset.
- Add an optional validity field that can be used to request keys that are valid in the future. This should be a query parameter
And returns the following information:
- Valid from: The time the key can be used from. Now + 12 hours (validityStart in keyServer.go)
- Valid to: the time the key can be used until. Now + 96 hours for tests, and left blank for vaccines
- Refresh at: the approximate time the next key should be refreshed. Now + 72 hours for tests and left blank for vaccines
Edited by Dion Bramley