A parameter that takes a name or an ARN, where AWS answers a malformed ARN with its own error, needs to treat any value starting arn: as an attempted ARN. isArn needs all six fields and would send arn:aws:rds down the name path, so the sites the earlier migration PRs left on purpose still probe with a hand-written startsWith. looksLikeArn is that probe, in one place, so the area PRs that follow can move them off the arn-probe baseline without changing the error a caller sees.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
The partition-literal gate only saw ARNs that name a partition. Code that
builds, checks or cuts an ARN by hand names none, so it passed the gate while
bypassing the helpers that get every partition right, and the number of
startsWith("arn:") probes grew from 84 to 98 in two weeks.
Three code-scope categories join the per-file baseline:
- arn-concat: "arn:" + ..., except a pattern built from PARTITION_REGEX
- arn-probe: startsWith("arn:")
- arn-split: split(":") on a value named like an ARN
The baseline starts with today's 159 sites, so new ones fail and migrating
existing ones to AwsArnUtils shrinks it. AwsArnUtils's own formatter and
parser carry partition-literal escapes. PartitionSmokeInventoryTest also
counts a concatenated ARN as minting, and AGENTS.md names the categories.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Takes the updates from the Dependabot group in #5335 that do not break
the native image:
- quarkus-bom and quarkus-maven-plugin 3.39.2 to 3.40.1
- jackson-bom 2.22.2 to 2.22.3
- h2 and h2-mvstore 2.4.240 to 2.5.252
- bcprov-jdk18on 1.85.2 and bcpkix-jdk18on 1.85 to 1.86
- neo4j-java-driver 6.2.1 to 6.3.0
- checkstyle 14.1.0 to 14.3.0
- Maven 3.9.16 to 3.10.0 in the wrapper properties
and holds back three, each now ignored in dependabot.yml so the group
stops proposing them:
- proto-google-common-protos stays at 2.49.0. This is what failed the
native build on #5335: from 2.65.0 on the artifact is generated for
protobuf-java 4 and its classes need com.google.protobuf.GeneratedFile,
which the pinned protobuf-java 3.25.9 does not have, so initializing
apicurio's FileDescriptorUtils at image build time ends in a
NoClassDefFoundError.
- httpcore5 and httpcore5-h2 stay at 5.3.6, and httpclient5 at 5.5.1.
Both pins are deliberate and explained in pom.xml: httpcore5 5.4 breaks
every Docker call in the native image, and httpclient5 5.6 needs
org.tukaani:xz at native link time.
The mvnw and mvnw.cmd scripts are left as they are: regenerating them
drops the check from #4751 that refuses the unverifiable .tar.gz fallback
when a distribution checksum is set.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* chore: flag unnecessary fully qualified type names with Checkstyle
Use the built-in UnnecessaryFullyQualifiedType check. It allows a
qualified name when another type with the same simple name is used in
the same file.
The 379 files that have such names today are listed in
suppressions.xml, so only new files are checked for now. Remove an
entry once its file is clean.
* docs: drop the written no-FQCN rule now that Checkstyle checks it
* docs: keep the written no-FQCN rule for files Checkstyle still skips
The baselined files are not checked, and the comment that names a clash
is not something the check can enforce.
* test(partition): smoke-test ARN minting across partitions and gate new minting services
Partition behaviour was proven in the emulator for a few services only.
PartitionCrossServiceSmokeIntegrationTest creates one resource in each of
the seven non-commercial partitions for SNS, Kinesis, Firehose, API
Gateway V2, ELBv2, Glue, IoT, ACM, CodeBuild, Batch and EFS and asserts
the ARN or host carries the request's partition, skipping only where the
vendored data says the partition does not offer the service.
PartitionSmokeInventoryTest scans the service packages that mint ARNs or
AWS hosts and fails unless each is covered by the smoke test or listed
with a reason in src/test/resources/partition/smoke-exemptions.tsv, so a
new minting service cannot arrive without a partition check. The file
starts with 92 rows: 10 covered by an existing partition test, 82 not
yet covered. AGENTS.md adds the step to the new-service checklist.
* test(partition): count direct Arn construction as minting and pin the HTTP API host
The inventory scan did not match new AwsArnUtils.Arn(...), so ssoadmin,
which mints its instance ARNs that way, was neither covered nor
exempted. The scan now matches the constructor, and ssoadmin is exempt
with its reason: one Identity Center instance per account, minted in
its primary region's partition, so a request signed in another
partition sees that ARN (BL-243). AGENTS.md names the constructor too.
The HTTP API case checked only the DNS suffix, so an endpoint minted
with another region of the same partition passed. It now asserts the
whole <apiId>.execute-api.<region>.<suffix> host.
* chore(core): gate comparisons of a partition with the literal "aws"
The five checks #4791 fixed compared a parsed ARN's partition with "aws", so
RDS, ElastiCache and RAM broke silently outside the commercial partition, and
make partition-check could not see them: a bare "aws" is not an arn:aws:
prefix. partition_literals.py gains a gated aws-partition-compare category,
scanned over the code with comments and text blocks blanked, that catches
"aws".equals(...), .equals("aws"), their equalsIgnoreCase forms and
Objects.equals with "aws". Run against main before #4791 it reports exactly
those five sites.
The three remaining uses compare an account, a command name and a reserved
SSM name prefix, not a partition, and are escaped with a reason. AGENTS.md
states the rule next to the other partition rules, so reviews flag it too.
The audit table sizes its columns to the longest category name.
Part of #4272.
* chore(core): end the Objects.equals match at its call and gate switch labels on "aws"
Greptile on #4892: the Objects.equals arm read past the call's closing
parenthesis, so foo(Objects.equals(a, b), "aws") matched a comparison that is
not there; each argument now allows one level of nested calls and the match
ends at the call's own parenthesis. And a switch on a partition branched on
"aws" without a match, so case labels naming "aws", alone or in a list, are
caught too. main has none, so no new escapes and the baseline stays empty.
* fix(core): mint every regionless ARN in its partition and gate blank-region Arn.of calls
Part of #4272 (P10a). Arn.of derives the partition from the region, so a
blank region always minted arn:aws:, and the partition literal gate could not
see it because it is a call shape, not a literal. Sixteen call sites did this,
and three gated literals were left:
- RdsSigV4Validator built the rds-db:connect resource as arn:aws:rds-db:, so a
China IAM policy naming arn:aws-cn:rds-db: never matched and IAM auth to an
RDS proxy was denied there.
- CloudFront, Organizations, Cost Explorer anomaly monitors and the SSO portal
role ARN now take the request's partition (RegionResolver injected).
- S3 bucket ARNs (event notifications, AWS::S3::Bucket Arn, Cost Explorer S3
usage) take the bucket's or the stack region's partition; the Lambda CFN
default role, the Kinesis ESM invokeIdentityArn, the EC2 launch template
CreatedBy and the SQS AddPermission root principal take their own region's.
- FlinkContainerManager's fallback key goes through Arn.of, and the
CloudFormation S3 TemplateURL host check accepts every partition's DNS suffix.
partition_literals.py gains a gated, code-scoped blank-region-arn category
(Arn.of with a "" or null region, comments excluded). The baseline is now
empty, so any new literal or blank-region mint fails Partition Literals.
* fix(core): scan blank-region Arn.of calls across lines and skip text blocks
Greptile on #4787: the blank-region-arn category ran per line, so a call whose
region argument sits on the next line escaped it, and text-block contents were
kept, so an example inside one would count as a call against the empty
baseline. code_text now blanks comments and text blocks over the whole source
and the code categories match across lines, reporting the line the call starts
on.
* chore: ban var with Checkstyle in CI
Checkstyle runs tools/checkstyle/checkstyle.xml over src and compatibility-tests/sdk-test-java in its own workflow. It stays out of the Maven lifecycle because a full run takes about 30 seconds.
Code that already uses var is listed in tools/checkstyle/suppressions.xml, one entry per service and one per compatibility-tests file, so each can be cleaned and removed in its own PR.
* docs: point AGENTS.md and CONTRIBUTING.md at Checkstyle
* chore: load Checkstyle suppressions from checkstyle.xml
IDE plugins such as CheckStyle-IDEA set config_loc to the config directory and now apply the same suppressions as CI. Maven sets config_loc through propertyExpansion.
* chore: exclude files, not directories, from the var check
New files in services that still use var are now checked too.
* chore: exclude the renamed NativeDynamoDbJsonHandler files from the var check
* fix(core): service principals are universal in every partition; accept the legacy forms
A service principal is <service>.amazonaws.com in every partition, the rule the CDK applies
(region-info.ts, principals.ts). Floci now emits it through ServicePrincipals.of: generated trust
policies, SAM's Lambda permissions, CloudTrail's eventSource, service-linked role paths (Macie,
GuardDuty, Connect, Application Auto Scaling, RAM, SSO) and the Redshift COPY trust check.
Policies may still name a service in the per-partition form AWS accepted before
(elasticmapreduce.amazonaws.com.cn, logs.cn-north-1.amazonaws.com.cn, config.c2s.ic.gov), and AWS
still honours them. ServicePrincipals.canonical folds a published DNS suffix and a regional label
away, and the trust-policy evaluator and CreateServiceLinkedRole compare in that form, so either
spelling matches.
DescribeVpcEndpointServices now lists China's S3 interface service, cn.com.amazonaws.<region>.s3,
beside the com.amazonaws gateway one, each with its own type; where the names agree it stays one
service carrying both types.
Partition literal baseline 34 -> 4 occurrences. The web-identity and pod-identity audiences keep
their commercial literals, escaped for the STS phase.
Part of #4272
* fix(iam): put a legacy-named service-linked role under the universal principal
CreateServiceLinkedRole derived the role name from the universal principal but kept the caller's legacy spelling (es.amazonaws.com.cn) in the path and the trust policy. All three now use the universal principal, so the role lists under /aws-service-role/es.amazonaws.com/ like one created from the universal name.
ServicePrincipals.canonical no longer lower-cases: service-principal matching is exact and case-sensitive since #4555, and AWS matches principals case-sensitively, so only a suffix written the way AWS publishes it folds.
P0 of the multi-partition plan. tools/partition/partition_literals.py inventories
the arn:aws: prefixes, amazonaws.com hosts, hosted-zone ids and hand-rolled
partition regexes in src/main/java per file against tools/partition/baseline.tsv.
A literal in a new file fails, growth in an existing file fails, and a drop fails
until the baseline is regenerated, so the remaining count only shrinks. Escapes
are a `// partition-literal: <reason>` comment or an allowlist.yaml entry.
Makefile targets (partition-check, partition-baseline, partition-audit,
partition-test), a python-only workflow, AGENTS.md and CONTRIBUTING.md
paragraphs, and the ResourceExplorer2 assertion now checks the partition against
the ARN's region instead of a literal arn:aws:.
The Quarkus container build of the native binary failed on Apple Silicon with
GraalVM's BranchTargetOutOfBoundsException in a generated AwsQueryController
invoker (Quarkus 3.39 turns on -H:+AOTSingleCallsiteInline for Mandrel 25.0.4+),
and the packaged image died at startup because the builder links zlib
dynamically while ubi9-micro ships no libz.so.1. `make native` passes the same
flags CI does (-Ob,-H:-AOTSingleCallsiteInline), stages native/<arch>/ like the
workflow, and copies libz.so.1 from the builder image next to the binary, which
Dockerfile.native-package now puts on LD_LIBRARY_PATH.
The Makefile becomes the entry point for development: help (default), dev,
build, test T=, native (container build), native-host (host GraalVM/Mandrel,
adding the Mandrel-only flag when native-image reports Mandrel), run-native,
native-install (PREFIX, default ~/.local), native-image, native-up/native-down/
native-logs against a new docker/compose.native.yml overlay that carries the
five CI compat env vars, clean-sidecars, clean-volumes (a leftover ECR registry
volume is re-adopted on start and breaks the CDK bootstrap), compat SUITES= and
docker-tests. docker/run-docker-tests.sh gains FLOCI_START=0 and COMPAT_SUITES,
validated against the suite list, and its shell test covers both. Docs:
installation (native section rewritten), docker-images, CONTRIBUTING, AGENTS.
* refactor(cloudformation): replace the retired monolith with CfnResourceDispatcher
CloudFormationResourceProvisioner was the monolith that held every AWS::
provisioning arm. With the per-service migration complete it kept no arm:
LEGACY_SWITCH_TYPES and DELETE_NEEDS_STACK_RESOURCE were empty sets, five
private helpers duplicated ProvisionContext, six imports were unused, and its
UPDATE_ROLLBACK_* constants only re-exported CfnRollback. What it still did is
small: route provision and delete to the registry, stub a type nothing serves
(or refuse it in strict mode), answer the engine's update-lifecycle questions
through the owning provisioner, and give Cloud Control its stack-less entry
points.
That is now CfnResourceDispatcher in provisioners/, behaviour unchanged: the
same stub arm, warn lines, status reasons and strict-mode failure, with the
same logger category the unsupported-type test binds to. The dead overloads
go with the class (the 8-arg provision, the unused accountId on delete, the
short deleteStandalone forms). CloudFormationTemplateEngine gains a public
standalone(...) factory so the dispatcher can build Cloud Control's throwaway
engine from outside the package while the constructors stay package-private
for the tests that mock it. CloudFormationService reads the rollback markers
from CfnRollback directly.
The empty guards leave with the class: CfnDeletePrecedenceTest read only the
empty set, and CfnResourceInventoryTest no longer folds a legacy owner into
the inventory (the checked-in file had no such row). Javadocs that described
the switch as still present now describe the registry.
CfnResourceDispatcherTest pins the standalone engine's dynamic-reference
resolver, the prior identity reaching the ProvisionContext, and the
whole-resource delete form; every other test only changed the type it names.
* chore(cloudformation): retire the legacy-switch guards from tooling and instructions
The switch is gone, so nothing can carry a LEGACY_SWITCH owner: the schema
coverage test drops its skip, the docs generator's double-ownership check
generalises to any type with two provisioners, and its fixtures name real
owners. AGENTS.md and CONTRIBUTING.md tell contributors where types live
instead of warning them off a class that no longer exists.
* feat(redshiftserverless): add namespace lifecycle
Amazon Redshift Serverless was absent entirely: every call returned
UnknownOperationException, so Terraform's aws_redshiftserverless_namespace
could not be planned or applied against Floci.
Add a JSON 1.1 service under the RedshiftServerless. target prefix with
CreateNamespace, GetNamespace, ListNamespaces, UpdateNamespace, and
DeleteNamespace. Namespaces are account and Region scoped and stored through
StorageFactory. AWS defaults are applied on create (dbName dev, kmsKeyId
AWS_OWNED_KMS_KEY, empty logExports, status AVAILABLE), adminUserPassword is
accepted and never returned, DeleteNamespace returns the removed namespace
with status DELETING, and UpdateNamespace applies only the supplied fields.
Workgroups, snapshots, and the tagging operations remain unemulated.
* feat(redshiftserverless): add namespace tagging operations
Terraform's aws_redshiftserverless_namespace calls ListTagsForResource on
every read once tags are involved, so the namespace lifecycle alone left the
resource broken as soon as a config set tags.
Add ListTagsForResource, TagResource, and UntagResource. Lookup is by
resourceArn rather than namespace name, scoped to the caller's Region, since
that is how AWS keys these operations; the namespace is currently the only
taggable Redshift Serverless resource, so any other ARN is reported absent.
TagResource merges into the existing tags, UntagResource removes by key, and
tags passed to CreateNamespace are readable back and survive UpdateNamespace.
* fix(redshiftserverless): emit creationDate as ISO-8601 per the API model
The awsJson1.1 default is epoch seconds and 133 call sites use it, but this
model overrides it: TimestampFormatTrait ISO_8601 on creationDate (and on all
eleven other timestamp members in the package, audited). Strict clients broke
on the number: Terraform's Go SDK failed to decode and orphaned the created
namespace outside state; the Java SDK failed to unmarshall. Only botocore's
lenient parsing let CLI checks pass. Emitted via the repo's millisecond-ISO
idiom; format pinned by regex in the integration test and by a new
handler-level unit test class covering the wire layer that had none
(timestamp shape, nextToken emission, maxResults type guard). Checklist note
added to AGENTS.md + CONTRIBUTING.md so the next service checks the trait
before reaching for the epoch idiom.
* docs(redshiftserverless): the ISO-8601 rule is per member, not model-wide
Review follow-up: the earlier claim that every timestamp member in this model
carries TimestampFormatTrait(ISO_8601) is wrong — 15 of the model's 30 INSTANT
members carry no trait and fall back to the awsJson1.1 epoch default. The
shipped code is unaffected (creationDate, the only timestamp emitted, is
genuinely ISO_8601), but the claim was load-bearing guidance: whoever adds
snapshots or scheduled actions next would have applied ISO-8601 to trait-free
members and reintroduced the bug in the opposite direction. Narrowed in all
four places it appeared.
* fix(redshiftserverless): validate collection types, copy-on-update; drop em dashes
A present iamRoles, logExports, tags or tagKeys member that was not a JSON
array parsed to null and was then indistinguishable from an omitted member,
so a malformed UpdateNamespace silently kept the stored value and returned
200 instead of reporting the request as invalid. Only a missing or null
member now means "omitted"; a present member of the wrong type, or a
collection holding a non-string element, is a ValidationException naming the
member.
updateNamespace mutated the stored Namespace in place while GetNamespace and
ListNamespaces read without taking the same monitor, so a concurrent reader
could observe a torn object with some fields updated and some not. Build the
new state on a copy and store that instead, which also makes the write-back
explicit. The same in-place mutation was present in tagResource,
untagResource and deleteNamespace, so all four now copy. Merge semantics are
unchanged.
Replace the em dashes in the timestamp guidance with commas and periods, per
the repository ban.
* fix(redshiftserverless): reject Redshift reserved words as namespace names
CreateNamespace rejects a namespace name that is an Amazon Redshift SQL
reserved word, so names like select or user passed the length and
[a-z0-9-] checks here and were persisted. Add the documented reserved
word list to the shared namespace-name validator, which create, get,
update and delete all reach, so the rejection is consistent.
* 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.
* docs: standardize Java code style rules
AGENTS.md becomes the canonical Code Style source, regrouped into General,
Types and names, Imports, conventions the codebase already follows, and Tests.
Two new rules: write explicit types rather than var, and import classes rather
than writing fully-qualified names inline. Both are stated with the reason they
matter here, that the concrete type at a call site is usually what a wire
contract reviewer needs to see, and with the one exception each: record
deconstruction patterns for var, and genuine same-file name collisions for
qualified names.
The rest is existing practice written down so it stays true. Each claim was
measured against src/main and src/test: no printStackTrace, no logger field
named anything but LOG, no Calendar and no SimpleDateFormat. The System.out
rule exempts CLI entry points under tools/, which is its one real use. The
empty-catch rule now blesses naming the variable ignored or expected, the
convention the code already uses.
Two conventions are stated with the exceptions the tree actually contains
rather than as absolutes. java.util.Date survives where a third-party
signature forces it, in the BouncyCastle certificate builder and the JAX-RS
HttpHeaders.getDate() override, so the rule is java.time on Floci's side and
conversion at that boundary. Tab indentation is banned as such, since a JSON
text block may legitimately contain a tab as string content.
CONTRIBUTING.md and docs/contributing.md had no code style section at all, and
copilot-instructions.md had no code style content, so PR review could not flag
either new rule. The Copilot entry also lists the collisions it must not flag.
Existing code does not satisfy these everywhere. The rules are documentation
only: nothing in CI enforces them, and no Java file changes here.
* docs: correct the measured claims in the code style section
Review on #3451 caught that System.out is not confined to the tools CLI: four
test files print too. Checking the rest of the section the same way found five
more claims that do not survive a measurement, so this corrects all six rather
than only the reported one. The section's whole value is that a reader can trust
it without re-measuring.
System.out and System.err are now scoped to src/main, the way the wildcard
import rule already splits src/main from tests. The exception is named by its
real coordinates: AmiImageTool sits in the Java package
io.github.hectorvent.floci.tools.ami, not in the top-level tools/ directory,
which holds only tools/docs. printStackTrace stays absolute, since that one
holds: zero in src/main and src/test.
The Date rule listed two forced boundaries and there are three. BouncyCastle's
certificate builder and the JAX-RS HttpHeaders.getDate() override are joined by
JDBC's java.sql.Date, which extends java.util.Date and which the old wording
read as prohibiting, in RdsDataFieldMapper and RdsDataSqlParameters.
Optional is split, because half the claim was true. Never a field is exact,
there are none. Never a parameter was wrong: Quarkus threads
@ConfigProperty Optional<T> values through parameters in ResolvedServiceCatalog,
ContainerBuilder, DockerClientProducer and LaunchedContainerAwsEnv.
The three Tests rules each asserted something false. testX is not absent, it
names 291 methods across 52 files, so it is described as the older pattern not
to copy rather than as something that never happens. AssertJ is not absent
either, it is a declared test dependency used by the six Lambda launcher tests.
@DisplayName is genuinely rare in src/test, 13 files of 1455, but it is the norm
in compatibility-tests at 183 of 208, as is AssertJ at 197 of 208. That module
has the opposite idiom, so the Tests rules now say they describe src/test and
point a contributor at the module they are in.
Documentation only. No Java file changes here.
The stack list said Quarkus 3.32.3. The build pins
quarkus.platform.version to 3.39.2 since the dependency bump in #3175, and
that bump did not touch this line, so the canonical agent instructions
named a platform seven minor releases behind the one the build resolves.
The neighbouring entries in the same list were checked against their
source of truth and are correct: port 4566 in application.yml, Java 25 in
maven.compiler.release, and Java 25 across the workflows. AGENTS.md is the
only file in the tree that states a Quarkus version.
No behaviour changes, so no test accompanies this; the existing suite is
unaffected.
Co-authored-by: dajiaohuang <dajiaohuang@users.noreply.github.com>
The getting-started and contributor docs had drifted from what the workflows and the
code actually do:
- quick-start and CONTRIBUTING pointed users at a `latest-jvm` image that the release
pipeline never publishes; both now name the `-compat` image, and `make docs-check`
greps the docs for any `-jvm` tag
- the CONTRIBUTING branching model now matches the workflows: `main` is published as
the nightly channel, a maintainer runs the Release Cut workflow to tag a release, and
the tag triggers the publish; PR builds produce compat images but never publish them
- README and the docs landing page carried a hand-maintained service count and a
second copy of the service table, both stale; they now link to the Services Overview
- the Service Matrix gains the ELB Classic row it was missing, with an `elb` alias so
the check no longer resolves the Classic key to the v2 page, and
check_service_matrix.py now also fails on a docs/services page that has no row
- the README category table lists 16 documented services it omitted
- mkdocs nav gains 11 service pages that were unreachable from the site, drops a
duplicate CloudTrail entry, and the docs job now runs `mkdocs build --strict` with nav
and link validation so a page without a nav entry fails CI
- AGENTS.md, CONTRIBUTING.md and docs/contributing.md told contributors to register a
service in ServiceRegistry, which has no registration API; all three now point at
ResolvedServiceCatalog and list the config, storage, native-image, docs, tooling and
compat-suite touchpoints a new service needs
The instructions told contributors to hand-edit the resource-type table in
docs/services/cloudformation.md. That table is now generated from the
provisioner inventory, so following the step fails docs-check. Replaced with
"run make docs-sync", and pointed at cfn_resource_types.yaml for the parts
that are still hand-maintained.
Adds the steps the migration made mandatory but never documented: registering
the type in supported-resource-types.tsv, adding a single-service provisioner
to CfnProvisionerFixture, and recording an unsettable schema attribute in
getatt-attribute-gaps.tsv. Each has a guard that fails without it, so a
contributor otherwise meets the failure before the instruction.
Sharpens two existing steps with what the migration established: branch an
update on ctx.isUpdate()/ctx.priorPhysicalId() rather than reading the id back
off the resource, which changes meaning mid-method; and tolerate an
already-deleted resource with CfnDeletes.safeDelete and explicit error codes
rather than a catch-all that would swallow BucketNotEmpty.
* docs: document the release train and lead with the four-cloud family
State the stable cadence, the 1st and 3rd Tuesday of each month, beside the
existing tag matrix, with the nightly channel as the between-trains answer.
The cadence appeared in no README, docs page, CONTRIBUTING or workflow, so an
evaluator reading the releases page saw a release count with no schedule
behind it.
Promote "Any Cloud. Locally." to the header and add the four-cloud family
table to the opening section, reusing the pattern floci-oci already carries:
this README linked to none of the other three emulators.
Point at the LocalStack migration section from the opening paragraph. It was
written and accurate but sat below Testcontainers, where the reader it is
aimed at never reached it.
Replace every em-dash with ordinary punctuation, and record that rule in
AGENTS.md so it holds for later edits.
* docs: remove the em-dashes from AGENTS.md itself
The Documentation Style section states an absolute ban while the rest of the
file still used em-dashes, so the guide contradicted its own rule.
Definition bullets and headings take colons, two-clause sentences become two
sentences, and parenthetical pairs become commas. Inside fenced blocks the
dash is a column separator, so it becomes a colon: one character for one
character, leaving the hand-aligned annotation blocks untouched in width.
* docs: do not call the dated nightly tags immutable
nightly.yml derives the tag from the Chicago date and also accepts
workflow_dispatch, and the push step is unconditional, so a same-day manual
run or rerun rebuilds from the then-current tip of main and overwrites the
same nightly-mmddyyyy tag. The tag names a night's build; it does not
guarantee the bytes behind it.
Reproducibility belongs to the pinned version tags, which the surrounding
tag guidance already points at.
New CloudFormation types belong in services/cloudformation/provisioners/, not in the
CloudFormationResourceProvisioner monolith, but nothing outside a gitignored design
doc said so: CONTRIBUTING.md, AGENTS.md, docs/ and the PR template were all silent,
so contributors read the monolith and copied a case.
Adds a step-by-step section to CONTRIBUTING.md and AGENTS.md covering the three
traps behind the recurring review findings: Ref and Fn::GetAtt are separate
mechanisms and a missed attribute resolves to the literal LogicalId.Attr; provision
is also the update path, so creating unconditionally throws AlreadyExists or orphans
the old resource; and an unmapped type is stubbed as CREATE_COMPLETE, so status-only
assertions cannot detect a type that was never wired.
Also refreshes the resource-type table, which had drifted: EC2 gains LaunchTemplate
and VPCGatewayAttachment, EventBridge gains EventBus and EventBusPolicy and its
Events::Rule naming is normalized.
* 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.