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

oci kms management key-version cancel-deletion has no response body #776

Open
chenyefeng5 opened this issue May 17, 2024 · 4 comments
Open
Labels
Key Management Issue pertains to the Key Management service

Comments

@chenyefeng5
Copy link

chenyefeng5 commented May 17, 2024

Hi there - I can't get the response for key-version cancel-deletion :

kms management key-version cancel-deletion --key-id ocid1.key.oc1.xxxxxx--key-version-id ocid1.keyversion.oc1.xxxxxxxxx--profile xxxxxx -auth security_token --endpoint https://xxxxxxx-management.kms.xxxxx.oracleiaas.com --debug

Response:
......
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 15 May 2024 00:12:39 GMT
header: opc-request-id: C485790B7DC04CCBBD3C7CB1F57CFAB1/A374DBFD13E7E49FC27DD0775B467264/9FAED1B3D0E3A02B114D1215824093E1
header: Cache-Control: no-cache, no-store, no-transform, must-revalidate
header: ETag: 9cfa4bacffad9a5af254522838b0f9bf5031dad0
header: Content-Type: application/json
header: X-Content-Type-Options: nosniff
header: Strict-Transport-Security: max-age=31536000; includeSubDomains;
header: Content-Length: 800
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120381: time elapsed for request C485790B7DC04CCBBD3C7CB1F57CFAB1: 1.2947725400008494
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120546: time elapsed in response: 0:00:01.275654
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120629: Response status: 200
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.122209: python SDK time elapsed for deserializing: 0.001434738005627878
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.122355: Response returned
DEBUG:oci.base_client.4519669792:time elapsed for request: 1.2970995259966003

Am I missing something?

@chenyefeng5 chenyefeng5 changed the title oci kms management key-version cancel-deletion has no response oci kms management key-version cancel-deletion has no response body May 17, 2024
@adizohar
Copy link
Member

You got Response status: 200 which is okay

@chenyefeng5
Copy link
Author

chenyefeng5 commented May 17, 2024

You got Response status: 200 which is okay

But this is not aligning with other cli command. And if not enable debug mode, it is empty.
For example:

oci kms management key get --key-id ocid1.key.oc1.xxxxxxx --profile oc1 --auth security_token --endpoint https://xxxxxx-management.kms.xxxxx.oraclecloud.com
{
  "data": {
    "auto-key-rotation-details": null,
    "compartment-id": "ocid1.compartment.oc1..xxxxxx",
    "current-key-version": "ocid1.keyversion.oc1.xxxxx",
    "defined-tags": {},
    "display-name": "xxxxx",
    "external-key-reference-details": null,
    "freeform-tags": {},
    "id": "ocid1.key.oc1.xxxxxxxx,
    "is-auto-rotation-enabled": false,
    "is-primary": true,
    "key-shape": {
      "algorithm": "RSA",
      "curve-id": null,
      "length": 256
    },
    "lifecycle-state": "ENABLED",
    "protection-mode": "HSM",
    "replica-details": null,
    "restored-from-key-id": null,
    "time-created": "2023-03-15T00:46:33.493000+00:00",
    "time-of-deletion": null,
    "vault-id": "ocid1.vault.oc1.xxxxxxxxx"
  },
  "etag": "xxxxxxxx"
}

@adizohar
Copy link
Member

no all oci cli the same. is there any issue ?

@github-anurag
Copy link
Member

@chenyefeng5 @adizohar
As per the API reference the service should send a KeyReference as a response: https://docs.oracle.com/en-us/iaas/api/#/en/key/release/KeyVersion/CancelKeyVersionDeletion
However, it looks like it is not sending it back. Perhaps the KMS service needs to take a look.

@chenyefeng5 chenyefeng5 reopened this May 17, 2024
@github-anurag github-anurag added the Key Management Issue pertains to the Key Management service label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Key Management Issue pertains to the Key Management service
Projects
None yet
Development

No branches or pull requests

3 participants