* chore(release): publish standalone floci-aws binaries as release assets
The release already built Linux native executables, but only to package them
into the images; they were discarded after a day and releases carried no
assets. Users without Docker had nothing to download.
release.yml now also builds macOS (arm64, and x86_64 under Rosetta) and Windows
x86_64 binaries with GraalVM Community, smoke-tests every binary on its own
runner with .github/scripts/smoke-binary.sh (version matches the tag, SQS and
DynamoDB round trips, clean stop on SIGTERM), and checks that the Linux amd64
binary still starts on glibc 2.34 (Ubuntu 22.04). A new publish-binaries job,
the only one with write access to the release, stages the six executables as
floci-aws-<os>-<arch>, writes sha256sums.txt, signs every file with keyless
cosign sign-blob, attests build provenance, and uploads them to the release
semantic-release created. Build artifacts are kept 7 days so that job can be
re-run on its own.
make native-install now installs floci-aws, since floci is the CLI.
Refs #5767
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* fix(release): check the glibc 2.34 floor on every Linux binary and wait for the release
Review follow-ups for the binary release jobs:
- The floor check started the amd64 binary on Ubuntu 22.04, whose glibc is
2.35, so a binary that needed 2.35 would have passed. check-glibc-floor.sh
now reads the newest GLIBC_ symbol version the binary requires with
readelf and fails above 2.34, then starts it in UBI 9, whose glibc is 2.34.
- The two arm64 builds had no floor check at all; they run the same script.
- publish-binaries waits up to 10 minutes for semantic-release to create the
GitHub Release before uploading, instead of failing if it is not there yet.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* fix(release): build darwin-amd64 with a pinned, checksummed GraalVM Community
The macOS x86_64 job downloaded Oracle GraalVM from download.oracle.com's
"latest" URL: not the Community build the job's comment names, unpinned and
unchecked, though its output is then signed and attested as ours. It now
fetches GraalVM Community 25.0.1, the last release with a macOS x64 build,
from graalvm-ce-builds and checks it against the published SHA-256 before
extracting it.
The publish-binaries header said semantic-release creates the release
before pushing the tag; it pushes the tag first, as the upload step says.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
---------
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Move signing into its own sign-images job that consumes push-native's
digest outputs, so a Fulcio or Rekor outage can no longer strand a
partially published release, and document the cosign verify invocation
for consumers.
Closes#2397
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* feat(verifiedpermissions): run Cedar from the floci-sidecar-cedar image
The Cedar sidecar now comes from floci-io/floci-sidecars as
floci/floci-sidecar-cedar, pinned to an exact version because a cached
:latest is never re-pulled. CedarSidecarManager reads the contract JSON
that the image's /health returns: a sidecar speaking another contract
major is refused immediately with a message naming the image and the
FLOCI_SERVICES_VERIFIEDPERMISSIONS_CEDAR_IMAGE and _CEDAR_URL settings
to change, instead of polling for thirty seconds or failing later on a
request. A pre-configured URL is probed the same way. A sidecar whose
health body is not JSON predates the contract and is accepted with a
one-time warning.
* test(verifiedpermissions): exercise the published Cedar image
VerifiedPermissionsIntegrationTest no longer boots the in-tree sidecar in
process: CedarSidecarManager starts the pinned image through Docker, the
same path production takes, under a vp-test resource namespace so the
manager's remove-before-start cannot kill a developer's live sidecar. It
is skipped without Docker, and locally when the image is not present; in
CI a missing image fails. VerifiedPermissionsServiceTest keeps its
reject-before-persist coverage against a fake sidecar answering 400, and
CedarSidecarClientTest pins the request shapes and the 200/400/other
mapping Floci owns.
* chore(build): drop the in-tree Cedar sidecar
sidecars/cedar now lives in floci-io/floci-sidecars as cedar/ with its
history. The build-helper test source root and the test-scoped cedar-java
dependency existed only to boot that server inside the test JVM; the
tests now run against the published image, so both go, along with the
.dockerignore allowlist entry that let the sidecar Dockerfile see its
sources from the repository root context.
* ci: stop publishing the Cedar sidecar from this repository
The release, nightly and reusable image workflows no longer build a
Cedar image or record it in the provenance manifest; the sidecar is
released from floci-io/floci-sidecars on its own cadence. The
compatibility workflow no longer builds and starts the sidecar by hand:
Floci pulls the pinned image itself over the mounted socket onto
compat-net, exactly as it already does for floci-duck. The unit-test
shards prefetch the pinned image, reading the tag from application.yml
so the two cannot drift.
The floci/floci:*-cedar tags stop at this change; whether the next
release cut retags the sidecar image under the old name for a
deprecation window is a release decision, not a workflow default.
* docs(verifiedpermissions): document the external Cedar sidecar image
The Verified Permissions page names floci/floci-sidecar-cedar, why it is
pinned to an exact version, how to pre-pull it, where its API and the
sidecar contract are documented, and what a contract mismatch looks
like. The README's Docker integration table gains the Verified
Permissions row it never had. AGENTS.md records the sidecar rule: own
repository, no tag suffix on the Floci image, no :latest default, the
sidecar releases first, and how a sidecar is tested from here.
* 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.
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.
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(release): one-button release cut from main and ECR Public versioned publishing
- New Release Cut workflow (workflow_dispatch, dry-run input): semantic-release
bumps pom.xml, writes CHANGELOG.md, commits, tags, and creates the GitHub
Release; the tag push fires release.yml unchanged. Requires a GH_TOKEN
fine-grained PAT (contents:write) because tags pushed with the default
GITHUB_TOKEN do not trigger workflows.
- .releaserc.json: release from main only (release/x.y.x retired for now)
- release.yml: push versioned + latest native and compat tags to ECR Public,
mirroring nightly.yml (OIDC role, public.ecr.aws/floci/floci) — previously
only nightlies reached ECR Public
* fix(release): serialize release cuts and pin the release toolchain
Address review findings on the Release Cut workflow:
- concurrency group so overlapping dispatches queue instead of racing to
push the same version/tag (no cancel-in-progress: a mid-flight release
is never killed)
- the semantic-release toolchain is now installed with npm ci
--ignore-scripts from a committed manifest + lockfile
(.github/release-tooling), so the job holding the contents:write PAT
runs a reproducible, fully pinned dependency tree instead of resolving
mutable version ranges at run time
* fix(release): commit the pinned lockfile, SHA-pin actions, document queue semantics
Replicates the review fixes that took the sibling OCI PR to a clean review:
- the repo-wide package-lock.json ignore silently excluded the release
toolchain's lockfile, so npm ci would fail on every dispatch; add a scoped
gitignore exception and commit the lockfile
- pin checkout/setup-java/setup-node to full commit SHAs — this workflow
holds the contents:write GH_TOKEN PAT, so a repointed action tag must not
be able to change the code it executes
- document the concurrency group's last-dispatch-wins semantics (GitHub
keeps one pending run per group; a superseded duplicate release cut is
redundant by definition)
* fix(release): pin the ECR publishing actions to full commit SHAs
The OIDC-enabled job that assumes the public-image publishing role must not
execute code selected by a repointable tag: configure-aws-credentials and
amazon-ecr-login are now pinned to full commit SHAs (tags noted in comments),
matching the SHA-pinned docker actions already in this workflow.
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 ].
Add ECR Public Gallery (public.ecr.aws/floci/floci) as a second push
target alongside Docker Hub in both the release and nightly workflows.
Uses GitHub OIDC (id-token: write) with the org-level AWS_ROLE_ARN
secret and aws-actions/configure-aws-credentials to assume the ECR
push role. ECR Public requires us-east-1 regardless of the primary
deployment region.
Tags mirrored on each release: {version}, latest, {version}-compat,
latest-compat.
Tags mirrored on each nightly: nightly, nightly-{mmddyyyy},
nightly-compat, nightly-{mmddyyyy}-compat.
* chore(docker): add OCI image metadata labels
Add OCI image spec labels to Dockerfile.native-package, Dockerfile.jvm-package,
and Dockerfile.compat so published images carry standard metadata.
Static labels (title, description, url, source, licenses, vendor) are baked into
the Dockerfiles and are present in every build including local ones. Dynamic labels
(version, revision, created) are injected at publish time via the labels: input of
build-push-action in release.yml and nightly.yml.
Closes#851
* chore: setting not opencontainers labels
* 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