Skip to content

Add validations for bucket name for AWS

Huzaifa Iftikhar requested to merge 431458_add_validations_to_bucket_name into master

What does this MR do and why?

Add validations for bucket name for AWS. We already have the same validation for instance level amazon s3 configuration here.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Ensure that you have ultimate license.
  2. Visit the group
  3. Navigate to Secure > Audit Events
  4. Click on streams tab
  5. Add new AWS S3 streaming destination
  6. Add an invalid bucket name like 'path/subpath/bucket'. Ensure that saving fails and the configuration is not added.
  7. Add an invalid bucket name like 'bucket-name'. Ensure that the configuration is saved successfully.

Closes #431458 (closed)

Edited by Huzaifa Iftikhar

Merge request reports

Loading