Skip to content

store-secret hangs when file does not exist #68

@ZZiigguurraatt

Description

@ZZiigguurraatt

If run

lndinit -v store-secret --batch --overwrite --target=k8s --k8s.namespace="default" --k8s.secret-name="${TAPRPC_SECRETS_NAME}" "${TAP_DIR}"/*.macaroon

and no macaroon files exist, lndinit hangs indefinitely, even once a macaroon file is created.

Also, if I run

lndinit -v store-secret --batch --overwrite --target=k8s --k8s.namespace="default" --k8s.secret-name="${TAPRPC_SECRETS_NAME}" "${TAP_DIR}"/bogus_file

it also hangs indefinitely.

I think that either lndinit should immediately fail if the file does not exist, or once the file exists, it should continue. Either one of these approaches is better than the current behavior.

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