Skip to content

Instantly share code, notes, and snippets.

@Cylindric
Created February 21, 2023 11:23
Show Gist options
  • Save Cylindric/521b79028ebe1ec4f9e813eaab1bfe79 to your computer and use it in GitHub Desktop.
Save Cylindric/521b79028ebe1ec4f9e813eaab1bfe79 to your computer and use it in GitHub Desktop.
-----------------------------------------------------: timestamp=2023-02-21T11:12:38.270Z
2023-02-21T11:12:41.082Z [INFO] provider.terraform-provider-vault_v3.13.0_x5: 2023/02/21 11:12:41 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
PUT /v1/sys/managed-keys/pkcs11/myhsm HTTP/1.1
Host: 10.0.2.35:8200
User-Agent: Go-http-client/1.1
Content-Length: 317
X-Vault-Request: true
X-Vault-Token: hmac-sha256:df97255982c942e33a34c994f46477d71bfd9fd7f4cd5c4d954583c08d2d5e92
Accept-Encoding: gzip
{
"allow_generate_key": true,
"allow_replace_key": false,
"allow_store_key": true,
"any_mount": false,
"curve": "",
"force_rw_session": "",
"key_bits": "4096",
"key_id": "kms-intermediate",
"key_label": "kms-intermediate",
"library": "myhsm",
"mechanism": "0x000d",
"name": "myhsm",
"pin": "1234",
"slot": "586615635",
"token_label": "",
"uuid": ""
}
-----------------------------------------------------: timestamp=2023-02-21T11:12:41.082Z
2023-02-21T11:12:41.087Z [INFO] provider.terraform-provider-vault_v3.13.0_x5: 2023/02/21 11:12:41 [DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 500 Internal Server Error
Content-Length: 91
Cache-Control: no-store
Content-Type: application/json
Date: Tue, 21 Feb 2023 11:12:40 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
{
"errors": [
"1 error occurred:\n\t* both a token label and a slot cannot be provided\n\n"
]
}
-----------------------------------------------------: timestamp=2023-02-21T11:12:41.086Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment