Gcloud kms error: crypto_key_version.state: DESTROYED, but ENABLED is required
up vote
0
down vote
favorite
I'm trying to encrypt a secret with google kms like this:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
and get the following error:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
Any input much appreciated since I can't find anything related to this issue in GCP docs
gcloud secret-key
add a comment |
up vote
0
down vote
favorite
I'm trying to encrypt a secret with google kms like this:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
and get the following error:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
Any input much appreciated since I can't find anything related to this issue in GCP docs
gcloud secret-key
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to encrypt a secret with google kms like this:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
and get the following error:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
Any input much appreciated since I can't find anything related to this issue in GCP docs
gcloud secret-key
I'm trying to encrypt a secret with google kms like this:
gcloud kms encrypt --ciphertext-file=encrypted_secret --plaintext-file=secret --key very_secret_key --keyring=very_secret_ring --location=very secret_location
and get the following error:
ERROR: (gcloud.kms.encrypt) FAILED_PRECONDITION: The request cannot be fulfilled. Resource projects/amazing_project/locations/very_secret_location/keyRings/very_secret_keyring/cryptoKeys/very_secret_key/cryptoKeyVersions/1 has crypto_key_version.state: DESTROYED, but ENABLED is required.
Any input much appreciated since I can't find anything related to this issue in GCP docs
gcloud secret-key
gcloud secret-key
asked Nov 9 at 5:11
thepolina
477516
477516
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
This error stands for key material not being stored anymore. Use another key or update this one
More info here:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
This error stands for key material not being stored anymore. Use another key or update this one
More info here:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
add a comment |
up vote
0
down vote
accepted
This error stands for key material not being stored anymore. Use another key or update this one
More info here:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
This error stands for key material not being stored anymore. Use another key or update this one
More info here:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
This error stands for key material not being stored anymore. Use another key or update this one
More info here:
https://cloud.google.com/kms/docs/reference/rpc/google.cloud.kms.v1#google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState
answered Nov 12 at 1:07
thepolina
477516
477516
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53220195%2fgcloud-kms-error-crypto-key-version-state-destroyed-but-enabled-is-required%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown