Stop using the customer-managed key
curl --request DELETE \
--url https://app.trustivan.com/api/v1/settings/encryption/customer-key \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/encryption/customer-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/settings/encryption/customer-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/encryption/customer-key"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"kms_provider": "local",
"customer_key": {
"provider": "aws",
"key_ref": "<string>"
},
"data_key_version": 123,
"customer_providers": [
"aws"
],
"entitled": true
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Stop using the customer-managed key
Rewraps the data keys under the deployment’s key. The customer key must still work.
DELETE
/
settings
/
encryption
/
customer-key
Stop using the customer-managed key
curl --request DELETE \
--url https://app.trustivan.com/api/v1/settings/encryption/customer-key \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/encryption/customer-key"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/settings/encryption/customer-key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/encryption/customer-key"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"kms_provider": "local",
"customer_key": {
"provider": "aws",
"key_ref": "<string>"
},
"data_key_version": 123,
"customer_providers": [
"aws"
],
"entitled": true
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
Back on the deployment key.