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

feat(secret-sharing): server-side encryption #2482

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DanielHougaard
Copy link
Contributor

Description 📣

This PR moves the secret sharing encryption logic to the server-side, where we'll now handle encryption/decryption with our KMS. This results in a greatly reduced URL length, as the key is no longer necessary. I opted to keep a shortened version of the hashed hex as a part of the URL. We're keeping the first 13 characters as a part of the secret sharing URL to increase entropy. This PR imposes a 50% decrease in the secret sharing URL length.

Previously created secrets remain backwards compatible with this change. Meaning, if you created secrets before this new change, they will remain working.

Examples:

Old secret sharing URL
http://localhost:8080/shared/secret/aea90f5e-439a-48d6-938b-a666ade4f796?key=e79d58893e44e656b56833bacc61e2e2c104d044c95870e07f7d59ffd8c8e163-9d4fc46ff176326c142176eafb04b1b2

New secret sharing URL
http://localhost:8080/shared/secret/649a6964-f973-43f2-a24b-4082c3f92703-6b86b273ff34f

Type ✨

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants