Encrypting Sensitive Data
Guide to encrypting sensitive data in DecisionRules, including setting up keys, rotating them, and using the key rotation API.
Setting Up Encryption
ENCRYPTION_KEY_VERSION=1
ENCRYPTION_KEY_1=21dsadas4examplekeystringof32charRotating Encryption Keys
Rotating Existing Data
Authorizations
AuthorizationstringRequired
Service authorization token defined by SERVICE_TOKEN env variable. Example: Authorization: ServiceToken <SERVICE_TOKEN>
Responses
200
Keys rotated successfully
text/plain
ResponsestringExample:
42 Keys rotated!401
Authentication bearer token invalid
500
Internal server error
patch
/service/rotate-keysBest Practices
Last updated
Was this helpful?

