GitGuardian / ggshield

Find and fix 400+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations.
https://gitguardian.com
MIT License
1.62k stars 143 forks source link

Reword error messages in honeytoken command #931

Closed gg-cedric closed 1 month ago

gg-cedric commented 1 month ago

Context

The message from 403 errors in honeytoken commands is not used and replaced by a static one in order to explain how to access to the honeytoken feature, but if the error come from a rejection by IP allow list rules, this message is pointless.

What has been done

If the error message from API is about the allowlist, then it is displayed instead of the static error message.