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

Derive marble private secrets using marble type in addition to UUID #730

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

daniel-weisse
Copy link
Member

Currently, when a marble requests a private secret, that secret is derived from the coordinators root key using HKDF with the Marble's UUID and the name of the secret being used as salt for the derivation.
This means that any two marbles with the same UUID will receive the same secrets, even if they have different marble types.
Since this behavior is not always clear to users, and they should use shared secrets to facilitate this secret instead, this PR updates the secret generation code to include the name of the marble as Info parameter for the HKDF function so any two Marbles of different types will receive different secrets even if they have the same UUID.

Proposed changes

  • Include the Marble's Type in secret derivation along the secret name and Marble UUID
    • the old behavior can be restored by setting the new DisableSecretBinding on a Marble

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for marblerun-docs canceled.

Name Link
🔨 Latest commit 7747896
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/66eae777f792780008d769a4

@daniel-weisse daniel-weisse merged commit 961b68b into master Sep 20, 2024
8 checks passed
@daniel-weisse daniel-weisse deleted the dw/uuid-key-derivation branch September 20, 2024 13:37
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