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..0db8ba7fb 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 @@ -18,6 +18,7 @@ import lombok.Data; import lombok.experimental.Accessors; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; @Data @@ -26,6 +27,9 @@ public class ExpressionProperties { private final FeatureFlag doNotEvalSpel = new FeatureFlag().setEnabled(true); + @Value("${expression.max-expression-length:-1}") + private int maxExpressionLength; + @Data @Accessors(chain = true) public static class FeatureFlag {