parse-dashboard
parse-dashboard copied to clipboard
Dynamic master key
New Feature / Enhancement Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
Current Limitation
The master key is set on dashboard start and cannot be changed without a dashboard restart. This is disadvantageous when periodically rotating the keys because a key rotation also requires a dashboard restart.
Feature / Enhancement Description
- Allow to set an async function for the master key instead of a string.
- Add the master key to the internal cache with a TTL, so that the function is not called every time the master key is validated
Example Use Case
New Parse Dashboard options:
{
masterKey: async () => await getKey(),
masterKeyTtl: 3600,
}
Alternatives / Workarounds
Dashboard restart.
Thanks for opening this issue!
- 🎉 We are excited about your ideas for improvement!
Should this have a caching mechanism as well?
You are right, I removed that from the initial description, but re-added it now.
🎉 This change has been released in version 6.0.0-alpha.29
🎉 This change has been released in version 6.1.0