parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

Dynamic master key

Open mtrezza opened this issue 1 year ago • 1 comments

New Feature / Enhancement Checklist

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.

mtrezza avatar Jul 22 '24 00:07 mtrezza

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

Should this have a caching mechanism as well?

dblythy avatar Feb 02 '25 11:02 dblythy

You are right, I removed that from the initial description, but re-added it now.

mtrezza avatar Feb 02 '25 13:02 mtrezza

🎉 This change has been released in version 6.0.0-alpha.29

parseplatformorg avatar Feb 14 '25 14:02 parseplatformorg

🎉 This change has been released in version 6.1.0

parseplatformorg avatar Mar 04 '25 03:03 parseplatformorg