Classify invalid AWS regions as user config errors

What does this MR do and why?

Problem

Sentry issue: https://new-sentry.gitlab.net/organizations/gitlab/issues/3939146

Aws::Errors::InvalidRegionError from customer-supplied AWS regions bypasses USER_CONFIG_ERRORS and pages Sentry for invalid audit event streaming configuration.

Solution

  • Classify invalid region errors as user configuration errors.
  • Cover the classification with a regression spec.

References

How to set up and validate locally

  1. Run bundle exec rspec ee/spec/lib/audit_events/streaming/base_streamer_spec.rb.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

Merge request reports

Loading
Loading