mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
096d336fab098ca8a8083a304ea2faae0c729b6c
3688
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
71cc704319 | fix(iot): merge nested shadow state on update (#6217) | ||
|
|
2ef7ef0b7a |
fix(dsql): run each transaction age check on a thread of its own (#6216)
The endpoint's one dsql-age-checks thread both timed the sessions' age checks and ran them, and a check can block. Ending a session writes the age error under clientWrites, which the relay holds while it writes, and waits for the client to take it; stopping a statement sends the database a cancel request. One client that stopped reading mid-result could then hold back every other session's check. The thread now only times the checks, and each due check runs on a virtual thread of its own. |
||
|
|
2c5415186a |
fix(cognito): fire the CustomMessage trigger for UpdateUserAttributes and GetUserAttributeVerificationCode (#6205)
* fix(cognito): fire the CustomMessage trigger for UpdateUserAttributes and GetUserAttributeVerificationCode Both sent their verification codes without the CustomMessage trigger, so a pool's function never shaped those messages and never saw the request's ClientMetadata. They now fire it with CustomMessage_UpdateUserAttribute and CustomMessage_VerifyUserAttribute. Measured on Cognito, the event carries the user as stored once the request is done: the whole update applied, and an email that must be verified before it changes still the old one while the code goes to the new address. The message is therefore sent once the update is stored and the user lock is released. The trigger is synchronous, so holding the lock would also block a function that calls the pool back for the same user until its invocation timed out, which SignUp already avoids. Cognito keeps an update whose code it cannot deliver and answers CodeDeliveryFailureException, and a message that cannot be sent now does the same. * fix(cognito): leave nothing behind when an attribute code's message is not sent Sending an attribute code's message after the user lock opened four ways to leave a code live that no message carried, or to fail an update already stored. Each message is now sent on its own: one that cannot be sent has its code withdrawn, so another can be asked for at once as on Cognito, and the others still go out. An update that stops before it is stored withdraws the codes it already issued. The pool, the client and a copy of the stored user are read while the lock is held, as SignUp captures its trigger's user, so nothing is looked up once the update is stored. |
||
|
|
5beb8d47b9 |
fix(cloudformation): keep Route 53 routing policies and provision health checks (#6191)
A Route 53 RecordSet resource now writes Region, Failover, Weight and HealthCheckId into the record, as ChangeResourceRecordSets stores them. A HealthCheck resource creates a health check with its tags, and its Ref and HealthCheckId attribute return the check's id. An unknown Type is refused before any check is created. Changing Type, RequestInterval or MeasureLatency replaces the check, and the old one is deleted once the update commits, or kept under UpdateReplacePolicy: Retain. Any other change updates the check in place, and a failed stack update puts back its earlier settings and tags. |
||
|
|
f757d29aa0 |
fix(sqs): key queues by account and name (#6053)
With a path in FLOCI_BASE_URL, such as http://localhost:4566/sqs, both endpoint strategies find the same queues. Queues saved under the longer path move to the new key at startup. An entry saved without an account prefix moves to the account its queue path names and is removed by its stored key. An entry whose new key already holds a different value stays in place, with a warning. |
||
|
|
62972c91bf |
feat(lambdaweb): fail a revision whose code is not a zip (#6141)
* feat(lambdaweb): fail a revision whose code is not a zip
A revision whose code is not a zip is Failed, as on AWS, and cannot be
deployed. The endpoint CreateWebFunction makes on such a revision is
Failed too and answers 409 Platform.EndpointNotActive. An empty object
is a 500 InternalServerException with an empty body, as on AWS.
* fix(lambdaweb): remove a code copy that cannot be read and name the {} body
* test(lambdaweb): upload a real zip in the compatibility tests
|
||
|
|
7c202a8966 |
fix(ec2): AND repeated filter names on every Describe action (#6170)
* fix(ec2): AND repeated filter names on every Describe action The Query handler read Filter.N into a map keyed by name, so a filter whose name was already given replaced the earlier one: tag-key=Env with tag-key=Team matched every resource tagged Team, and two vpc-id filters naming different VPCs matched the second VPC's resources. AWS joins every filter with an AND, a repeated name included. Every Describe action that reads Filter.N now passes the filters in request order to the service, as DescribeKeyPairs, DescribeTags and DescribeAvailabilityZones already did, and each filter narrows the answer the way a lone filter of that name does. The service keeps its map overloads for the callers that build filters of distinct names in code; they delegate to the ordered overloads, so what they get back does not change. DescribeImages builds its lookup image from the first name wildcard and returns it only when it satisfies every filter. Four existing tests passed null or any() as the filters of a method that now has a second overload. They pass Map.of() or anyMap() instead, which is what the code under test sends. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): sweep transit gateway peering attachments for repeated filters DescribeTransitGatewayPeeringAttachments goes through the same shared matcher as the other actions the parameterized tag-key case covers, but had no case of its own. It now has one: two tag-key filters find only the peering attachment that carries both keys. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): satisfy every repeated filter when building a lookup image With a filter name given twice, DescribeImages built the image it synthesizes for an unmatched lookup from the first name wildcard and the first concrete value of each other filter, so a later filter of the same name could reject it and the lookup came back empty: architecture with x86_64 or arm64 and architecture with arm64 returned nothing. Each name filter now offers its wildcard in turn, and each other value is the first one that every filter of its name admits. A lone filter of each name still yields the one image it always did. DescribeInstanceTypeOfferings kept the types of its InstanceType.N parameter only through the first instance-type filter, so repeating that filter dropped them. They are now kept beside the types that every instance-type filter names. The docs say "an action" rather than "a Describe action", since the Get and Search actions that read Filter.N are covered too. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): let an instance-type filter without values narrow nothing DescribeInstanceTypeOfferings looked up the types its first instance-type filter named, so a first filter without values limited the answer to the InstanceType.N types while a later one without values narrowed nothing: the answer depended on the order of the filters. A filter without values now names and narrows nothing wherever it stands, as a lone one never added a type. The lookup image of DescribeImages tries the first wildcard of each name filter, which the comment now says. Every filter value the image is built from is tested by the image matchers' own rule. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * refactor(ec2): name the per-filter checks of repeated filters The test that every filter of one name admits a value was written out by hand at each site. Two helpers beside everyFilterAdmits now carry it: everyFilterContains, for exact values where a filter without values admits anything (security group rules, prefix lists, the later instance-type filters of DescribeInstanceTypeOfferings), and everyFilterMatches, for values with wildcards where a filter without values matches nothing (the location filters of offerings, and the spot-price and timestamp filters of DescribeSpotPriceHistory). No answer changes. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): match instance-type wildcards in DescribeInstanceTypeOfferings AWS takes * and ? in an instance-type filter value of DescribeInstanceTypeOfferings (the CLI reference filters on c5*), but Floci looked each value up by its exact name, so a lone t3.* found nothing and t3.* beside t3.micro found nothing either. A first filter holding a wildcard now looks up the whole catalog, and every filter matches a type with the same matcher as the location filter. Exact values give the same answer as before. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): pin an empty lookup for overlapping name patterns Two name filters foo-* and *-bar-* overlap, but the image built from the first wildcard of each breaks the other filter. DescribeImages returns no image here, as AWS returns only images that exist; before the filters were ANDed it returned one that broke foo-*. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): match offerings instance-type values with the linear glob The instance-type wildcards of DescribeInstanceTypeOfferings went through the regex matcher, which backtracks on a caller-supplied pattern of many stars: twenty stars took about sixteen seconds per request. They now go through everyFilterAdmits, the two-pointer glob the image filters already use. Value-less filters are dropped before the check, so no answer changes. Also reword a test comment. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): name the matcher a many-star pattern goes through The glob that matches instance-type values is a two-pointer match, not a strictly linear one, so the test's Javadoc says that instead. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |
||
|
|
e38980b6c1 | fix(cognito): omit absent clientMetadata in custom message events (#6195) | ||
|
|
a8e49fbbaa |
feat(cloudformation): support WAFv2 logging configuration (#6194)
* feat(cloudformation): support WAFv2 logging configuration * fix(cloudformation): honor WAFv2 logging replacement and rollback |
||
|
|
42fd858311 |
feat(dsql): speak DSQL's dialect and keep its transaction limits (#6185)
* feat(dsql): speak DSQL's dialect and keep its transaction limits The third part of the DSQL data plane, after #6102 and #6143: the cluster's database answers the way Aurora DSQL does, as measured on AWS. CREATE [UNIQUE] INDEX ASYNC answers a job_id, with sys.jobs and sys.wait_for_job; a plain CREATE INDEX is refused. What DSQL refuses is refused with its SQLSTATE and message: what the statement shows (TRUNCATE, DO, LISTEN, VACUUM, sequence caches, isolation levels, locking clauses, advisory locks, ADD CONSTRAINT) in DsqlStatements, and what only the catalog can tell (column types, a function's language, temporary and partitioned tables, triggers) inside the database, by event triggers, since the statement alone cannot say. A transaction runs one DDL statement, never with DML, and modifies at most 3,000 rows, a cascade's included. Its age follows what was measured with a client that only reads: the client's next message after 300 seconds ends it with 54000 and closes the connection with 08P01, an idle one is ended unasked 15 seconds later, a statement running across the limit completes and then fails with 54000, and a failed transaction left idle as long is closed with 25P03. A first model, the age checked at the next statement, was dropped once the reading client showed DSQL's own timer. A write conflict is DSQL's 40001 OC000, and an error's context keeps the statement a cascade ran while dropping what sys functions ran. * fix(dsql): close the dialect's gaps found in review, as measured on DSQL Measured on Aurora DSQL before each change: - set_config of default_transaction_isolation or transaction_isolation, a quoted SET of one and ALTER ROLE ... SET of one answer 0A000 "not supported"; ALTER DATABASE ... SET or RESET is AlterDatabaseSet. - CREATE TABLE AS, SELECT INTO and materialized views are CreateTableAs, refused by the event trigger so a function body cannot reach them either. - An expression key, or a domain over jsonb or bytea, is refused like the type itself, named as declared: the check reads the index's own columns and follows a domain to its base type. - CREATE, ALTER and DROP ROLE and GRANT or REVOKE of a role are DDL. PostgreSQL fires no event trigger for them, so they run through sys.run_role_ddl, which counts them first, under PostgreSQL's tags. - A statement past the transaction age limit fails with 54000, in a transaction block or not, nothing its transaction wrote is kept, and the rest of its query, a COMMIT included, does not run. The age limit is reworked as the review asked. Each session has one check scheduled at a time, on the endpoint's scheduler and by the injected Clock, cancelled when the transaction or the connection ends; a failed transaction's idle wait restarts after every client message. At the limit a statement still running is cancelled with the client's own cancel request, and its 57014 reaches the client as DSQL's 54000. DSQL lets the statement finish and fails it then; stopping it at the limit ends the same way. Two other ways were tried and dropped: dropping a late statement's answer in the relay let a COMMIT in the same query commit, and a mark the endpoint writes for the database to check is invisible to the client's repeatable read snapshot. The age test now moves the clock and holds a row instead of sleeping, and shares its cluster setup with the data plane test through DsqlClusterFixture. Also fixed: a -- comment ends at a carriage return, a quoted advisory lock name is refused, CACHE is read from tokens rather than the raw text, a BEGIN queued behind a long statement starts once that statement is answered, tables that predate the counting triggers get them, and sys.create_index_async runs one index statement and nothing else. sys.wait_for_job with an unknown id keeps waiting, as DSQL's does. |
||
|
|
6355474ad2 |
feat(s3): verify SigV4A (AWS4-ECDSA-P256-SHA256) request signatures (#6092)
* feat(s3): verify SigV4A (AWS4-ECDSA-P256-SHA256) request signatures Derive the ECDSA P-256 key pair from the secret access key, as AWS does, and check SigV4A signatures in the Authorization header and in presigned URLs when signature verification is on. The region-less credential scope now resolves its region from the signed region set instead of reading the service name as a region. Closes #5210 * fix(s3): address SigV4A review feedback and edge cases - Reject forged SigV4A headers to non-S3 services - Handle comma-only X-Amz-Region-Set safely in RegionResolver - Support SigV4A credential scope in IamEnforcementFilter - Reject duplicate Credential components in Authorization header - Tighten SigV4CredentialScope SERVICE_PATTERN regex - Reuse S3RequestSigner host and bodyBytes in S3SigV4aRequestSigner - Fix Checkstyle import ordering and redundant FQCN * fix(core): support nested credentials in SigV4CredentialScope service patterns * refactor(core): apply SigV4A region set without service-specific check * docs(iam): update SigV4A Javadoc on refuseUnreadableCredential |
||
|
|
6d96849d2a |
fix(backup): resume unfinished jobs after restart (#5721)
* fix(backup): resume unfinished jobs after restart * fix(backup): address recovery review feedback Coordinate recovery-point deletion and completion, increment new-point counts, and validate vault creation identity during recovery. Local focused validation: 92 tests, four additional persistence/restart checks, and Checkstyle. Existing timestamp-granularity and legacy compatibility bounds remain. * fix(backup): simplify recovery identity and deadline tests Address maintainer feedback with the exact independently reviewed local candidate. Focused affected-area checks passed; remote CI and maintainer acceptance remain outstanding. |
||
|
|
74124690b8 |
fix(codepipeline): stop superseded workers at stage boundaries (#5723)
* fix(codepipeline): stop superseded workers at stage boundaries * fix(codepipeline): address supersession timing review feedback Supersede older waiters only at catch-up, persist stable admission ordering for timestamp ties, consolidate failure handling, and place the documentation under Execution. Local focused validation: 51 tests, four additional checks including the real timestamp-collision reproduction, Checkstyle, and docs checks. Legacy equal-time executions without an ordinal remain conservatively unordered. * test(codepipeline): consolidate review regression fixtures Preserve review regression assertions in the shared service fixture, remove private-service reflection, expose waitForTransition to package tests, and shorten user documentation. Independent exact-candidate QA: 51 focused tests, Checkstyle and docs checks, five supplemental edge/control cases and reverse-arrival rerun. Production method body is unchanged. * test(codepipeline): configure worker polling for fast tests Let tests configure a 5 ms worker-poll interval while preserving all existing/default production constructors at 100 ms and independent source scheduling. Independent exact-candidate QA: 53 focused tests, Checkstyle/docs, repeated diagnostic timings and four supplemental JFR/behavior cases. No timing threshold or production-default change. * fix(codepipeline): configure worker and assertion polling Address maintainer feedback with the exact independently reviewed local candidate. Focused affected-area checks passed; remote CI and maintainer acceptance remain outstanding. |
||
|
|
29384867cf |
fix(iam): check the Lambda MicroVM and network connector routes (#6122)
Under IAM enforcement no Lambda MicroVM or network connector route was mapped to an IAM action, so every call went unchecked, and the roles they take with it. - Every MicroVM route (2025-09-09) and network connector route (2026-04-04) is mapped, and IamRestRouteCoverageTest now checks every operation of both models. An image or connector request is checked against microvm-image:<name> or network-connector:<id> in the request's account and Region, an identifier given as an ARN taken for its name, as the service looks it up. RunMicrovm is checked against the image its imageIdentifier names, an action on a running MicroVM against the image it runs, and a managed image's versions against that image, which aws owns. Creating an image or a connector and the list operations name no resource, so they are checked against *. - Lambda's own tag routes, /2017-03-31/tags/<arn>, which MicroVM images share with functions, are mapped and checked against the resource they tag: the caller's own function, image or connector of the ARN's Region and name, whatever account the ARN names, as Lambda looks it up, a target without the arn: prefix read as the MicroVM tag handler reads it, and an event source mapping's ARN as written. - iam:PassRole, to lambda.amazonaws.com as the Service Reference gives: CreateMicrovmImage and UpdateMicrovmImage (buildRoleArn), RunMicrovm (executionRoleArn), and CreateNetworkConnector and UpdateNetworkConnector (OperatorRole). This finishes the Lambda half of the follow-up on #5938. |
||
|
|
4eea01741f |
feat(sts): dispatch GetAccessKeyInfo, the account an access key id belongs to (#6121)
GetAccessKeyInfo answered UnsupportedOperation 400. It takes one member and answers one: "when you pass an access key ID to this operation, it returns the ID of the AWS account to which the keys belong", and it models no errors at all, so the whole operation is that lookup plus the shape of its input. The lookup is not the one authentication uses. resolveAccountId takes only an active long-term key and a live session, because that is what a request may be signed with, where this operation is explicit about the opposite: "this operation does not indicate the state of the access key. The key might be active, inactive, or deleted". So findAccountForAccessKeyId answers from what is stored whatever state it is in, a long-term key through the account that holds it and an ASIA key through the session that minted it, which is the split the page draws between AKIA as "long-term credentials for an IAM user or the AWS account root user" and ASIA as "temporary credentials that are created using AWS STS operations". Both long-term lookups read one scan now, the authentication one keeping the Active filter over what the new one answers whole, so the guard and the scan are written once. The id is read against accessKeyIdType first, 16 to 128 characters of [\w], which the reference glosses as "any upper- or lowercase letter or digit", so a malformed id answers for its own shape rather than for a key that could not exist. The violation is rendered the way the one recorded IAM rendering Floci already follows renders it, the member in lower camel case and the offending value quoted beside it; the older STS operations name the parameter as written instead, which is drift of its own rather than something to copy here. An absent member and a present empty one are different answers as well: only the absent one reads as null, where AccessKeyId= is a value that fails the minimum and is quoted as the empty string it is, which is what IAM answers for an empty RoleName over this same wire. One answer is chosen rather than read. The operation models no error for a key that is not there, and the page says only that "providing a deleted access key might return an error that the key doesn't exist", so a well-formed id this emulator never issued answers InvalidParameterValue, the published common error closest to that sentence. docs/services/sts.md records it as a deviation rather than a recorded behaviour, since nothing says what AWS answers for an id it never issued. Enforcement is untouched on purpose. The "No permissions are required" note appears on GetCallerIdentity and GetSessionToken and on no other page in the reference, and sts:GetAccessKeyInfo is in the service authorization reference, so this one is authorized like any other action rather than exempted the way GetCallerIdentity is. Ten tests. Five over the wire: a long-term key answering the account that holds it, an inactive key still answering it, a session key answering the account its session belongs to, four shapes refused ahead of any lookup, and a well-formed id nobody holds. Five on the handler: the account answered and the authentication path not consulted, the absent, short, long and malformed ids, a present blank id read as a value rather than an absence, and the refusal for a key the service does not hold. Docs carry the action, a section on what it does and does not say about the key, and the matrix row at 9. |
||
|
|
f731951c53 |
fix(iam): check iam:PassRole for EC2 Auto Scaling and Application Auto Scaling (#6186)
Under IAM enforcement, a request that handed Auto Scaling a role needed no iam:PassRole on it. A user allowed only the Auto Scaling actions could create a group from a launch template whose instance profile holds any role in the account, and Floci launches the group's instances with that profile, so they got the role's credentials. The IAM user guide requires the permission for every role passed to a service, and the EC2 Auto Scaling user guide lists where these operations pass one: - CreateLaunchConfiguration passes the roles of its IamInstanceProfile, given by name or ARN, or else of the profile of the instance it is made from, which the configuration copies, to ec2.amazonaws.com. - CreateAutoScalingGroup and UpdateAutoScalingGroup pass the roles of the instance profile in each launch template they name, at the version the group launches from, there too: the permission is "needed on the IAM identity (user or role) that creates or updates an Auto Scaling group using a launch template that specifies an instance profile". That covers the group's own template, its mixed instances policy's and each override's. StartInstanceRefresh does the same for its desired configuration, read merged with the group as Auto Scaling applies it: a version named alone moves the group's own template to it, and a template named alone keeps the group's version. - A ServiceLinkedRoleARN other than the default AWSServiceRoleForAutoScaling, and a lifecycle hook's RoleARN (PutLifecycleHook, and the hooks CreateAutoScalingGroup names), go to autoscaling.amazonaws.com. The guide asks for the permission "when a nondefault service-linked role, an IAM role for a lifecycle hook, or a launch template that specifies an instance profile ... is provided". - Application Auto Scaling's RegisterScalableTarget passes RoleARN to application-autoscaling.amazonaws.com when the request names one. A group from a launch configuration passes nothing, since the configuration's role was checked when it was created. Launching an EC2 instance straight from a launch template is unchanged: the EC2 user guide has that role checked where the template is made. The launch template version, a source instance's profile and a refresh's merged template are looked up through PassedRoleLookup, which the Auto Scaling service now implements with the code its own operations use, so the filter does not depend on Auto Scaling. |
||
|
|
ef8b65e9f2 |
fix(firehose): paginate ListDeliveryStreams responses (#6182)
* fix(firehose): paginate ListDeliveryStreams responses * fix(firehose): return validation errors for invalid list input |
||
|
|
2d1fbf33eb |
fix(stepfunctions): paginate ListActivities results (#6181)
* fix(stepfunctions): paginate ListActivities results * fix(stepfunctions): validate ListActivities token length |
||
|
|
2ecc01b3e5 |
fix(lambda): resolve background layers in their function account (#6162)
Signed-off-by: Andre Kurait <akurait@amazon.com> |
||
|
|
52c54834b0 |
fix(kinesis): honor stream listing limits (#6145)
* fix(kinesis): honor stream listing limits * fix(kinesis): support stream listing continuation tokens Return a region-scoped NextToken for truncated ListStreams pages and resume from it with five-minute expiry. Preserve strict name validation and current-account storage scope. Cover 150-stream traversal, deleted cursors, malformed and expired tokens, and the AWS JSON route. * fix(kinesis): share configured pagination token expiry Use one token codec and the existing configured TTL for ListStreams and ListShards. Preserve both previous token formats and verify emitted-token expiry with zero-TTL handlers instead of editing token timestamps. |
||
|
|
a6433d521a |
fix(cloudformation): refuse a template body that does not parse (#6179)
* fix(cloudformation): refuse a template body that does not parse
ValidateTemplate answered success for a body that reads as neither JSON nor
YAML, since the null value check skipped a template it could not parse.
CloudFormation refuses such a body at the request, and so does Floci now, in
ValidateTemplate, CreateStack, UpdateStack, CreateChangeSet and
GetTemplateSummary, all measured with the same texts.
CloudFormation reads a body as YAML, of which JSON is a subset, so the new
CloudFormationTemplateParser tries strict JSON first (trailing tokens refused)
and falls back to the CF-aware YAML parser, which also reads JSON with a
trailing comma or unquoted keys, as AWS does. When both fail, a body that
starts with { and ends with } is "JSON not well-formed" at Jackson's position,
anything else "YAML not well-formed" at SnakeYAML's, both 1-based and taken
from the body as sent, so leading blank lines keep their line numbers. A body
that reads as a scalar or a list is "unsupported structure.".
Stack sets keep their null check skipping a body that does not parse, since
CreateStackSet was not measured with one. A template that reads but has no
Resources member is left as it was: that is a check of a template, not of
its format.
* fix(cloudformation): refuse a body that is no template in stack sets too
CreateStackSet and UpdateStackSet stored a body that does not parse, whose
instances then could not deploy: CreateStackInstances and UpdateStackSet
stopped halfway with the change set's 400. Measured on CloudFormation, both
refuse such a body before keeping it, with the same texts followed by the
service exception's details, as they refuse a null value, and an update
leaves the previous body in place. They now go through the same check as the
other operations, so a stored body always parses.
The JSON message also needs the body to start with {, not only to end with }:
[{"a": 1} is YAML not well-formed at line 1, column 10 on CloudFormation.
|
||
|
|
09343917c1 |
fix(cloudformation): read ECS awsvpc subnets and security groups as lists (#6180)
* fix(cloudformation): read ECS awsvpc subnets and security groups as lists AWS::ECS::Service resolves Subnets and SecurityGroups with the engine's list resolver, so a Ref to a List<AWS::EC2::Subnet::Id> parameter gives every subnet. * fix(cloudformation): read ECS awsvpc lists from the branch Fn::If chooses The provisioner reads Subnets and SecurityGroups from the node with each Fn::If replaced by its chosen branch, so a conditional AwsvpcConfiguration keeps its subnets. |
||
|
|
110f58ae34 |
fix(apigateway): tag REST API VPC links (#6165)
* fix(apigateway): tag REST API VPC links * fix(apigateway): synchronize VPC link tag updates |
||
|
|
cc08eab2f7 |
fix(codebuild): paginate ListProjects responses (#6163)
* fix(codebuild): paginate ListProjects responses * fix(codebuild): resume project pages after deletions * refactor(codebuild): move project pagination into service |
||
|
|
4519aea69f |
fix(iam): anchor Marker on the last item returned instead of a list index (#6096)
* fix(iam): anchor Marker on the last item returned instead of a list index * fix(iam): refuse an anchored Marker the handler did not issue * test(iam): pin ListPolicies resuming after a deleted customer-managed policy * refactor: share signed pagination markers between IAM and Lambda layers |
||
|
|
6e5b3c6c1d |
feat(dsql): map IAM roles to database roles with AWS IAM GRANT (#6143)
* feat(dsql): map IAM roles to database roles with AWS IAM GRANT A role other than admin now signs in to a cluster for the IAM role that AWS IAM GRANT mapped to it, as on DSQL: the token's principal (a Lambda function's execution role, an ECS task's role, an AssumeRole session) is looked up in sys.iam_pg_role_mappings, and an unmapped role is refused with DSQL's 28000. AWS IAM GRANT and REVOKE become calls to procedures in the cluster's sys schema, with DSQL's command tags and its refusals for a superuser and for a role the caller holds no ADMIN option on. sys.iam_session_user() and sys.current_session_id() answer the session's identity. Since the identity travels in dsql.* settings, the dsql prefix is reserved as DSQL reserves it, measured on AWS: SET, RESET, set_config, ALTER ROLE ... SET and a function's SET clause of a dsql. parameter answer 42602 with DSQL's detail. Errors lose their source location and the context lines of the sys functions, as DSQL's never show them. * fix(dsql): refuse dropping a mapped role and keep the session identity out of the session's reach DROP ROLE, USER and GROUP of a role an IAM identity is mapped to now answer DSQL's 2BP01, with one detail line per mapping in grant order, as measured on DSQL. The statement becomes a call to sys.drop_roles, which refuses a mapped role and otherwise drops the roles as the caller. A role dropped where Floci cannot see it, inside a function body, stops being listed in sys.iam_pg_role_mappings, and its mappings go with the next grant or revoke. The session identity no longer travels in dsql.* startup settings, which a set_config inside a DO block or a function body could overwrite. The endpoint writes it as the superuser into sys.session_identity, keyed by the backend's pid, before it forwards the first ReadyForQuery, and no role of the cluster can write that table. Catching every set_config of a dsql. parameter was rejected: only a PostgreSQL extension written in C can reserve a prefix, so the gap inside DO blocks and function bodies is documented as it is. Command tags are settled per batch: each Query, Sync and FunctionCall gets its own, and a Parse's tag, a Bind's statement, a Close and an Execute's result take effect when the database answers them, in its order. A pipelined batch no longer loses its tags to an earlier ReadyForQuery, and a Parse the database refuses leaves the statement it named as it was. Closed statements and portals are forgotten, and portals with their transaction. Also, as measured on DSQL: AWS IAM GRANT takes an IAM user's ARN, a repeated grant answers its notice whoever the grantor was, and a failed read of the mappings refuses the connection as 08006 with its cause logged, instead of as a role refused. An error's context drops everything a sys function ran, the statements it executed included. |
||
|
|
fd37e109f8 |
feat(firehose): deliver staged Redshift batches with single-attempt COPY (#6006)
* feat(firehose): deliver staged Redshift batches with single-attempt COPY A flush stages the batch in the intermediate S3 location, then runs COPY against the cluster proxy over JDBC simple-query mode without an IAM role. The load runs on its own thread so that slow COPY queries do not hold the shared flush executor or PutRecord callers, and failures are logged with the staged batch kept in S3. * fix(firehose): address review comments on Redshift single-attempt COPY delivery - Drain buffers before shutting down the Redshift delivery executor on Firehose shutdown and log dropped queued tasks. - Catch RejectedExecutionException in deliverRedshiftBatch to prevent staged records from returning to the buffer. - Extract DatabaseSecretCredentials helper in core.common to deduplicate Secrets Manager credentials parsing across RDS Data, Redshift Data, and Firehose. - Extract RedshiftConnections test helper for waitForConnection and use DockerAvailability.isAvailable() in FirehoseRedshiftDeliveryIntegrationTest. - Update docs and Javadocs to remove outdated references to retries and shared flush threads. * fix(firehose): wait for queued Redshift COPY delivery before shutdown and log secret parse errors * refactor(firehose): deduplicate dropAndLogQueuedTasks helper on shutdown |
||
|
|
ff813c6f34 |
fix(ec2): create the key type and format CreateKeyPair asks for (#6112)
* fix(ec2): create the key type and format CreateKeyPair asks for CreateKeyPair ignored KeyType and KeyFormat, so asking for an ED25519 key or a PuTTY key file returned a 2048-bit RSA key as PEM, and any value of either was accepted. Now, as AWS answers: - KeyType=ed25519 creates an ED25519 key, returned in OpenSSH's own BEGIN OPENSSH PRIVATE KEY format and fingerprinted by the padded base64 SHA-256 of its public key blob. - KeyFormat=ppk returns the key as an unencrypted PuTTY version 2 key file whose comment is the key pair's name. An RSA key keeps the SHA-1 fingerprint of its DER private key, taken over the key with its larger prime first, the order PuTTY stores. - Any other KeyType or KeyFormat is InvalidParameterValue with AWS's validation message, checked before the name is found taken, and nothing is created. RunInstances injects the ED25519 public key of such a key pair, and DescribeKeyPairs reports it. Follow-up to the review of #6093. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): keep the CreateKeyPair test helpers in one place The launch test and the key unit tests use the Query helpers and the ED25519 readers of Ec2CreateKeyPairIntegrationTest instead of their own, PuttyKeyFile reads fields and RSA public keys with SshPublicKeys, the digests come from Digests, and the RSA prime-order test takes its keys from Ec2KeyMaterial.generateRsa instead of building them itself. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): answer a CreateKeyPair DryRun before its other checks AWS answers CreateKeyPair with DryRun=true by DryRunOperation (412) before it looks at the name or the key type, so a DryRun with an unknown KeyType is DryRunOperation rather than InvalidParameterValue. Floci ignored DryRun and created the key pair; it now answers it first and creates nothing. The CreateKeyPair tests share their requests and key readers through Ec2CreateKeyPairFixtures rather than an integration test class, the launch test shares the container-backed application of Ec2CapturedImageReclaimIntegrationTest, a described public key is compared without the line break AWS ends it with, a created ED25519 key imports with the same fingerprint, the PuTTY comment rule is checked for CR, tab and DEL as well as LF, and the case of a key with its smaller prime first is skipped rather than failed under a generator that never makes one. The orders AWS documents nowhere are described as Floci's. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): clean up after the CreateKeyPair tests The launch test terminates its instance and deletes its key pair, since it now shares an application with another class, and the import test deletes what it made even when a step before its assertion fails. A test comment and the DryRun comment no longer claim an order AWS does not document. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): say what the launch test's cleanup leaves behind With the container manager mocked, TerminateInstances releases the instance's address and volume but leaves its record pending, so the comment says so instead of claiming the instance goes. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): record the key type CreateKeyPair created With #6093 merged, CreateKeyPair stored every key pair's type as rsa, so an ED25519 key pair was described as rsa and the key-type filter found it under rsa. It now stores the type it created. The guard test now requires the reported type and checks the key-type filter. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): share Ec2KeyPairFixtures and keep the type check to what AWS does The CreateKeyPair tests now use the key pair fixture #6093 added, which gains the type-and-format CreateKeyPair and the ED25519 key readers, and their own fixture class goes. The described-type check no longer looks the key pair up with the key-type filter, which AWS answers with InvalidParameterValue. The createKeyPair Javadoc says the name is checked as present and valid before the values. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): read a stored key pair's type from its public key A key pair saved before its type was recorded was described as rsa whenever it held key material, which would misreport a created ED25519 key pair. Its type is now read from its stored public key, created or imported; a created key pair saved before Floci kept its public key is still rsa, the only type CreateKeyPair made then. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * refactor(ec2): generate ED25519 key pairs in Ec2KeyMaterial Ec2KeyMaterial already reads imported ED25519 keys, so the created ones move there too and share its base64 and fingerprint rule instead of a class of their own. Ec2PuttyKeys uses its colon-hex fingerprint, and the PuTTY test key moves into Ec2KeyPairFixtures with the other test keys. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): check the described key type through the SDK The SDK test now checks DescribeKeyPairs returns the type each key pair was created with, which the hardcoded rsa would have failed. The key pair fixture exports the region it signs for, and the legacy keyType paragraph in the EC2 docs is re-wrapped. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |
||
|
|
ac7371fb33 | fix(emr): preserve millisecond timestamp precision (#6149) | ||
|
|
f4a9b15ced |
refactor(iam): share what a public-access condition must say across S3, Lambda and DSQL (#6134)
* refactor(iam): share what a public-access condition must say across S3, Lambda and DSQL S3's Block Public Access, Lambda's function URL and resource policies, and Aurora DSQL's cluster policies each decide whether a condition keeps an Allow to everyone from being public, and each carried its own copy of the same reads: a value that names one thing (no wildcard, no policy variable), an aws:SourceIp range of /8 or narrower for IPv4 and /32 for IPv6, an ARN whose account has no wildcard, and the trusted condition keys Lambda and DSQL both accept. Those now live in services.iam.PublicAccessConditions. Each service keeps what it was measured to do differently: S3 its own key list (aws:SourceOwner and the s3: access point keys) and operators, Lambda the extra lambda:SourceFunctionArn and exact-case keys, DSQL aws:SourceIp, case-insensitive keys and its operator rules. No answer changes; every existing test of the three services passes unchanged. Asked for on #6048, as its own PR. * refactor(iam): keep the shared-keys-plus-one helper on PublicAccessConditions DsqlClusterPolicies and LambdaWebService each added a private with(keys, key) to extend the shared trusted keys by the one key each accepts on its own; the review asked for one copy, so it lives on PublicAccessConditions. |
||
|
|
9a7c62b8f1 |
fix(cloudfront): carry origin connection settings through CloudFormation (#5992)
* fix(cloudfront): honor origin connection timeouts and attempts, answer 504 CloudFront ignored a custom origin's ConnectionTimeout, OriginReadTimeout and ConnectionAttempts and answered 502 for any origin failure. Apply the origin's connect and read timeouts to the origin request, retry a timed-out GET/HEAD up to ConnectionAttempts, and answer 504 with the AWS message when the last attempt times out. A refused connection or an unknown host still answers 502. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * fix(cloudfront): retry a connect timeout for every origin method Review follow-ups on the origin timeout work: - Connection attempts count for every method, not only GET and HEAD: a connect timeout or a refused connection is retried up to the configured ConnectionAttempts whatever the method is. Apache HttpClient 5's ConnectTimeoutException extends SocketTimeoutException, so it is caught first to keep the split: a response timeout is still retried only for an idempotent method and still answers 504, while a refused connection propagates unchanged as a bad gateway. - The origin read and connection timeout bounds moved into CloudFrontOriginTimeouts, shared by CloudFrontController, CloudFrontServingController and CloudFrontOriginHttpClient instead of being repeated in each. - The slow-origin tests hold the origin open on a CountDownLatch with millisecond client timeouts rather than sleeping out a fixed delay, so an attempt ends by the client's own timeout and the suite finishes in seconds. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * fix(cloudfront): carry origin connection settings through CloudFormation Follow-up to #5802: the serving layer now applies Origin.ConnectionAttempts, Origin.ConnectionTimeout and CustomOriginConfig.OriginReadTimeout, but cfnOrigins never copied them, so a template that set them was dropped and every distribution a stack provisioned ran on the AWS defaults. - cfnOrigins copies ConnectionAttempts and ConnectionTimeout from the origin and OriginReadTimeout from CustomOriginConfig. A non-integer origin setting in a template is now a ValidationError instead of the server error an uncaught NumberFormatException produced. - CreateDistribution and UpdateDistribution range-check ConnectionAttempts (1-3) and ConnectionTimeout (1-10 seconds) the way OriginReadTimeout and OriginKeepaliveTimeout already are. AWS publishes no dedicated error code for either, so both fail as InvalidArgument, and a non-numeric value is a 400 instead of being silently ignored. - The serving clamp reads MIN_CONNECTION_ATTEMPTS from CloudFrontOriginTimeouts instead of a literal. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * fix(cloudfront): enforce origin connection setting ranges in the service Move the ConnectionAttempts, ConnectionTimeout, OriginReadTimeout and OriginKeepaliveTimeout range checks out of the XML parser into CloudFrontService.createDistribution/updateDistribution, next to the custom-header and OAC checks, so the CloudFormation path shares one copy. A template with an out-of-range value now fails the stack with the same InvalidArgument/InvalidOriginReadTimeout/ InvalidOriginKeepaliveTimeout error the API path returns, instead of falling back to the model defaults. The parser keeps rejecting non-numeric values; the cross-field ResponseCompletionTimeout check stays where it was. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> --------- Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> |
||
|
|
804b1d9597 |
fix(logs): paginate log group descriptions (#6142)
* fix(logs): paginate log group descriptions * fix(logs): keep group paging and validation in service Preserve legacy ordered callers and share the existing bad-token error. Render out-of-range limits with SmithyValidationErrors. For 1000 reverse-ordered groups, a 50-group page now reads names 2199 times instead of 4197 in each of three samples. Keep a deterministic budget regression for the redundant sort. |
||
|
|
4fa11104b4 |
fix(docker): share one deadline across container teardown (#6077)
Signed-off-by: Andre Kurait <akurait@amazon.com> |
||
|
|
ab0737798d |
fix(elbv2): answer SetSubnets with one ALB subnet with ValidationError (#6116)
* test(elbv2): expect ValidationError for SetSubnets with one ALB subnet SetSubnets on an Application Load Balancer with one subnet answers InvalidConfigurationRequest with a message of Floci's own, once the subnet has been looked up. The SetSubnets API reference states the rule CreateLoadBalancer states, subnets from at least two Availability Zones, and since #6098 CreateLoadBalancer answers one subnet with ValidationError "At least two subnets in two different Availability Zones must be specified", counted before any subnet is looked up. - ElbV2ServiceTest, ElbV2IntegrationTest (Query protocol) and the compatibility suite's ElbV2Test expect that error for SetSubnets with one subnet, in Subnets or in SubnetMappings, and for one subnet that does not exist, with the balancer left on its subnets. - CloudFormationElbV2SubnetUpdateIntegrationTest: an update that keeps the balancer and names one subnet rolls back with that error. - A Network or Gateway Load Balancer is still set onto one subnet, and a move onto no subnets, which a CloudFormation rollback makes for a balancer an earlier version saved without subnets, is still taken. - setSubnetsWithMissingSubnetReturnsSubnetNotFound sends an existing subnet beside the missing one, so it still reaches the lookup. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(elbv2): answer SetSubnets with one ALB subnet with ValidationError SetSubnets on an Application Load Balancer with one subnet now answers ValidationError (400) "At least two subnets in two different Availability Zones must be specified", the answer CreateLoadBalancer gives since #6098, instead of InvalidConfigurationRequest with a message of Floci's own. setSubnets runs requireSubnets once it has looked the balancer up for its type and before any subnet is looked up, so one subnet that does not exist gets the same answer, as on create. One SubnetMappings entry goes through the same check. The answer follows the SetSubnets API reference, which states the two-zone rule for an Application Load Balancer, and the answer AWS gives CreateLoadBalancer; no public report shows what AWS answers SetSubnets with one subnet. AWS does give a Network Load Balancer's SetSubnets with no subnets CreateLoadBalancer's message. A CloudFormation update that keeps an Application Load Balancer and names one subnet moves it through setSubnets, so it now fails with this error and rolls back. A move onto no subnets is not counted, because a CloudFormation rollback moves a balancer an earlier version saved without subnets back onto none. A Network or Gateway Load Balancer can still be set onto one subnet. resolveSubnetVpcId drops its own one-subnet refusal, which neither caller reaches any more; its zone check still refuses an Application Load Balancer whose subnets are all in one Availability Zone. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(elbv2): say where SetSubnets' one-subnet answer comes from Review follow-ups to the SetSubnets one-subnet fix: - The requireSubnets Javadoc scopes what AWS is known to answer to CreateLoadBalancer, and says SetSubnets gets the create message and order because no public report shows what AWS answers there. - The setSubnets comment says an empty list moves the balancer onto no subnets, rather than that the list is left alone. - docs/services/elb.md says the same about the SetSubnets answer, and instead of saying a Gateway Load Balancer can be set onto one subnet, that Floci does not enforce AWS's rule that SetSubnets keeps every subnet a Gateway Load Balancer already has. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(elbv2): keep the SetSubnets tests to answers ELBv2 gives Review follow-ups to the SetSubnets one-subnet fix: - ElbV2CfnProvisionerTest: the update with a blank SubnetId keeps a Network Load Balancer, for which SubnetNotFound is still the answer ELBv2 gives; an Application Load Balancer now gets the subnet count error first. The move-and-move-back test moves the kept balancer onto two subnets, as ELBv2 refuses an Application Load Balancer on one. - ElbV2ServiceTest: the move onto no subnets follows the rollback it stands for, a balancer saved without subnets moved onto subnets and back onto none. SetSubnets onto one subnet for a balancer that does not exist reports LoadBalancerNotFound before any subnet is looked up. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(elbv2): word the SetSubnets count notes as the rules read Second review round on the SetSubnets one-subnet fix: - docs/services/elb.md no longer says Network and Gateway Load Balancers are not counted: they are, and a list that names a subnet cannot fail the count for them, while a SetSubnets with neither form is refused for every type once #6100 lands. It now says a Network Load Balancer can be set onto one subnet, and that AWS requires a Gateway Load Balancer's SetSubnets to list every subnet it is already on, which Floci does not enforce. - The setSubnets comment says "an earlier Floci version", as the tests do. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(elbv2): give the blank SubnetId update a typed balancer Second review round on the SetSubnets one-subnet fix: the update with a blank SubnetId in ElbV2CfnProvisionerTest names a Network Load Balancer in its template, and the balancer its describe stub returns is now a network one too, so the template, the stub and the Javadoc agree. The answer the stub gives, SubnetNotFound, is unchanged. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(elbv2): scope the Gateway Load Balancer SetSubnets rule to Subnets Third review round on the SetSubnets one-subnet fix: the SetSubnets API reference states that a Gateway Load Balancer must include every subnet it is already on under Subnets only, not under SubnetMappings, so docs/services/elb.md now says the reference requires it of a Gateway Load Balancer's Subnets, rather than of its SetSubnets as a whole. Floci still does not enforce it. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * chore(elbv2): tidy what #6100 and the SetSubnets count both added With #6100 merged, this branch and it each documented and tested the same SetSubnets paths: - ElbV2ServiceTest keeps aRollbackOntoNoSubnetsIsNotCounted, which models the CloudFormation rollback that needs setSubnets to take an empty list, and drops #6100's aMoveBackOntoNoSubnetsIsStillTaken, which tested the same call on a balancer that still had subnets. The two missing-balancer tests now say which path each pins: the SetSubnets action with neither form, or setSubnets with one subnet. - The requireSubnets Javadoc names setSubnetsFromRequest beside setSubnets, and the setSubnets comment no longer repeats the empty-list reason its Javadoc gives. - docs/services/elb.md has one SetSubnets bullet instead of two. No behaviour changes. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(elbv2): say what requireSubnets checks for SetSubnets Review of the merge with #6100: the requireSubnets Javadoc gave the two-zone rule as the reason setSubnetsFromRequest runs it, but that call refuses a SetSubnets that names no subnets, for every type, and requireSubnets only counts the list. It now says SetSubnets takes the same subnets as CreateLoadBalancer, which of the two methods runs the count on which list, and that the two-zone check comes after the subnets are looked up. Javadoc only. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(elbv2): say what the folded SetSubnets bullet counts like Review of the tidy: once the two SetSubnets bullets in docs/services/elb.md became one, "counted the same way" followed the sentence about a SetSubnets with neither form, so it no longer read as CreateLoadBalancer's count. It now says a SetSubnets that names subnets is counted as CreateLoadBalancer counts them. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |
||
|
|
db76a5e5fd |
fix(rds): refresh backend endpoints after container restarts (#6090)
* fix(rds): resolve backend endpoint for each connection * fix(rds): reuse effective network for endpoint refresh * test(rds): preserve postgres readiness failures * fix(rds): report endpoint resolution outages * fix(rds): require runtime identity for proxy backends * refactor(rds): share instance backend identity lookup |
||
|
|
0750128966 |
fix(stepfunctions): authorize nested task credentials (#6084)
Signed-off-by: Andre Kurait <akurait@amazon.com> |
||
|
|
83647aa05d |
perf(lambda): stream S3 code to disk instead of holding it in memory (#6126)
* perf(lambda): stream S3 code to disk instead of holding it in memory CreateFunction, UpdateFunctionCode, the reactive S3 sync and PublishLayerVersion read a package from S3 through openObject. When S3 keeps bodies on disk, the package is staged in the code store with its SHA-256 worked out on the way, unpacked from that file, and put into the tasks bucket from it. When S3 keeps bodies in memory, the bytes it already holds are used as before, so the tasks bucket copy still shares them. * perf(lambda): reject an oversized S3 package before staging it A package whose declared size is over the 250 MiB compressed limit is not copied to disk. Extraction rejects it with the message a staged copy gets. * test(lambda): share the S3-backed service setup and the zip helper |
||
|
|
fbf3bfff84 |
fix(ec2): refuse key pairs AWS refuses and describe their type, create time and filters (#6093)
* fix(ec2): refuse key pairs AWS refuses and describe their type, create time and filters ImportKeyPair stored whatever material it was given. It now reads the key as AWS documents: RSA or ED25519 as an OpenSSH line, RSA also as RFC 4716 or base64 DER, bare or in PEM armour, and RSA from 1024 to 16384 bits. DSA, ECDSA, security-key and certificate keys, blobs that are incomplete, carry trailing bytes or name another type, and material with more than one key line are refused with InvalidKey.Format. The key is stored as one OpenSSH line, which is what RunInstances writes to authorized_keys. CreateKeyPair and ImportKeyPair take a KeyName of up to 255 ASCII characters with no leading or trailing space, and answer any other with InvalidParameterValue. DescribeKeyPairs now returns keyType and createTime, and honours Filter.N with key-pair-id, key-name, fingerprint, key-type, tag-key and tag:<key>, refusing any other name. Key pairs persisted before this change load as they are: they have no createTime, and their keyType is read from the stored key. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): describe malformed key pairs from saved records, not imports ImportKeyPair now refuses material that is not exactly one whole key and converts RFC 4716, so the IncludePublicKey cases that imported partial or mislabelled blobs, trailing bytes, two key lines or UTF-16 text could no longer create their key pairs. Such material is now held only by key pairs saved by an earlier version, so those cases describe a stored record through the handler instead, and the RFC 4716 case checks that the converted key is described as its OpenSSH line. The handler test stubs the DescribeKeyPairs overload that takes filters, which the handler now calls. The Key Pairs docs and the javadoc of the public-key description say what is stored now and what an older record may still hold. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): refuse a DER key whose bit string declares pad bits A SubjectPublicKeyInfo whose key BIT STRING declares unused bits made Bouncy Castle throw an IllegalStateException, which the key reader did not catch. ImportKeyPair answered such base64 DER or PEM with a 500 instead of InvalidKey.Format, and a key pair saved earlier with that material failed every DescribeKeyPairs in its region, since the key type of an older record is read from its material. The reader now refuses a key bit string with pad bits, and treats Bouncy Castle's IllegalStateException like its other parse errors. A new test sets every byte of each binary form to values that matter to DER and SSH framing and checks that nothing escapes. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): refuse an IncludePublicKey that is neither true nor false DescribeKeyPairs read IncludePublicKey with Boolean.parseBoolean, so a value such as "invalid" or "yes" was taken as false and the key pairs were described without their public keys instead of the request being refused. It now goes through the handler's strict boolean reader, the one the block device mapping and peering options use: true or false in any case, and InvalidParameterValue for anything else. TRUE was already read as true, and still is. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): send each describe filter once and allow clock skew in the SDK check The DescribeKeyPairs integration helper always sent a key-name filter of the test's prefix, so the cases that test key-name itself sent the name twice and Floci kept only the second. A key-name filter under test is now sent alone. The SDK compatibility check gives createTime a minute either side, since Floci may run in a container with another clock. The Key Pairs docs and the RSA length test now say what AWS lists and what Floci takes beyond it, citing the 8192-bit key AWS was seen to import. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): refuse a DER key with no key in its bit string An rsaEncryption SubjectPublicKeyInfo whose key bit string holds no bytes parses to no structure at all, and the reader passed that null on to a NullPointerException: ImportKeyPair answered such DER or PEM with a 500, and a key pair saved earlier with it failed DescribeKeyPairs for every listing that included it. The reader now reads the PKCS#1 sequence itself and refuses anything that is not two integers. It reads those integers signed, as an ssh-rsa blob's are, so a modulus missing its sign byte is refused rather than imported as a different, positive key. And the key type of an older record no longer depends on the reader never failing: if it does, the type is left out and the failure logged, instead of failing the whole description. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(ec2): keep key pair comments and docs true to the new checks SshPublicKeyException's javadoc said EC2 answers an unreadable imported key with no fingerprint; ImportKeyPair now refuses it with InvalidKey.Format. The Key Pairs docs say that an empty IncludePublicKey reads as false. The RSA length test links the report of an 8192-bit import in full, and the describe test says that sending one key-name filter is a Floci limit, not an AWS rule. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): cover the stored key-type guard on its own The stored-record test passed even with the reader broken, because the guard in keyTypeOf turned the reader's exception into the expected missing type. It now checks that the reader refuses each stored material by itself, and a new test makes the reader fail, through an inline static mock as other tests here do, and checks that the record is still described, with no type, and that a key-type filter passes over it. The keyTypeOf javadoc and the docs now mention that case, the docs say a blank IncludePublicKey reads as false and a missing or blank KeyName is MissingParameter, and a comment no longer says every imported key is fingerprinted with MD5. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): make the stored key-type guard test depend on its failing reader The guard test stored text the real reader already refuses without throwing, so it passed even if the failing reader was never consulted. It now stores a valid ed25519 key, whose type would be ed25519 without the failure, checks that the stubbed reader was called, and describes the record through the handler too, where each item's type is read. A comment on the stored-record test no longer says the reader refuses the records it accepts. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): AND a repeated DescribeKeyPairs filter name DescribeKeyPairs read Filter.N into a map keyed by name, so a second filter of one name replaced the first: key-name=X-prod-* with key-name=X-*-web returned X-dev-web too. AWS joins every filter with AND. The handler now passes the filters in request order, as DescribeAvailabilityZones already does, and a key pair has to match each of them, with the values of one filter still ORed. The other EC2 describe actions share the map reader and keep its behaviour; that is for a separate change. The describe test's helper goes back to ANDing a second key-name filter with its prefix filter. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): show the key-type guard covers only key pairs saved without a type With the key reader made to fail, ImportKeyPair still fails with the error, and a key pair whose type was recorded is described and filtered by key-type without the reader being consulted. Only a record saved before the type was recorded goes through the guard that leaves its type out and logs the failure. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): check repeated key pair filters in the service, and route unfiltered calls through them A service test now passes Filter.N with a repeated name to the ordered DescribeKeyPairs overload and checks that the two filters are ANDed, and that a later unknown name is still refused. The unfiltered overload goes through the ordered one too, leaving the map form as a convenience for filters of distinct names, and the docs sentence on filters is split in two. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): pick repeated key pair filters that each match more alone The service check of a repeated key-name filter used `*-rsa` then `g*`, and `g*` alone gives the same answer, so it passed when only the last filter was kept. Each filter now matches two key pairs alone and one together, so keeping either one instead fails the test. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): share one fixture between the key pair tests The import, describe and public-key integration tests each had their own CreateKeyPair, ImportKeyPair and DeleteKeyPair calls, and the same ED25519 key was pasted into five classes. Ec2KeyPairFixtures now holds those calls and the one key, which the handler, service and persistence tests use too. SshKeyBlobs builds the OpenSSH blobs and lines that SshPublicKeysTest, Ec2KeyMaterialTest and Ec2QueryHandlerTest each built and joined themselves, and the import test reads RSA keys with SshPublicKeys.rsaKeyOf instead of its own copy. Test-only: every class runs the same tests as before. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): build key blobs with the SshPublicKeysTest helpers main has SshPublicKeysTest on main already builds OpenSSH blobs with blob and joins bytes with withTrailing. The EC2 key pair tests now call those two, made public for them, instead of the SshKeyBlobs class the previous commit added, which is removed. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): keep the shared throwaway keys in Ec2KeyPairFixtures The pinned RSA key and its fingerprint, the ED25519 fingerprint, the DSA and ECDSA P-256 keys and the truncated ssh-rsa blob were each written out in two to four of the key pair test classes. They now live beside the ED25519 key in Ec2KeyPairFixtures; keys only Ec2KeyMaterialTest uses stay there. The handler test loses a comment and an import the earlier move left behind. The earlier move also switched Ec2KeyPairPublicKeyIntegrationTest and Ec2QueryHandlerTest from the ED25519 key #6055 added to the shared one; no assertion in them depends on which valid key it is. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |
||
|
|
f2b62fbbec |
feat(dsql): serve each cluster's database on the DSQL endpoint (#6102)
* feat(dsql): serve each cluster's database on the DSQL endpoint Each Aurora DSQL cluster gets a PostgreSQL 16 database in a Docker container, set up as DSQL's (the role admin owning public, repeatable read), and every cluster is served on one TLS endpoint where the server name picks the cluster. A connection is admitted as DSQL admits it, measured on AWS: an IAM token for the endpoint, DbConnectAdmin for admin, 5 seconds of grace past expiry, a long-term key only in its own account, IAM enforcement with the account's SCPs, and DSQL's SQLSTATE, text and hint for every refusal. A role other than admin is refused as an unmapped one, since role mappings come with AWS IAM GRANT in the next part. The startup is read as DSQL reads it: a dotted parameter is refused, and of options only -c name=value counts, the first for a name. The cluster is CREATING until its database answers; a multi-Region peer is ACTIVE after peering only once its database answers. A start that fails after the container exists removes it, a deletion Docker cannot finish leaves the cluster DELETING for the next start, and whether a cluster is wanted and its route change under one lock, so a deletion racing a start leaves no route. The data plane was first one PR; it is split by layer at the maintainer's request: this part (transport and admin), then AWS IAM GRANT and the other roles, then DSQL's dialect and limits. * refactor(postgres): speak PostgreSQL's wire protocol through one shared helper The DSQL endpoint brought a third copy of the startup parsing, message framing and ErrorResponse building that the RDS proxy's PostgresProtocolHandler and Redshift's PostgresWireDecoder each carried. They now go through core.common.PostgresWire: the startup packet and its parameters, reading and writing a message with its checked length, and the fields of an ErrorResponse or NoticeResponse. The length refusals keep the RDS proxy's wording, which its tests assert; Redshift's oversized-message refusal now reads the same way. Also from the review: the DSQL integration test makes its IAM users with EnforcementFixtures.createUser, which removes them after the test; the service test shares one ready-at-once provision stub; and every exception the endpoint and session swallow is named ignored, with the reason it is safe. |
||
|
|
d2ee9f46a0 |
fix(codebuild): honor build list sort order (#6125)
* fix(codebuild): honor build list sort order * test(codebuild): cover invalid build list sort order * refactor(codebuild): share sort order validation |
||
|
|
7c0d592b85 |
fix(emr): honor ListClusters creation time filters (#6123)
* fix(emr): honor ListClusters creation time filters * fix(emr): preserve ListClusters timestamp precision * fix(emr): share millisecond timestamp parsing |
||
|
|
89317831bb |
feat(ssm): publish parameter change events (#5262)
* feat(ssm): publish parameter change events After a successful PutParameter, DeleteParameter, DeleteParameters, LabelParameterVersion or UnlabelParameterVersion, SsmService publishes the AWS-shaped aws.ssm "Parameter Store Change" event to the default EventBridge bus, with the parameter ARN in resources. A label event carries the type and description of the labelled version; an unlabel event lists the labels it removed. Every event is published after the service lock is released. Failed calls publish nothing, and a delivery failure is logged without failing or undoing the write. CloudFormation managed parameters go through SsmService and publish the same events. * test(cloudformation): move CfnStackWaits into testing CfnStackWaits was package-private in the CloudFormation tests, so the SSM event integration test polled DescribeStacks for CREATE_COMPLETE itself. It now lives in testing with a public API, and that test waits through CfnStackWaits.awaitStatus and builds its CloudFormation requests with CfnRequests.cfn instead of a private copy. * refactor(eventbridge): build service event entries in one place The ECS, Step Functions, Redshift Data, CodePipeline, SES and SSM publishers each built the same Source, DetailType, Detail and Resources entry. EventBridgeService.serviceEventEntry builds it, with Resources always present and empty for a null or blank resource ARN. Each publisher still calls putEvents with its own region and account. The explicit default EventBusName and the Region that repeated putEvents' region argument are gone; putEvents fills both the same way. |
||
|
|
1b15299228 |
feat(ecs): publish Container Insights task counts (#6054)
* feat(ecs): publish Container Insights task counts A service on a cluster whose containerInsights setting is enabled or enhanced publishes RunningTaskCount, PendingTaskCount and DesiredTaskCount to ECS/ContainerInsights once a minute, with ClusterName and ServiceName dimensions, while it has a running task. The AWS::ECS::Cluster provisioner applies ClusterSettings and restores the prior settings when a stack update rolls back. * fix(ecs): resolve ClusterSettings as a whole before reading it A ClusterSettings list wrapped in Fn::If was iterated unresolved and stored a setting with no name or value. Resolve the property node first, as the provisioner does for its other list properties. * fix(ecs): resolve ClusterSettings before creating the cluster A ClusterSettings value that failed to resolve left a cluster the stack did not track. Resolve first, and skip an entry that resolved to AWS::NoValue. * fix(ecs): date Container Insights counts by the minute they were observed * fix(ecs): count Container Insights tasks when they are published The task counts came from the service's cached runningCount, which the reconcile sets before it scales the service in or out, and from a pendingCount nothing ever sets. They are now counted from the service's own tasks after the tick has started and stopped them, so a scale-in is reported in the tick that stops the task and a PENDING task is counted. A committed in-place cluster update now drops its settings snapshot in completeUpdate: the engine only calls clearUpdate after a replacement, so the snapshot outlived the update it belonged to. * docs(ecs): note that removing ClusterSettings keeps the cluster's settings * test(ecs): cover restoring null cluster settings and read the latest metric bucket A stack update that adds ClusterSettings to a cluster created without any rolls back to null settings, through the JSON null in the snapshot; the rollback test now covers that case alongside a prior disabled setting. The scale-in test reads the latest one-minute bucket, so a minute rollover between its two reconciles no longer splits the samples into two buckets and fails the test. * fix(ecs): log a failed Container Insights write as a warning The publish ran inside the reconcile's catch, which logs only the message at debug level, so a failed metric write left the minute's sample missing without a trace. It now has its own try and logs the exception at warn. * perf(ecs): write a Container Insights sample only when a count changes The reconciler ticks every five seconds and wrote all three counts each time, and a persistent metric store rewrites its file on every put. The last sample written per account and service is kept, and the minute's sample is written again only when a count changes. A reset clears it, since it wipes the samples too. * fix(cloudformation): restore ECS cluster settings when their own update fails A failed provision puts back the resource the stack held before the attempt, which never carried the settings snapshot, so the rollback walker skipped it and the new settings stayed. The provisioner now restores the snapshot itself, as the other in-place provisioners do, and records a restore that fails as a rollback failure. The physical id is set before the settings call, so the restore and a create rollback both find the cluster. * fix(ecs): repeat a Container Insights write that failed partway The last sample written was kept until the next one replaced it, so when one count landed and the next write failed, and the counts then went back to the ones last written, the next tick skipped the minute and left the partial value in place. The record is now dropped before writing and set again only once all three counts are written. * fix(cloudformation): keep an ECS settings snapshot whose restore failed When a cluster's settings update and its own restore both failed, the snapshot stayed on the attempted resource, and the engine put back the prior resource without it. The first rollback reported the failure, and ContinueUpdateRollback then found no snapshot and reported the rollback complete with the new settings still live. The snapshot is now carried onto the restored resource, so the continuation retries the restore. * fix(cloudformation): create an ECS cluster with its settings A new cluster was created and then given its ClusterSettings in a second call. When that call failed, on a stack create or a rename, nothing tracked the cluster: the create rollback skips a CREATE_FAILED resource it does not own, and a rename never reached the replacement record. The settings now go into CreateCluster itself, so a new cluster is never left without them. A cluster the idempotent create returned, which the stack did not create, still has them applied separately and is not deleted when that fails. * fix(cloudformation): set an ECS cluster's id only once its settings apply The physical id was set before the settings call. When an update added a cluster under the name of one created outside the stack, the idempotent create returned that cluster, and if its settings then failed, the update rollback deleted the added resource and with it a cluster the stack never created. The id is set after the settings again; an update of the resource's own cluster already carries its prior id for the restore. * fix(cloudformation): restore the settings of an ECS cluster the stack found Only a resource's own cluster had its prior settings put back when the settings call failed. A cluster the idempotent create returned for a resource the stack creates or adds kept whatever a failed call left on it, while the rollback, which drops the resource, reported a clean finish. A cluster whose settings still differ after CreateCluster existed before, so its prior settings are now captured and restored either way; the snapshot attribute for the rollback walker stays on the resource's own cluster only. * test(ecs): date Container Insights samples by a clock the test pins publishContainerInsights read the minute from the wall clock, so the test of an unchanged sample skipped itself when the minute rolled over between its ticks. The minute now comes from a Clock given to a package-private constructor, which the injected one calls with Clock.systemUTC(); the test pins it and asserts the sample is dated by it. * test(ecs): drive the reconciler instead of waiting on its ticks The CloudFormation integration test waited up to 30 seconds for the background reconciler to launch the task and publish its count. It now calls reconcileServices twice, as the other ECS integration tests do. |
||
|
|
538a81d871 |
fix(cognito): pass ClientMetadata to the CustomMessage trigger for ResendCode and ForgotPassword (#6108)
* fix(cognito): pass ClientMetadata to the CustomMessage trigger for ResendCode and ForgotPassword
The developer guide lists ResendConfirmationCode and ForgotPassword among the
calls whose ClientMetadata reaches the CustomMessage trigger, and Floci passed
an empty map there. Measured on Cognito, the event's clientMetadata is also
null rather than {} when the request carries none, and for a sign-in code
(CustomMessage_Authentication) even when InitiateAuth sends one. The
CustomMessage event now follows both through one helper, shared with the
CustomEmailSender event, which applied the same rule inline, so the two cannot
drift.
* test(cognito): share one CustomMessage setup across the trigger tests
The CustomMessage tests each built the same fixture by hand: the verification
code mock, a pool whose CustomMessage trigger is the test function, its
client, and the captured invocation. They now share customMessageService,
customMessagePool, customMessageClient and customMessageAnswers, the four new
tests of this change included, as the review asked.
|
||
|
|
1108bc75dc |
feat(rds): DB proxy endpoints (#6062)
* feat(rds): DB proxy endpoints CreateDBProxyEndpoint, DescribeDBProxyEndpoints, ModifyDBProxyEndpoint and DeleteDBProxyEndpoint store endpoints per account and Region, checked against the service model. Each endpoint reports its proxy's own host, so a client connects through it as through the proxy. DescribeDBProxyEndpoints lists each proxy's default endpoint first; it cannot be modified or deleted. Deleting a proxy deletes its endpoints, and endpoint ARNs take tags. Closes #5805 * fix(rds): report each proxy endpoint at the proxy's current host A custom endpoint kept the proxy's host from when it was created, so after a restore gave the proxy a new host, every custom endpoint still reported the old one while default reported the new one. The host is no longer stored with the endpoint: create, describe, modify and delete take it from the proxy when they answer. A missing DBProxyName, DBProxyEndpointName or VpcSubnetIds is now MissingParameter, checked before the proxy is looked up. * test(rds): import Executable and assertTrue instead of naming them inline |
||
|
|
1dce18e766 |
feat(dynamodb): add point-in-time recovery restores (#6110)
* feat(dynamodb): add point-in-time recovery restores * feat(dynamodb): record a point-in-time change before the write * feat(dynamodb): authorize RestoreTableToPointInTime on its source table * perf(dynamodb): store each point-in-time change on its own * feat(dynamodb): delete system backups that have expired * chore(dynamodb): take point-in-time times from a clock in tests * chore(dynamodb): share the duplicated test helpers and table name pattern |
||
|
|
bf82846971 |
feat(lambdaweb): keep the code a revision was created from (#6113)
* feat(lambdaweb): keep the code a revision was created from A revision reads its code object at creation and keeps its own copy under the Lambda code path. New environments start from that copy, so a later write or delete in the bucket no longer changes what the revision runs. AWS pins the version that was current at creation when the request names none, and serves it after that version is deleted. A versionId that cannot be read gets the AWS wording. A 404 from S3 says the object does not exist with the versionId, and any other error says the object is inaccessible. * fix(lambdaweb): start environments only from the kept code Lambda Web is in no release yet, so every stored revision has its copy and the S3 fallback could only run changed code. A missing copy is now an error. At start the copies that no stored revision names are removed, such as those a restart in memory mode or a failed delete left behind. A failed write removes its partial file. Path segments escape every byte but letters, digits, - and _, so two region names never share a directory. * fix(lambdaweb): stream the code copy instead of holding it in memory A revision now streams its code object from S3 into its copy, and an environment opens that copy in place through a new ZipExtractor overload. Neither step loads the object into the heap, and a start no longer writes the archive to disk again before unpacking it. * chore: share one recursive delete across services FileTrees.delete replaces the copies in Lambda Web, ZipExtractor, CodeStore, Lambda layers, CodeBuild, S3 and CodeArtifact. Each caller keeps its own log message and level. A failure no longer stops the rest of the tree, and the walk stream is always closed. |
||
|
|
03836d5244 | fix(codebuild): honor project listing sort options (#6120) | ||
|
|
5f75b7dff0 |
fix(sts): issue GetSessionToken without IAM permissions (#6051)
AWS's GetSessionToken reference says no permissions are required for the call and that policies cannot control authentication operations. IAM enforcement evaluated it like any other action, so an explicit deny, or simply no allow, answered AccessDenied where AWS mints credentials. Exempt sts:GetSessionToken alongside sts:GetCallerIdentity. The request still needs valid, active, unexpired credentials, and the handler still refuses temporary callers. Other STS actions stay policy-decided. Fixes #6041 |
||
|
|
883cd4f1c2 |
fix(elbv2): refuse SetSubnets with neither Subnets nor SubnetMappings (#6100)
* test(elbv2): cover SetSubnets with neither Subnets nor SubnetMappings SetSubnets takes Subnets or SubnetMappings, and AWS refuses a request with neither. These tests pin that answer, which Floci does not give yet: a ValidationError with the CreateLoadBalancer message for the balancer's type, with the balancer left on its subnets and in its VPC, whether the two lists are left out or sent empty. They fail until the fix that follows. They also pin the paths that must keep working: a balancer that does not exist is reported first, a CloudFormation update that names neither leaves its kept balancer alone, and a rollback can still move a balancer an earlier version saved without subnets back onto none. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(elbv2): refuse SetSubnets with neither Subnets nor SubnetMappings A SetSubnets that named neither Subnets nor SubnetMappings answered success and left the load balancer in no Availability Zone, still in its VPC. The API reference says the request takes one or the other, and AWS answers a Network Load Balancer's with "ValidationError: At least one subnet must be specified", the message CreateLoadBalancer gives it. SetSubnets with neither now answers ValidationError and leaves the balancer on its subnets, with the message CreateLoadBalancer gives the balancer's type: "At least two subnets in two different Availability Zones must be specified" for an Application Load Balancer, "At least one subnet must be specified" for a Network or Gateway Load Balancer. A balancer that does not exist is still LoadBalancerNotFound, since the message depends on its type, and a request that names subnets is checked as before. The check runs in the new ElbV2Service.setRequestedSubnets, which the Query handler calls. ElbV2Service.setSubnets still takes an empty list: CloudFormation moves a kept balancer through it, never onto none on an update, and onto none on a rollback only for a balancer an earlier version saved without subnets, which rolls back as before. Follow-up to #6087. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * refactor(elbv2): keep the SetSubnets action check in the package Review follow-ups, no change in behaviour: - The action's entry point is now the package-private ElbV2Service.setSubnetsFromRequest, which only the Query handler calls; setRequestedSubnets read like a property setter. The CloudFormation provisioner, in another package, cannot reach it and keeps moving balancers through setSubnets. - Its Javadoc says why only an empty list is refused there: a request that names subnets is checked by setSubnets. The setSubnets and test Javadocs speak of a balancer an earlier Floci version saved without subnets. - The provisioner test of an update that names neither says the real reason the update must not call setSubnets: it would move the balancer onto none. - The docs line for SetSubnets gives both messages. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(elbv2): give the SetSubnets neither test the class's last order #6098 adds a test at @Order(79) earlier in ElbV2IntegrationTest, while this one stays the last method in the file at @Order(78). Once both land, whoever appends a test would read 78 and pick 79, so this one takes 80 and the last method keeps the highest order. The two tests are independent, so the order between them does not matter. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(elbv2): give the SetSubnets compat test its own order setSubnetsWithoutSubnets and createLoadBalancerWithoutSubnets in the compatibility suite's ElbV2Test both carried @Order(6), so JUnit's order between them was left to its tie-break. The SetSubnets test now has @Order(8), the first value not taken once #6098's @Order(7) test is in the class, so every order in the class is unique. The test stays where it is in the file: moving it below the create test would edit the lines #6098 added on main. The two tests create and delete their own balancers, so neither depends on running before the other. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |