Skip to content

Instantly share code, notes, and snippets.

@ryanuber
Last active August 29, 2015 14:07
Show Gist options
  • Save ryanuber/98d91e3b16adf8f252ba to your computer and use it in GitHub Desktop.
Save ryanuber/98d91e3b16adf8f252ba to your computer and use it in GitHub Desktop.
$ consul keyring -list
==> Gathering installed encryption keys...
==> Done!
dc2 (LAN):
HjZbybeuVTvM5QRtuLl77g== [2/2]
dc1 (LAN):
HjZbybeuVTvM5QRtuLl77g== [2/2]
WAN:
HjZbybeuVTvM5QRtuLl77g== [2/2]
$ consul keyring -install 4v+k0FkhxDxI6ynMhjIUmg==
==> Installing new gossip encryption key...
==> Done!
$ consul keyring -list
==> Gathering installed encryption keys...
==> Done!
dc1 (LAN):
HjZbybeuVTvM5QRtuLl77g== [2/2]
4v+k0FkhxDxI6ynMhjIUmg== [2/2]
WAN:
HjZbybeuVTvM5QRtuLl77g== [2/2]
4v+k0FkhxDxI6ynMhjIUmg== [2/2]
dc2 (LAN):
HjZbybeuVTvM5QRtuLl77g== [2/2]
4v+k0FkhxDxI6ynMhjIUmg== [2/2]
$ consul keyring -use 4v+k0FkhxDxI6ynMhjIUmg==
==> Changing primary gossip encryption key...
==> Done!
$ consul keyring -remove HjZbybeuVTvM5QRtuLl77g==
==> Removing gossip encryption key...
==> Done!
$ consul keyring -remove 4v+k0FkhxDxI6ynMhjIUmg==
==> Removing gossip encryption key...
dc1 (LAN) error: 2/2 nodes reported failure
node1: Removing the primary key is not allowed
myothernode3: Removing the primary key is not allowed
WAN error: 2/2 nodes reported failure
node1.dc1: Removing the primary key is not allowed
nodeX.dc2: Removing the primary key is not allowed
dc2 (LAN) error: 2/2 nodes reported failure
nodeX: Removing the primary key is not allowed
x3: Removing the primary key is not allowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment