* feat(verifiedpermissions): add full service emulation
* fix(verifiedpermissions): harden OIDC and schema validation
* test(verifiedpermissions): add service layer coverage
* fix(verifiedpermissions): support native Cedar runtime
* fix(verifiedpermissions): package Cedar native FFI
* fix(verifiedpermissions): register Cedar deserializers for native
* fix(verifiedpermissions): bound JWKS refreshes
* fix(verifiedpermissions): avoid Cedar entity reflection
* fix(verifiedpermissions): register Cedar native reflection
* fix(verifiedpermissions): refresh rotated OIDC keys safely
* fix(verifiedpermissions): retry failed JWKS refreshes
* refactor(verifiedpermissions): isolate Cedar in sidecar
* fix(verifiedpermissions): harden Cedar sidecar runtime
* fix(verifiedpermissions): build cedar sidecar in compatibility CI
* fix(verifiedpermissions): remove stale cedar jni config
* fix(verifiedpermissions): recover cedar sidecar
* fix(verifiedpermissions): bound OIDC document responses
* fix(verifiedpermissions): start cedar sidecar in native sdk CI
* chore(deps): update to Quarkus 3.39.2 and refresh pinned libraries
Quarkus platform 3.37.4 -> 3.39.2 (BOM and plugin), Jackson 2.22.2, wire 6.4.7,
bcprov 1.85.2, graphql-java 26.1, swagger-parser 2.1.48, assertj 3.27.7,
neo4j-java-driver 6.2.1, maven-compiler-plugin 3.16.0, maven-surefire-plugin
3.6.0. Vert.x 4.5.33, Netty 4.1.137, REST Assured 6.0.1 and the Kubernetes
client move with the BOM.
Two pins are kept deliberately. httpclient5 stays at 5.5.1: 5.6 adds
transparent content decoding through commons-compress, and its XZ codec
references org.tukaani.xz, which is not on the classpath, so the native build
fails at link time through docker-java's FrameReader. The Quarkus 3.39 BOM
manages 5.6.3, so the explicit pin is what keeps it out. protobuf-java 3.25.9
and proto-google-common-protos 2.49.0 stay for apicurio 2.6.13, the same
mixed-classpath native failure that blocks #2906; apicurio 3.x is the real fix
and is its own change.
Verified: full test suite (14190 + 3479 tests, no new failures; the two
RuntimeApiServerTest races reproduce on main), native image on GraalVM 25.0.3
builds and serves STS GetCallerIdentity.
* chore(ci): keep single-callsite inlining off for Mandrel native builds
Quarkus 3.39 enables -H:+AOTSingleCallsiteInline by default on Mandrel
25.0.4+ (quarkusio/quarkus#55482). The generated Quarkus REST invokers for
AwsQueryController.dispatch and AwsJson11Controller.handle are each the single
call site of a very large method, so the inliner folds it in and the aarch64
build fails in the compile step with BranchTargetOutOfBoundsException:
conditional branches on AArch64 reach +/-1 MB and the inlined method is
larger. The amd64 build survives only because x86 branches reach further, and
its compile step still grew from about 60 s to 250 s.
The opt-out flag exists only on Mandrel (Oracle GraalVM 25.0.3 rejects it as
an unrecognized option), so it is appended in the workflows that build with
Mandrel rather than in application.yml, keeping local builds on any GraalVM
distribution working.
* fix(deps): pin httpcore5 to the version httpclient5 5.5.1 declares
The Quarkus 3.38+ BOM manages httpcore5 at 5.4.3, where the 3.37 BOM left it
to httpclient5, which declares 5.3.6. httpcore5 5.4 changed SocketConfig's
defaults: soKeepAlive is on and tcpKeepIdle is 5 seconds, where 5.3 had them
off. docker-java copies SocketConfig.DEFAULT for the Docker socket, so
httpclient5 now sets TCP_KEEPIDLE on it through SocketSupport.setOption, which
looks up Socket.setOption and jdk.net.ExtendedSocketOptions by reflection. In
the native image that reflection is unregistered, the lookup throws, and every
Docker request fails with "Failure setting extended socket option": the native
compat suites lost ECR, ECS, RDS, Redshift and the CDK bootstrap on both
architectures while the JVM shards stayed green.
docker-java is the only consumer of httpcore5 in the tree. Pinning httpcore5
and httpcore5-h2 to 5.3.6 restores the pair httpclient5 5.5.1 was built with.
Verified on a local native build: the binary boots on Quarkus 3.39.2 and ECR
GetAuthorizationToken starts the backing registry container over the Docker
socket. Bisected: 3.37.4 clean, 3.38.3 and 3.39.2 fail without the pin.
The readiness step curled the port, so the image's HEALTHCHECK never ran
under CI: a malformed probe would leave the container unhealthy while every
suite passed against the open port. The step now polls docker inspect for
the health status, exits on healthy and fails with the health log and the
container logs on unhealthy, so both arches exercise the native image's
bash /dev/tcp probe before any suite starts.
Checked on a CI-built arm64 image: healthy after 5 s; with the app forced
onto another port, unhealthy is reported after 26 s and the step fails.
* perf(docker): move the native image to ubi9-micro
The binary needs only libc, and since #3037 the entrypoint needs only
bash and coreutils. ubi9-micro has both at 7 MB compressed instead of
ubi9-minimal's 40 MB. Measured on arm64 with the nightly-09042026
binary: 109 MB to about 78 MB compressed, 313 MB to 229 MB uncompressed.
ubi9-micro has no useradd and no curl, so the user is one /etc/passwd
line and the healthcheck is a bash /dev/tcp probe. Dockerfile.native
gets the same runtime stage and loses its unused gosu tools stage.
Dockerfile.compat needs microdnf, so it now starts from ubi9-minimal
and copies /app out of the native image.
* chore(docker): share the health probe and split the compat tools stage
The bash health probe is now docker/healthcheck.sh, used by all three
Dockerfiles. Dockerfile.compat gets a version independent tools stage;
the aws CLI shim test and the cache warm job build target: tools, so
they pull no floci image and their cached layers stay stable. ARG
VERSION and the native RUN steps move so only the binary copy changes
between builds.
* fix(docker): copy healthcheck.sh into the compat image from the build context
* ci(compat): build the whole compat image on pull requests and check it starts healthy
#2940 widened the compatibility workflow to build the native image for both
published architectures and run all eight suites on both, sixteen suite jobs per
PR. What the suites check is arch-neutral, and with several PRs in flight the
jobs sat queued for the shared runner pools for longer than they take to run.
The suites now run against the arm64 image only. Both native images are still
built, so each published architecture is proven to link and package, and one
amd64 suite stays: sdk-test-python now carries a Firehose compression delivery
test, mirroring the Java one, that proves the x86_64 snappy JNI library
survived the native build. That is the one resource registered per platform,
and the proof moves from the slowest leg to the fastest.
The two Snappy variants are container formats around raw Snappy blocks: the
xerial snappy-java stream and Hadoop's block framing, neither of which has a
Python reader without native system libraries. The test parses the framing
itself, following Floci's writer, and decodes the raw blocks with cramjam,
which ships wheels for both architectures. The results artifact carries the
architecture in its name so the two Python uploads are distinguishable.
Quarkus passes -H:BuildOutputJSONFile to every native build, so the
build-output stats (code area, image heap, resources, total image size,
reachable types and methods) already exist next to the native source jar
and were thrown away. Read them after the quick build, append them to the
job summary for each architecture together with the gzip size of the
binary, which tracks the compressed layer Docker Hub reports, and upload
the JSON as an artifact for 30 days.
This is the measurement every dependency-removal PR needs on amd64, which
cannot be built locally on an Apple Silicon machine, and the first half of
a size gate: nothing fails yet, the numbers just become visible per PR.
Replaces the 38 floating tag refs left across ci, compatibility, doc-style, docs, docs-actions, conventional-commits, nightly, release and welcome with the SHA plus version comment style already used by release-cut and build-images. Floating majors are pinned to their current release (upload-artifact v7.0.1, download-artifact v8.0.1, setup-python v7.0.0, amazon-ecr-login v2.0.1). Every SHA was checked against the tag it annotates.
* perf(build): keep only the snappy JNI libraries the image can load
snappy-java registers its JNI library for 27 platforms as native image
resources. Only the one for the running platform can load.
Downsize Docker image size from 274.4 to 267.5 MiB,
88.7 to 86.6 MB gzipped.
* ci(compat): run the native compatibility suite on amd64 too
The native image ships for linux/amd64 and linux/arm64, but only arm64
ever ran the compatibility suite. An arch-specific resource in the native
image could go missing on amd64 and no PR check would catch it. The
snappy-java JNI library is one such resource.
Both jobs now run once per architecture.
Adds a CI job comparing the resource address lists in the two configs'
main.tf files, failing on any unlisted one-sided resource. The 11
resources already only in compat-terraform (Application Auto Scaling,
RDS, the CloudWatch alarm, the IAM managed-policy-attach path, IAM tag
coverage, and the GuardDuty org feature) are recorded as pre-existing
gaps in a new tf-only allowlist rather than ported, so the check also
flags an allowlist entry once it stops being one-sided.
Allowlists are directional (separate tf-only / otf-only files) so a
resource that flips sides -- dropped from one config and re-added to
the other under the same address -- is still reported as unreviewed
drift instead of silently matching a stale entry from the old side.
Closes#2263
Consolidates three open dependabot PRs into one change so CI runs once
instead of three times, and the workflow files are touched by a single
commit rather than three overlapping ones.
- #2908 actions-minor-patch group, five workflows
- #2910 actions/setup-java 5.6.0 to 6.0.0
- #2909 actions/setup-node 6.0.0 to 7.0.0
Every changed line is a `uses:` reference: setup-buildx x8, setup-graalvm
x7, login-action x4, checkout x4, build-push-action x3, setup-java x2,
setup-node x1. Nothing outside .github/workflows is touched.
The maven-minor-patch group (#2906) is deliberately left out: it crosses
a Quarkus minor version and wants its own branch and a full test run.
* feat(redshift): add auth proxy port range and endpoint-host config
* feat(redshift): add containerHost/containerPort/proxyPort to Cluster model
* feat(redshift): add RedshiftAuthProxy reusing the RDS PostgreSQL protocol handler
* feat(redshift): add RedshiftProxyManager registry with shutdown hook
* feat(redshift): front new clusters with an auth proxy and advertise it
* feat(redshift): stop/update proxy on delete/modify, start it on snapshot restore
* feat(redshift): keep proxy port stable across reboot and adopt-on-startup
* test(redshift): integration coverage for JDBC through the auth proxy
* test(redshift): reinstate JDBC connectivity check now that the proxy exists
* docs(redshift): document the cluster auth proxy and its config
* fix(redshift): prevent minor port leak when proxy fails to start
* fix(redshift): rollback container on proxy failure and surface teardown errors
* fix(redshift): stop auth proxy on rollback to prevent listener collisions
* fix(redshift): ensure proxy shutdown failure does not abort container and port cleanup
* fix(redshift): add proper logging for intentionally ignored cleanup exceptions
* fix: Wait for Redshift database readiness before proxying
Previously, RedshiftContainerManager just slept for 3 seconds before marking the container as started. On slower CI environments, the PostgreSQL database might take longer to initialize, resulting in Connection Refused when the RedshiftAuthProxy forwards connections.
Now, RedshiftContainerManager polls the database using psql until it's ready, up to 60 seconds.
* fix(redshift): prevent proxy port reallocation on shutdown failure
Addresses a review comment indicating that if a Redshift auth proxy fails to shut down during rollback or deletion, its port must not be released into the available pool. Reassigning a still-bound port would cause subsequent cluster creations to fail with a BindException.
Instead, we now tolerate proxy shutdown errors but intentionally leak the port allocation to prevent collisions.
* fix(redshift): fix failing tests due to proxy changes
1. RedshiftOperationsTest checked for a hardcoded port 5440, but the RedshiftService now allocates dynamic proxy ports. Removed the exact port assertion.
2. RedshiftContainerManager's psql readiness check was connecting via local Unix socket, which succeeded before PostgreSQL was actually ready to accept remote TCP connections from the proxy. Added '-h 127.0.0.1' to enforce TCP readiness.
* test(redshift): use Awaitility to connect to proxy
Use Awaitility to retry the initial connection in RedshiftProxyIntegrationTest to prevent transient 'Connection attempt failed' errors on slower CI environments.
* chore(redshift): use proper imports instead of fully-qualified class names in tests
* fix(redshift): fix compiler errors introduced during import cleanup
* fix(redshift): resolve proxy lifecycle bugs and CI network issues
- Throw RuntimeException from RedshiftProxyManager.stopProxy if proxy is not found. This allows RedshiftService to catch it and intentionally leak the port, preventing port collisions if a proxy fails before registration.
- Force RedshiftProxyIntegrationTest to connect via 127.0.0.1 instead of the endpoint address, which resolves to host.docker.internal in CI environments and causes UnknownHostException.
* fix(redshift): prevent proxy port exhaustion on startup failures
Instead of blindly assuming missing proxies denote a leaked port, RedshiftProxyManager now tracks proxies that failed their socket cleanup during startup. stopProxy throws an exception only if the socket is known to be leaked. This allows RedshiftService to safely release ports after clean proxy startup failures, addressing Greptile's feedback about port exhaustion.
* fix(redshift): retain proxy reference to allow retry on close failure
As identified by Greptile, stopProxy previously removed the proxy from the registry before calling proxy.stop(). If stop() threw an exception, the proxy reference was lost, preventing any subsequent retry from ever finding it and attempting to close it again. stopProxy now only removes the proxy from the registry after stop() returns successfully. Additionally, failedCleanups is now retained instead of cleared, ensuring retries continue to safely leak the port if cleanup remains impossible.
* fix(redshift): abort cluster deletion if proxy fails to stop
As highlighted by Greptile, previously deleteCluster would swallow proxy shutdown failures and delete the cluster metadata anyway. This eliminated the retry path, stranding the unclosed proxy and its port reservation until the process exited. Now, if stopProxyAndReleasePortSafely fails, deleteCluster throws an exception to preserve the cluster metadata so the deletion can be retried.
* test(redshift): lock in proxy lifecycle failure-recovery behaviors
Bổ sung test cho ba hành vi hardening chưa được cover, để refactor sau
không âm thầm phá vỡ:
- stopProxy giữ lại proxy trong registry khi close() ném, cho phép retry
gọi lại đúng instance và chỉ deregister sau khi stop sạch
- marker leak khi startup cleanup thất bại được retain qua mọi retry và
chỉ bị xoá bởi một lần start mới thành công
- deleteCluster abort với InternalFailure, giữ nguyên container + metadata
khi proxy không stop được; retry sau đó hoàn tất khi proxy stop OK
Đồng thời bỏ "-p 7100-7199:7100-7199" trong compatibility.yml: proxy bind
0.0.0.0 trong container floci và sdk-test-java chạy trên compat-net nên
JDBC đi container-to-container qua alias "floci", không cần publish port
ra host. Giữ lại FLOCI_SERVICES_REDSHIFT_ENDPOINT_HOST=floci.
* fix(redshift): keep an unclosable proxy reachable for later retry
Theo phản hồi mới của Greptile: khi start/replace proxy thất bại và
cleanupFailedStart cũng không đóng được listener, code cũ chỉ lưu relayKey
vào một Set rồi vứt object RedshiftAuthProxy. stopProxy sau đó ném vĩnh
viễn mà không còn cách nào chạm tới listener để thử đóng lại, khiến
cluster không xoá được và port bị giữ mãi trong dải hữu hạn.
Thay Set<String> failedCleanups bằng Map<String, RedshiftAuthProxy>
unclosableProxies. cleanupFailedStart giữ lại chính proxy đó; stopProxy và
stopAll thử đóng lại, chỉ gỡ entry khi stop thành công. startProxy không
còn xoá marker khi start mới — chỉ một lần stop thành công mới gỡ, vì
listener cũ có thể vẫn đang bound.
* fix(redshift): retry proxy port bind to absorb reboot rebind race
rebootCluster giữ nguyên proxy port của cluster để endpoint ổn định, nên
listener cũ bị đóng rồi bind lại đúng port đó chỉ vài ms sau. Dưới tải
(CI runner ARM) kernel có thể chưa nhả port và SO_REUSEADDR không giúp
được khi accept loop cũ đang teardown -> BindException -> RebootCluster
trả 500. Đây là nguyên nhân test RedshiftOperationsTest.
testClusterAndSnapshotLifecycle fail chập chờn.
start() giờ retry bind tối đa ~1s, chỉ nuốt BindException; IOException
khác vẫn propagate ngay. Thêm test dựng cảnh port bị chiếm tạm thời rồi
nhả, xác nhận proxy vẫn bind được.
* fix(redshift): tear down proxy and release port when rebootCluster fails
Nếu startProxy/restoreSnapshot ném sau khi proxy đã (re)start trong
rebootCluster, hai nhánh catch chỉ set status "failed" rồi rethrow —
proxy mới vẫn chạy và port vẫn nằm trong usedPorts, không nhánh nào dọn.
Giờ cả hai catch gọi stopProxyAndReleasePortSafely như createCluster và
restoreFromClusterSnapshot đã làm; proxyPort được hoist ra ngoài try với
sentinel -1 để rollback an toàn kể cả khi chưa cấp port.
Thêm test: restoreSnapshot ném -> proxy được stop lại, AwsException nổi lên.
* fix(redshift): serialize createCluster/deleteCluster/restoreFromClusterSnapshot
modifyCluster và rebootCluster đã synchronized nhưng create/delete/restore
thì không, dù cả năm method đều chạy chuỗi container + proxy + port nhiều
bước trên cùng một cluster. deleteCluster(x) chạy song song rebootCluster(x)
có thể để lại metadata mồ côi trỏ tới container/proxy đã dừng. Thêm
synchronized cho ba method còn lại để nhất quán.
* fix(rds,redshift): close backend socket when the auth handshake fails
handleConnection mở kết nối TCP tới container Postgres trước khi gọi
handleAuth. Chỉ nhánh thành công (bridge) và vài nhánh lỗi có kiểm soát
mới đóng backend; nếu handleAuth trả về sớm ở một probe trần (SSLRequest
không kèm startup) hoặc ném IOException (client ngắt giữa handshake), catch
cũ chỉ đóng client -> mỗi health-check TCP làm rò một connection tới
Postgres, ăn dần max_connections.
Chuyển việc đóng socket sang finally, đóng cả client lẫn backend
(idempotent, nhánh thành công đã đóng sẵn). Áp cho cả RdsAuthProxy vì
RedshiftAuthProxy được copy từ đó. Thêm test: client drop giữa handshake
-> backend nhận EOF.
* fix(redshift): stop replacement container and keep dump on failed reboot
Rollback của rebootCluster (b44fd1e3) mới chỉ stop proxy + release port,
để container thay thế chạy tiếp sau một cluster "failed", và finally vẫn
xoá tempDump. Vì container gốc đã stop và không có volume, tempDump là bản
sao duy nhất của data -> mất data không khôi phục được (bug có sẵn, giờ
mới lộ).
rollbackReboot() giờ stop luôn container thay thế (như createCluster/
restoreFromClusterSnapshot). tempDump chỉ bị xoá khi reboot thành công;
khi fail thì giữ lại và log đường dẫn để khôi phục thủ công.
* fix(redshift): make reboot rollback phase-aware to protect the original
Commit trước cho rollbackReboot stop container vô điều kiện. Nếu reboot
fail ngay ở takeSnapshot hoặc stopProxy — lúc container gốc (chứa data,
không volume) VẪN đang chạy — thì rollback lại force-remove chính nó, huỷ
bản sao data hoàn chỉnh duy nhất và chỉ còn dump rỗng/dở.
Thêm hai cờ:
- originalTornDown: đã stop proxy + container gốc -> rollback mới được
đụng vào proxy/port
- replacementStarted: đã start container thay thế -> rollback mới được
stop container
Fail trước hai mốc đó: không đụng gì, trạng thái gốc còn nguyên.
Thêm test: takeSnapshot ném -> cm.stop và stopProxy không được gọi.
* fix(redshift): clean an orphan replacement container on failed reboot
containerManager.start có thể tạo container Docker rồi mới ném ở
waitForReady, nên cờ replacementStarted (set sau khi start return) bỏ sót
trường hợp này -> orphan chạy dưới tên cluster.
Bỏ replacementStarted, gate rollback theo mỗi originalTornDown: một khi
proxy + container gốc đã stop thì container gốc chắc chắn biến mất, nên
containerManager.stop (xoá theo tên) chỉ có thể chạm replacement — kể cả
replacement do start() tạo dở rồi ném.
Thêm test: start() ném -> rollback vẫn gọi cm.stop để dọn orphan.
* fix(redshift): remove orphan cluster metadata on failed create/restore
* fix(redshift): keep failed cluster metadata if proxy stop fails
* fix(redshift): fix TooManyActualInvocations in proxy tests
* fix(redshift): clear proxyPort on reboot rollback if port is released
* fix(redshift): retain reserved port on reboot startup failure
* fix(redshift): retain proxy port in reboot rollback and teardown failed startup recovery
* fix(redshift): skip failing cluster and retaining dump if reboot fails before teardown
These were the two buildx scopes left writing from pull_request runs after
#2634, and they had grown into the largest single consumer of the repo's
10 GB Actions cache budget: 5.57 GB across 19 open PR refs, against 2.49 GB
on main. Actions caches are ref-scoped, so none of it was readable by any
other PR.
floci-native: remove the cache entirely. The image COPYs a natively
compiled binary that changes every commit, and Docker layer reuse is
sequential, so nothing after that COPY can ever be reused. Measured on a
real run, the build imported a cache manifest and then reported zero
CACHED layers — it was write-only, while mode=max stored the whole image
including that volatile multi-hundred-MB layer on every PR. The step costs
~19-28s with or without it.
compat-shim: keep the cache but move production to main. This image builds
FROM a published floci/floci tag and its cost is a microdnf install that
changes only when the Dockerfile does, so its layers are genuinely stable
and worth caching — the defect was only that no producer existed on main,
so a PR's first run could never hit. warm-compat-caches.yml grows a `shim`
job mirroring the consumer's context, file and build-args; the consumer
becomes read-only.
A one-off purge of the existing refs/pull/* entries is still needed after
this merges, as it was for #2634 — the change stops the writes but does
not reclaim what is already stored.
Actions caches are ref-scoped: a pull_request run may read the base
branch's caches, but its writes land in refs/pull/N/merge, private to
that PR. compatibility.yml is pull_request-only and no workflow on main
wrote buildx caches, so main held 3 cache entries while four PR refs
held ~3.07 GB each — 13.24 GB against GitHub's 10 GB repo limit.
Every PR therefore built all eight compat test images cold and wrote a
private copy no other PR could read, and LRU eviction removed entries
even between a single PR's own runs. The sdk-test-java image build,
which sits on the compat critical path, swung between 29s and 211s at
random: 2 cache hits in 12 sampled runs.
Add warm-compat-caches.yml to populate the scopes on main, and drop
cache-to from the legs so they read that one shared copy. PRs now get a
warm read on their first run, which was previously impossible.
The warm triggers watch dependency-bearing inputs only, since 182 of the
last 90 days' commits touched compatibility-tests/ but just 31 touched a
manifest. sdk-test-go is the exception and is watched wholesale: its
Dockerfile runs `go mod download` after `COPY . .`, so any source change
invalidates its dependency layer.
The existing 13 GB is not cleaned by this change; the PR-scoped entries
need a one-off purge after merge, or they will keep evicting the main
cache this adds.
setup-graalvm's `cache: maven` keys on setup-graalvm-Linux-maven-<hash>,
a key only this pull_request-only workflow ever writes. Actions caches
are ref-scoped, so every write landed in refs/pull/N/merge where no
other run could read it: build-native logged "maven cache is not found"
on 6 of 6 sampled runs while dutifully saving 211 MB each time.
That cost ~66s of cold dependency resolution — 1,398 "Downloading from"
lines — inside an 8.6m job that serially gates all eight compat legs.
ci.yml already saves ~/.m2/repository on every push to main under
maven-<os>-<hash(pom.xml)>. Restore that key here instead, read-only so
ci.yml stays the single writer and the two never race.
Expect most of the ~66s back rather than all of it: runner.os is Linux
on both sides but ci.yml runs x64 while this runs arm64, so
classifier-based native artifacts still re-download, and `-Dnative`
pulls native-image plugins that ci.yml's `mvn test` never fetches.
nightly.yml carries the same `cache: maven` and also misses, but for a
different reason — it saves to a main-scoped key daily and is evicted by
the repo's cache overrun rather than by ref-scoping. Left untouched; it
should recover once that overrun is resolved.
* ci: surface per-class timings from the compatibility test legs
The slowest compatibility leg (sdk-test-java, ~10 minutes) is a black box:
the container entrypoint runs the build tool quietly, so the job log shows
pass/fail but no per-class times, and the junit XMLs the suites already
export to test-results/ are discarded after the summary step.
- Report the slowest 25 classes (and the suite total) in the job log and
step summary, parsed from the exported junit XMLs.
- Upload test-results/ as a per-leg artifact so timings are machine-readable
across runs.
- Extend the leg's sparse checkout to include .github/ci for the parser.
No test behavior changes; the report step never fails the job.
* ci: retrigger compatibility legs when the timing parser changes
* ci: make the timing reporter total and the report step non-fatal
The reporter promised it never fails the job, but only ET.ParseError was
caught: a locale-formatted time attribute (ValueError) or an unreadable
path (OSError) would exit non-zero and fail an otherwise-green leg. Catch
both with a stderr warning naming the file, and add continue-on-error to
the report step so the property holds regardless of parser changes.
* fix(compat): shim aws to inject --endpoint-url from AWS_ENDPOINT_URL, add CI smoke test
* fix(compat): migrate to AWS CLI v2, drop the endpoint-url shim
---------
Co-authored-by: doraemon2200 <106516578+doraemon2200@users.noreply.github.com>
Both native Dockerfiles wrote the ~196 MB binary into the image twice. A RUN that
renames or chmods a large file rewrites the whole file into a new layer, so the
published image carried two copies of it:
110 MB ubi9-minimal base
18.8 MB microdnf install
196 MB COPY --chown=1001:root native/<arch>/ /app/
196 MB RUN mv /app/*-runner /app/application && chmod +x /app/application
Set the mode in the COPY itself and move the rename out of the image and into the
build pipeline, which now stages the binary as native/<arch>/application.
Dockerfile.native does the same with a single COPY --chmod=755 --from=build.
Measured on linux/arm64 against floci/floci:1.5.34, with a 196 MB binary on both
sides so the comparison is like for like:
uncompressed 521 MB -> 325 MB
compressed 168 MB -> 104 MB (sum of gzip -6 layer blobs; Docker Hub
reports 166.1 MB for 1.5.34)
layers 8 -> 6
No behaviour change. The only filesystem difference in the resulting image is
quarkus-artifact.properties, now 0755 rather than 0644, because --chmod applies to
every file in the staged directory. /app and /app/data keep 0775 and uid 1001:0 for
arbitrary-uid (OpenShift) runs, and /app/application keeps 0755 — docker/entrypoint.sh
gates its default command on [ -x /app/application ].
Replace the in-container GraalVM build (docker/Dockerfile.native) with a
runner build via graalvm/setup-graalvm + Maven cache, using the -Ob quick
build (appended so application.yml native args are preserved). The prebuilt
binary is packaged through docker/Dockerfile.native-package, matching the
nightly/release pipeline. Both jobs run on ubuntu-24.04-arm.
Drop the JVM build/compat-test jobs and run the full 8-test matrix against
the native image (porting the compat-cdk Docker-socket case). Remove the now
orphaned docker/Dockerfile.jvm-package.
* fix(ec2): add missing instance response fields to fix Terraform nil pointer dereference (#871)
The ENI <attachment> block was absent from Floci's RunInstances and
DescribeInstances XML responses. Terraform provider AWS v5.x iterates
network interfaces and reads iface.Attachment.DeviceIndex without nil-checking
Attachment, causing a panic in resourceInstanceRead.
Additional fields required by the provider were also missing: cpuOptions,
metadataOptions, maintenanceOptions, enclaveOptions, hibernationOptions,
privateDnsNameOptions, capacityReservationSpecification, stateReason,
and blockDeviceMapping.
- Add attachmentId and deviceIndex to InstanceNetworkInterface model
- Populate both fields at ENI creation time in Ec2Service.runInstances
- Emit <attachment> and <privateIpAddressesSet> inside each ENI item in instanceXml()
- Emit all missing instance-level fields in instanceXml()
- Add Ec2InstanceResponseShapeTest compatibility test (16 assertions)
* fix(ec2): fix ec2 unit tests
*.s3.localhost.floci.io, *.localhost.localstack.cloud, and
*.s3.localhost.localstack.cloud as virtual-hosted style regardless of
FLOCI_HOSTNAME — fixes 405 when SDK uses endpointOverride("http://localhost:4566")
without forcePathStyle (closes#801)
- EmbeddedDnsServer ships localhost.localstack.cloud and localhost.floci.io
as built-in suffixes so spawned containers resolve these domains to Floci's
IP without extra config
- Compatibility test S3VirtualHostStyleTest covers the full virtual-host path
end-to-end; TestFixtures.s3VirtualHostClient() prefers s3.localhost.floci.io,
falls back to s3.localhost.localstack.cloud, or uses FLOCI_S3_VHOST_ENDPOINT
in Docker
- run-docker-tests.sh and compatibility.yml inject --dns <floci-ip> and
FLOCI_S3_VHOST_ENDPOINT=http://floci:4566 into test containers
- S3 and migrate-from-localstack docs updated with virtual-hosted style details
* feat: optional TLS/HTTPS support with self-signed certificate generation
- Add TlsConfigSource (MicroProfile ConfigSource SPI) that injects Quarkus
TLS properties before the HTTP server starts
- Auto-generate self-signed certificates with correct SANs including custom
hostnames from FLOCI_HOSTNAME and FLOCI_BASE_URL
- Persist certificate metadata for change detection across restarts
- Fix CertificateGenerator to encode IP addresses as iPAddress SANs (RFC 5280)
- Serve HTTP + HTTPS simultaneously (LocalStack parity)
- Support user-provided certificates via FLOCI_TLS_CERT_PATH/KEY_PATH
- Add TLS configuration documentation
- Add Node.js SDK compatibility test for HTTPS connectivity
- Add comprehensive unit and integration tests (79 test cases)
Closes#711
* feat(tls): add TLS proxy server and WebSocket-over-TLS tests
- Add TlsProxyServer: TCP proxy on port 4566 that detects TLS ClientHello
and routes to HTTPS (4511) or HTTP (4510) backend accordingly
- Add apigatewayv2-websocket-tls.test.ts: WSS compatibility tests covering
connect/disconnect, route selection, broadcast, authorization,
@connections API, binary frames, and payload size limits
- Update CI workflow to enable FLOCI_TLS_ENABLED=true for compat tests
- Update sdk-test-node Dockerfile with NODE_TLS_REJECT_UNAUTHORIZED=0
- Update tls.test.ts for HTTPS SDK client tests
- Update README with WebSocket-over-TLS test documentation
* fix(tls): address review comments — LocalStack parity and floci.io SANs
- Add USE_SSL and CUSTOM_SSL_CERT_PATH mappings to localstack-parity.sh
- Add localhost.floci.io and *.localhost.floci.io to default certificate SANs
- Update affected tests and documentation
---------
Co-authored-by: Dixit R Jain <dixitrjain@Mac-379.lan>
Co-authored-by: Dixit R Jain <dixitrjain@Mac.lan>
* feat(lambda): add bind-mount hot-reload mode via S3Bucket=hot-reload
Functions created with S3Bucket=hot-reload and S3Key=/absolute/path
have their host directory bind-mounted into /var/task rather than
packaged as a ZIP. Each invocation runs an ephemeral container so
file changes on disk are picked up immediately without calling
UpdateFunctionCode or re-uploading code.
Feature is disabled by default; opt in with:
FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED=true
An optional path allowlist (FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ALLOWED_PATHS)
restricts which host directories may be bind-mounted.
* fix: missing hot reload enable env
* chore(ci): CI hygiene batch (concurrency, timeouts, action pinning, Dependabot)
Rework of #350 with release-related changes removed per maintainer
feedback on #348 (semantic-release intentionally disabled while main
stabilizes).
What's included:
- Concurrency groups on all workflows (cancel superseded runs)
- timeout-minutes on all jobs (prevent stuck builds)
- SHA-pinned third-party actions (supply chain hardening)
- Dependabot config for Maven deps + GitHub Actions
- CODEOWNERS routing CI/release paths to @hectorvent
- SECURITY.md with private vulnerability reporting instructions
What's NOT included (intentionally):
- semver.yml changes (semantic-release on main)
- .releaserc.json changes (main branch addition)
* chore: switch Dependabot schedule from weekly to monthly
* test: move compatibility tests into this repo
* fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler
* fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest
* test: add sdk tests for multipart S3 copy coverage
* fix: cover and fix smithy cbor and multipart s3 copy regressions
* test: migrate more test coverage to new folder
* test: add missing ec2 expectation in healthcheck test
* docs: update READMEs in `./compatibility-tests`
Huge thanks to @kurtmc for this PR!
Adding the floci-compatibility-tests suite to our CI is a massive step forward for the project's stability. I especially appreciate you catching the Dockerfile permission bug—fixing the chown order is a great catch. This definitely makes floci more future-proof and helps us catch regressions early.
There are a couple of things we will need to fix, we can chat about it later, join [floci slack](https://join.slack.com/t/floci/shared_invite/zt-3tjn02s3q-A00kEjJ1cZxsg_imTfy6Cw) and let's talk
Merging now!