Skip to content

Add dynamic master key #2580

Closed
Closed
@mtrezza

Description

@mtrezza

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$50Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionstate:released-alphaReleased as alpha versiontype:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions