Replies: 1 comment 5 replies
-
Hey @langovoi! 👋🏻 We already have something for that use case in the Would that fit your needs? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment
@adonisjs/encryption
allows only one secret. So if I decide to changeappKey
all encrypted values become invalid, for example encrypted cookies.OWASP has some recommendations when rotation is could be necessary: https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#key-lifetimes-and-rotation
Other solutions, for example @elysiajs, have this out-of-box for cookies: https://elysiajs.com/patterns/cookie-signature#secret
So it will be great to have rotation mechanism at
@adonisjs/encryption
level.Beta Was this translation helpful? Give feedback.
All reactions