cardano-ops
cardano-ops copied to clipboard
local-dev-cluster: publish the keys on explorer machine
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:
delegate-keys.000.keydelegate-keys.001.keydelegate-keys.002.keydelegation-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.
@jbgi ^
in epic: input-output-hk/iohk-monitoring-framework#323
Done.
Now required certificate and keys will be copied to explorer machine automatically, during nixops deploy command. They are:
/var/lib/keys/cardano-node-delegation-cert- delegation certificate, will be passed to--delegation-certificateCLI parameter./var/lib/keys/cardano-node-signing-gen- first signing keydelegate-keys.000.key, will be passed to--sig-keyCLI parameter./var/lib/keys/cardano-node-signing-src- second signing keydelegate-keys.001.key, will be passed to--sig-keyCLI parameter./var/lib/keys/cardano-node-signing-rec- third signing keydelegate-keys.002.key, will be passed to--sig-keyCLI 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 https://github.com/input-output-hk/cardano-ops/issues/28).