Skip to content

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

Merged
daniel-weisse merged 1 commit intomasterfrom
dw/uuid-key-derivation
Sep 20, 2024
Merged

Derive marble private secrets using marble type in addition to UUID#730
daniel-weisse merged 1 commit intomasterfrom
dw/uuid-key-derivation

Conversation

@daniel-weisse
Copy link
Copy Markdown
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

@netlify
Copy link
Copy Markdown

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

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
@daniel-weisse daniel-weisse merged commit 961b68b into master Sep 20, 2024
@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