diff --git a/kork-expressions/src/main/java/com/netflix/spinnaker/kork/expressions/config/ExpressionProperties.java b/kork-expressions/src/main/java/com/netflix/spinnaker/kork/expressions/config/ExpressionProperties.java index 77100734f..5761d82f2 100644 --- a/kork-expressions/src/main/java/com/netflix/spinnaker/kork/expressions/config/ExpressionProperties.java +++ b/kork-expressions/src/main/java/com/netflix/spinnaker/kork/expressions/config/ExpressionProperties.java @@ -20,12 +20,17 @@ import lombok.experimental.Accessors; import org.springframework.boot.context.properties.ConfigurationProperties; +/** Configuration properties for Spring Expression Language (SpEL) evaluation related features. */ @Data @ConfigurationProperties(prefix = "expression") public class ExpressionProperties { + /** Flag to determine if SpEL evaluation to be skipped. */ private final FeatureFlag doNotEvalSpel = new FeatureFlag().setEnabled(true); + /** To set the maximum limit of characters in expression for SpEL evaluation. */ + private int maxExpressionLength = -1; + @Data @Accessors(chain = true) public static class FeatureFlag {