-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Preface: we're thinking about what a gorilla/sessions v2 would look like. This naturally extends to securecookie, which provides a lot of the underlying implementation.
Key areas for improvement in v2:
- Simplify the error interfaces: multi-error and the error types are overly complex and lead to a lot of error-handling code downstream. Generalizing to user-error (and making it harder to provide bad keys and input!), authentication error (crypto) and data error (marshalling bugs) should be enough.
- Replace AES-CTR + HMAC-SHA-256 with XSalsa20Poly1305 (via
nacl/secretbox). This is an AEAD construct that provides encryption+authentication together, securely. - Make the key rotation interface better (variadic is confusing: move to an Option struct)
- Keep all of the great fuzzing tests.
Metadata
Metadata
Assignees
Type
Projects
Status
No status