Search K
Appearance
Appearance
Use this reference to update the license key for AI Security self-hosted deployments. The API method is recommended. If API access is unavailable, use one of the kubectl methods described below.
You can find the license key in the Custom Resource securityoperators.ai.security.f5.com. It's in the f5-ai-sec namespace within the cai-deployment pod.
You can use the PATCH /license API endpoint to update the license key. This method provides immediate validation.
You can also export the Custom Resource to a YAML file, update the license key, and reapply the changes.
Export the Custom Resource to a YAML file:
kubectl get securityoperators.ai.security.f5.com cai-deployment -n f5-ai-sec -o yaml > cai-deployment.yamlThis command exports the current configuration to cai-deployment.yaml in your working directory.
Open cai-deployment.yaml in a text editor.
Locate CAI_MODERATOR_DEFAULT_LICENSE.
Replace the existing license key.
Make sure you include only the license key. Do not include quotes or special characters.
Save the file.
Apply the updated configuration:
kubectl apply -f cai-deployment.yamlKubernetes applies the updated Custom Resource to the cluster.
Continue to Redeploy the pods.
Edit the Custom Resource directly in your terminal.
Open the Custom Resource in edit mode:
kubectl edit securityoperators.ai.security.f5.com cai-deployment -n f5-ai-secLocate the CAI_MODERATOR_DEFAULT_LICENSE parameter.
Replace the existing license key value with your new license key.
Make sure you include only the license key itself. Do not include quotes or special characters.
Save and close the editor.
Continue to Redeploy the pods.
After you update the license key, restart the cai-moderator pods.
kubectl rollout restart deployment -n cai-moderator cai-moderatorThis command triggers a rolling restart of the cai-moderator deployment.
If the license update works, make sure the application works as expected. If you encounter errors, check the pod logs:
kubectl logs -n cai-moderator deployment/cai-moderatorFor more information, see: