A recommended alternative to using the DB Console UI is to use the command cockroach debug encryption-active-key. This command has its own docs page but is currently broken.
The suggested work-around is to use the cockroach debug encryption-status command. This command does not appear in the official docs and has two requirements that are not readily apparent:
The cockroach process must be stopped before running the command. If it is not first stopped, it produced the cryptic error ERROR: resource temporarily unavailable.
The command must include the --enterprise-encryption flag with the key parameter set to the current encryption key. The old-key parameter seems like it can be set to any valid key or plain.
This produces a report of the current encryption status, including currently active and past store keys, as well as data keys.
Providing documentation on this command will give users the information they need to check the status of their encrypted stores in 21.2 and other versions.
jon (jonstjohn) commented:
Documentation for the command
cockroach debug encryption-status
should be added to the official docs.Two outstanding defects make it the only way that users can check encryption status of a store in 21.2:
cockroach debug encryption-active-key
. This command has its own docs page but is currently broken.The suggested work-around is to use the
cockroach debug encryption-status
command. This command does not appear in the official docs and has two requirements that are not readily apparent:ERROR: resource temporarily unavailable
.--enterprise-encryption
flag with thekey
parameter set to the current encryption key. Theold-key
parameter seems like it can be set to any valid key orplain
.An example of this command properly formatted is:
This produces a report of the current encryption status, including currently active and past store keys, as well as data keys.
Providing documentation on this command will give users the information they need to check the status of their encrypted stores in 21.2 and other versions.
Jira Issue: DOC-3820