Commit Graph
619 Commits
Author SHA1 Message Date
Jason van Zyl 3acab2bf27 Add IAM provisioning preflight support (#1250)
* fix(iam): seed provisioning managed policies

* feat(iam): support policy simulation preflight

* fix(iam): address provisioning preflight review feedback

* fix(iam): normalize condition context in evaluator
2026-06-15 17:13:01 -05:00
Hector Ventura 1fe6b18987 fix(cloudformation): provision EC2 VPC and subnet resources instead of stubbing (#1342)
AWS::EC2::VPC and AWS::EC2::Subnet (and related networking resources) had no
provisioner case, so they fell through to the stub branch: CloudFormation
reported CREATE_COMPLETE and exported a fake "logicalId-<random>" physical id,
but the subnet was never created in EC2. ec2 describe-subnets did not return it
and elbv2 create-load-balancer failed with "The subnet ID '...' does not exist".

Inject Ec2Service into CloudFormationResourceProvisioner and add cases for VPC,
Subnet, SecurityGroup, InternetGateway, RouteTable, SubnetRouteTableAssociation,
Route, NatGateway and EIP. Each delegates to the existing Ec2Service create
methods and sets the physical id to the real vpc-/subnet-/... id so Ref/exports
resolve to resources EC2 and ELBv2 can use. Topological ordering already
guarantees parents are provisioned before children.

Adds a CloudFormation+EC2+ELBv2 integration test plus AWS CLI and CDK
compatibility coverage.

Closes #1297
2026-06-15 01:08:12 -05:00
devansh-jain-18 022436eaae feat(batch): add AWS Batch service support (#1332) 2026-06-14 19:45:15 -05:00
Kenshin Okinaka 234af69bd2 fix(ses): omit unknown identities from GetIdentityNotificationAttributes (#1338)
The handler emitted a map entry with an empty <value> for every queried
identity, including ones that were never verified. Real AWS returns an
empty NotificationAttributes map for an unknown identity and drops it
from a mixed query, never an entry with missing fields (verified against
real AWS SES on 2026-06-13). The fabricated empty entry also violated the
response contract, since the entry's value lacked the required
ForwardingEnabled field. The handler now skips identities the service
doesn't know about.
2026-06-14 19:25:17 -05:00
Simon B. Laursen 4ac4e5d34b fix(sts): persist session secret key so RDS/ElastiCache IAM tokens validate (#1266)
* fix(sts): persist session secret key so RDS/ElastiCache IAM tokens validate

STS session credentials (ASIA... keys) issued by AssumeRole, GetSessionToken,
AssumeRoleWithWebIdentity, AssumeRoleWithSAML and GetFederationToken were
rejected by the RDS and ElastiCache SigV4 validators because the temporary
secret access key was never stored.

Root cause:
- StsQueryHandler generated a random secretKey and returned it to the caller
  but only passed accessKeyId + roleArn to registerSession — the secret was
  discarded.
- SessionCredential had no secretAccessKey field.
- IamService.findSecretKey only checked the accessKeys store (AKIA... keys);
  the sessions store was never consulted.
- RdsSigV4Validator fell back to orElse(accessKeyId), using the key ID itself
  as the signing secret, so every HMAC comparison failed with 28P01.

Fix:
1. Add secretAccessKey field to SessionCredential.
2. Add registerSession overload that accepts the secret and stores it.
3. Update all five STS handlers to call the new overload.
4. Make findSecretKey check sessions as a fallback after accessKeys.
5. Add IamServiceTestHelper.iamServiceWithSessionCredential helper and two
   new RdsSigV4ValidatorTest cases covering the ASIA key path.

The same findSecretKey call is used by the ElastiCache SigV4Validator, so
both services benefit from this fix.

* fix: avoid IAM enforcement crash for identity sessions
2026-06-14 19:21:00 -05:00
Prakhar Kapoor 702d71d604 fix(SQS): max message size should be 1MB, not 256KB (#1339) 2026-06-14 09:49:52 -05:00
Matt LishmanandHector Ventura 5de8d65b1a feat(cloudformation): provision Lambda-backed custom resources and layer versions (#1146)
* feat(cloudformation): provision Lambda-backed custom resources and layer versions

Custom::* and AWS::CloudFormation::CustomResource resources were stubbed in the
provisioner, so the ServiceToken Lambda was never invoked. Stacks reported
CREATE_COMPLETE while the custom resource's work silently never ran (e.g. CDK
BucketDeployment left the destination bucket empty).

Provision custom resources by invoking the ServiceToken Lambda synchronously
and capturing the response it PUTs to ResponseURL:
- CfnResponseController (PUT /cfn-response/{token}) receives the callback
- CustomResourceResponseStore correlates it to the waiting provisioner
- ContainerReachableEndpoint (extracted from ContainerLauncher) gives the
  ResponseURL an address reachable from inside the Lambda container

ResourceProperties scalars are stringified to match CloudFormation (true ->
"true"); Data is exposed via Fn::GetAtt; ServiceToken + properties are stored so
teardown can re-invoke the handler with RequestType=Delete.

Also provision AWS::Lambda::LayerVersion (previously stubbed) so layer ARNs
resolve and layer content is copied into /opt — required for the common
BucketDeployment case, whose handler shells out to a bundled AwsCliLayer.

Covers the single-Lambda synchronous custom-resource pattern; the async CDK
Provider framework (onEvent/isComplete polling) is not emulated.

Closes #1145

* test: pass ecsService/elbV2Service args to provisioner constructor

The merge with main added two constructor params; update the
custom-resource test's direct instantiation to match.

* fix(cloudformation): match AWS custom-resource event shape

Keep ServiceToken inside ResourceProperties (it is also surfaced at the
top level) to match real CloudFormation events, verified against the moto
reference (cloudformation/custom_model.py). Previously it was stripped.

Also include OldResourceProperties on Update requests, which CloudFormation
marks required so handlers can diff against the previous properties. The
prior values are read from the existing stash before it is overwritten.

* test: pass stepFunctionsService arg to provisioner constructor

origin/main added a StepFunctionsService parameter to the
CloudFormationResourceProvisioner constructor; update the custom-resource
test to match after merging main.

---------

Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-06-14 00:55:57 -05:00
Hector Ventura 08797954d9 fix(glue): return partitions in deterministic order from GetPartitions (#1335)
GlueService.getPartitions returned partitions in storage-scan order, which is
not stable across runs because partition keys embed the table name. Sort by
partition values so GetPartitions is deterministic, matching the existing
sorted-list convention in GlueService and the moto reference, which preserves a
stable partition order.

De-flakes the sdk-test-awscli "Glue catalog: table and partition lifecycle"
compatibility test, whose assertions assume a stable partition order.
2026-06-14 00:45:33 -05:00
David Phillips f70709a70f fix: make S3 conditional puts atomic (#1329) 2026-06-13 23:25:18 -05:00
David Phillips 763cdb5314 fix: return BadRequest for S3 dot-dot paths (#1325) 2026-06-13 19:55:26 -05:00
David Phillips cf761a9698 fix: reject missing Glue table deletes (#1323) 2026-06-13 19:41:57 -05:00
David Phillips 5a964e516d fix: support Glue table statistics deletion (#1324) 2026-06-13 19:34:42 -05:00
Lorenzo Galassi c9e4f931b7 fix(appconfig): stop AppConfig route hijacking S3 bucket named "configuration" (#1317)
* fix(appconfig): stop AppConfig route hijacking S3 bucket named configuration

A path-style S3 request to a bucket named exactly "configuration" (e.g.
GET /configuration?list-type=2) matched AppConfigData's literal
GET /configuration route ahead of S3's /{bucket} template, so routine
list/read calls returned HTTP 500 (NullPointerException on a null
configuration_token).

Move AppConfigData GetLatestConfiguration to an internal path and add a
@PreMatching AppConfigConfigurationRouteFilter that rewrites genuine
requests (those carrying a configuration_token) onto it. Requests without
a token keep the bare /configuration path and fall through to S3's
/{bucket} route. This mirrors the existing SqsQueueUrlRouterFilter and
LambdaUrlRoutingFilter path-rewrite pattern and avoids one controller
depending on another.

Closes #1294

* fix(appconfig): drop unreachable configuration_token guard

The route is bound to the internal path and the @PreMatching filter only
rewrites onto it when a configuration_token is present, so the guard could
never fire. Remove it and the now-unused AwsException import.
2026-06-13 19:10:25 -05:00
Samarth Tikotkar 8ba258c37a fix(ecs): add network mode and resources validation for fargate task … (#1274)
* fix(ecs): add network mode and resources validation for fargate task definitions

* fix(ecs): add validation for ECS with fargate for task definition

* fix(ecs): add exact error messages and compatibilities default to EC2 when requiresCompatibilities not provided
2026-06-13 18:59:27 -05:00
Jason van Zyl 22a50b3c80 Add RDS provisioning support (#1253)
* feat(rds): add subnet groups and orderable options

* feat(rds): support subnet group modification

* feat(rds): return managed master user secrets

* fix(rds): preserve instance tags

* fix(rds): honor requested engine versions

* fix(rds): return routable proxy endpoints

* fix(rds): accept PostgreSQL SSL negotiation

* fix(rds): initialize PostgreSQL IAM role

* fix(rds): include PostgreSQL 18 orderable option

* fix(rds): address provisioning support review feedback
2026-06-13 18:46:42 -05:00
David Phillips 59a2659e41 fix: support Glue partition APIs (#1315) 2026-06-13 09:28:58 -05:00
Hector Ventura 33cb72e341 feat(wafv2): add AWS WAF v2 management API (Phase 1) (#1327)
Add the wafv2 (AWSWAF_20190729) JSON 1.1 service: Web ACLs, IP sets, regex
pattern sets, and rule groups, plus resource association, logging and permission
policies, and tagging. Uses LockToken optimistic concurrency and isolates the
CLOUDFRONT and REGIONAL scopes.

Covered by an in-repo RestAssured integration test and an AWS SDK v2
compatibility test.
2026-06-13 09:25:55 -05:00
Hector Ventura 8b5adea915 feat(emr): add Amazon EMR management API (Phase 1) (#1321)
Add the elasticmapreduce (ElasticMapReduce) JSON 1.1 service: cluster lifecycle
with a simulated state machine, job-flow steps, instance groups and fleets,
security configurations, and tags. Honours the ActionOnFailure legacy alias and
EMR's distinct error shapes.

Operations: RunJobFlow, DescribeCluster, ListClusters, TerminateJobFlows,
SetTerminationProtection, SetVisibleToAllUsers, SetKeepJobFlowAliveWhenNoSteps,
SetUnhealthyNodeReplacement, ModifyCluster, AddJobFlowSteps, DescribeStep,
ListSteps, CancelSteps, AddInstanceGroups, ListInstanceGroups, AddInstanceFleet,
ListInstanceFleets, ListInstances, CreateSecurityConfiguration,
DescribeSecurityConfiguration, DeleteSecurityConfiguration,
ListSecurityConfigurations, AddTags, RemoveTags.

EmrService holds a static SecureRandom, so it is registered under
quarkus.native.resources additional-build-args --initialize-at-run-time to keep
the GraalVM native build working.

Covered by an in-repo RestAssured integration test and an AWS SDK v2
compatibility test.
2026-06-13 09:01:48 -05:00
Lorenzo Galassi a7b0826c96 fix(cognito): 🐛 include USERNAME in SRP PASSWORD_VERIFIER challenge (#1316)
InitiateAuth with USER_SRP_AUTH returned a PASSWORD_VERIFIER challenge
whose ChallengeParameters carried USER_ID_FOR_SRP but not USERNAME. Real
AWS Cognito returns both, and the .NET Amazon.Extensions.CognitoAuthentication
SRP client reads ChallengeParameters["USERNAME"], so it threw
KeyNotFoundException against floci.

Add USERNAME alongside USER_ID_FOR_SRP and assert it in the SRP flow test.

Closes #1305
2026-06-13 02:30:27 -05:00
Kenshin Okinaka a032ec5ac0 fix(ses): keep MailFromAttributes block when MAIL FROM is unconfigured (#1310)
GetEmailIdentity dropped the entire MailFromAttributes block for an
identity with no MAIL FROM domain configured, so an SDK caller saw
mailFromAttributes() == null on the emulator but non-null on real AWS.
AWS keeps the block carrying BehaviorOnMxFailure and omits only the
inner MailFromDomain / MailFromDomainStatus fields.

Clearing the MAIL FROM domain also resets BehaviorOnMxFailure to
UseDefaultValue, matching AWS, so a cleared identity is indistinguishable
from one that was never configured.
2026-06-13 02:16:14 -05:00
David Phillips e8e44e70bc fix: support Glue column statistics (#1309) 2026-06-13 01:59:45 -05:00
Hector Ventura 2c057db396 fix(ec2): embed image catalog in native image and load it lazily (#1308)
RunInstances 500d on the native image because ec2/image-catalog.yaml was not
embedded: the app-local resource-config.json pattern is not reliably honored by
Quarkus' native build. Register the catalog via quarkus.native.resources.includes,
mirroring the pricing-snapshots entry.

Also load the catalog lazily instead of in the bean constructor so a missing or
unparseable resource no longer fails EC2 bean creation, which keeps mock mode
(which never reads the catalog) working.

Refs #1296
2026-06-13 01:48:34 -05:00
Kenshin Okinaka 161a6ba7e0 fix(ses): persist inline options on v2 CreateConfigurationSet (#1307)
* fix(ses): persist inline options on v2 CreateConfigurationSet

CreateConfigurationSet parsed only ConfigurationSetName and Tags,
silently dropping the SendingOptions and SuppressionOptions blocks of
the request. GetConfigurationSet then fabricated a default
SendingOptions ("SendingEnabled": true via the null-means-enabled
effective getter), so a set created with SendingEnabled: false read
back as true, and SuppressedReasons vanished entirely. Real AWS echoes
both blocks verbatim (verified live 2026-06-12).

The controller now parses both blocks onto the ConfigurationSet before
the single store write, with the same structural validation as the
dedicated PUT endpoints (non-object blocks, non-boolean SendingEnabled
and non-string reasons are rejected with BadRequestException). The
service validates suppression reason values at create alongside the
existing tag validation, so an invalid reason rejects the request
without leaving a half-created set behind. The SuppressedReasons
structural parsing is shared with PutConfigurationSetSuppressionOptions
via a common helper.

The remaining five inline option groups (Tracking / Delivery /
Reputation / Vdm / Archiving) have no model fields or endpoints yet
and stay out of scope.

* fix(ses): match AWS error layers on v2 CreateConfigurationSet options

Live verification against real AWS SES V2 (2026-06-13) showed the
endpoint validates inline options in two layers that the previous
commit conflated into BadRequestException:

- Type violations fail in the deserialization layer with
  SerializationException: non-object option blocks ("Expected null"),
  a non-array SuppressedReasons ("Expected list or null"), and
  non-string reason elements / non-boolean scalars for SendingEnabled
  (token-style messages such as "NUMBER_VALUE can not be converted to
  a String").
- Value violations fail in the validation layer with
  BadRequestException using the constraint-style message ("1 validation
  error detected: ..."), which differs from the natural-language
  sentence the PUT endpoint uses for the same check.

SendingEnabled itself follows AWS deserialization semantics: a missing
member inside a present SendingOptions block defaults to false, any
string coerces to true, and an explicit null fails with a null-message
SerializationException. SuppressionOptions without SuppressedReasons
reproduces the 500 InternalFailure AWS itself returns, so code
developed against Floci fails the same way it would in production.

* fix(ses): align null suppressed-reason handling with AWS on v2 create

Live verification (2026-06-13) shows AWS lets a null element pass the
SuppressedReasons deserialization ("Expected list or null") and rejects
it in value validation with the same natural-language sentence the PUT
endpoint uses, not the constraint-style message reported for invalid
non-null values. CreateConfigurationSet now branches accordingly, the
parsing helper's javadoc documents the intentional null pass-through,
and the FALSE_VALUE token message is covered by a test now that it is
verified rather than inferred.

* fix(ses): make null suppressed-reason branch explicit on v2 create

The null check relied on validateConfigSetSuppressionReason always
throwing, which would silently fall through to the constraint-style
message if that method ever changed. The branch now throws directly,
with the sentence shared through a message helper. Also locks the
verbatim AWS "Expected null" response for non-object option blocks
into a test so the surprising message does not get "fixed" later.
2026-06-13 01:48:13 -05:00
Lorenzo Galassi ceb4d84431 fix(athena): 🐛 align GetWorkGroup with AWS behavior (#1301)
GetWorkGroup previously returned a hardcoded default response for any
workgroup name, ignoring workgroups created via CreateWorkGroup and
never failing for non-existent ones.

- Return stored Name, State, Description, CreationTime and
  Configuration for created workgroups, scoped by region
- Throw InvalidRequestException (400) when the workgroup is not found,
  matching the AWS error shape and message
- Keep the default view for the primary workgroup
- Make DeleteWorkGroup actually remove the entry from the store so a
  deleted workgroup is no longer returned and its name can be reused
- Document DeleteWorkGroup in the supported actions table

Closes #1128
2026-06-13 01:43:26 -05:00
TomDav28andTomer David 91f8af7062 fix(sqs): release in-flight ReceiveMessage long polls when their queue is deleted (#1286)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-13 00:04:07 -05:00
devansh-jain-18 e063ac18ee feat(rds-data): add RDS Data API support (#1262)
* feat(rds-data): add RDS Data API support

* fix(rds-data): harden Data API validation

* fix(rds-data): harden review findings
2026-06-12 23:39:05 -05:00
shrimptails-f 70e63caf10 fix(elbv2): enforce ALB subnet availability zone rules (#1247)
* fix(elbv2): enforce ALB subnet availability zone rules

* test(cloudformation): use real default subnets in ELBv2 stack test
2026-06-12 22:41:17 -05:00
iam-ssrivastav f8cf476848 fix(ses): omit MailFromAttributes if MAIL FROM domain is not configured (#1273) 2026-06-12 22:18:22 -05:00
shrimptails-f ee341003bf refactor: remove unused code (#1303)
* refactor: remove unused imports and dead references

* chore: remove unused suppress warnings and cleanup formatting
2026-06-12 17:53:46 -05:00
Jason van Zyl d8d70bfd48 Improve ELBv2 target resolution and persistence (#1254)
* fix(elbv2): resolve instance target addresses

* fix(elbv2): persist load balancer state

* fix(elbv2): preserve listener sockets on updates

* test(elbv2): cover persisted state reload

* fix(elbv2): restore target health after reload

* fix(elbv2): address persistence review feedback

* test(elbv2): align subnet-backed zone coverage
2026-06-12 17:46:18 -05:00
Fábio Silva ce12e0284b fix(msk): populate currentBrokerSoftwareInfo in cluster describe response (#1238)
* fix(msk): populate currentBrokerSoftwareInfo in cluster describe response

* fix(msk): map provisioned.kafkaVersion in CreateClusterV2

Addresses review feedback: V2 create requests carry kafkaVersion under
provisioned, not at the top level, so it was always falling back to the
default. Adds integration test coverage for the V1 path, V2 with
provisioned.kafkaVersion, and V2 default fallback.

* fix(msk): update RedpandaManagerTest for MskCluster 3-arg constructor
2026-06-12 17:45:09 -05:00
TomDav28andTomer David c476aca00b fix(sqs): report ApproximateNumberOfMessagesDelayed in GetQueueAttributes (#1285)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-12 17:21:08 -05:00
Jason van Zyl 9a244a6964 Add CloudTrail trail lifecycle support (#1256)
* feat(cloudtrail): add trail lifecycle operations

* test(cloudtrail): cover provisioning integration

* test(cloudtrail): add SDK compatibility coverage

* fix(cloudtrail): harden trail lifecycle state
2026-06-11 01:57:18 -05:00
shrimptails-f 8c2d18b1d0 fix(athena): align ListWorkGroups with AWS behavior (#1259) 2026-06-11 01:54:53 -05:00
shrimptails-f 94ad081241 fix(elasticache): return reachable Memcached configuration endpoints (#1258) 2026-06-11 01:53:12 -05:00
Jason van Zyl 79bf0d39a6 Stream S3 range responses (#1255)
* fix(s3): stream object range responses

* test(s3): cover streamed object reads

* fix(s3): harden streamed range responses
2026-06-11 01:48:39 -05:00
Jason van Zyl f9c305b7c6 Add EC2 provisioning primitives (#1252)
* feat(ec2): load AMI catalog metadata

* feat(ec2): add Ubuntu 24.04 AMI metadata

* feat(ec2): add launch template APIs

* feat(ec2): add launch template version APIs

* feat(ec2): add VPC endpoint CRUD

* feat(ec2): add NAT gateways and instance offerings

* fix(ec2): add t4g.medium instance offering

* fix(ec2): preserve launch template version data

* fix(ec2): align subnet helper references

* fix(ec2): keep VPC endpoint services empty
2026-06-11 01:32:17 -05:00
Jason van Zyl 6e4087b0f4 Add KMS key state and description operations (#1251)
* feat(kms): support disabling keys

* feat(kms): support key description updates

* fix(kms): tighten key description update coverage
2026-06-11 01:19:09 -05:00
Hector VenturaandRicardo Medina d7f9f95873 feat(cognito): add verification code subsystem (store, dispatcher, SNS/SES inspection) (#1249)
* chore(fixtures): capture AWS Cognito auth flow fixtures for contract tests

Captures 7 wire-format fixtures against wirebit stg pool for use as ground truth
in floci compatibility tests. Includes capture script with PII sanitization and
best-effort user cleanup.

Empirical findings vs spec:
- No client-side rate-limit observed on back-to-back ResendConfirmationCode
- PreventUserExistenceErrors=LEGACY in wirebit prod/stg (older pools)
- Email Destination masking is aggressive: f***@e***

* feat(cognito): add verification code store, message dispatcher and SNS inspection

Introduces the foundation for full Cognito auth flow emulation:

- VerificationCodeService: 6-digit codes hashed with per-code salt, persisted
  via StorageFactory with TTL + 30s rate-limit + 5-attempt invalidation.
- VerificationCode model: serializable to disk for filesystem storage mode.
- CognitoMessageDispatcher: renders VerificationMessageTemplate ({####}
  placeholder + failsafe), dispatches via SesService (email) or SnsService
  (SMS) honoring DeliveryMediums.
- SnsService: now persists every phone publish() as a SentSms record and
  exposes getSentMessages()/clearSentMessages().
- SnsInspectionController: GET/DELETE /_aws/sns mirroring SesInspectionController.
- FixtureLoader + 7 AWS Cognito fixtures captured against wirebit-stg pool
  (sign-up, confirm-signup error, resend, forgot-password unknown-user, SRP
  unknown-user). Relocated from compatibility-tests/ to src/test/resources/
  so JUnit can load them via classpath.

Not yet wired to any flow — that's PR #2-5 in a stacked series.

Tests: 22 new (9 VerificationCodeService + 6 dispatcher + 4 SNS inspection +
3 FixtureLoader). Full suite 4336 passing (was 4314), ElastiCacheIntegrationTest
excluded due to local port-6379 collision.

* feat(ses): SesInspectionController supports ?email= filter

Symmetric to SnsInspectionController.?phone= (added in the verification
code store commit). Lets test helpers retrieve the latest email sent to
a specific recipient without filtering client-side over the full message
list.

GET /_aws/ses?email=user@example.com → only messages where the address
is in ToAddresses.

* fix(cognito): align verification dispatcher with AWS and current SES API

Adapt the adopted verification-code foundation to current main and AWS:
- update CognitoMessageDispatcher to the 12-arg SesService.sendEmail signature
- source the MFA SMS message from the user pool's top-level SmsAuthenticationMessage
  (it is not part of VerificationMessageTemplate, which only holds SmsMessage)
- match AWS's out-of-the-box default verification message text
- document the 30s resend window and 5-attempt cap as emulation heuristics (not
  AWS-published constants) and add TODOs for DefaultEmailOption, medium preference,
  and per-purpose TTL that the auth-flow wiring must honour

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>

* refactor(cognito): drop dead code flagged by static analysis

- remove no-op ctorRequest local in scripts/aws-fixtures-capture.mjs
- drop the unused purpose parameter from emailTemplateKey() and its call site

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>

* chore(cognito): remove the one-off AWS fixture-capture dev script

The captured aws-cognito/*.json fixtures remain (FixtureLoader uses those); the Node capture tool is not needed in the repo.

---------

Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>
2026-06-11 00:47:33 -05:00
nblomquistandnathan 92f4ff1ccf Feature/issue 1130 glue database tags (#1248)
* fix(glue): register database tags with tagging API (#1130)

* test(glue): add database tagging compatibility coverage (#1130)

* test(tagging): allow additional tagged resources (#1130)

---------

Co-authored-by: nathan <nathan@debian-dev-small.localdomain>
2026-06-11 00:47:00 -05:00
shrimptails-f 3f8e2600b3 fix(elbv2): validate subnet VPC consistency for load balancers (#1244) 2026-06-11 00:02:56 -05:00
MAN$I VERMAandmansiverma897993 e35d30bc42 feat(athena): support DeleteWorkGroup action (#1213)
* feat(athena): support DeleteWorkGroup action

* feat(athena): validate WorkGroup name and block deletion of primary workgroup

* fix: validate WorkGroup name pattern in DeleteWorkGroup per AWS constraints

---------

Co-authored-by: mansiverma897993 <vmansi756@gmaail.com>
2026-06-10 23:52:08 -05:00
Fábio Silva 2b466bf980 fix(msk): poll correct Redpanda admin readiness endpoint (#1237)
* fix(msk): poll correct Redpanda admin readiness endpoint

* test(msk): pin RedpandaManager.isReady() to the /v1/status/ready admin path

isReady() resolves an admin URL and polls it for a 200 to decide whether
the Redpanda container is ready, but nothing asserted which path it hits.

Add RedpandaManagerTest.isReadyPollsTheCorrectAdminReadinessPathInNativeMode:
a local HTTP server stands in for Redpanda's admin API (200 on
/v1/status/ready, 404 on /ready — the previously-polled path that always
404s), the Docker container-inspect chain is mocked to resolve the admin
port binding to that server, and isReady() is asserted to report ready.
Reverting ADMIN_READY_PATH to /ready makes the assertion fail, pinning
the fix as a regression guard.
2026-06-10 21:36:34 -05:00
David Phillips 27943b35c3 fix: archive Glue table versions (#1233) 2026-06-10 21:33:19 -05:00
Ben Younes d96f65afca fix(lambda): normalize backslash ZIP path separators on extraction (#1215)
* fix(lambda): normalize backslash ZIP path separators on extraction

PowerShell's Compress-Archive writes ZIP entry names with '\' separators,
violating the ZIP spec (APPNOTE.TXT 4.4.17 mandates '/'). On Linux '\' is a
literal filename character, so a .NET/Blazor publish archive extracted to a
single flat file named "wwwroot\app.css" instead of nested directories,
breaking static-file lookups under /var/task.

Normalize '\' -> '/' before any path handling so such archives extract to the
correct nested paths, matching how real AWS Lambda unpacks them. A trailing
separator is also treated as a directory entry, since the backslash form would
otherwise slip past ZipEntry.isDirectory(). The path-traversal guard now runs
on the normalized name, so "..\..\evil" is still rejected.

Closes #1198

* fix(lambda): warn on backslash ZIP separators instead of normalizing

Real AWS Lambda does NOT normalize '\' to '/' in ZIP entry names — a
PowerShell Compress-Archive entry extracts as a literal-named file. The
previous normalization made Floci more forgiving than AWS, letting broken
packages pass locally and fail on deploy.

Replace the normalization with a clear warning that tells the developer
why the backslash entry is problematic and how to repackage correctly
(tar, pwsh, or dotnet lambda CLI). The traversal guard and containment
check stay as-is.
2026-06-10 21:23:54 -05:00
David Phillips 16efcc82eb fix: support Glue UpdateDatabase (#1232) 2026-06-10 21:23:13 -05:00
David Phillips 689d4b7d0a fix: reject relative S3 object keys (#1235) 2026-06-10 18:47:28 -05:00
Hector Ventura 898615707d fix(cloudmap): avoid SecureRandom in native image heap (#1289)
CloudMapService held a static final SecureRandom, which GraalVM evaluates
at build time and bakes into the image heap with a cached seed, failing the
native build (DisallowedImageHeapObjects). Make it a non-static instance field
on the @ApplicationScoped bean so it is created at runtime instead, matching
how other services (msk, opensearch, rds) construct SecureRandom locally.

Also remove the stray src/main/resources/application.yml.bak that triggered an
"Unrecognized configuration file" warning during the native build.
2026-06-10 17:54:20 -05:00
TomDav28andTomer David 076afb3ebd feat(parity): emit LocalStack-compatible "Ready." log line on startup (#1284)
Co-authored-by: Tomer David <tomer.david+catonian@catonetworks.com>
2026-06-10 07:52:15 -05:00
Hector Ventura f669116908 feat(eks): support managed node groups (create/describe/list/delete) (#1226)
* feat(eks): support managed node groups (create/describe/list/delete)

aws eks create-nodegroup returned a 400 S3 error ("POST requires ?uploads
parameter") because EksController declared no route for
/clusters/{name}/node-groups, so the request fell through to S3's path-style
catch-all. Add the nodegroup REST routes (which outrank S3's templated path)
plus management-plane node group CRUD.

Node groups are emulated as catalog records that become ACTIVE immediately,
mirroring mock-mode cluster creation; no real worker nodes are provisioned
(k3s schedules pods on its built-in node in real mode).

Closes #1137

* refactor(eks): drop unused nextToken/maxResults params from listNodegroups
2026-06-09 02:09:16 -05:00