mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
* fix(lambda): replace the fabric8 kubernetes client with a plain REST client quarkus-kubernetes-client was an always-on dependency, so the fabric8 client and its generated Kubernetes model classes were reachable in every native image regardless of whether floci.services.lambda.executor was ever set to kubernetes. That was the single largest contributor to a ~20% native image size increase last month (issue #2914). The kubernetes executor only ever needs a handful of plain REST calls (create/get/list/delete pods, create-or-update a ConfigMap, stream logs) against a plain JSON HTTPS API, the same shape Floci already talks to AWS in without an SDK. KubernetesApiClient replaces the fabric8 client with the JDK HttpClient (as FlinkRestClient already does for another container orchestrator's REST API), so the dependency is gone entirely rather than merely unused: it no longer appears anywhere in the packaged application, native or JVM. Connection resolution mirrors kubectl's for the common cases: in-cluster service account (token re-read per call since projected tokens rotate, CA loaded once), or a kubeconfig's current-context with a static bearer token or client-certificate/client-key (PKCS#8) credential. exec/auth-provider credential plugins (e.g. aws eks get-token) are not supported and fail with a clear error naming the limitation. LambdaPodSpecFactory now builds the pod manifest as a plain JSON tree instead of fabric8 builders. Tests keep using fabric8's kubernetes-server-mock as a fake API server (test-scope only, so it never reaches the shipped artifact) and point KubernetesApiClient at it over HTTP(S) instead of constructing a fabric8 client directly. * fix(lambda): support insecure-skip-tls-verify and drop stale test devservices config kubeconfig's insecure-skip-tls-verify (the common kind/minikube dev-cluster case) fell through to the default trust store and failed with a generic PKIX error instead of a named limitation like every other unsupported kubeconfig case. Honor it: skip both chain and hostname validation, matching kubectl. Verified against a real self-signed HTTPS server, both with and without the flag, so a regression here fails loudly. Also drops src/test/resources/application.yml's leftover quarkus.kubernetes-client.devservices block: with the extension gone from pom.xml that key is unrecognized config pointing at a dependency that no longer exists.
439 lines
17 KiB
XML
439 lines
17 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>2.0.1</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.37.4</quarkus.platform.version>
|
|
<jackson.version>2.22.1</jackson.version>
|
|
<apicurio.version>2.6.13.Final</apicurio.version>
|
|
<everit.json.schema.version>1.14.6</everit.json.schema.version>
|
|
<wire.version>6.4.5</wire.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson</groupId>
|
|
<artifactId>jackson-bom</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<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.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java-util</artifactId>
|
|
<version>3.25.9</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.api.grpc</groupId>
|
|
<artifactId>proto-google-common-protos</artifactId>
|
|
<version>2.49.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2-mvstore</artifactId>
|
|
<version>2.4.240</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.wire</groupId>
|
|
<artifactId>wire-runtime</artifactId>
|
|
<version>${wire.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.wire</groupId>
|
|
<artifactId>wire-runtime-jvm</artifactId>
|
|
<version>${wire.version}</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>
|
|
<dependency>
|
|
<groupId>io.smallrye.reactive</groupId>
|
|
<artifactId>smallrye-mutiny-vertx-web-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.vertx</groupId>
|
|
<artifactId>vertx-mqtt</artifactId>
|
|
</dependency>
|
|
|
|
<!-- cron-utils for EventBridge schedule expression parsing -->
|
|
<dependency>
|
|
<groupId>com.cronutils</groupId>
|
|
<artifactId>cron-utils</artifactId>
|
|
<version>9.2.1</version>
|
|
</dependency>
|
|
|
|
<!-- Kafka client for MSK/self-managed Kafka pipe polling -->
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-clients</artifactId>
|
|
<version>4.3.1</version>
|
|
</dependency>
|
|
|
|
<!-- Snappy for Firehose Snappy/HADOOP_SNAPPY delivery to S3: the only Java
|
|
library that writes the xerial stream format AWS uses. -->
|
|
<dependency>
|
|
<groupId>org.xerial.snappy</groupId>
|
|
<artifactId>snappy-java</artifactId>
|
|
</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>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5</artifactId>
|
|
<version>5.5.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.85</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bouncycastle</groupId>
|
|
<artifactId>bcpkix-jdk18on</artifactId>
|
|
<version>1.85</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>26.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.45</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>
|
|
<!-- Apicurio asks for the JSON schema library under its JitPack coordinate
|
|
(com.github.everit-org.json-schema), which has never been published to Maven
|
|
Central. Resolving it needs a JitPack repository, so a clone with a cold
|
|
~/.m2 fails to build. Replaced below with the same library under the
|
|
coordinate its author publishes to Central. -->
|
|
<exclusion>
|
|
<groupId>com.github.everit-org.json-schema</groupId>
|
|
<artifactId>org.everit.json.schema</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- The same project as com.github.everit-org.json-schema, rehomed by its author to a
|
|
Central-published coordinate: identical org.everit.json.schema packages, so apicurio's
|
|
JsonSchemaCompatibilityChecker and JsonSchemaContentValidator load unchanged. -->
|
|
<dependency>
|
|
<groupId>com.github.erosb</groupId>
|
|
<artifactId>everit-json-schema</artifactId>
|
|
<version>${everit.json.schema.version}</version>
|
|
</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>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<version>4.3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kubernetes-server-mock</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- kubernetes-server-mock declares this as optional, so it must be pulled in
|
|
explicitly for the kubernetes Lambda executor's tests, which use it as a fake
|
|
API server (never shipped: KubernetesApiClient is a plain HTTP client, not a
|
|
Kubernetes SDK, see issue #2914). -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kubernetes-client</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>3.25.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.paho</groupId>
|
|
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
|
<version>1.2.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.paho</groupId>
|
|
<artifactId>org.eclipse.paho.mqttv5.client</artifactId>
|
|
<version>1.2.5</version>
|
|
<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>io.quarkus</groupId>
|
|
<artifactId>quarkus-jdbc-postgresql</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>2.4.240</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>6.2.0</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>
|
|
<!-- The suite's end-of-run live set exceeds the 4g default heap of
|
|
16g CI runners; a full GC near the end reclaims almost nothing. -->
|
|
<argLine>-Xmx6g</argLine>
|
|
<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>
|