Database Security Products (MOSC)

MOSC Banner

Adding attribute for secret fails in OKV "Invalid OKV server"

Hello all


Trying to add an attribute to a secret object using Oracle Key Vault but getting the following error

[oracle@dolnxdb034sv scripts]$ okv managed-object custom-attribute add --from-json ./add-cust-attrib.json

Invalid OKV server

This is my add-cust-attrib.json file

{

 "service": {

 "category": "managed-object",

 "resource": "custom-attribute",

 "action": "add",

 "options": {

  "uuid": "########################",

  "customAttribute": {

   "name": "x-CONNECT_STRING",

   "value": "<db-server-name>:6516/orawdb",

   "type": "TEXT"

  }

  }

 }

}



However, okvutil command works

[oracle@dolnxdb034sv scripts]$ okvutil list

Enter Oracle Key Vault endpoint password:

Unique ID Type Identifier

0F52CF7C-901C-4F09-BF20-077AD9655648 Private Key Private Key of certificate with DN: CN=KbhNTQil1F,OU=Key_Vault,O=Oracle,L=Redwood_City,ST=California,C=us

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center