Custom Quarantine Messages

Custom Quarantine Messages

Configure Repository Firewall to provide a custom quarantine message when a component request fails a Firewall policy. This message and the default Firewall quarantine messages are included in the command line output.

Use cases for the capability:

Note
For SaaS deployments, tenant administrators can configure custom quarantine messages using the REST API. This enables self-service configuration without requiring Sonatype Support.

Setting the quarantine message

Send a command to the Configuration REST API to PUT a JSON object containing the quarantine message property.

quarantinedItemCustomMessage
curl -X PUT -u admin:admin123 \
     -H "Content-Type: application/json" \
     -d '{"quarantinedItemCustomMessage": "Custom message http://domain.com/quarantine-guide"}' \
     "http://localhost:8070/api/v2/config"

Getting the current message

Use a GET request to check the value of the property from the config API

curl -X GET -u admin:admin123 \
     "http://localhost:8070/api/v2/config?property=quarantinedItemCustomMessage"

Deleting the custom message

Use a DELETE request to remove the message

curl -X DELETE -u admin:admin123 \
     "http://localhost:8070/api/v2/config?property=quarantinedItemCustomMessage"

Search results

No results found