mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
21cfcea3dd07e5c9fc08a4bbdfd7bf4536b68a84
250
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b144879127 |
feat(xray): serve traces, summaries, the service graph and sampling (#7733)
X-Ray is the one AWS service local stacks ask for and Floci does not have: SQS
and SNS already carry AWSTraceHeader, and nothing on the other end accepts the
segments that header points at. This serves the ingest loop, the summaries that
read it back, the service graph a console draws from it, and the sampling the
X-Ray daemon polls on its own timers.
The API is REST JSON on literal paths (/TraceSegments, /Traces, /TraceSummaries,
/ServiceGraph, /TraceGraph, /GetSamplingRules, ...), which S3's path-style routes
would swallow as a bucket name, so a request signed for the xray credential scope
is rewritten onto an internal prefix and every other request keeps its path. Only
the paths Floci serves are claimed.
What Floci stores is the segment document as sent: BatchGetTraces has to answer
exactly what PutTraceSegments accepted, so re-serialising through a model would
change what the caller reads. The summaries and the graph parse those documents
on read, which keeps the stored bytes the caller's and costs nothing while a local
stack is idle.
A filter expression is parsed, not pattern-matched: service("name"), hasError,
hasFault, hasThrottle, duration, responsetime, http.status, annotation.key,
comparisons, AND, OR, NOT and parentheses. Anything outside that set is refused
with InvalidRequestException naming what it could not read, because accepting a
filter and ignoring half of it hands a caller a superset and looks like a pass. A
lone '!' is refused the same way rather than left as a delimiter no branch
consumes, and responsetime is compared in seconds, the unit AWS uses.
The graph collapses segments into services by name, derives edges from parent ids,
and reports AWS's SummaryStatistics and cumulative DurationHistogram per node and
per edge. A node is a service, not a document shape: the same service seen once
with an http block and once without is one node.
Sampling answers the Default rule AWS serves in every Region, so a daemon has
something to sample at before any rule exists, and five rules per Region on top of
it. It is answered, not adapted: the reservoir is reported as the quota and
renewed every 10 seconds rather than decremented per report, and the service page
says so.
A local emulator runs for days, so the store is bounded to 10000 traces per Region
with AWS's 30 day window, oldest evicted first. A bad document is reported under
UnprocessedTraceSegments with its reason instead of failing the whole call, and
100 documents per call is the AWS limit, enforced.
Co-authored-by: David Guardiola <davidguardiola@gmail.com>
|
||
|
|
fe24f7736a |
feat: support one-off ECS scheduled scaling (#7895)
* feat: support one-off ECS scheduled scaling * chore: cover application auto scaling scheduled actions with SDK * fix: preserve scheduled action ordering and report failures * test: cover scheduled suspension through the AWS SDK * fix: validate scheduled action inputs and preserve explicit UTC * test: tick explicitly when checking scheduled action rescheduling * fix: reuse schedule parser and tighten scheduled scaling tests * test: poll ECS cluster cleanup for late arriving tasks |
||
|
|
0e244e5724 |
feat(ec2): delete launch template versions without reusing numbers (#7910)
Preserve default versions and the highest issued version across deletion, persistence and CloudFormation rollback. Reject invalid DryRun values before deletion, tolerate only already-deleted versions during CloudFormation rollback, and preserve the resolution race fixture without reflective field mutation. Reuse presence checks to retain name-specific disappearance errors and existing service-test factories. Reuse existing EC2 test factories and the shared blocked-or-done wait while preserving all race assertions. Signed-off-by: Andre Kurait <akurait@amazon.com> |
||
|
|
d97574207b |
feat(s3vectors): support vector bucket policy operations (#7825)
* feat(s3vectors): implement vector bucket policy management (create, get, delete) * fix(s3vectors): validate bucket name length and ARN account in policy operations * refactor(s3vectors): share bucket selector validation and use partitionForRegion |
||
|
|
92eff0aca5 |
feat(redshift): support ModifyClusterSnapshot API action (#7755) (#7756)
* feat(redshift): support ModifyClusterSnapshot API action (#7755) * docs(redshift): update operation count after merging CopyClusterSnapshot * fix(redshift): enforce ModifyClusterSnapshot retention, Force, and expiry of manual snapshots (#7755) * fix(redshift): address snapshot retention review feedback |
||
|
|
9f77c736e9 |
feat(securityhub): add member account operations and DisableOrganizationAdminAccount (#7791)
Add CreateMembers, ListMembers, GetMembers, DisassociateMembers, DeleteMembers and DisableOrganizationAdminAccount, the operations Landing Zone Accelerator and Terraform's aws_securityhub_member use to manage Security Hub members. Organization accounts added by the delegated administrator become Enabled members and have Security Hub and its default standards enabled for them; other accounts are Created. Organization members can be disassociated but not deleted. Disabling the delegated administrator marks its organization members Removed. Macie already served POST /members and GET /members, so Security Hub calls on those paths were answered by Macie. Both routes now dispatch on the SigV4 credential scope in SecurityAdminController, as GET /admin already does; unsigned requests still reach Macie. Closes #2197 |
||
|
|
ab312d68e6 |
feat(paymentcryptography): the card values and the authorization cryptograms (#7400)
* feat(paymentcryptography): the single DES decryption The retail MAC closes its tag with a decryption under the right half of the key, so the cipher package needs the Single DES decryption as well as the encryption. It is the same cipher the encryption is, the other way round, and it is BouncyCastle's like every other cipher here. * feat(paymentcryptography): the card values and the authorization cryptograms The card validation value is the three digit value of the X9 algorithm: the account number, the expiry and the service code, enciphered under the card verification key, and decimalized. The dynamic variants compute the value from the transaction rather than from the card's own fields, and they take a key of their own usage that may derive. The authorization cryptogram is the ARQC of the transaction: the ISO 9797-1 algorithm 3 retail MAC over the transaction data, cut to eight bytes, under a session key the request's derivation produces. The EMV common session key, the EMV 2000 one, the Mastercard one and the Visa one are served. The American Express derivation is refused rather than approximated: the AEIPS session key derivation is proprietary and there is nothing to verify it against, and a plausible wrong cryptogram is worse than an error. The operations are written on the data plane as it is now: the hexadecimal is java.util.HexFormat, the digests are the shared Digests, and the ciphers are the BouncyCastle ones the package already uses. The routes of the card operations are in the vendored rest-routes.json already, so they are authorized by the generated rules and need no hand-written ones. * test(paymentcryptography): the card operations over the SDK and the CLI The unit tests call the operations directly, so they do not reach the routes the requests travel, the JSON the body carries, or the rules that decide which action a request is. The suite does, through a client that signs the request the way a client of the data plane signs it. The Java suite drives the card verification value and the authorization cryptogram with the AWS SDK for Java v2, and the CLI suite drives them with the AWS CLI. Both refuse the American Express derivation, the key of another usage, and the value or the cryptogram that does not verify. * fix(paymentcryptography): the card requests are checked against the model The card operations' constraints were not vendored, so their requests were checked by hand and only partly: the account number was read as the digits it carried, the expiry and the service code were not checked at all for the first card verification value, and the key an operation acted on was not checked to be a key. The constraints are in the model, so they are vendored now, the four operations are checked against them before they look at the request, and the checks that repeat them are gone. The model states that the PAN sequence number is two digits and that the application transaction counter is two bytes. The derivation reads the last eight bytes of the packed PAN || PSN and the first two bytes of the counter, so the longer values the hand-rolled checks allowed were read as something other than the counter they stood for. The vectors are the ones the EMV derivation gives for the model's inputs. * docs(paymentcryptography): the card requests are checked against the model The account number is digits, the expiry is four of them, the service code is three and the PAN sequence number is two, the EMV ones as the model states them. A formatted account number and a longer sequence number are refused rather than read as the digits they carry. * docs(paymentcryptography): the data plane's operation count The Service Matrix counts the operations a service documents, and the data plane documents four more now: the card verification value and the authorization cryptogram. * fix(paymentcryptography): the card operations raise the errors the model names Three findings from the review, all in the card operations. A key that may not be used for the operation was refused with InvalidKeyUsageException, which the data plane's model does not name, so a client cannot catch it as its own type. The data plane names three errors, and a refusal that is not one of them is a ValidationException. The ARPC method 2 read an ArpcInputFormat member that no model, and no SDK, carries, so the branch it guarded could never be taken. The member is gone and the response value is always made the way the reference makes it. And a hexadecimal member of an odd length is a request the model allows and the cipher cannot read, so it was answered with an internal failure the caller cannot catch. It is refused with the error the model names, and the refusal names the member. * test(paymentcryptography): the card operations' members are covered Seven members the card operations read were read by no test, so nothing proved they work: the response attributes and the response code, the card status update and the proprietary data, the track data, the unpredictable number and the validation data length. Each is sent now, and the shape the service receives with them is exercised. The response value is made by both ARPC methods, and a request that asks for none is answered without one. * test(paymentcryptography): the padding type is refused The padding type belongs to RSA, and the symmetric cipher does not pad, so a request that names one is refused rather than answered with a cipher that ignored it. Nothing sent one, so the refusal was never exercised. * fix(paymentcryptography): the wrapped key is refused on every operation that carries one The encrypt, decrypt and re-encrypt requests hold a wrapped key for the key exchange, and the unwrapping is part of that exchange rather than part of the cipher. A request that carries one is refused, as the PIN operations already refused it, rather than answered as if the key were a fixed one. The rule now lives in one place, so the two paths cannot disagree on it. * fix(paymentcryptography): the master key is derived over the rightmost sixteen digits The block the ICC master key is derived over is the rightmost sixteen digits of the account number and the PAN sequence number, padded on the left with zeros when they are shorter. That is the rule EMV 4.4 Book 2 Annex A1.4.1 gives for Option A, and the Visa Integrated Circuit Card Specification states it the same way. An account number of twelve digits is therefore read and derived from, where the derivation used to refuse it, and the refusal in the request layer goes with it. A derivation the request cannot be read for is refused with the error the model names, rather than answered with a failure the caller cannot catch. * test(paymentcryptography): the derivations are the ones the specifications give The vectors are the ones the specifications publish: the ICC master key from the EMV Option A derivation, the MasterCard proprietary session key and the application cryptogram it produces over the same data from the M/Chip worked example, and the common session key from the same document. The common session key is compared with the parity bits masked, because the document does not force the parity of the derived key and the derivation does not affect the computation. * fix(paymentcryptography): the dynamic value is the one Visa describes The Visa Contactless Payment Specification gives the dynamic card verification value in full: the leftmost four digits of the account number are replaced by the transaction counter, and the result, the expiry and the service code are enciphered under the card's unique derived key, which the issuer derives from the master key with the account number and the PAN sequence number. The three leftmost decimal digits of the result are the value. The derivation used a session key and covered the account number as it stands, so it was the emulator's own construction and not the value Visa describes. The key it needs is the one the unique derived key derivation already makes, and the request carries the PAN sequence number that derivation takes. The counter is a binary coded decimal counter, so a counter that is not one is refused rather than read. * docs(paymentcryptography): the dynamic code is the emulator's one * fix(paymentcryptography): the card value carries the length asked for The model states the length of a card validation value as three to five, and the service refused every length but three. The value now carries the number of digits the request asks for, and the verification compares as many. The dynamic value's counter is a binary coded decimal counter, so the digits that replace the leftmost ones of the account number are zero padded on the left to the four the field holds. * fix(paymentcryptography): the card values and cryptograms as specified The review of the branch found that the card values and the authorization cryptograms did not follow the rules they are made by. The Option B master key derivation turned the hexadecimal digits of the hash into digits as it scanned them. The specification takes the decimal digits of the hash first and only then the nibbles that are not decimal digits, each reduced modulo ten, so the derivation now follows it. The transaction data reaches the service already padded, because the caller pads it the way the card padded it before the card enciphered it. The service was padding it a second time, which enciphered a block the card never enciphered. The data is enciphered as it was sent now, and a length that is not a whole number of eight-byte blocks is refused, because the ISO 9797-1 MAC runs over whole blocks. The key table names the application cryptogram usage, the TDES_2KEY algorithm and the DeriveKey mode of use for the ARQC key, so a key of another usage, another algorithm or without the mode of use is refused. The rules are asked in one place now, so the card operations and the cryptogram operations cannot drift apart on what they accept. The response value of the second issuer authentication method is made of the card status update and the proprietary data, as the specification has it. The response code belongs to the first method. The EMV 4.1 tree derivation and the dynamic card verification code are refused rather than approximated: the first is proprietary, and the second was the emulator's own construction. A verification that fails carries the reason the model names, and a key that is not there is answered with a 404. * refactor(paymentcryptography): the model settles the card value's length The card operations refused a validation data length that was not three to five digits, and a validation data that was not, while the model states both. The model is checked before the operation runs, so the two checks never reached the point where they could answer, and the model answers the same request with the same error. The checks are gone, and the model's own constraints have a test each, so the refusal is proved. The class comment of EmvCrypto said the ARQC is made over the CDOL, and it is made over the transaction data as the caller sent it, so the comment says that now. * refactor(paymentcryptography): the card side reads the shared helpers The review found the card side holding copies of what the service already holds, and the comments around them out of date. The card operations read the request members through PaymentCryptographyAttributes now, the same as the cryptogram operations, instead of carrying their own text and soleVariant. They read the key's material through PaymentCryptographyKeyRules.materialHex as well. A key read back after a restart holds no material, and the shared rule says so, where the raw accessor gave a null that the derivation failed on. The refused dynamic card verification code left its branch in the computation and the track data and unpredictable number fields behind, and the two-argument retailMac had no callers. They are gone. The comments are in step with the code now: the class comment of the cryptogram operations no longer calls the EMV 2000 derivation the common one, the comment on the second issuer authentication method no longer carries the response code in its input, and the class comment of EmvCrypto no longer names OpenSSL or the original engine. |
||
|
|
13640785a9 |
feat(signer): serve the Signer control plane for profiles, permissions and job records (#7680)
Signer was the last control plane Floci's CloudFormation provisioner stubbed: SignerCfnProvisioner recorded only the identifiers a template handed it, with a comment saying Floci has no Signer API. This serves the API, so an SDK, the CLI or a stack sees the profile it actually created. Cancellation keeps the profile, as AWS does: it stays readable through GetSigningProfile with the same ARN and version and the status Canceled, it stops accepting jobs, and ListSigningProfiles hides it unless includeCanceled is set or statuses names Canceled. A PutSigningProfile on the same name brings it back as a new active version. A signing job fails by default, and says why. Nothing on this machine signs the artifact, so a succeeded job would advertise a signedObject key that does not exist and every download of it would fail; the job instead completes as Failed with a statusReason naming the object that was not written, and RevokeSignature refuses it because there is no signature to revoke. Metadata-only callers can set floci.services.signer.mock-signing-jobs=true, which records jobs as succeeded and is documented as a mock rather than as AWS behaviour. Signer routes collide with S3's path-style ones, so a request signed for the signer scope is rewritten onto an internal prefix before matching. That rewrite used to happen before IAM resolved the action from the path, which left every Signer call unchecked; IamActionRegistry now strips the internal prefix the signing service owns, and SignerIamEnforcementIntegrationTest proves a key with no policy is refused while one with signer:* is allowed. Co-authored-by: David Guardiola <davidguardiola@gmail.com> |
||
|
|
3701d4d041 | feat(ec2-instance-connect): SendSSHPublicKey, verified by the unmodified AWS agent (#7473) | ||
|
|
42b28be218 | feat(elasticache): support snapshots of cluster-mode-disabled replication groups (#7744) | ||
|
|
6130fe9568 | feat(paymentcryptography): the PIN operations (#7397) | ||
|
|
e0692092b5 |
feat(redshift): support CopyClusterSnapshot API action (#7748) (#7750)
* feat(redshift): support CopyClusterSnapshot API action (#7748) * fix(redshift): address review findings and sync docs for CopyClusterSnapshot (#7748) * refactor(redshift): simplify CopyClusterSnapshot using existing helpers (#7748) Drop Tags, KmsKeyId and the ARN branch, which CopyClusterSnapshotMessage does not carry. Reuse validateManualRetention (InvalidRetentionPeriodFault), takenFrom and SnapshotDumpCopier.copy, and share the automated-snapshot setup across the new tests. |
||
|
|
30db535f2e |
feat(bedrock): list and get foundation models and system-defined inference profiles (#7675)
* feat(bedrock): list and get foundation models and system-defined inference profiles fix(bedrock): resolve only ARNs that name the catalog resource in the calling Region, and report on-demand inference only where a model is served in-Region fix(bedrock): accept SPEECH and VIDEO output modalities and refuse an unserved model with ValidationException fix(bedrock): report enum violations and read the model catalog through the shared helpers An invalid ListFoundationModels or ListInferenceProfiles enum value now answers with the "1 validation error detected:" prefix AWS sends and lists the allowed values in the model's order. * fix(bedrock): answer an unresolvable model or profile identifier with the error AWS returns GetFoundationModel answers an unknown model id or an ARN that names no foundation model in the calling Region with ValidationException. GetInferenceProfile answers an ARN of another service or without an account with ValidationException, and one of another account with AccessDeniedException; one of another Region stays ResourceNotFoundException. |
||
|
|
46a8cbe51d |
feat(docdb): support cluster snapshots and restores (#7585)
Adds CreateDBClusterSnapshot, DeleteDBClusterSnapshot, RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime, and makes DescribeDBClusterSnapshots list stored snapshots. A snapshot is a mongodump archive of the cluster's MongoDB container; rds-signed requests naming a DocumentDB cluster or snapshot are routed to DocumentDB. fix(docdb): round out cluster snapshots and restores after review List DocumentDB snapshots in the RDS-family list form on either endpoint, accept snapshot ARNs, keep the source's encryption and key on restore, check restore and snapshot identifiers against RDS too, read a point-in-time restore's data as a snapshot does, refuse RestoreToTime, apply every describe filter, and remove a cluster whose restore failed even under deletion protection. Drop the unrelated endpoint host, container-name host and audit log group changes. Cover the archive reaching the restored cluster outside mock mode. Read a snapshot's record and archive together under the snapshot lock delete takes, and refuse a restore whose archive is missing or empty before any cluster exists; a snapshot taken in mock mode is marked metadata-only and restores only in mock mode. A KmsKeyId on RestoreDBClusterFromSnapshot now encrypts the restored cluster under that key even when the snapshot is unencrypted, as the restore guide allows; the point-in-time restore still refuses one for an unencrypted source. Share the docdb-scoped request in the integration test. |
||
|
|
6e75e4096e |
feat(securityhub): import and query ASFF findings (#7692)
fix(securityhub): validate provider fields and preserve default product metadata fix(securityhub): preserve custom names and reconcile provider updates fix(securityhub): prefer provider fields on first import docs(securityhub): update findings operation count fix(securityhub): validate initial verification state |
||
|
|
856970a24f | feat(apigateway): add documentation part operations (#7712) | ||
|
|
4617e4a4f8 |
feat(paymentcryptography): the data plane as a service of its own (#7396)
* feat(paymentcryptography): the data plane as a service of its own docs(paymentcryptography): the data plane has a page of its own fix(paymentcryptography): a MAC under a three-key Triple DES key is computed test(paymentcryptography): a key of another purpose does not encrypt data feat(paymentcryptography): the data plane's IAM is generated fix(paymentcryptography): a DUKPT MAC needs a base derivation key fix(paymentcryptography): a key whose material is not held is refused docs(paymentcryptography): the data plane's example runs test(paymentcryptography): the data plane through the AWS SDK test(paymentcryptography): the data plane through the AWS CLI fix(paymentcryptography): the CLI test removes the keys it makes docs(compat): the AWS CLI suite names the data plane test(paymentcryptography): the route is read as the registry reads it test(paymentcryptography): the request names its method and its URI fix(paymentcryptography): the cipher pads no data fix(paymentcryptography): the data plane takes the service scope fix(paymentcryptography): a MAC length that is not a number is refused docs(paymentcryptography): the data plane says the cipher pads no data fix(paymentcryptography): the data plane ciphers with Triple DES as well fix(paymentcryptography): the scope alias names the model's scope fix(paymentcryptography): the Triple DES cipher is BouncyCastle's fix(paymentcryptography): the usage and the blob keep their comments fix(paymentcryptography): a key's family is read from its algorithm fix(paymentcryptography): the cipher reads the vector through one helper test(paymentcryptography): the keys are built by one builder fix(paymentcryptography): the data plane checks the model's rules fix(paymentcryptography): the Triple DES check value is BouncyCastle's fix(paymentcryptography): the SDK names it TDES_2_KEY docs(contributing): the ciphers come from BouncyCastle refactor(paymentcryptography): the model owns the request shapes refactor(paymentcryptography): the ciphers are BouncyCastle's test(compat): one helper makes a key of either algorithm docs(contributing): the cipher rule comes out fix(paymentcryptography): the refusals are the model's refactor(paymentcryptography): the ciphers are one helper each refactor(paymentcryptography): the generators share the helper docs(paymentcryptography): the javadocs name both ciphers test(aws): the moved constants read from the shared helper fix(paymentcryptography): the deprecated cipher constructors go chore(paymentcryptography): the duplicate import goes test(paymentcryptography): the DUKPT vectors the standard publishes fix(paymentcryptography): the DUKPT refusal is the derivation's docs(paymentcryptography): the retail MAC is over a double-length key fix(paymentcryptography): the ISO 9797-1 MAC pads only a partial block refactor(paymentcryptography): the refusals the model already makes chore(aws): the routes are generated from the models again * chore(aws): the IAM resources are generated again |
||
|
|
f8670f64fb |
feat(quicksight): add metadata APIs and limited registered-user embedding (#7529)
Closes #7522 Origin comparisons preserved host casing and default ports, CSP named only the immediate parent, and expired sessions remained in storage indefinitely. Normalize both sides of origin checks, allow all configured ancestors, and reap expired sessions across accounts with the shared sweep worker. |
||
|
|
ecd1138d86 |
feat(ec2): support GetConsoleOutput with the guest's SSH host keys (#7385)
Returns a console log carrying the instance's SSH host public keys between the markers cloud-init prints, read from the running instance container, so clients can verify the host before connecting. An instance without a running container has an empty log. Look the instance up in the request's region, read host keys only from a running container and treat a failed read as an empty log, build the response with XmlBuilder, and cover the SDK reading of the response. AWS returns DryRunOperation for DryRun=true even for an empty or malformed instance id, so check the dry run first. The key files are the guest's to write, so capture at most 16 KiB of stdout (and 1 KiB of stderr) through bounded streams, and answer an empty log, with a warning, when the output is larger than host keys can be. |
||
|
|
e95af9cbf6 | feat(servicequotas): implement ListServices action (#7254) | ||
|
|
196b672563 |
feat(ec2): EC2 Instance Connect Endpoint control plane (#7359)
* feat(ec2): EC2 Instance Connect Endpoint control plane CreateInstanceConnectEndpoint, DescribeInstanceConnectEndpoints and DeleteInstanceConnectEndpoint answered UnknownOperation, so Terraform's aws_ec2_instance_connect_endpoint failed at create and the AWS CLI's `ec2-instance-connect ssh --connection-type eice` could not look an endpoint up. They now carry the fields, filters and errors Terraform and the CLI use. Endpoint DNS names are <id>.localhost.floci.io, which public DNS resolves to 127.0.0.1, and each endpoint takes a private address in its subnet. As on AWS, a live endpoint makes DeleteSubnet and DeleteVpc fail with DependencyViolation (a destroy ordered wrongly would otherwise pass here and fail on AWS, and the endpoint's address reservation leaked), and a replayed ClientToken returns the first endpoint instead of creating a duplicate on an SDK or Terraform retry. The tunnel the endpoint serves is a separate change. * fix(ec2): create an EC2 Instance Connect Endpoint under the subnet topology lock Two creates with one ClientToken could both miss the replay scan and make two endpoints, and a DeleteSubnet could land between the subnet check and the save, leaving an endpoint on a subnet that is gone. The create now holds the lock DeleteSubnet holds. The endpoint store is final and comes through the constructor chain like the other stores, and the service test is named Ec2InstanceConnectEndpointServiceTest. * test(ec2): name the exceptions the endpoint race test expects * fix(ec2): return a copy from instance connect endpoint reads Create, Describe and Delete handed back the stored endpoint itself, with its tags written onto it, and Delete then set delete-in-progress on that object. A caller changing a returned endpoint changed the stored one. They now return a copy carrying the current tags. * fix(ec2): scan one region's instance connect endpoints by key on describe Describe read every region's endpoints and kept those whose region field matched, while the ClientToken replay scan picks a region by store key. Describe now uses the key prefix too, so the two agree on what is in a region and describe no longer reads other regions' records. * fix(ec2): compare every creation parameter on an instance connect endpoint ClientToken replay A replayed ClientToken compared only SubnetId, so a retry with other security groups, IpAddressType, PreserveClientIp or tags returned the first endpoint as if it matched. Each is now compared after defaults are applied and a difference is IdempotentParameterMismatch, as the egress-only internet gateway create does. Tags are compared as the create request carried them, so a later CreateTags does not turn a retry into a mismatch. * test(ec2): drive instance connect endpoints over the EC2 Query wire The service test called Ec2Service directly, so nothing covered the query handler: SecurityGroupId.N and TagSpecification.N parsing, the ClientToken echo, and the Create, Describe and Delete response envelopes. The integration test creates, replays, describes and deletes an endpoint through the HTTP endpoint and reads each result back with a separate Describe. * fix(ec2): validate instance connect endpoint requests before answering DryRun CreateInstanceConnectEndpoint answered DryRunOperation before checking the subnet, IpAddressType or security groups, and Describe and Delete ignored DryRun and acted on the request. Create now validates and then answers DryRunOperation, as RunInstances and ReplaceRoute do, and Describe and Delete check the IDs and filters first, then answer DryRunOperation without deleting anything. * fix(ec2): page DescribeInstanceConnectEndpoints by MaxResults and NextToken MaxResults and NextToken were ignored and every match came back on one page. Describe now returns at most MaxResults endpoints in ID order with a nextToken for the rest, using the shared opaque-cursor pagination, and an unreadable NextToken is InvalidParameterValue as DescribeDhcpOptions answers it. MaxResults is not range-checked against the model's 1-50. * fix(ec2): range-check MaxResults on DescribeInstanceConnectEndpoints and compare replayed security groups as a set The model's InstanceConnectEndpointMaxResults allows 1 to 50, but a sent 0, negative or larger value was served. It is now InvalidMaxResults, as DescribeTags and DescribeEgressOnlyInternetGateways refuse values outside their own ranges; an omitted MaxResults still returns every match. A test now pins that a ClientToken replay naming the same security groups in another order returns the first endpoint. * docs(ec2): name instance connect endpoints among the private address holders privateIpsInUse and privateIpsHeldOnVpcNetwork count the addresses EC2 Instance Connect Endpoints hold, but their comments listed only instances, network interfaces and NAT gateways. * test(ec2): refuse a NAT gateway the private address an instance connect endpoint holds CreateNatGateway with a PrivateIpAddress an EC2 Instance Connect Endpoint holds answers InvalidIPAddress.InUse, and the address is free again once the endpoint is deleted. Nothing covered the endpoint's share of the in-use scan before. * fix(ec2): copy each creation tag of an instance connect endpoint The copy constructor copied the creationTags list but shared its Tag objects with the stored endpoint, and the create stored the request's own Tag objects. Changing a tag on a returned endpoint, or on the list passed to the create, changed the saved creation parameters, so a retry with the same ClientToken and the original tags failed with IdempotentParameterMismatch. Copy each Tag when saving and when returning a copy. * fix(ec2): reject an unknown DescribeInstanceConnectEndpoints filter before scanning An unknown filter name was rejected only while testing it against an endpoint, so with no endpoints, or when an earlier filter excluded them all, the bad name succeeded silently. Check every name up front through requireSupportedFilters, as DescribeVpcs and DescribeVpnGateways do, with the same InvalidParameterValue. * fix(ec2): resolve an instance connect endpoint's interface in DescribeNetworkInterfaces CreateInstanceConnectEndpoint published an interface ID in networkInterfaceIdSet that DescribeNetworkInterfaces answered with InvalidNetworkInterfaceID.NotFound, so a client could not read the endpoint's private address or security groups from it. Build the interface from the endpoint in the describe path, as the NAT gateway and interface VPC endpoint arms already do: a requester-managed ec2_instance_connect_endpoint interface with the endpoint's subnet, VPC, private address and security groups, present while the endpoint exists. Its address is already counted from the endpoint record, so subnet address accounting is unchanged. DeleteInstanceConnectEndpoint also drops the interface's own tags, as DeleteNatGateway does. * fix(ec2): name an instance connect endpoint interface's groups from the account it is read for The explicit-account DescribeNetworkInterfaces overload scanned the named account's endpoints but looked their security group names up under the ambient request account, so a caller in another account got the groups back without names. Read the group for the same account, as natNetworkInterfacesOf reads its subnet. * test(ec2): keep another account's instance connect endpoint interface out of DescribeNetworkInterfaces An endpoint created in one account is NotFound by NetworkInterfaceId and absent from an unfiltered list for another account, and still visible to its own. * fix(ec2): accept exactly AWS's DescribeInstanceConnectEndpoints filters The DescribeInstanceConnectEndpoints reference lists instance-connect-endpoint-id, state, subnet-id, tag:<key>, tag-key, tag-value and vpc-id. Implement tag-value (any tag's value in the filter values, as the other EC2 describe calls match it) and stop accepting availability-zone and owner-id, which the reference does not list; they are now refused as InvalidParameterValue like any unknown filter. * refactor(ec2): build NAT gateway and instance connect endpoint interfaces once natNetworkInterfacesOf and instanceConnectEndpointNetworkInterfacesOf set up the same requester-managed interface with one primary address; both now call requesterManagedInterface. Their two DescribeNetworkInterfaces arms, identical but for the interfaces they walk, become one arm over NAT interfaces then endpoint interfaces, the order the two arms ran in. No behaviour change. * test(ec2): share a mock-mode Ec2Service builder in the test fixtures Ec2ServiceFixtures.mockModeService() in the shared testing package builds the mock-mode Ec2Service over in-memory storage that Ec2InstanceConnectEndpointServiceTest built privately, and that class now uses it. The other classes with their own copy move to it separately. * docs(ec2): count the three InstanceConnectEndpoint operations in the service matrix |
||
|
|
a772b27583 |
feat(ec2): add Client VPN endpoints, associations, rules and routes (#7425)
* feat(ec2): add Client VPN endpoints, associations, rules and routes Store Client VPN endpoints with their target network associations, authorization rules and routes, and export the OpenVPN client configuration from the server certificate held in ACM. Fifteen EC2 Query actions; no VPN server runs. * fix(ec2): apply Client VPN describe filters and pin associated subnets Apply AWS's filters on the four Client VPN describe operations and refuse unknown ones. Report selfServicePortalUrl for an endpoint with the portal enabled. Require every requested security group to exist. Register associations as subnet and VPC dependencies, saved under the subnet reference lock. Compare rule and route CIDRs as networks. Replace the endpoint's lists instead of changing them in place, and let only a missing ACM certificate leave the export without its CA. * refactor(ec2): share the Query protocol helpers and the id hex generator Move the EC2 Query parameter and response helpers Ec2QueryHandler kept private (getList, getFiltersList, boolParam, intParam, tagSetXml, booleanResponse, xmlResponse) into Ec2QueryProtocol, which the Client VPN handler now uses too, and replace the four randomHex copies in Ec2Service, Ec2IpamService, FlowLogService and Ec2ClientVpnService with Ec2Ids.randomHex. The Client VPN test builds its requests through testing.Ec2Requests. * style(ec2): brace the loop exits in Ec2QueryProtocol |
||
|
|
eb65ad88d2 |
feat(accessanalyzer): add basic ValidatePolicy checks (#7085)
* feat(accessanalyzer): add policy validation JSON endpoint * feat(accessanalyzer): report policy grammar findings with source spans * feat(accessanalyzer): secure policy validation pagination and IAM * fix(accessanalyzer): report repeated policy keys * fix(iam): authorize policy validation through modeled routes * refactor(iam): resolve policy validation from vendored routes * refactor(iam): share condition operator metadata |
||
|
|
2e47b9c571 |
feat(bedrock-agentcore): add the harness control plane (#7387)
* feat(bedrock-agentcore): add the harness control plane CreateHarness, GetHarness, UpdateHarness, DeleteHarness, ListHarnesses and ListHarnessVersions were unknown, so aws_bedrockagentcore_harness could not be created. Harnesses are stored per Region with a name-<10 alphanumerics> id and settle in READY at once. Each update appends an immutable version, and members a create leaves out take the defaults AWS fills in, including an AgentCore Runtime environment named harness_<name>. Tags work on harness ARNs through the shared /tags route. InvokeHarness moves into the new /harnesses controller unchanged: a request is matched against one root resource class, so the data-plane controller rooted at / would no longer see /harnesses/invoke. * fix(bedrock-agentcore): match a harness role ARN with AwsArnUtils.PARTITION_REGEX * fix(bedrock-agentcore): serve InvokeHarness from a data-plane class of its own InvokeHarness sat in the control plane's /harnesses controller, so it inherited its JSON-only @Produces (an Accept: application/vnd.amazon.eventstream request was refused with 406) and was gated by no service flag, since the controller was missing from ResolvedServiceCatalog. It now has its own class rooted at /harnesses/invoke, the more specific root, registered with the data plane, and the harness controller is registered with the control plane. * refactor(bedrock-agentcore): share one random id suffix helper The harness registry, and the memory, tools and gateway services before it, each carried their own copy of the alphanumeric alphabet and the random suffix builder. One random(alphabet, length) and randomAlphanumeric(length) in BedrockAgentCoreControllerSupport now serve all four; the gateway keeps its lowercase alphabet for gateway ids. |
||
|
|
537e042482 |
feat(cognito): support AdminListUserAuthEvents (#7404)
Record SignIn events for USER_PASSWORD_AUTH, ADMIN_USER_PASSWORD_AUTH, ADMIN_NO_SRP_AUTH and USER_SRP_AUTH on pools with the Plus feature plan and threat protection in AUDIT or ENFORCED mode, and list them newest first with MaxResults and NextToken paging. Other pools get UserPoolAddOnNotEnabledException. A wrong password is Fail, a sign-in interrupted by a challenge stays InProgress until it ends in tokens, and no EventRisk is reported since Floci performs no risk evaluation. Events are matched to their pool and user by the stored owner, not the key prefix alone, and a sign-in that ends after its user is deleted records nothing. Closes #6137 |
||
|
|
d7797bf56d |
feat(redshift): add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy (#7361)
* feat(redshift): add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy aws_redshift_resource_policy could not be created: the provisioned Redshift API had none of the three operations. They now take the ARN of a Redshift Serverless namespace or a provisioned cluster, the targets of a zero-ETL integration, matched exactly in the caller's account and Region. The policy is kept on its namespace or cluster, so it goes with the resource, and is stored and echoed, not evaluated. * feat(redshift): return resource policies and their errors as AWS does Checked against AWS with read-only GetResourcePolicy calls: a stored policy comes back with Version and Statement first and each statement's Effect, Principal, Action, Resource and Condition first, pretty-printed, so it is now stored in that form. A namespace that does not exist answers "The requested namespace doesn't exist."; an ARN in another Region, a namespace id that is not a UUID and an ARN of any other resource type are InvalidParameterValue with AWS's messages, not UnsupportedOperation. Adds an SDK compatibility test for the three operations. * fix(redshift): keep a namespace's resource policy across updates The Namespace copy constructor, used by tagging, untagging and UpdateNamespace, did not copy the resource policy, so any of them dropped it. findClusterByArn now reads the ARN through AwsArnUtils. Without a Version, GetResourcePolicy reached Elastic Load Balancing, which defines the name but does not serve it; it now goes to Redshift. * fix(redshift): refuse an empty resource policy before looking the resource up |
||
|
|
6906759c9a | feat(paymentcryptography): the Payment Cryptography control plane (#7090) | ||
|
|
dfaab8ba4c | feat(eventbridgev2): add EventBridge V2 service (#6962) | ||
|
|
fd4abd365b |
feat(inspector2): support disabling scans (#7181)
* feat(inspector2): support disabling scans * fix(inspector2): enforce disable permission * fix(inspector2): accept optional resource types --------- Co-authored-by: Ovidiu (Ovi) <462561+ovidiubute@users.noreply.github.com> |
||
|
|
b987e822be | feat(bedrock): add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy for guardrails (#7188) | ||
|
|
f489a6f1f3 | feat(ec2): support AMI block public access (#7134) | ||
|
|
7f785fdc4c |
feat(route53): support reusable delegation sets (#7020)
* feat(route53): add reusable delegation set APIs * feat(route53): associate reusable delegation sets with hosted zones * fix(route53): preserve delegation ownership and assignments * fix(route53): authorize delegation set operations by matched route * fix(route53): filter hosted zones by reusable delegation set * fix(iam): select REST XML denials from the service catalog * perf(test): reuse Route53 IAM enforcement fixtures |
||
|
|
6db78b8ef4 |
feat(glue): data quality rulesets (#7035)
* feat(glue): data quality rulesets CreateDataQualityRuleset, GetDataQualityRuleset, UpdateDataQualityRuleset and DeleteDataQualityRuleset answered InvalidAction, and ListDataQualityRulesets always returned an empty list, so Terraform's aws_glue_data_quality_ruleset failed at its first apply. Rulesets are now stored per account and Region by name, with their description, DQDL text, target table, security configuration and created and last modified times, and tagged through the shared tag store by their dataQualityRuleset ARN. Update replaces only the members the request sets. List returns them in name order with RuleCount, filtered by name, description, target table, created and last modified times and tags, and paged by MaxResults and NextToken. Errors follow the model: AlreadyExistsException for a duplicate, EntityNotFoundException for an unknown name, InvalidInputException for a missing or oversized member. Rulesets are stored, not evaluated. Closes #6830 * fix(glue): match a ruleset's catalog and take its store from the caller The ListDataQualityRulesets target table filter compared only TableName and DatabaseName, so filtering for one catalog also returned a ruleset on the same table in another. A CatalogId in the filter now has to match too, with a target table that names no catalog in the account's own. The package-private GlueService constructor built the ruleset store itself; it now takes it as an argument, as it does every other store. * fix(glue): reuse hasTags and AwsJsonTimestamp for ruleset listing The ruleset tag filter now goes through hasTags, as jobs, crawlers and triggers do, and the list filter's timestamps through AwsJsonTimestamp.epochSeconds, so a timestamp sent as a string is refused with InvalidInputException as the SDKs never send one. --------- Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com> |
||
|
|
e29b1d884c |
feat(rds): automated backups, kept after a delete and restored from (#6996)
* feat(rds): automated backups, kept after a delete and restored from DescribeDBInstanceAutomatedBackups, DeleteDBInstanceAutomatedBackup, DescribeDBClusterAutomatedBackups, DeleteDBClusterAutomatedBackup, StartDBInstanceAutomatedBackupsReplication and StopDBInstanceAutomatedBackupsReplication answered UnsupportedOperation, and DeleteDBInstance and DeleteDBCluster ignored DeleteAutomatedBackups, so a deleted database could not be restored to a point in time. A live standalone instance with backups on now reports an active automated backup. A delete with DeleteAutomatedBackups=false keeps a retained one, with the PostgreSQL data saved outside mock mode, and RestoreDBInstanceToPointInTime (by DbiResourceId or backups ARN) and RestoreDBClusterToPointInTime (by DbClusterResourceId) restore from it. Replication to another Region is metadata only: the replica is listed as replicating, the source lists it under DBInstanceAutomatedBackupsReplications, and a stop or the source's delete keeps it as retained. Closes #6828 * fix(rds): restart stopped replication, use the replica's window, match the source ARN A stopped replica kept as retained refused a second start of replication to its Region; only a replica that is still replicating refuses it now, and a retained one is replaced. A restore from a replicating backup checked the time against the live source's window; it checks the replica's own window now and still copies the live source. A replication source ARN naming another account or service found this account's instance by identifier; the whole ARN must now match the instance's. The RDS count in the docs service matrix is 117, for the six new actions. |
||
|
|
0a3efd65fe |
feat(securityhub): standards subscriptions (#6979)
* feat(securityhub): standards subscriptions BatchEnableStandards, BatchDisableStandards, GetEnabledStandards and DescribeStandards, so Terraform's aws_securityhub_standards_subscription (and cloudposse's security-hub module) can enable CIS, AFSBP and NIST 800-53. EnableSecurityHub now subscribes AWS's default standards (AFSBP and CIS 1.2.0) unless EnableDefaultStandards is false, as AWS does. Subscriptions are READY at once; controls and findings are not evaluated. Found applying kthw-on-floci's account-baseline: every standards subscription failed with UnknownOperationException (POST /standards/register). BatchDisableStandards checks every ARN before removing any, so a batch naming one unknown subscription changes nothing (before, the removals ahead of it stuck in memory without being saved, and came back after a restart). GetEnabledStandards reads the subscriptions under the same lock the writers hold. * fix(securityhub): reject a non-boolean EnableDefaultStandards EnableSecurityHub coerced EnableDefaultStandards with asBoolean(true), so a string "false" skipped the defaults and an object enabled them, and the hub was enabled either way. The botocore model types the member boolean. Reject it with InvalidInputException before any state changes, as UpdateSecurityHubConfiguration does for AutoEnableControls. * fix(securityhub): offer CIS v5.0.0 and take ARN partitions from the region resolver Add CIS AWS Foundations Benchmark v5.0.0 (standards/cis-aws-foundations-benchmark/v/5.0.0, regional, not enabled by default) to the standards Security Hub offers. Mint every Security Hub ARN through RegionResolver: the global CIS 1.2.0 ARN takes partitionForRegion and the regional ARNs use buildArn, so a region the catalog cannot place keeps the deployment's partition instead of falling back to aws. |
||
|
|
ead5d4a3fe |
feat(autoscaling): support EnterStandby and ExitStandby (#6955)
* feat(autoscaling): support EnterStandby and ExitStandby Both actions were routed to Auto Scaling but answered UnsupportedOperation, so a client taking a node out of service could lower MinSize and then fail to put the instance in standby. EnterStandby moves InService instances to EnteringStandby, optionally lowering desired capacity (refused below MinSize), and returns one InProgress activity per instance. The reconciler then deregisters them from the group's target groups and Classic load balancers and sets Standby. ExitStandby moves Standby instances to Pending, raises desired capacity (refused above MaxSize) and returns one PreInService activity per instance; the reconciler registers them again and sets InService. Descriptions, causes, status codes and progress follow the EC2 Auto Scaling API reference, user guide and botocore examples. Error texts follow real AWS responses quoted in public issue reports where one was found; the others (an instance outside the group, ExitStandby above MaxSize) are modelled on AWS's texts for similar errors. Standby members do not count toward desired capacity, including when AttachInstances raises it, are never scaled in or refreshed, and stay in the group when their EC2 instance stops. Each member records the activity of its move in a new optional standbyActivityId field, so a move interrupted by a restart finishes after it; groups stored without the field load unchanged. A move whose instance is terminated, detached, deleted with its group or not running when it leaves standby is cancelled. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(autoscaling): check EnterStandby and ExitStandby through the Java SDK The AWS SDK for Java parses both responses into InProgress and PreInService activities with AWS's descriptions, causes and progress, the instance reaches Standby and then InService again, desired capacity follows it, and ExitStandby on an instance in service is a ValidationError. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(autoscaling): health-check standby returns and lock capacity changes Review fixes for EnterStandby and ExitStandby: - An instance whose EC2 instance stopped or terminated while in standby now fails the health check AWS runs when it exits standby: Floci terminates it if EC2 still has it, records AWS's "Terminating EC2 instance" activity with the EC2 health check cause, and the group launches a replacement. Before, it was dropped from the group as a stale reference, and a stopped instance was left behind in EC2, still tagged with the group name. - An instance returning from standby keeps its health status instead of being reset to Healthy, so a SetInstanceHealth mark made while it waited survives its return. - SetDesiredCapacity and UpdateAutoScalingGroup now change the group under its lock, so they no longer race the capacity changes EnterStandby, ExitStandby and the reconciler make under it. - DetachInstances refuses an instance still in EnteringStandby with AWS's "is not in InService or Standby" error. Other states Floci still detaches, as before. - The docs say that instance refresh leaves standby members alone whatever its StandbyInstances preference says. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(autoscaling): refuse detaching an instance mid standby move DetachInstances now refuses any instance whose standby move is still in progress, with AWS's "The instance <id> is not in InService or Standby." error: one in EnteringStandby, one on its way back from standby (Pending), and one marked for termination before the reconciler ended its move. The detach path therefore no longer cancels a move. Pending launches and Terminating members without a move are still detached, as before. Tests now also cover a refused termination of an instance that failed its health check on return (retried on the next pass, nothing launched meanwhile), that return across a restart in every storage mode, and an instance refresh cancelling the move of an instance on its way back. The docs list that refresh among the reasons a move is cancelled. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(autoscaling): treat an instance EC2 has no record of as missing The reconciler's stale check asked DescribeInstances for the one instance and kept the member on any error. EC2 answers an id it has no record of with InvalidInstanceID.NotFound rather than an empty list, so a member whose EC2 record was gone was kept forever: - an instance leaving standby stayed Pending with its PreInService activity and kept counting toward desired capacity, so no replacement was launched; - a Pending launch was never pruned either; - a Terminating member was never pruned and was reported as a failed termination. That error now reads as a missing instance, both when deciding whether a member is stale and whether it still needs terminating. Other errors keep the member, as before. The standby tests' EC2 mock now answers a missing id the way Ec2Service does. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(autoscaling): keep a missing instance out of a termination batch EC2 terminates the ids of a TerminateInstances batch in order and stops at the first one it has no record of. The reconciler sent every Terminating member in one batch, so a member whose EC2 record was gone kept the members after it from being terminated that pass and had a failed termination recorded for them. A member EC2 has no record of now stays out of the batch, since it is pruned as a stale reference in the same pass. The standby tests' EC2 mock terminates in order as Ec2Service does, and a reconciler test covers a batch with one missing and one live member. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * docs(autoscaling): say which EC2 errors still count as an instance record hasNoEc2Record treats only InvalidInstanceID.NotFound (or an empty answer) as a missing record; any other EC2 error keeps the instance in the termination batch. The Javadoc now says so. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(autoscaling): use StorageFactories in the standby storage test storedService built its StorageFactory from hand-stubbed EmulatorConfig and ServiceConfigAccess mocks, which is what StorageFactories.open in io.github.hectorvent.floci.testing already provides. Its flush and compaction intervals are an hour instead of a minute; neither timer fires during the test either way. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> |
||
|
|
361b3177b8 | docs(ses): correct the SES and SES v2 operation counts in the service matrix (#6922) | ||
|
|
1a871392b7 |
feat(redshift): support pausing and resuming provisioned clusters (#6911)
* feat(redshift): support pausing and resuming provisioned clusters * docs(redshift): sync supported operation count * fix(redshift): harden pause and resume failure recovery * fix(redshift): skip unchanged idle integration writes * fix: consolidate Redshift pause and resume state persistence |
||
|
|
da8e22744b | feat(redshift-data): implement ListSessions (#6892) | ||
|
|
3d30bbcf7a |
feat(redshift): add event subscriptions with SNS delivery (#6705)
* feat(redshift): add event subscriptions with SNS delivery Add Create, Modify, Delete and DescribeEventSubscriptions, subscription tagging, and publication of matching events to the subscription's SNS topic, honouring the topic policy. * fix(redshift): deliver events from a consistent subscription snapshot and reject nameless subscription ARNs Delivery copied no state under the lock modifySubscription holds, so a concurrent update could change the topic between matching and publishing. Match and publish from a snapshot taken under that lock. A tag ARN ending in eventsubscription: passed an empty name to describeSubscriptions, which lists all subscriptions. Reject it up front. |
||
|
|
454d7b6ebd |
feat(codeartifact): add ListPackages for every format (#6622)
Lists every package a repository holds across all five formats, with each package's origin-control restrictions, filterable by format, namespace prefix, package-name prefix, and publish/upstream restriction. generic is enumerated by scanning stored package-version and origin-config records repository-wide; each container-backed format gets a new RepositorySidecarManager#listPackages primitive, confirmed live against each real sidecar: Reposilite has no list-everything endpoint, so Maven walks its directory tree, peeking one representative child per directory to tell a group/artifact directory apart from a plain namespace segment (both look identical one level up); Verdaccio's /-/all, pypiserver's root simple index, and BaGetter's Search resource (pressed into service for this admin listing only, not the native NuGet protocol) answer directly. |
||
|
|
e9e2b38da6 | feat(redshift): add event history and DescribeEvents (#6663) | ||
|
|
d10db3ce9b |
feat(ecr): repository creation templates (#5955)
* feat(ecr): repository creation templates CreateRepositoryCreationTemplate, DescribeRepositoryCreationTemplates, UpdateRepositoryCreationTemplate and DeleteRepositoryCreationTemplate store templates per account and Region, keyed by prefix, with each field checked against the service model. An update replaces the fields it sets, and an empty string or list clears one. Templates are recorded, not applied, as nothing in Floci creates repositories through replication, pull through cache or create-on-push. Closes #5804 * refactor(ecr): check repository creation templates against the vendored model The four template actions join the registry settings in ecr-request-shapes.json, so the handler checks their requests against the ECR model's types, lengths, patterns and enums and answers in ECR's "failed to satisfy constraint" form. The handwritten copies of those rules go. What the model can't state stays in the service: appliedFor naming at least one value, and policy text being a JSON object. The model gives imageTagMutabilityExclusionFilters at least one entry, so an update sending an empty list is now refused rather than clearing the filters. Terraform omits the member when the filters are removed and moves to a mode without exclusions, so an update that leaves the template in such a mode now drops the filters. Before, they stayed, and every plan showed them again. * fix(ecr): lock creation template writes, share one JSON object check and fold a trailing slash Create, update and delete each read a template and then wrote it without a lock, so two creates of one prefix could both succeed and an update racing a delete wrote the deleted template back. They now take the registry lock the registry settings use. The template policies and the registry policy share one JSON object check that also refuses text after the object, such as {}{}. ECR assumes a / after every prefix, so prod and prod/ are now one template. The test helper imports Executable. * fix(ecr): describe each template once when prefixes differ only by a slash Describe removed duplicate prefixes before folding the trailing slash, so prefixes prod and prod/ returned the template twice, and with maxResults 1 a token followed by an empty page. It now removes duplicates by template key. The lock tests use the shared testing ParkingStore instead of their own copy. |
||
|
|
ec21cf38c7 |
feat(rds): DescribeCertificates, ModifyCertificates and an instance's CA certificate (#6106)
* feat(rds): DescribeCertificates, ModifyCertificates and an instance's CA certificate DescribeCertificates lists the Region's RDS certificate authorities with the thumbprint and validity AWS reports, vendored from the certificate bundles AWS publishes by tools/aws/regen_rds_ca_certificates.py, and pages them. ModifyCertificates sets or removes the account's default for new instances. CreateDBInstance, ModifyDBInstance, the two instance restores and CreateDBInstanceReadReplica take CACertificateIdentifier, and instances report it with CertificateDetails. AWS::RDS::DBInstance takes the property and resolves the two CertificateDetails attributes. The identifier is metadata: the auth proxy keeps presenting Floci's own CA. Closes #5806 * fix(rds): follow the user guide on CAs and leave a blank CA alone - An instance stored without a CA reports rds-ca-rsa2048-g1, since an override applies only to instances created after it. - ap-south-1, ap-southeast-4, ca-west-1, eu-central-2, eu-south-2 and il-central-1 offer only rds-ca-rsa2048-g1, as the user guide says. - A blank CACertificateIdentifier on modify leaves the instance's CA. - --download skips a Region only on 403 or 404 and exits 1 on other failures. - Reuse regionFromArn, add a createDbInstance stub helper and import Executable in the tests. |
||
|
|
5c7c84374b |
feat(codeartifact): add DeletePackageVersions for every format (#6559)
Permanently removes one or more versions of a package, real assets included. Confirmed against the wire model: the request shape has no versionRevisions field at all (unlike UpdatePackageVersionsStatus/DisposePackageVersions), only a single expectedStatus applied to the whole batch, and expectedStatus itself accepts the full, unrestricted PackageVersionStatus enum. Deleting is allowed from every status, Disposed included: the User Guide is explicit that "the only action that can be taken on a package version that has been disposed is for it to be deleted." Unlike DisposePackageVersions, which keeps a tombstone record so DescribePackageVersion keeps answering Disposed, a deleted version is "no longer in the repository" at all: the generic record is removed outright and a container-backed version's status override is cleared rather than replaced, so DescribePackageVersion/GetPackageVersionAsset 404 on it afterward and the freed coordinate can be freely republished. Reuses deleteContainerBackedVersionAssets as-is for the real sidecar deletion, byte accounting, and Maven metadata.xml cleanup, since those are identical regardless of which action triggered them. |
||
|
|
4c55ec6b77 |
feat(sts): vend a signed web identity token for the calling identity (#6517)
GetWebIdentityToken is the last operation the pinned STS model publishes and Floci did not dispatch, which takes STS to 11 of 11. It answers "a signed JSON Web Token (JWT) that represents the calling Amazon Web Services identity", signed by STS and verifiable against the keys the issuer publishes. The issuer is IAM's. Outbound web identity federation mints one issuer URL per account, so the token names it as iss and the operation reads the switch behind it: while the feature is off the answer is OutboundWebIdentityFederationDisabledException, not the FeatureDisabled the IAM getter answers. SessionDurationEscalationException is the other refusal with a published trigger, for a caller on temporary credentials asking for a token that would outlive its own session, "beyond what was granted when the session was originally created". JWTPayloadSizeExceededException is modelled and nothing published says what the maximum payload is, so no size is invented here to refuse a request with. A temporary credential with no live session behind it is refused as expired rather than read as a caller that cannot be identified. IamEnforcementFilter answers ExpiredTokenException for one and it never reaches the operation, but with enforcement off, or in the window between that check and this one, the session lookup comes back empty and the caller would fall to the account root ARN this file hands an unresolvable caller, as GetCallerIdentity does. A token is not a request: its subject is signed and outlives the call, so a session already gone does not get one that speaks for the account, while an unknown long-term key keeps the stand-in. The filter's wording is shared rather than copied a second time. The declared constraints are read ahead of all of it, as #6402 put them elsewhere in this package: Audience required and 1 to 10 members of 1 to 1000 characters, SigningAlgorithm required at a fixed length of 5, DurationSeconds 60 to 3600 defaulting to 300, and Tags at most 50 with its keys and values held to their own lengths and pattern. A member sent empty is a member that is present, breaking its length rather than reading as absent, and a list member's violation names the index the request sent rather than the number it reads as, which is what #6478 settled. The claim layout is the IAM User Guide's. The standard OIDC claims sit at the top level, iss, aud, sub, iat, exp and jti, with the caller's ARN as the subject, and the custom claims are nested under the https://sts.amazonaws.com/ namespace the guide names: aws_account for the account the token was asked for, source_region for the region it was asked from, and the request's tags under request_tags. "All these claims may not be present in a token at the same time", so the organization, principal tag and session context claims the guide also lists are left out rather than invented, and request_tags is absent from a token whose request named none. The nesting is also what keeps a tag off a claim STS sets, a tag named exp being a key under request_tags rather than the claim that chooses the token's lifetime. Two answers are readings and docs/services/sts.md says so. The model publishes no enum for SigningAlgorithm, only the fixed length, so a five-character value that is neither RS256 nor ES384 is answered with this package's enum violation over the two values the reference names. The global endpoint refusal borrows the wording AWS publishes for AssumeRoot, the note for this operation giving none of its own. Signing goes through a new core.common helper rather than a third copy of the assembly: Cognito and EKS each already sign a JWT, and EksOidcService moves onto it here. ES384 signs through the JDK's P1363 variant, so the signature is the raw R || S pair JWS defines rather than the DER sequence a default ECDSA signer returns. Each account's key is minted on first use per algorithm and stored, so a restart does not invalidate a token already handed out. Eleven tests over the wire, including the claim set with the namespaced account and region, both signature shapes by their exact lengths, the tags arriving under request_tags rather than as claims of their own, the ceiling the caller's own session puts on a token, the refusal for a session already gone, and the constraints read while the feature is off. Beside them, a unit test verifies a minted token against the public half of the stored key for both algorithms, a length being no evidence of what was signed, and holds that one token's signature does not verify over another's claims; and the handler test takes the session ceiling to its own boundary on a fixed clock, where a token ending exactly with the session is issued, one ending a second later is refused, and nothing is minted on the refusal. What is not here is the other half: nothing publishes the verification key yet, so the discovery documents the issuer URL would host are not served, and the docs say that plainly. |
||
|
|
6b21aebdc3 |
feat(ram): support GetResourceShareAssociations (#6558)
* feat(ram): support GetResourceShareAssociations * test(ram): cover association listing through Java SDK * refactor(ram): share association visibility filter |
||
|
|
3053b35b84 |
feat(codeartifact): add UpdatePackageVersionsStatus and DisposePackageVersions (#6435)
Moves package versions between Published/Unlisted/Archived (UpdatePackageVersionsStatus) or permanently to Disposed with real asset deletion (DisposePackageVersions), for generic and every container-backed format. Both share the same all-or-nothing batch semantics, NOT_FOUND/MISMATCHED_REVISION/MISMATCHED_STATUS/NOT_ALLOWED error codes, and SKIPPED fallback confirmed against the User Guide's own worked examples. Container-backed formats (maven/npm/pypi/nuget) get a new in-memory status-override store, since none of their sidecars have a native status concept beyond existing-or-not; generic already had status/revision on its own record. GetPackageVersionAsset now 404s for Archived/Disposed versions (assets undownloadable per the User Guide), and ListPackageVersions correctly surfaces real Archived/Disposed/Unlisted data instead of the previously-unreachable filtering branch. Verified end to end against all four real sidecar containers, not just mocks. |
||
|
|
32663a24ad |
feat(iam): dispatch GetMFADevice, AcquireRole and GetRoleTemplateVersion (#6453)
The last three operations the IAM model publishes and Floci did not dispatch. All three can only ever answer NoSuchEntity here, and that is the argument for dispatching them rather than against it: a 404 both their API pages model beats the UnsupportedOperation 400 an undispatched action answers, which no SDK maps to anything for these operations. GetMFADevice reads a FIDO security key. The reference says of its serial number that "For this API, we only accept FIDO security key ARNs", and nothing in the IAM API creates such a device: CreateVirtualMFADevice is the only operation that mints one here and it mints an mfa/ device, so there is never a FIDO key to find. A virtual device's serial is refused the same way, deliberately, since answering with it would hand back a device AWS would not return for the same request. The page models NoSuchEntity and ServiceFailure and nothing else, so there is no validation answer to prefer over the 404. Role templates are AWS's own. The user guide has role manager using "AWS-managed role templates" and a role created from one with iam:AcquireRole and the template's ARN, and the model agrees from the other side: GetRoleTemplateVersion is the only operation that names a template and there is no create, list, update or delete, so nothing a client can call puts a template into an account. Both operations answer NoSuchEntity naming the ARN they were handed. RoleTemplateDisabled is the other refusal AcquireRole models and it is not this one: it reads "the specified role template is disabled", which is a statement about a template that exists. That this is a reading, and what would change it, is written into docs/services/iam.md rather than left in a commit message. The guide publishes the template ARNs but not their bodies, so a published body would turn those ARNs into answers and leave the 404 for every other, and RoleManager/Enabled, role manager's own switch, is a separate question this does not read. The declared constraints are read before the lookup, as #6402 put them elsewhere in this package: SerialNumber to serialNumberType's 9 to 256 and its pattern, UserName to userNameType whenever the request carries the member, a blank one included, the member being present whatever it holds, TemplateArn to arnType's 20 to 2048, the two minor versions to being integers, answering InvalidInput for a value that is not a number, and ReplacementValues to the 30 entries it declares. The ARN check is #6402's, read through one helper now rather than copied, and the member path validation messages spell is a helper too. role-template leaves ResourceArnBuilder.UNRESOLVED_TYPES, which is empty now. GetRoleTemplateVersion carries the template's ARN, so the type resolves like any other the request names, in the aws account rather than the caller's. AcquireRole stays on *, AWS's service reference publishing no action for it. Eleven tests. Five on GetMFADevice: the FIDO serial reported missing rather than unsupported, a virtual device refused and still listed afterwards, the serial's length and pattern as counted violations, a user the account does not hold reported instead of the device, and a blank UserName read as a value rather than as absent, which breaks both of userNameType's constraints when it is empty and its pattern when it is whitespace. Six on the templates: both operations' 404s, TemplateArn under its length and absent on each, a minor version that is not a number on each, and 31 replacement values refused where 30 reach the 404. The unresolved-types test lost a guard an empty map would fail and gained the claim that emptied it. |
||
|
|
4a95c1bb95 |
feat(ec2): support DHCP options lifecycle (#6428)
* feat(ec2): support DHCP options lifecycle * fix(ec2): validate DHCP options lifecycle edge cases * fix(ec2): reuse region-aware private DNS domain for DHCP defaults * fix(ec2): isolate DHCP options review regressions |