Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

fix: release 1.5.6 (#569)

Hector Venturaf669be1edb61
diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml
index ef11d336b6..71fd1ff737 100644
--- a/.github/workflows/edge.yml
+++ b/.github/workflows/edge.yml
@@ -54,6 +54,8 @@ jobs:
file: Dockerfile.jvm-package
platforms: linux/amd64,linux/arm64
push: true
- tags: ${{ secrets.DOCKERHUB_USERNAME }}/floci:edge
+ tags: floci/floci:edge
cache-from: type=gha
- cache-to: type=gha,mode=max
\ No newline at end of file
+ cache-to: type=gha,mode=max
+ build-args: |
+ INSTALL_AWS_CLI=true
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2f9f65d02c..b2383511c9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -142,25 +142,14 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-jvm
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:latest-jvm
+ floci/floci:${{ steps.version.outputs.version }}-jvm
+ floci/floci:latest-jvm
+ floci/floci:${{ steps.version.outputs.version }}-aws
+ floci/floci:latest-aws
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ steps.version.outputs.version }}
-
- - name: Build and push JVM image (With AWS CLI)
- uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
- with:
- context: .
- file: Dockerfile.jvm-package
- platforms: linux/amd64,linux/arm64
- push: true
- tags: |
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-aws
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:latest-aws
- build-args: |
- VERSION=${{ steps.version.outputs.version }}
INSTALL_AWS_CLI=true
# ── Push native Docker images (multi-arch manifest) ───────────────────────
@@ -177,13 +166,6 @@ jobs:
id: version
run: echo "version=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
- - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
-
- - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- uses: actions/download-artifact@v8
with:
name: native-amd64
@@ -194,46 +176,27 @@ jobs:
name: native-arm64
path: native/arm64/
- - name: Prepare amd64 target
- run: |
- mkdir -p target
- cp native/amd64/* target/
- chmod +x target/*-runner
+ - name: Make binaries executable
+ run: chmod +x native/amd64/*-runner native/arm64/*-runner
- - name: Build and push amd64 native image
- uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
- with:
- context: .
- file: Dockerfile.native-package
- platforms: linux/amd64
- push: true
- tags: ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-amd64
- build-args: |
- VERSION=${{ steps.version.outputs.version }}
+ - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- - name: Prepare arm64 target
- run: |
- rm -rf target
- mkdir -p target
- cp native/arm64/* target/
- chmod +x target/*-runner
+ - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push arm64 native image
+ - name: Build and push native multi-arch image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
file: Dockerfile.native-package
- platforms: linux/arm64
+ platforms: linux/amd64,linux/arm64
push: true
- tags: ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-arm64
+ tags: |
+ floci/floci:${{ steps.version.outputs.version }}
+ floci/floci:latest
build-args: |
VERSION=${{ steps.version.outputs.version }}
-
- # Combine the two platform-specific images into a single multi-arch manifest
- - name: Create and push multi-arch manifest
- run: |
- docker buildx imagetools create \
- --tag ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }} \
- --tag ${{ secrets.DOCKERHUB_USERNAME }}/floci:latest \
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-amd64 \
- ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-arm64
\ No newline at end of file
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
\ No newline at end of file
diff --git a/Dockerfile.native-package b/Dockerfile.native-package
index 10b5831734..824dd22266 100644
--- a/Dockerfile.native-package
+++ b/Dockerfile.native-package
@@ -1,7 +1,8 @@
FROM registry.access.redhat.com/ubi9-minimal:9.7
ARG VERSION=latest
-ARG BINARY_FILE=application
+# Automatically set by Docker BuildKit to "amd64" or "arm64"
+ARG TARGETARCH
ENV FLOCI_VERSION=${VERSION}
ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
@@ -14,8 +15,8 @@ RUN mkdir -p /app/data \
VOLUME /app/data
-COPY --chown=1001:root target/*.properties target/*.so /app/
-COPY --chown=1001:root target/*-runner /app/application
+COPY --chown=1001:root native/${TARGETARCH}/ /app/
+RUN mv /app/*-runner /app/application && chmod +x /app/application
EXPOSE 4566
diff --git a/README.md b/README.md
index 76d2e763c6..b9b4d290b1 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,18 @@
---
+> [!IMPORTANT]
+> **Image moved to `floci/floci`.** Update your `docker-compose.yml` and `docker run` commands:
+> ```
+> # Before
+> image: hectorvent/floci:latest
+> # After
+> image: floci/floci:latest
+> ```
+> The old `hectorvent/floci` repository will no longer receive updates.
+
+---
+
> LocalStack's community edition [sunset in March 2026](https://blog.localstack.cloud/the-road-ahead-for-localstack/) — requiring auth tokens, and freezing security updates. Floci is the no-strings-attached alternative.
## Why Floci?
@@ -135,7 +147,7 @@ docker run -d --name floci \
-p 4566:4566 \
-v /var/run/docker.sock:/var/run/docker.sock \
-u root \
- hectorvent/floci:latest
+ floci/floci:latest
```
In Docker Compose, add the socket volume alongside any other mounts.
@@ -227,7 +239,7 @@ For more details, visit the [Storage Configuration documentation](https://floci.
# docker-compose.yml
services:
floci:
- image: hectorvent/floci:latest
+ image: floci/floci:latest
ports:
- "4566:4566"
volumes:
@@ -254,7 +266,7 @@ docker run -d --name floci \
-e FLOCI_DEFAULT_REGION=us-east-1 \
-e FLOCI_SERVICES_LAMBDA_DOCKER_NETWORK=bridge \
-u root \
- hectorvent/floci:latest
+ floci/floci:latest
```
All services are available at `http://localhost:4566`. Use any AWS region — credentials can be anything.
@@ -546,7 +558,7 @@ All settings are overridable via environment variables (`FLOCI_` prefix).
```yaml
services:
floci:
- image: hectorvent/floci:latest
+ image: floci/floci:latest
ports:
- "4566:4566"
environment:
diff --git a/compatibility-tests/sdk-test-rust/Dockerfile b/compatibility-tests/sdk-test-rust/Dockerfile
index 29584749f8..85f241e413 100644
--- a/compatibility-tests/sdk-test-rust/Dockerfile
+++ b/compatibility-tests/sdk-test-rust/Dockerfile
@@ -1,5 +1,11 @@
-FROM rust:1-alpine
-RUN apk add --no-cache musl-dev pkgconf openssl-dev ca-certificates
+FROM rust:1-slim
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ pkg-config libssl-dev ca-certificates clang lld \
+ && rm -rf /var/lib/apt/lists/*
+
+# Use lld: far more memory-efficient than GNU ld when linking large Rust binaries on aarch64
+ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld"
+
WORKDIR /app
# Install cargo-nextest
@@ -17,4 +23,4 @@ ENV AWS_SECRET_ACCESS_KEY=test
ENV AWS_DEFAULT_REGION=us-east-1
RUN mkdir -p /results
-ENTRYPOINT ["cargo", "nextest", "run", "--profile", "ci"]
+ENTRYPOINT ["cargo", "nextest", "run", "--profile", "ci"]
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e3c9fa5419..bbd035acde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
<groupId>io.github.hectorvent</groupId>
<artifactId>floci</artifactId>
- <version>1.5.5</version>
+ <version>1.5.6</version>
<packaging>jar</packaging>
<name>Floci</name>
diff --git a/run-docker-tests.sh b/run-docker-tests.sh
new file mode 100644
index 0000000000..484b53c679
--- /dev/null
+++ b/run-docker-tests.sh
@@ -0,0 +1,65 @@
+#!/bin/bash
+set -e
+
+# 1. Start Floci
+echo "=== Starting Floci with docker-compose ==="
+docker compose up -d --build
+
+# Wait for healthy
+echo "Waiting for Floci to be healthy..."
+# Portable wait without 'timeout' command
+MAX_RETRIES=60
+COUNT=0
+until curl -sf http://localhost:4566/_floci/health >/dev/null 2>&1; do
+ if [ $COUNT -ge $MAX_RETRIES ]; then
+ echo "Floci failed to become healthy in time"
+ exit 1
+ fi
+ sleep 1
+ COUNT=$((COUNT + 1))
+ echo -n "."
+done
+echo " Floci is up!"
+
+# 2. Network setup (Floci uses floci_default from compose)
+NETWORK="floci_default"
+DOCKER_GID=$(stat -c '%g' /var/run/docker.sock 2>/dev/null || stat -f '%g' /var/run/docker.sock)
+
+# 3. Test suites
+SUITES=(
+ "sdk-test-python"
+ "sdk-test-node"
+ "sdk-test-java"
+ "sdk-test-go"
+ "sdk-test-awscli"
+ "sdk-test-rust"
+ "compat-cdk"
+ "compat-terraform"
+ "compat-opentofu"
+)
+
+# results dir
+mkdir -p test-results
+
+for suite in "${SUITES[@]}"; do
+ echo "=== Running $suite in Docker ==="
+
+ IMAGE_NAME="compat-$suite"
+
+ # Build
+ docker build -q -t "$IMAGE_NAME" "compatibility-tests/$suite"
+
+ EXTRA_ARGS=""
+ if [ "$suite" = "compat-cdk" ]; then
+ EXTRA_ARGS="-v /var/run/docker.sock:/var/run/docker.sock --group-add $DOCKER_GID"
+ fi
+
+ # Run
+ docker run --rm --network "$NETWORK" \
+ -e FLOCI_ENDPOINT=http://floci:4566 \
+ -v "$(pwd)/test-results:/results" \
+ $EXTRA_ARGS \
+ "$IMAGE_NAME" || echo "Test suite $suite failed"
+done
+
+echo "=== All Docker tests completed ==="
diff --git a/src/main/resources/META-INF/native-image/reflect-config.json b/src/main/resources/META-INF/native-image/reflect-config.json
index 8af499b1b7..d74a3cda69 100644
--- a/src/main/resources/META-INF/native-image/reflect-config.json
+++ b/src/main/resources/META-INF/native-image/reflect-config.json
@@ -1,4 +1,64 @@
[
+ {
+ "name": "io.github.hectorvent.floci.services.apigateway.VtlTemplateEngine$InputVariable",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "io.github.hectorvent.floci.services.apigateway.VtlTemplateEngine$UtilVariable",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "io.github.hectorvent.floci.services.apigateway.VtlTemplateEngine$ResponseOverride",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.util.introspection.UberspectImpl",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.util.introspection.TypeConversionHandlerImpl",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.runtime.resource.ResourceManagerImpl",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.runtime.resource.ResourceCacheImpl",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.runtime.ParserPoolImpl",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.runtime.resource.loader.FileResourceLoader",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
+ {
+ "name": "org.apache.velocity.runtime.resource.loader.StringResourceLoader",
+ "allDeclaredConstructors": true,
+ "allDeclaredMethods": true,
+ "allDeclaredFields": true
+ },
{
"name": "com.fasterxml.jackson.dataformat.cbor.CBORFactory",
"allDeclaredConstructors": true,
diff --git a/src/main/resources/META-INF/native-image/resource-config.json b/src/main/resources/META-INF/native-image/resource-config.json
index 4b3134dccf..ef87efa2c0 100644
--- a/src/main/resources/META-INF/native-image/resource-config.json
+++ b/src/main/resources/META-INF/native-image/resource-config.json
@@ -1,7 +1,8 @@
{
"resources": {
"includes": [
- {"pattern": "META-INF/services/java.security.Provider"}
+ {"pattern": "META-INF/services/java.security.Provider"},
+ {"pattern": "org/apache/velocity/runtime/defaults/velocity.properties"}
]
},
"bundles": [
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 9cbfa721ff..e76296ab51 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,4 +1,7 @@
quarkus:
+ log:
+ console:
+ color: true
http:
port: ${floci.port}
host: 0.0.0.0
diff --git a/src/main/resources/default_banner.txt b/src/main/resources/default_banner.txt
index 738b7dd950..9e2a7e54f2 100644
--- a/src/main/resources/default_banner.txt
+++ b/src/main/resources/default_banner.txt
@@ -1,7 +1,7 @@
- ______ _ ____ _____ _____
- | ____| | / __ \ / ____|_ _|
- | |__ | | | | | | | | |
- | __| | | | | | | | | |
- | | | |___| |__| | |____ _| |_
- |_| |______\____/ \_____|_____|
+ _____ _ ___ ___ __
+| ___|| | / _ \ / __| | |
+| |_ | | | | | || (__ | |
+| _| | |___| |_| | \__ \ | |
+|_| |_____|\___/ |___/ |_|
+ AWS Local Emulator · Always Free
\ No newline at end of file
diff --git a/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties b/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
new file mode 100644
index 0000000000..e790f79069
--- /dev/null
+++ b/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
@@ -0,0 +1,259 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# ----------------------------------------------------------------------------
+# This controls whether invalid references are logged.
+# ----------------------------------------------------------------------------
+
+runtime.log.log_invalid_references = true
+
+# ----------------------------------------------------------------------------
+# Strings interning
+# ----------------------------------------------------------------------------
+# Set to true to optimize memory, to false to optimize speed
+
+runtime.string_interning = true
+
+# ----------------------------------------------------------------------------
+# F O R E A C H P R O P E R T I E S
+# ----------------------------------------------------------------------------
+# This property controls how many loops #foreach can execute. The default
+# is -1, which means there is no limit.
+# ----------------------------------------------------------------------------
+
+directive.foreach.max_loops = -1
+
+# ----------------------------------------------------------------------------
+# I F P R O P E R T I E S
+# ----------------------------------------------------------------------------
+# This property controls whether empty strings and collections,
+# as long as zero numbers, do evaluate to false.
+# ----------------------------------------------------------------------------
+
+directive.if.empty_check = true
+
+# ----------------------------------------------------------------------------
+# P A R S E P R O P E R T I E S
+# ----------------------------------------------------------------------------
+
+directive.parse.max_depth = 10
+
+# ----------------------------------------------------------------------------
+# S C O P E P R O P E R T I E S
+# ----------------------------------------------------------------------------
+# These are the properties that govern whether or not a Scope object
+# is automatically provided for each of the given scopes to serve as a
+# scope-safe reference namespace and "label" for #break calls. The default
+# for most of these is false. Note that <bodymacroname> should be replaced by
+# name of macros that take bodies for which you want to suppress the scope.
+# ----------------------------------------------------------------------------
+# context.scope_control.template = false
+# context.scope_control.evaluate = false
+context.scope_control.foreach = true
+# context.scope_control.macro = false
+# context.scope_control.define = false
+# context.scope_control.<bodymacroname> = false
+
+# ----------------------------------------------------------------------------
+# T E M P L A T E L O A D E R S
+# ----------------------------------------------------------------------------
+#
+#
+# ----------------------------------------------------------------------------
+
+resource.default_encoding=UTF-8
+
+resource.loaders = file
+
+resource.loader.file.description = Velocity File Resource Loader
+resource.loader.file.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
+resource.loader.file.path = .
+resource.loader.file.cache = false
+resource.loader.file.modification_check_interval = 2
+
+# ----------------------------------------------------------------------------
+# VELOCIMACRO PROPERTIES
+# ----------------------------------------------------------------------------
+# global : name of default global library. It is expected to be in the regular
+# template path. You may remove it (either the file or this property) if
+# you wish with no harm.
+# ----------------------------------------------------------------------------
+# velocimacro.library = VM_global_library.vm
+
+velocimacro.inline.allow = true
+velocimacro.inline.replace_global = false
+velocimacro.inline.local_scope = false
+velocimacro.max_depth = 20
+
+# ----------------------------------------------------------------------------
+# VELOCIMACRO STRICT MODE
+# ----------------------------------------------------------------------------
+# if true, will throw an exception for incorrect number
+# of arguments. false by default (for backwards compatibility)
+# but this option will eventually be removed and will always
+# act as if true
+# ----------------------------------------------------------------------------
+velocimacro.arguments.strict = false
+
+# ----------------------------------------------------------------------------
+# VELOCIMACRO BODY REFERENCE
+# ----------------------------------------------------------------------------
+# Defines name of the reference that can be used to render the AST block passed to
+# block macro call as an argument inside a macro.
+# ----------------------------------------------------------------------------
+velocimacro.body_reference = bodyContent
+
+# ----------------------------------------------------------------------------
+# VELOCIMACRO ENABLE BC MODE
+# ----------------------------------------------------------------------------
+# Backward compatibility for 1.7 macros behavior.
+# If true, when a macro has to render a null or invalid argument reference
+# which is not quiet, it will print the provided literal reference instead
+# of the one found in the body of the macro ; and if a macro argument is
+# without an explicit default value is missing from the macro call, its value
+# will be looked up in the global context
+# ----------------------------------------------------------------------------
+velocimacro.enable_bc_mode = false
+
+# ----------------------------------------------------------------------------
+# STRICT REFERENCE MODE
+# ----------------------------------------------------------------------------
+# if true, will throw a MethodInvocationException for references
+# that are not defined in the context, or have not been defined
+# with a #set directive. This setting will also throw an exception
+# if an attempt is made to call a non-existing property on an object
+# or if the object is null.
+# ----------------------------------------------------------------------------
+runtime.strict_mode.enable = false
+
+# ----------------------------------------------------------------------------
+# INTERPOLATION
+# ----------------------------------------------------------------------------
+# turn off and on interpolation of references and directives in string
+# literals. ON by default :)
+# ----------------------------------------------------------------------------
+runtime.interpolate_string_literals = true
+
+
+# ----------------------------------------------------------------------------
+# INTEGER RANGES
+# ----------------------------------------------------------------------------
+# Whether integer ranges created with [a..b] expressions are immutable.
+# ON by default :)
+# ----------------------------------------------------------------------------
+runtime.immutable_ranges = true
+
+
+# ----------------------------------------------------------------------------
+# RESOURCE MANAGEMENT
+# ----------------------------------------------------------------------------
+# Allows alternative ResourceManager and ResourceCache implementations
+# to be plugged in.
+# ----------------------------------------------------------------------------
+resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
+resource.manager.cache.class = org.apache.velocity.runtime.resource.ResourceCacheImpl
+
+# ----------------------------------------------------------------------------
+# PARSER POOL
+# ----------------------------------------------------------------------------
+# Selects a custom factory class for the parser pool. Must implement
+# ParserPool. parser.pool.size is used by the default implementation
+# ParserPoolImpl
+# ----------------------------------------------------------------------------
+
+parser.pool.class = org.apache.velocity.runtime.ParserPoolImpl
+parser.pool.size = 20
+
+
+# ----------------------------------------------------------------------------
+# EVENT HANDLER
+# ----------------------------------------------------------------------------
+# Allows alternative event handlers to be plugged in. Note that each
+# class property is actually a comma-separated list of classes (which will
+# be called in order).
+# ----------------------------------------------------------------------------
+# event_handler.reference_insertion.class =
+# event_handler.invalid_reference.class =
+# event_handler.method_exception.class =
+# event_handler.include.class =
+
+
+# ----------------------------------------------------------------------------
+# PLUGGABLE INTROSPECTOR
+# ----------------------------------------------------------------------------
+# Allows alternative introspection and all that can of worms brings.
+# ----------------------------------------------------------------------------
+
+introspector.uberspect.class = org.apache.velocity.util.introspection.UberspectImpl
+
+# ----------------------------------------------------------------------------
+# CONVERSION HANDLER
+# ----------------------------------------------------------------------------
+# Sets the data types Conversion Handler used by the default uberspector
+# ----------------------------------------------------------------------------
+
+introspector.conversion_handler.class = org.apache.velocity.util.introspection.TypeConversionHandlerImpl
+1
+
+# ----------------------------------------------------------------------------
+# SECURE INTROSPECTOR
+# ----------------------------------------------------------------------------
+# If selected, prohibits methods in certain classes and packages from being
+# accessed.
+# ----------------------------------------------------------------------------
+
+introspector.restrict.packages = java.lang.reflect
+
+# The two most dangerous classes
+
+introspector.restrict.classes = java.lang.Class
+introspector.restrict.classes = java.lang.ClassLoader
+
+# Restrict these for extra safety
+
+introspector.restrict.classes = java.lang.Compiler
+introspector.restrict.classes = java.lang.InheritableThreadLocal
+introspector.restrict.classes = java.lang.Package
+introspector.restrict.classes = java.lang.Process
+introspector.restrict.classes = java.lang.ProcessBuilder
+introspector.restrict.classes = java.lang.Reflect
+introspector.restrict.classes = java.lang.Runtime
+introspector.restrict.classes = java.lang.RuntimePermission
+introspector.restrict.classes = java.lang.SecurityManager
+introspector.restrict.classes = java.lang.System
+introspector.restrict.classes = java.lang.Thread
+introspector.restrict.classes = java.lang.ThreadGroup
+introspector.restrict.classes = java.lang.ThreadLocal
+introspector.restrict.classes = java.net.Socket
+introspector.restrict.classes = javax.management.MBeanServer
+introspector.restrict.classes = javax.script.ScriptEngine
+
+# ----------------------------------------------------------------------------
+# SPACE GOBBLING
+# ----------------------------------------------------------------------------
+# Possible values: none, bc (aka Backward Compatible), lines, structured
+# ----------------------------------------------------------------------------
+
+parser.space_gobbling = lines
+
+# ----------------------------------------------------------------------------
+# HYPHEN IN IDENTIFIERS
+# ----------------------------------------------------------------------------
+# Set to true to allow '-' in reference identifiers (backward compatibility option)
+# ----------------------------------------------------------------------------
+
+parser.allow_hyphen_in_identifiers = false