mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* feat(neptune): support neo4j backend for openCypher via NEPTUNE_DB_TYPE Neptune emulation always started a TinkerPop Gremlin Server, which only speaks Gremlin. Add a global db-type selector (FLOCI_SERVICES_NEPTUNE_DB_TYPE, mirroring LocalStack's NEPTUNE_DB_TYPE) so clusters can be backed by Neo4j and served over the Bolt protocol for openCypher. - Add NeptuneDbType enum (gremlin -> 8182, neo4j -> 7687) with alias parsing - Add db-type and default-neo4j-image config (default neo4j:5-community) - Resolve image/port per engine in NeptuneService and NeptuneContainerManager - Run Neo4j with NEO4J_AUTH=none and probe readiness via the Bolt handshake - Add openCypher/Bolt integration test and NeptuneDbType unit test - Document the new option in README and docs/services/neptune.md * test(neptune): assert DeleteDBCluster cleanup and clarify docs Assert the openCypher integration test's DeleteDBCluster cleanup returns 200 so a failed delete surfaces instead of silently leaking a backend container and proxy port into later tests. Also drop the misleading backend ports from the db-type table (users connect via the proxy port range, not the container-native port) and correct the SigV4 auth-header comment to reference the management request routing. * fix(neptune): treat all-zero Bolt handshake reply as not-ready The Neo4j readiness probe accepted any non-empty response, but Neo4j answers the Bolt handshake with 0x00000000 when it rejects every proposed version (Bolt disabled, wrong port, or an unsupported server version). That made the probe report ready for a backend whose sessions would then fail. Require a non-zero agreed version for the neo4j db-type so such a backend times out with a clear error instead. * fix(neptune): fall back to default db-type on unknown config value A server-side typo in FLOCI_SERVICES_NEPTUNE_DB_TYPE shouldn't fail the client's CreateDBCluster. Make NeptuneDbType.fromConfig return an Optional and have NeptuneService fall back to GREMLIN with a WARN for an unrecognised value, instead of throwing InvalidParameterValue. The cluster still comes up on the default engine.
326 lines
12 KiB
XML
326 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>io.github.hectorvent</groupId>
|
|
<artifactId>floci</artifactId>
|
|
<version>1.5.26</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Floci</name>
|
|
<description>Fast, free, open-source local AWS emulator supporting SSM, SQS, SNS, SES, S3, DynamoDB, Lambda, API Gateway, Cognito, KMS, Kinesis, Secrets Manager, CloudFormation, Step Functions, IAM, STS, ElastiCache, RDS, EventBridge, and CloudWatch</description>
|
|
|
|
<properties>
|
|
<maven.compiler.release>25</maven.compiler.release>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<quarkus.platform.version>3.36.0</quarkus.platform.version>
|
|
<apicurio.version>2.6.9.Final</apicurio.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.quarkus.platform</groupId>
|
|
<artifactId>quarkus-bom</artifactId>
|
|
<version>${quarkus.platform.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>3.25.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java-util</artifactId>
|
|
<version>3.25.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.api.grpc</groupId>
|
|
<artifactId>proto-google-common-protos</artifactId>
|
|
<version>2.49.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<!-- Quarkus REST (RESTEasy Reactive) -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-rest-jackson</artifactId>
|
|
</dependency>
|
|
<!-- YAML config support -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-config-yaml</artifactId>
|
|
</dependency>
|
|
<!-- Vert.x mail client for SES SMTP relay -->
|
|
<dependency>
|
|
<groupId>io.vertx</groupId>
|
|
<artifactId>vertx-mail-client</artifactId>
|
|
</dependency>
|
|
<!-- MIME parsing for raw email relay -->
|
|
<dependency>
|
|
<groupId>org.apache.james</groupId>
|
|
<artifactId>apache-mime4j-dom</artifactId>
|
|
<version>0.8.14</version>
|
|
</dependency>
|
|
|
|
<!-- Jackson for JSON storage serialization -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-cbor</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Vert.x for per-container Lambda Runtime API servers -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-vertx</artifactId>
|
|
</dependency>
|
|
|
|
<!-- cron-utils for EventBridge schedule expression parsing -->
|
|
<dependency>
|
|
<groupId>com.cronutils</groupId>
|
|
<artifactId>cron-utils</artifactId>
|
|
<version>9.2.1</version>
|
|
</dependency>
|
|
|
|
|
|
<!-- Docker client for Lambda container lifecycle management -->
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-core</artifactId>
|
|
<version>3.7.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-transport-httpclient5</artifactId>
|
|
<version>3.7.1</version>
|
|
</dependency>
|
|
<!-- Explicit overrides for Quarkus BOM which pins these at 3.7.0;
|
|
docker-java-core:3.7.1 requires 3.7.1 for ImageHistoryCmd and ExportContainerCmd -->
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-api</artifactId>
|
|
<version>3.7.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-transport</artifactId>
|
|
<version>3.7.1</version>
|
|
</dependency>
|
|
<!-- httpclient5 5.5.1 (pulled by docker-java-transport-httpclient5:3.7.1) optionally
|
|
depends on Brotli; GraalVM native image requires the class to be on the classpath -->
|
|
<dependency>
|
|
<groupId>org.brotli</groupId>
|
|
<artifactId>dec</artifactId>
|
|
<version>0.1.2</version>
|
|
</dependency>
|
|
|
|
<!-- BouncyCastle for X.509 certificate generation and PEM handling (ACM service) -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bouncycastle</groupId>
|
|
<artifactId>bcprov-jdk18on</artifactId>
|
|
<version>1.84</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bouncycastle</groupId>
|
|
<artifactId>bcpkix-jdk18on</artifactId>
|
|
<version>1.84</version>
|
|
</dependency>
|
|
|
|
<!-- JSONata expression engine (Step Functions) -->
|
|
<dependency>
|
|
<groupId>com.dashjoin</groupId>
|
|
<artifactId>jsonata</artifactId>
|
|
<version>0.9.10</version>
|
|
</dependency>
|
|
|
|
<!-- Apache Velocity Template Engine (API Gateway VTL mapping templates) -->
|
|
<dependency>
|
|
<groupId>org.apache.velocity</groupId>
|
|
<artifactId>velocity-engine-core</artifactId>
|
|
<version>2.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- GraphQL schema parsing and type system (AppSync execution engine) -->
|
|
<dependency>
|
|
<groupId>com.graphql-java</groupId>
|
|
<artifactId>graphql-java</artifactId>
|
|
<version>22.0</version>
|
|
</dependency>
|
|
|
|
<!-- JSON Schema validation (API Gateway request validation) -->
|
|
<dependency>
|
|
<groupId>com.networknt</groupId>
|
|
<artifactId>json-schema-validator</artifactId>
|
|
<version>1.5.9</version>
|
|
</dependency>
|
|
|
|
<!-- OpenAPI/Swagger parser (API Gateway ImportRestApi) -->
|
|
<dependency>
|
|
<groupId>io.swagger.parser.v3</groupId>
|
|
<artifactId>swagger-parser</artifactId>
|
|
<version>2.1.43</version>
|
|
</dependency>
|
|
|
|
<!-- Glue Schema Registry: Apicurio format utilities (parsing, canonicalization, compatibility) -->
|
|
<dependency>
|
|
<groupId>io.apicurio</groupId>
|
|
<artifactId>apicurio-registry-schema-util-avro</artifactId>
|
|
<version>${apicurio.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.apicurio</groupId>
|
|
<artifactId>apicurio-registry-schema-util-json</artifactId>
|
|
<version>${apicurio.version}</version>
|
|
<exclusions>
|
|
<!-- Apicurio's logging library brings a Servlet-based audit filter that
|
|
fails to wire under Quarkus REST (Vert.x). Schema-util code does not
|
|
reference it. -->
|
|
<exclusion>
|
|
<groupId>io.apicurio</groupId>
|
|
<artifactId>apicurio-common-app-components-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.apicurio</groupId>
|
|
<artifactId>apicurio-registry-schema-util-protobuf</artifactId>
|
|
<version>${apicurio.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Testing -->
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit-mockito</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-jdbc-mysql</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>2.3.232</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- openCypher/Bolt client for the Neptune neo4j db-type integration test -->
|
|
<dependency>
|
|
<groupId>org.neo4j.driver</groupId>
|
|
<artifactId>neo4j-java-driver</artifactId>
|
|
<version>5.28.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.quarkus.platform</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${quarkus.platform.version}</version>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
<goal>generate-code</goal>
|
|
<goal>generate-code-tests</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.15.0</version>
|
|
<configuration>
|
|
<release>${maven.compiler.release}</release>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.5.6</version>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>3.6.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-java</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireJavaVersion>
|
|
<version>[25,26)</version>
|
|
<message>Floci requires JDK 25. Set JAVA_HOME to JDK 25.</message>
|
|
</requireJavaVersion>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>native</id>
|
|
<activation>
|
|
<property>
|
|
<name>native</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<skipITs>true</skipITs>
|
|
<quarkus.native.enabled>true</quarkus.native.enabled>
|
|
<maven.compiler.release>24</maven.compiler.release>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|