Skip to content

Conversation

@andrewjstone
Copy link
Contributor

sled-agent-overlay-files generates secret shares for rack unlock in a
multinode cluster. However, rack secrets and their resulting shares can only be
created for clusters with 2 or more nodes. As we want to be able to use
thing-flinger to deploy to a single node system, we skip generation of the
secret if there is only one deployment server. This works because the sled-agent
bootstrap code runs in single node mode if no share is found.

Without this change, the user would get a vsss_rs::Error::SharingMinThreshold
error when running thing-flinger overlay.

@andrewjstone andrewjstone requested a review from smklein March 30, 2022 18:27
`sled-agent-overlay-files` generates secret shares for rack unlock in a
multinode cluster. However, rack secrets and their resulting shares can only be
created for clusters with 2 or more nodes. As we want to be able to use
thing-flinger to deploy to a single node system, we skip generation of the
secret if there is only one deployment server. This works because the sled-agent
bootstrap code runs in single node mode if no share is found.

Without this change, the user would get a `vsss_rs::Error::SharingMinThreshold`
error when running `thing-flinger overlay`.
@andrewjstone andrewjstone force-pushed the thing-flinger-overlay-fix branch from 50c651f to 036c2b4 Compare March 30, 2022 20:02
@andrewjstone andrewjstone enabled auto-merge (squash) March 30, 2022 20:03
@andrewjstone andrewjstone merged commit f722038 into main Mar 30, 2022
@andrewjstone andrewjstone deleted the thing-flinger-overlay-fix branch March 30, 2022 20:39
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.

3 participants