Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

APIGEE Hybrid - Encryption error while creating Key Value Map entries

Hi!

Environment: APIGEE Hybrid

We are currently getting errors while creating the 'KeyValueMap entries'.  We were able to create the 'keyValueMap' (map identifier name) encrypted=true. And can see the KVM from UI. But unable to create the KVM entries for the previously created KVM. 

Management API request:

curl --location --request POST 'https://apigee.googleapis.com/v1/organizations/apigee-hybrid-****-*******/environments/preprod/keyva... \
--header 'Authorization: Bearer *****************************************' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "testkey",
"value": "test123"
}'

 

Error Response:

{

"error": {

"code": 500,

"message": "Error while encrypting for encrypted KeyValueMap KeyValueMapScope {ScopeType ='ENVIRONMENTS', Organization = 'apigee-hybrid-****-****, Environment = 'preprod'}",

"status": "INTERNAL",

"details": [

{

"@type": "type.googleapis.com/google.rpc.PreconditionFailure",

"violations": [

{

"type": "keyvaluemap.service.ErrorDuringEncryption",

"subject": "[2002:a17:90a:d795::]:4496:smdm20:9805:225460:24744470",

"description": "Error while encrypting for encrypted KeyValueMap KeyValueMapScope {ScopeType ='ENVIRONMENTS', Organization = 'apigee-hybrid-****-****', Environment = 'preprod'}"

}

]

},

{

"@type": "type.googleapis.com/google.rpc.RequestInfo",

"requestId": "3746721517"

}

]

}

}

 

From the community I noticed some one had similar issue and but not sure about the status. Just FYR - https://www.googlecloudcommunity.com/gc/Apigee/Apigee-X-API-and-KVM/m-p/431291#M70915

If any had similar issue and got it resolved. Please let me know on how to resolve this issue ?/guide me with the steps creating new KVM entries through management API.

 

Thanks!

--Im

 

 

 

 

 

1 11 1,020
11 REPLIES 11