Example of using the kek endpoint to bring in your own key encryption key (KEK)
Form to track changes in the KEK
You can change the KEK anytime, except during an upgrade. The AR System:KEK Audit form tracks the changes in KEK.
The following screenshot shows the AR System:KEK Audit form:
Endpoint to check the existing KEK
Use the check endpoint to review the existing KEK. The following table lists the details of the check endpoint:
URL qualifier | /api/arsys/v1.0/kek/check | ||||||
---|---|---|---|---|---|---|---|
Method | GET | ||||||
Header |
| ||||||
Returns |
|
Endpoint to change the existing KEK
Use the rotate endpoint to change the existing KEK. The following table lists the details of the rotate endpoint:
URL qualifier | /api/arsys/v1.0/kek/rotate | ||||||
---|---|---|---|---|---|---|---|
Method | POST | ||||||
Headers |
| ||||||
Parameter |
| ||||||
Returns |
|
Example of using the check and rotate endpoints
The following sample code shows an example of using the check endpoint:
"name": "check Copy",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "X-Requested-By",
"value": "XMLHttpRequest",
"type": "default"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "<server name>/api/arsys/v1.0/kek/check",
"protocol": "https",
"host": [
"<Server name>"
],
"path": [
"api",
"arsys",
"v1.0",
"kek",
"check"
]
}
},
"response": []
}
]
}
r
The following sample code shows an example of using the Rotate endpoint:
"name": "<Name>",
"request": {
"method": "POST",
"header": [
{
"key": "X-Requested-By",
"value": "XMLHttpRequest",
"type": "default"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"key\": \"<key>\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://<server name>/api/arsys/v1.0/kek/rotate",
"protocol": "https",
"host": [
"<server name>"
],
"path": [
"api",
"arsys",
"v1.0",
"kek",
"rotate"
]
}
},
"response": []
},
An example of checking and changing the KEK
The following video shows sending a REST call from the Postman client to check and change the KEK: