Skip to content

Fix json validation for elasticsearch_aws_role_arn

What does this MR do and why?

This MR removes the JSON validation for regex on the elasticsearch_aws_role_arn application setting - it had a bug.. The validation now allows any string and null. I also added specs for validation

AI Summary

This change simplifies the validation rules for an AWS role setting in Elasticsearch configuration. Previously, the system had complex rules that only allowed specific formats (like AWS ARN patterns), but now it accepts any text string or empty/null values. The accompanying tests verify that the field now accepts various string inputs, empty values, and null values, while still rejecting non-string data types like numbers. This makes the configuration more flexible by removing strict formatting requirements.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

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

/milstone %18.5

Edited by Terri Chu

Merge request reports

Loading