Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic master key and maintenance key #9052

Open
3 tasks done
mtrezza opened this issue Mar 25, 2024 · 1 comment
Open
3 tasks done

Dynamic master key and maintenance key #9052

mtrezza opened this issue Mar 25, 2024 · 1 comment
Labels
bounty:$50 Bounty applies for fixing this issue (Parse Bounty Program) type:feature New feature or improvement of existing feature

Comments

@mtrezza
Copy link
Member

mtrezza commented Mar 25, 2024

New Feature / Enhancement Checklist

Current Limitation

The master key and maintenance key are both set on server start and cannot be changed without a server restart. This is disadvantageous when periodically rotating the keys because a key rotation also requires a server restart. This is particular problematic for a cluster of servers in which updating the keys takes across a large fleet can take a long time.

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 Server options:

{
  masterKey: async () => await getKey(),
  masterKeyTtl: 3600,
}

Alternatives / Workarounds

Server restart.

Copy link

parse-github-assistant bot commented Mar 25, 2024

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added type:feature New feature or improvement of existing feature bounty:$50 Bounty applies for fixing this issue (Parse Bounty Program) labels Mar 25, 2024
@mtrezza mtrezza pinned this issue Mar 25, 2024
@mtrezza mtrezza added the bounty:sponsored Bounty is sponsored and managed by a 3rd party (Parse Bounty Program) label Apr 24, 2024
@parse-github-assistant parse-github-assistant bot removed the bounty:sponsored Bounty is sponsored and managed by a 3rd party (Parse Bounty Program) label Apr 24, 2024
@mtrezza mtrezza added bounty:sponsored Bounty is sponsored and managed by a 3rd party (Parse Bounty Program) and removed bounty:sponsored Bounty is sponsored and managed by a 3rd party (Parse Bounty Program) labels Apr 24, 2024
@mtrezza mtrezza unpinned this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$50 Bounty applies for fixing this issue (Parse Bounty Program) type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

1 participant