Skip to content

coordinator: add manifest option to seal with unique key or disable sealing#677

Merged
thomasten merged 2 commits into
masterfrom
feat/coordinator/uniquekey
Jun 20, 2024
Merged

coordinator: add manifest option to seal with unique key or disable sealing#677
thomasten merged 2 commits into
masterfrom
feat/coordinator/uniquekey

Conversation

@thomasten
Copy link
Copy Markdown
Member

@thomasten thomasten commented Jun 17, 2024

Currently, the Coordinator uses the product key to seal the data. Users may want to use the unique key instead or disable persistent storage altogether for ephemeral deployments.

Proposed changes

  • Add Config.SealMode field to the manifest
  • Use seal key as configured in manifest

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 17, 2024

Deploy Preview for marblerun-docs ready!

Name Link
🔨 Latest commit 64692a1
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/66740726bafeaf0008be58ef
😎 Deploy Preview https://deploy-preview-677--marblerun-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@thomasten thomasten force-pushed the feat/coordinator/uniquekey branch from 12a787c to 6500c29 Compare June 18, 2024 08:03
@thomasten thomasten marked this pull request as ready for review June 20, 2024 06:57
@thomasten thomasten requested a review from daniel-weisse June 20, 2024 06:57
if !s.recoveryMode && s.sealMode != seal.ModeDisabled {
sealedData, err := s.sealer.Seal(s.recoveryData, dataRaw)
if err != nil {
if !errors.Is(err, seal.ErrMissingEncryptionKey) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces a change where we no longer write data to disk before a manifest is set.
I prefer the new behavior, but we might want to mention this in the changelog

@thomasten thomasten requested a review from daniel-weisse June 20, 2024 10:41
@thomasten thomasten merged commit 41397a0 into master Jun 20, 2024
@thomasten thomasten deleted the feat/coordinator/uniquekey branch June 20, 2024 13:40
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