Skip to content

SSS recursive won't work #505

Open
Open
@SVSwift

Description

@SVSwift

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)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions