Commit Graph
36 Commits
Author SHA1 Message Date
Hector Ventura cb58b12b41 ci: cut a release at 00:30 Central on the 15th and last day of the month (#5698)
Schedule release-cut.yml at 00:30 on the 15th and on days 28-31 with timezone America/Chicago, so GitHub handles DST. A gate job passes only on the 15th or on the actual last day of the month; manual dispatch is unchanged. The release-cut concurrency group moves to the release job so skipped scheduled runs never hold or replace a pending cut.

README.md, CONTRIBUTING.md and the docs/ pages now describe the new train: stable releases on the 15th and the last day of each month, cut automatically at 00:30 US Central time.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-14 23:29:36 -05:00
Hector Ventura c6068e8cf5 chore(iam): generate the managed-policy catalog from iam-dataset (#5403)
* chore(iam): generate the managed-policy catalog from iam-dataset

The three managed-policy resources were hand-seeded in #2194, #3237 and #3275,
so nothing noticed when AWS added or revised a policy. tools/aws/
regen_managed_policies.py now rebuilds them from the local/aws/iam-dataset
checkout: names, paths, versions and update dates from
aws/managed_policies.json, documents from aws/managedpolicies/. Deprecated
policies leave the catalog except AWSLambdaFullAccess, which #2194 kept on
purpose. createDate (from the AWS managed policy reference pages) and the
curated descriptions are not in the dataset and are carried over.

It joins make aws-data-sync and aws-data-check. CI has no iam-dataset, so
there the check verifies the three files agree and keep their shape, the way
regen_region_facts.py handles its missing corpus.

This commit changes no data; only the catalog header gains a generated-by
line. The files were taken from three dataset days, and the generator
reproduces each from its own: the names from 2026-08-12 (f18cb038), the
versions from 2026-09-08 (a52abe16), and the documents from 2026-09-08 too,
except AWSCodeStarServiceRole, which matches 2026-09-07 (1c729479).

* chore(iam): refresh the managed-policy catalog from iam-dataset 2026-09-19

make aws-data-sync against the local/aws/iam-dataset checkout (72d2a4f62,
2026-09-19). Catalog 1566 -> 1578 policies:

- 12 added: AIDevOpsChannelAccessPolicy, AIDevOpsReleaseManagementVPCPolicy,
  AWSWellArchitectedAgentOrganizationsServiceRolePolicy,
  AmazonBioDiscoveryFullAccess, AmazonBioDiscoveryInAppFullAccess,
  AmazonODBAutonomousDatabaseAdmin, AmazonODBExadataVmClusterAdmin,
  AmazonODBExascaleStorageVaultAdmin, AmazonODBExascaleVmClusterAdmin,
  AmazonSageMakerHyperPodInferenceGatewayAccess, AssuranceServiceRolePolicy,
  NetworkSecurityManagerServiceRolePolicy. All are on v1, so their
  createDate is the dataset's date.
- 0 removed.
- 22 changed: 21 moved to a new default version with a new document and
  update date (among them ReadOnlyAccess and SecurityAudit), and
  AWSCodeStarServiceRole kept v12 but took the document and update date
  the dataset recorded on 2026-09-08.

No path or description changed, and the service-linked role table still
matches the documents (make slr-check).

* chore(iam): make the managed-policy generator's date fetch and offline check stricter

--fetch-create-dates now reads the reference page of every policy past v1
that has no creation date, not only of policies new to the catalog, so a
policy first vendored without the flag can be dated by a later run. A page
that cannot be read leaves that one policy undated with a warning instead
of ending the run with nothing written.

The offline check compares the catalog with a re-render of its parsed
entries, so content outside the generated header and policy entries fails
it instead of passing unnoticed.

* chore(iam): refresh the managed-policy catalog from iam-dataset 2026-10-09

The dataset moved after the first refresh. Regenerated against 2244bd78a
(2026-10-09) with --fetch-create-dates. Catalog 1578 -> 1586 policies:

- 11 added. Ten are on v1 and take the dataset's date;
  AWSCloudWatchOmniServiceRolePolicy is on v2 and takes its creation date
  from its reference page.
- 3 removed: the CloudWatch Evidently policies, which the dataset now
  marks deprecated.
- 45 moved to a new default version, among them SecurityAudit (v94) and
  ReadOnlyAccess (v190).

The generated header said createDate falls back to the dataset's date for
a policy with no reference page. It does so only for a policy that entered
the catalog on v1; one past v1 stays undated, and the header now says so.
AWSConfigRole is still the only policy without a creation date.
2026-10-10 13:40:04 -04:00
David Phillips da6a7dd085 build: enforce Java import order with Checkstyle (#5326)
* style: align Java imports with project guidelines

* build: enforce consistent Java import order

* style: follow IntelliJ import order
2026-10-08 20:50:53 -04:00
Hector Ventura d1fc2654a9 ci: cap open PRs at 4 with drafts and 2 ready for review (#5283)
Describe the new open-PR limits (floci-loft decision 0021) in CONTRIBUTING.md
and the PR template, and grant the caller contents: write, which the shared
workflow needs to convert a PR back to a draft.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-07 17:49:31 -05:00
Hector Ventura 8d056e9456 ci: limit contributors to 2 open pull requests (#4864)
Call the shared floci-io/.github pr-limit workflow on opened, reopened and
ready_for_review, and on closed and converted_to_draft to clear stale
labels. Runs for the same pull request queue rather than cancel, and manual runs use their own concurrency group. Contributors
keep at most 2 open, non-draft pull requests: the 3rd and 4th get the
over-pr-limit label and a reminder, and from 2026-10-08 the 5th and later
are closed automatically. Bots and maintainers are exempt.

This replaces the advisory bot that labelled authors with more than 5 open
pull requests: the limit is now 2, drafts no longer count, and the logic and
wording live in one shared workflow.

CONTRIBUTING.md and the pull request template describe the policy.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-01 17:44:05 -05:00
TATSUNO “Taz” Yasuhiro 76adb9a97e chore(style): Enforce NoVar rule on new files, existing bad files later (#4362)
* 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
2026-09-30 21:53:14 -05:00
Hector Ventura 8ff1eae121 ci: run the per-PR hygiene checks in one job and skip drafts without a gate job (#4703)
* ci: run the per-PR hygiene checks in one job

The signed commits, AI attribution, Conventional Commits, em-dash and PR
template checks were five workflows with one job each, so every push to a
pull request started five runners for about ten seconds of work apiece. At
busy times those jobs queued for up to twenty minutes behind the CI shards
and the compatibility suites under the account's concurrent-job limit.

They now run as steps of a single "PR hygiene" job. Each step keeps the old
check's name, script and annotations, and runs under !cancelled() so one
failure does not hide the others. The signature check also runs on
"edited" now: with one job, an edit-triggered run replaces the whole
result, and skipping signatures there would turn an unsigned PR green. A
per-PR concurrency group cancels superseded runs.

The path-filtered checks (docs tables, partition literals, changelog guard)
keep their own workflows.

* ci: skip draft PRs with a job condition instead of a gate job

CI and Compatibility Tests reached the draft rule through a reusable
workflow that started its own job on every run. That job did about three
seconds of work, but every other job in the run needed it, so under the
account's concurrent-job limit its queue wait sat at the head of the
critical path: on recent PR runs a median of about 35 seconds, and nine to
thirteen minutes at the tail, before a shard or native build could even be
queued.

The same condition now sits on the root jobs as a job-level if:, which
GitHub evaluates without a runner. Drafts, closed PRs and edited events
still skip the suites and pushes to main still run; the native suites
follow build-native. CI summary keeps always() so a failed shard still
reaches the partition check and report, and uses the same condition so it
does not run on a draft. pr-draft-gate.yml has no callers left and is
removed.
2026-09-30 09:26:42 -04:00
Hector Ventura 0dd080a46f feat(core): partition foundation from botocore's published partition data (#4317)
P1 of the multi-partition initiative (#4272). tools/aws/regen_partitions.py
vendors botocore's partitions.json and endpoints.json (8 partitions, 46 regions,
the partition-wide endpoints with their signing regions) plus the CDK's opt-in
and S3 website rules into src/main/resources/aws/partitions.json, checked by
make aws-data-check. AwsPartition and AwsPartitions replace the hand-typed rules
behind AwsRegions; RequestContext carries the request's partition from its
SigV4 signing region; RegionResolver mints global ARNs in that partition and
buildArn routes a blank region there; floci.partitions.id pins the deployment's
partition behind a startup validator that refuses a contradiction with the
default region.

Behaviour a reviewer will see, all AWS-faithful: DescribeRegions follows the
request's partition and the opt-in model (17 commercial regions by default, all
34 with AllRegions=true, RegionName.N filters, endpoints on the partition's DNS
suffix); TLS SANs cover every published region; the EKS registry mirrors follow
the deployment partition's regions. The partition-literal baseline drops by two.

Part of #4272
2026-09-24 10:33:05 -04:00
Hector Ventura 0a601d54eb chore(tooling): gate partition literals in src/main against a per-file baseline (#4270)
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:.
2026-09-24 07:08:28 -04:00
Hector Ventura 96264cde70 chore(build): make the native image build locally and give the Makefile a development workflow (#4271)
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.
2026-09-23 22:35:24 -04:00
Hector Ventura 69ceb976c7 refactor(cloudformation): replace the retired monolith with CfnResourceDispatcher (#4269)
* 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.
2026-09-23 22:31:27 -04:00
Allen Sanborn 4b3923712a feat(redshiftserverless): add namespace lifecycle and tagging (#3631)
* 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.
2026-09-23 10:13:24 -04:00
Hector Ventura 75a5111f6e docs: standardize Java code style rules (#3451)
* 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.
2026-09-11 23:23:51 -04:00
Hector Ventura eb0472fccc docs: fix stale image tags, release model, service nav and contributor checklists (#2980)
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
2026-09-02 22:10:46 -04:00
Hector Ventura 54654760b5 docs(cloudformation): correct the resource-type contributor steps (#2762)
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.
2026-09-02 00:47:32 -05:00
Hector Ventura 10ce6be8cd docs: state the release cadence in CONTRIBUTING and the docs site (#2850)
* docs: state the release cadence in CONTRIBUTING and the docs site

Follow-up to the release-train documentation. CONTRIBUTING described how a
release is cut but never when, and the published contributing page said
nothing about releases at all, so the cadence was only discoverable from the
README.

- CONTRIBUTING: the 1st and 3rd Tuesday train leads the release section, and
  merging to main is stated not to cut a release.
- docs/contributing.md: a Releases section, including why the commit type
  matters, since semantic-release derives the version from it.
- docs/configuration/docker-images.md: the Channel table said release images
  publish "on every release", which explained nothing; it now names the train.

Three corrections in the same table, all pre-existing:

- The nightly row said 22:00 CT. nightly.yml is cron '0 23 * * *' pinned to
  America/Chicago, and observed runs land at 04:0x UTC, so it is 23:00 CT.
- Dated nightly tags were described as fixed and never moving. The workflow
  accepts workflow_dispatch and pushes unconditionally, so a same-day rerun
  republishes that day's tag. Reproducibility is a release-tag property.
- The pinned example was 1.5.11, six minor versions behind.

Em-dashes in the touched files replaced with ordinary punctuation, per the
documentation style rule in AGENTS.md.

* docs: correct three points raised in review

- Nightly availability was overstated. A merge after the nightly workflow
  starts misses that run, so the text no longer promises "that night's"
  image; it says the change reaches nightly on the next nightly build.
- The published contributing page called CHANGELOG.md never hand-edited,
  omitting the changelog-edit label that the root CONTRIBUTING documents as
  the route for a genuine correction.
- docker-images.md recommended 1.7.0 in the channel table while its Quick
  Reference still pinned 1.5.11.

Each was fixed in all four emulators, not only where it was flagged.
2026-08-31 20:14:02 -05:00
Priamo Germosen 9b74281c2a ci: fail pull requests whose commits carry AI attribution trailers (#2545)
* ci: fail pull requests whose commits carry AI attribution trailers

CONTRIBUTING.md and AGENTS.md both say not to include Co-Authored-By
trailers for AI tools, but nothing enforced it, so the rule was only ever
caught by a human reading the commit list. Three commits reached main
carrying one: 9bb1db3a (Claude), 3cc04994 (Copilot Autofix, twice) and
1e59f8dc (Devin AI).
2026-08-24 17:45:41 -05:00
Hector Ventura ee15447ba4 docs(cloudformation): document the per-service provisioner path for new resource types (#2153)
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.
2026-08-07 17:37:36 -05:00
Hector Ventura cc6e96de69 chore(release): make CHANGELOG.md automation-owned (#2138)
* chore(release): make CHANGELOG.md automation-owned

Per ecosystem decision 0008:

- remove the hand-maintained [Unreleased] section (its entries are all
  represented by Conventional Commits since the last tag and appear in the
  next generated release section) and the stale [Unreleased] link reference
- new preamble stating the file is generated by semantic-release — a
  contributor's Conventional Commit message IS the changelog entry; historic
  Keep a Changelog sections remain below
- set changelogTitle in .releaserc.json so semantic-release inserts new
  release sections BELOW the preamble instead of prepending above the file
  title (observed live in the first automated release)
- new changelog-guard workflow: PRs touching CHANGELOG.md fail unless they
  carry the changelog-edit override label
- CONTRIBUTING: replace the retired release/x.y.x recipe with the Release
  Cut flow and the do-not-edit rule

* docs(contributing): finish retiring release-branch guidance

Review follow-up: the Release awareness / Branching Model sections still
described release/x.y.x branches as the stable lines, contradicting the
main-only Release Cut flow this PR documents. Releases are cut from main;
the release-branch row/claim is removed (reintroducible if maintenance
lines ever return).
2026-08-05 23:32:37 -05:00
Hector Ventura 00d59b4963 chore: add an advisory open-PR limit notice (#2047)
The review backlog is long enough that a single contributor holding many
open PRs makes it harder for any of them to get proper attention. This
adds a nudge rather than a gate.

On open or reopen, a workflow counts the author's open PRs and, above
five, adds an `over-pr-limit` label and posts one comment linking their
open PRs. It never closes a PR and never fails a check, both paths exit
zero. Bots and maintainers are exempt, so dependabot can hold as many as
it needs. The comment is posted at most once per PR via a marker, and the
label is removed automatically when the author drops back under the
limit.

`pull_request_target` is used so the token can label fork PRs. The
workflow never checks out or runs PR code, it only calls the GitHub API,
so the elevated context is not exposed to untrusted input.

The policy is documented in CONTRIBUTING.md and docs/contributing.md.

Also drops the CONTRIBUTING.md edge-builds section, which described the
`edge.yml` workflow removed in #691 and was the last reference to it, and
fixes a stray character in the adjacent CI line.
2026-07-29 23:48:39 -05:00
Hector Ventura f36598244d chore: welcome first-time contributors and surface the Slack invite (#1968)
First-time contributors' pull requests sit with no CI at all until a maintainer
approves the workflow runs, and nothing on the PR explains the wait — recent
ones went 10 to 12 days before anyone noticed they had never been tested.

The Slack invite was reachable only from the bottom of the README (line 785 of
834). It appeared in neither CONTRIBUTING file, the pull request template, nor
either issue template, so contributors arriving through those paths never saw
it.

Add a first-interaction workflow that greets a contributor's first issue or
pull request; the pull request message leads with why the checks have not
started, so the gate reads as routine rather than as neglect. Surface the Slack
invite where contributors actually pass: the new-issue chooser via
contact_links, the pull request template, and both CONTRIBUTING files.

The workflow only posts a comment and never checks out or executes pull request
code, so its pull_request_target trigger does not expose the elevated context.
2026-07-26 17:04:57 -05:00
TiM 7d70f64162 feat(docs): generate Supported Actions tables from handler source (#1641)
* feat(docs): generate Supported Actions tables from handler source

The "Supported Actions" tables in docs/services/*.md were hand-maintained and
drifted from the handlers. For example secrets-manager.md omitted RestoreSecret,
which SecretsManagerJsonHandler dispatches, and acm.md listed RenewCertificate,
which is not implemented anywhere in src/.

Derive the action list from handler source so it cannot drift, while keeping the
hand-written Description column:

- tools/docs/regen_action_docs.py extracts actions from `case "X" ->` switch arms
  (including multi-label arms) and JAX-RS REST controllers, and rewrites only the
  rows between the <!-- floci:actions --> markers. Descriptions are preserved by
  action name; new actions get a "-" placeholder. PascalCase-only matching avoids
  picking up SCREAMING_CASE labels from non-action switches.
- tools/docs/services.yaml registers 18 single-table switch services and lists the
  remaining switch handlers under deferred_handlers, so the new-service sentinel
  fires only on a genuinely unregistered handler.
- make docs-sync / docs-check / docs-test, plus a Python-only CI workflow that
  gates on handler, doc, and tooling changes.
- Migrate 18 service docs into marker blocks, reconciling real drift (adds
  RestoreSecret, ImportCertificate, and others; drops the unimplemented
  RenewCertificate).

Revives the parser and CI gate from #738 by @ericbsantana and completes the
description-preservation its spec described. REST-mode, mixed-mode, multi-table,
non-tabular, S3, and ecr docs are deferred and tracked in deferred_handlers.

* docs: drop standalone design spec from action-docs tooling

Remove ideas/auto-generated-action-tables.spec.md and the four references
to it (CONTRIBUTING.md, Makefile, regen_action_docs.py docstring,
services.yaml). It was a planning artifact; the operational docs live in
CONTRIBUTING.md and the tooling is self-documenting. The #738 / @ericbsantana
credit is preserved in the PR description.

* chore: address review on action-docs tooling

- pin actions/checkout to v7.0.0 in docs-actions workflow to match the
  repo-wide bump (#1690), so dependabot does not immediately flag the new file
- document in the generator docstring that a switch case label counts as
  supported purely by existing, so a per-action UnsupportedOperation stub
  would be a false positive (handlers here reject from the default arm)

* docs: regenerate action tables against current handler source

Resync the generated Supported Actions tables to handler source after
rebasing onto the latest main:

- cloudformation: add DescribeStackInstance and DescribeStackSetOperation
  now emitted by the handler, and keep the implemented StackSet descriptions
- cloudtrail: add LookupEvents
- firehose: add UpdateDestination
- step-functions: add PublishStateMachineVersion, ListStateMachineVersions,
  DeleteStateMachineVersion
- register the cloudcontrol handler in deferred_handlers so the strict
  unregistered-handler gate passes (no standalone action table yet)

* fix(docs): prevent action-table generator from silently dropping actions

Address the latest review pass on the action-docs tooling:

- switch extraction now captures case arms whose labels wrap across lines
  (valid Java 14+ syntax). The capture group excludes only `{ } ;` boundaries,
  so it spans newlines between labels but stops at the arm's `->`. A wrapped
  arm was previously missed, and docs-check would stay green because the doc
  and the generated output agreed on the omission, defeating the whole
  drift-prevention guarantee.
- REST extraction skips Javadoc / inline comments between a verb annotation
  and the method signature; such a line otherwise reset the lookahead and
  dropped the action.
- parse_marker_block raises a descriptive error when a marker is not on its
  own line, instead of a bare "substring not found".
- doc, source, and registry reads/writes are pinned to UTF-8 so generation is
  locale-independent (the docs contain non-ASCII text).
- the docs-actions push trigger watches Makefile and the workflow file,
  matching its pull_request trigger.

Adds regression tests for the multi-line arm and comment-skip paths (20 total).
2026-07-06 21:02:04 -05:00
Kenshin Okinaka e981a7b81b docs: update references after AGENT.md → AGENTS.md rename (#1272) 2026-06-10 07:53:01 -05:00
Hector Ventura 9f9d0273d5 chore: release 1.5.23 2026-06-07 01:52:30 -05:00
Hector Ventura a1d3c82dfa chore: conventionalcommits enforment (#869) 2026-05-16 14:23:09 -05:00
Kenshin Okinaka 88f40a839b docs: update Docker image references to floci/floci (#595)
* docs: update Docker image references to floci/floci
* docs: keep README Docker Hub badges pointing to hectorvent/floci

The hectorvent/floci image has accumulated pull and size metrics; switch
the badges to floci/floci once the new image has comparable numbers.
2026-04-25 09:29:39 -05:00
TiM 88b7ed1bb0 refactor(core): unify service metadata behind descriptor-backed catalog (#357)
Replace scattered service-keyed switch statements in ServiceRegistry,
ServiceEnabledFilter, StorageFactory, and the Aws{Query,Json,Json11,JsonCbor}
controllers with a single immutable ServiceDescriptor catalog. EmulatorConfig
is snapshotted once at @Startup into ResolvedServiceCatalog, which exposes
O(1) lookups by external key, storage key, target prefix, credential scope,
resource class, and CBOR SDK service id. Adding a service now requires one
descriptor entry plus handler wiring instead of touching six to eight
unrelated switches.

Deliberate behavior fixes bundled with the refactor:

- ec2/ecs were present in getServices() but missing from getEnabledServices();
  both now iterate allStatusDescriptors() so they cannot drift again.
- ServiceEnabledFilter did not recognize CertificateManager. or
  AmazonEC2ContainerServiceV20141113. target prefixes, so disabling acm or
  ecs in config had no effect on targeted requests. Both are now gated.
- The disabled-service response format was chosen by header sniffing
  (Accept/Content-Type). Auth-only REST GETs to Lambda and OpenSearch
  received XML when the SDK expected JSON. The filter now resolves the
  protocol from the descriptor's defaultProtocol.
- floci.storage.services.acm.{mode,flushIntervalMs} was wired in
  EmulatorConfig but never read by StorageFactory. It now takes effect.

The default-true fallback in isServiceEnabled for unknown service names is
preserved and pinned by a test, since non-inventoried AWS calls rely on it.
SqsQueueUrlRouterFilter remains imperative (its SQS identity is load-bearing
for queue-URL POST routing). AwsNamespaces and per-controller target-prefix
constant cleanup are deferred to a follow-up.

New integration tests cover the regression floor: Query XML, JSON 1.0,
JSON 1.1, CBOR (target-prefix and smithy-path), and REST disabled responses;
default-true fallback; ec2/ecs status parity; iam/sts shared enablement;
sesv2 credential scope alias; and the ACM storage override.
2026-04-11 20:23:02 -05:00
TiM a32b7f1f3b docs: comprehensive audit sweep + CHANGELOG backfill (1.1.0-1.5.2) (#326)
CHANGELOG.md was empty for the 1.1.0-1.5.2 release cycle and service docs
had drifted from code behaviour. This sweep reconciles docs against the
current codebase on upstream/main.

- Backfill CHANGELOG.md for 1.1.0 through 1.5.2 from git history
- Correct exact operation counts in docs/services/index.md: S3 (~30 -> 58),
  Lambda (~25 -> 30), API Gateway v1 (~24 -> 62). Counts now come from the
  actual dispatch handlers rather than @Path annotation counts.
- Rewrite README "Supported Services" table to drop per-service op counts
  (they drift too fast); point readers at docs/services/index.md
- Update 24 service docs for accuracy, add "Not Implemented" sections
  where relevant (s3.md, lambda.md, api-gateway.md)
- Refresh configuration and getting-started docs
- Add EventBridge Scheduler and AppConfig to mkdocs nav
- Add AppConfig / AppConfigData rows to README and services index
  following the 1.5.2 upstream release
2026-04-10 10:52:34 -05:00
Conor Heine eeefb729c4 test: move compatibility tests into this repo (#225)
* 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`
2026-04-06 09:35:53 -05:00
Andreas Caravella 39eacd56a8 docs: clarify that AI co-author trailers should not be used in commits (#200) 2026-04-04 12:50:41 -05:00
Cristian de la Hoz 5675b3c1ef docs(contributing): add canonical agent guide reference (#104)
Document AGENT.md as the canonical repository guide and fix contributing docs to point to it instead of a missing file.

Closes #10
2026-03-28 12:10:19 -05:00
Hector Ventura 5422a65335 chore: updating release strategy and actions 2026-03-25 01:03:45 -05:00
fredpena 1f01481e9e chore(docs): add detailed testing policy for pull requests 2026-03-24 14:33:49 -04:00
Juan Diego López 84db057653 chore: add pull request workflow for build and test (#37) 2026-03-24 10:54:09 -05:00
Conor Heine 08d5c812a3 chore: add maven wrapper (#15)
Thanks for this!
2026-03-24 00:41:47 -05:00
Hector Ventura 61433f59ab firt commit 2026-03-15 17:43:56 -05:00