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

SSS recursive won't work #505

Open
SVSwift opened this issue Jan 5, 2025 · 0 comments
Open

SSS recursive won't work #505

SVSwift opened this issue Jan 5, 2025 · 0 comments

Comments

@SVSwift
Copy link

SVSwift commented Jan 5, 2025

Trying to use recursive sss fails silently:
clevis luks bind -d /dev/sda3 sss '{"t":2,"pins":{"sss":[{"t":1,"pins":{"tang":[{"url":"http://tang-server1"},{"url":"http://tang-server2"}]}},{"t":1,"pins":{"tang":[{"url":"http://tang-server0"}]}}]}}'
command shows advertisments of all three servers.
But it results in
user@server:~# clevis luks list -d /dev/sda3
1: sss '{"t":2,"pins":{"sss":{"t":1,"pins":{"tang":[{"url":"http://tang-server0"}]}}}}'

This leads me to believe that somehow the first pin-block gets lost between checking adv from the tang-servers and writing data in the LUKS-header.
Formatting the JSON differently like this
{ "t": 2, "pins": [ { "sss": { "t": 1, "pins": { "tang": [ { "url": "http://tang-server0" } ] } } }, { "sss": { "t": 1, "pins": { "tang": [ { "url": "http://tang-server1" }, { "url": "http://tang-server2" } ] } } } ] }
fails with Invalid threshold (required: 1 <= 2 <= 0)!

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

No branches or pull requests

1 participant