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

local-dev-cluster: publish the keys on explorer machine #25

Open
denisshevchenko opened this issue Dec 2, 2019 · 3 comments
Open

local-dev-cluster: publish the keys on explorer machine #25

denisshevchenko opened this issue Dec 2, 2019 · 3 comments

Comments

@denisshevchenko
Copy link

denisshevchenko commented Dec 2, 2019

Currently the cluster local-dev-cluster contains three machines a, b and c for core nodes and explorer machine for cardano-explorer-node and for transaction generator as well. But we need both keys and certificates to be able to run transaction generator (because it should sign generated transactions). Particularly, we need:

  1. delegate-keys.000.key
  2. delegate-keys.001.key
  3. delegate-keys.002.key
  4. delegation-cert.000.json

Currently these keys/certificate aren't presented on explorer machine by default, so they were copied to explorer machine manually, using nixops scp. So, nix scripts should be improved in order these keys/certificate will be published to explorer machine automatically during deployment.

@denisshevchenko
Copy link
Author

@jbgi ^

@CodiePP
Copy link
Contributor

CodiePP commented Dec 6, 2019

@denisshevchenko
Copy link
Author

denisshevchenko commented Dec 9, 2019

Done.

Now required certificate and keys will be copied to explorer machine automatically, during nixops deploy command. They are:

  1. /var/lib/keys/cardano-node-delegation-cert - delegation certificate, will be passed to --delegation-certificate CLI parameter.
  2. /var/lib/keys/cardano-node-signing-gen - first signing key delegate-keys.000.key, will be passed to --sig-key CLI parameter.
  3. /var/lib/keys/cardano-node-signing-src - second signing key delegate-keys.001.key, will be passed to --sig-key CLI parameter.
  4. /var/lib/keys/cardano-node-signing-rec - third signing key delegate-keys.002.key, will be passed to --sig-key CLI parameter.

Only roles/explorer.nix script was changed (both in local-dev-cluster and in remote-dev-cluster).

These keys will be passed to cardano-cli generate-txs during its start (see #28).

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

2 participants