Giter Club home page Giter Club logo

lndinit's People

Contributors

bhandras avatar calvinrzachman avatar erikarvstedt avatar guggero avatar roasbeef avatar thinkmassive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lndinit's Issues

--k8s.base64 flag causes double encoding

It appears that when using the --k8s.base64 flag, secrets are encoded in base64 twice. This causes issues with decoding.

Kubernetes Verison 1.22 / 1.23

To Reproduce

From a pod within a k8s context (has role to create secrets). Create two secrets, one with base64 flag and one without..

# create secret using base64 flag
$ lndinit gen-password \
  | lndinit -v store-secret \
  --target=k8s \
  --k8s.base64 \
  --k8s.namespace="default" \
  --k8s.secret-name="lnd-wallet-secret-b64" \
  --k8s.secret-key-name=walletpassword

# create secret without base64 flag
$ lndinit gen-password \
  | lndinit -v store-secret \
  --target=k8s \
  --k8s.namespace="default" \
  --k8s.secret-name="lnd-wallet-secret" \
  --k8s.secret-key-name=walletpassword

Then from your host, decode secrets, you will see the base64 flagged one requires double decoding..

# decode base64 flagged secret
$ k get secret lnd-wallet-secret-b64 -o json | jq -r .data.walletpassword | base64 -d
bWF6ZS1wb3J0aW9uLWlkZWEtc29kYS1uZXN0LXJhaW4tZm9vZC1wb3B1bGFy

# double decode base64 flagged secret
$ k get secret lnd-wallet-secret-b64 -o json | jq -r .data.walletpassword | base64 -d | base64 -d
maze-portion-idea-soda-nest-rain-food-popular

# decode non base64 flagged secret
$ k get secret lnd-wallet-secret -o json | jq -r .data.walletpassword | base64 -d
slice-random-school-energy-cart-proof-notice-nest

Expected behavior

Using --k8s.base64 flag would not require double decoding. This makes unlocking the wallet fail, as you would imagine.

[Suggestion] Fetch key via fingerprint in release notes

This cmd fetches your key via its fingerprint:

gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys F4FC70F07310028424EFC20A8E4256593F177720

It's is only slightly longer than the current

curl https://keybase.io/guggero/pgp_keys.asc | gpg --import

... but it removes keybase as a trusted party.

What type of database is used for wallet.db

I can generate wallets in an automated flow. There are three files generated - seed, password and wallet.db.
What is the type of database used for wallet.db? Is this something I can decode and see having seed and password?

master should become main

in this line, I think main should be used instead of master as that's the actual branch name and, when I try to build this Dockerfile "out of the box", I get the error below:

#7 7.310 error: pathspec 'master' did not match any file(s) known to git

Feature Request: show seed pubkey

It would be really great if this app could allow you to input an aezeed and respond with the node pubkey, as a way of checking a seed on an offline machine and matching to a node.

Is LND node running needed for lndinit to work?

It's not an issue, but just to get a better understanding.
For some reason I thought lndinit works via running requests to an lnd node but then ran without having a node and it still worked.
So I suppose lndinit just needs some data from me like macaroons and cert and then does everything internally?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.