Closed pierrelalanne closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.57%. Comparing base (
635ad8c
) to head (3b2504f
). Report is 17 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
This MR teaches ggshield and HMSL how to support GitGuardian EU instance without special configurations.
Reminder: ggshield gets a JWT from a GitGuardian dashboard to later be authorized to call an HMSL instance.
Before this MR, the GitGuardian instance targeted to get a JWT was derived from the HMSL_URL defined in the config if any. This means that, unless you explicitly define it in your environment variable, you could never end up targeting the EU GitGuardian instance (there is no EU HMSL instance).
After this MR:
Additional notes
The logic is a bit complex here. Note that anyway, the user can override any of the concerned config values with environment variables.