A TimeToLiveSpecification given as a boolean, a string or a list was
read as an absent block. A create reached CREATE_COMPLETE without TTL,
and an update from a template that declared the block turned TTL off.
CloudFormation fails both before the table is touched: "Property
[TimeToLiveSpecification] expected type: JSONObject, found: String",
or "found: JSONArray" for a list. Ref AWS::NoValue still leaves the
property out.
* fix(elbv2): add X-Forwarded headers to ALB requests as AWS does
An ALB forwarded client headers unchanged, so a target never learned the
client address and trusted whatever X-Forwarded-For the client sent. The
routing.http.xff_* attributes were stored but never read.
Apply routing.http.xff_header_processing.mode and
routing.http.xff_client_port.enabled on HTTP, WebSocket and Lambda targets,
and set X-Forwarded-Proto and X-Forwarded-Port from the listener connection.
ModifyLoadBalancerAttributes now rejects invalid values for both attributes.
Keep every line of a repeated request header when proxying, and use the last
value in a Lambda event's headers map, as the ALB guide describes.
Take the HTTP API $context.identity.sourceIp from the TCP connection instead
of the caller's X-Forwarded-For, which let a caller spoof it.
* docs(apigatewayv2): limit the X-Forwarded-For hop note to ALB listeners
An ALB adds or updates X-Amzn-Trace-Id before it sends a request to a target,
but Floci passed through only what the client sent. Generate a Root field when
the header is absent, insert or update a Self field when it is present, keep
other fields, and rewrite to a new Root field above 7 KB of request headers.
Close control-plane and streaming Docker clients through qualifier-matched CDI disposers. Verify generated bean destruction releases its owned idle eviction thread while preserving another client pool. Close direct producer fixtures.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
In the docker runner mode a command-runner.jar step running
hadoop-streaming, which "Submits an Hadoop streaming program. In the
console and some SDKs, this is a streaming step", or hadoop-lzo, the LZO
indexer, failed without running, as the image's hadoop had no MapReduce;
and a command's hadoop fs could not reach S3, its classpath having no
AWS SDK v2 and the image's EMRFS not being pointed at Floci.
Now a step's hadoop command, on its cluster:
- runs MapReduce in local mode: links to Spark's shaded Hadoop client,
the image's only copy of MapReduce, and to the jar Spark's own S3A
finds the AWS SDK in make up its MapReduce home, so they are on its
class path whatever HADOOP_CLASSPATH a command sets, and a copy of its
mapred-site.xml sets mapreduce.framework.name to local. The local job
runner names a job's -files and -archives by their path alone, which
the default file system, the cluster's HDFS, resolves, so its staging
folder is a link to the same path in the HDFS folder.
- reaches Floci's S3 through S3A, with the settings its spark-submit
gets, now one list for both, ahead of the cluster's HDFS and
core-site.
- logs to standard error when its log4j.properties is empty, as the
image's is, in the layout of the Management Guide's step log lines, so
a failed job's reason is in the step's stderr.
- runs hadoop-streaming from the jar the image has, where the image's
own hadoop-streaming names /usr/lib/hadoop-mapreduce, which it lacks.
hive-script and pig-script steps still fail without running.
Under IAM enforcement, Redshift Data API requests were checked on `*`,
so a grant scoped to a cluster or a serverless workgroup was refused
and a deny scoped to one never applied.
The Service Reference gives ExecuteStatement, BatchExecuteStatement,
DescribeTable, ListDatabases, ListSchemas and ListTables two resource
types: Redshift's `cluster:${ClusterName}`, which ClusterIdentifier
fills, and Redshift Serverless's `workgroup/${WorkgroupId}`. A
workgroup's ARN ends in the id Redshift Serverless gives it (its
workgroupId, "The unique identifier of the workgroup"; botocore's
WorkgroupNameString takes an ARN ending in workgroup/<uuid>), while a
request names it by WorkgroupName, "The serverless workgroup name or
Amazon Resource Name (ARN)". So the workgroup is a FOUND_BY type,
found by WorkgroupName.
FOUND_BY named a type by its members only where the rule had derived
a fill for the type to replace, as ResourceId fills a scalable target's
${ResourceId}. No member fills ${WorkgroupId}, so FOUND_BY now names
every FOUND_BY type the action acts on whose members the request has,
as its docstring already said. The Application Auto Scaling entries
are unchanged.
RedshiftDataResourceResolver, which resolves the target a request
runs on, now implements StoredResourceArns for redshift-data: it
gives the ARN of the workgroup a name or an ARN finds, through
RedshiftServerlessService.findWorkgroupByNameOrArn, which the
service's own name-or-ARN lookup now uses as well.
Redshift Data joins the table (12 operations, 1048 over 26
namespaces). The six operations above are checked on the cluster's
ARN or on the stored workgroup's, and on `workgroup/*` for a workgroup
there is none of; their SecretArn names neither. A request naming only
its SessionId stays on `*`, and so do CancelStatement,
DescribeStatement, GetStatementResult, GetStatementResultV2,
ListSessions and ListStatements, which the Service Reference gives no
resource type.
* fix(iam): match service-linked role name validation
Match the recorded AWS ValidationError for malformed AWSServiceName while preserving the documented length and character constraints.
Refs #6042 (item 1)
* fix(iam): align service-linked role validation
* feat(lambda-web): write the platform's own Date header on app responses in place of the app's
* test(lambda-web): check the Date header in the headers test on its function
* fix(timestream-influxdb): rediscover endpoints after reboot
Resolve the current container endpoint after Docker restarts, then use it for readiness and instance/cluster persistence, including failed readiness. Preserve preferred-network selection and existing resource ownership.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
* fix(timestream-influxdb): refresh all endpoints on member reboot
Publish the rediscovered shared-container endpoint through the owning cluster when RebootDbInstance addresses a cluster member. Preserve standalone instance updates and propagate success or readiness failure to the cluster and every member.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
* test(timestream-influxdb): cover both reboot entrypoints in one matrix
Parameterize shared cluster/member reboot assertions over the entrypoint and readiness outcome. Add the missing unhealthy cluster reboot case while preserving endpoint and member-state assertions.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
* fix(timestream-influxdb): retain effective network when restarting
Resolve the restart network through the same service, global and current-container fallback used at creation. Preserve aggregate endpoint propagation, readiness deadlines and host-mode port resolution.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
---------
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
* fix(acm): reissue the certificate on RenewCertificate
RenewCertificate on an issued private certificate now issues a new leaf
from the local CA under the same ARN, with a fresh key pair of the same
algorithm, so GetCertificate and ExportCertificate return material whose
X.509 validity matches DescribeCertificate's NotBefore/NotAfter.
Fixes#7070
* fix(acm): refresh attached consumers and store a new record on RenewCertificate
Renewal now replaces the stored certificate with a new record, as a re-import does, so an ExportCertificate racing it never pairs the old key with the new body, and notifies the reference providers after the ACM guard is released so attached ELB and CloudFront consumers pick up the renewed material. RequestCertificate and renewal share one helper that copies issued material onto the record.
* fix(dynamodb): refuse duplicate set members, empty sets and false NULLs in every item operation
* fix(dynamodb): read a NULL flag written as a string in any case
* fix(dynamodb): store a NULL flag written as a string as true and compare NULL values by type
* refactor(dynamodb): share the empty set and false NULL messages between both value checks
* fix(rds): report LicenseModel on DB instances
DescribeDBInstances and the Create/Modify responses now carry LicenseModel.
CreateDBInstance and ModifyDBInstance store a requested LicenseModel; when
none was given the engine default is reported (postgresql-license for
postgres, general-public-license for mysql/mariadb, license-included for
sqlserver).
* test(rds): reuse RdsRequests helpers in license model test
* feat(firehose): deliver Redshift COPY loads to a Serverless workgroup
A ClusterJDBCURL with a redshift-serverless host now resolves the workgroup in
the stream's account and region and loads through its runtime, with its
database and admin user. A URL naming another database fails the delivery
through the existing retry path. Provisioned delivery is unchanged.
* fix(firehose): route Redshift Serverless delivery through the workgroup proxy
Connect Firehose Serverless delivery to the workgroup's proxy endpoint (127.0.0.1:<proxyPort>)
instead of the internal PostgreSQL container, matching provisioned cluster delivery and
enabling S3CopySimulator to intercept COPY FROM 's3://...'.
* fix(firehose): drop managed admin secret override on proxy delivery
* fix(autoscaling): retry failed standby registrations
Retain Pending lifecycle and the ExitStandby activity until target-group and Classic load-balancer registration succeeds. Preserve deleted-load-balancer tolerance, initial-launch behavior and all current-main sparse-member regressions.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* fix(autoscaling): retain standby registration warnings
Warn before retryable registration failures escape, retain the exception cause, and register launches and returning instances before InService through the same helpers.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
---------
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
In the docker runner mode a step's HadoopJarStep.Properties, "A list of
Java properties that are set when the step runs. You can use these
properties to pass key-value pairs to your main function", were kept
but never applied, and of a cluster's classifications only
spark-defaults, spark-hive-site and spark-env reached its steps.
Now:
- A custom JAR step's Properties are system properties of the JVM its
main class runs in, through SPARK_SUBMIT_OPTS, each -Dkey=value in
single quotes as spark-submit's launcher reads them, after any Java
options a spark-env export puts there, so a step's own win. A
command-runner.jar or script-runner.jar step's would be its runner's
own JVM's, which Floci has none of, and a JVM's system properties do
not pass to a process it starts, so they go nowhere. The API sentence
is the only source; emr.md calls this Floci's reading.
- core-site, which will "Change values in Hadoop's core-site.xml file",
reaches Spark as spark.hadoop. settings ahead of spark-hive-site's,
as core-site.xml comes ahead of hive-site.xml, with spark-defaults
winning over both; a command's hadoop command gets it too, after the
cluster's HDFS settings in its core-site.xml copy, escaped for XML.
- spark-log4j2, which will "Change values in Spark's log4j2.properties
file", follows the log4j2.properties of the Spark configuration a
spark-env export of SPARK_CONF_DIR names, else the image's, in a copy
of the step's own, a later key winning: a Spark step with some runs
spark-submit after a wrapper that makes the copy, and a command's
wrapper does the same before its own changes, now from that exported
folder too, links followed. What is added starts on a line of its
own, as the image's log4j2.properties has no line break at its end,
and a value's leading spaces are escaped, as Properties.load would
skip them.
SparkJobRunner.Job gets coreSite and sparkLog4j2 components, which an
EMR Serverless run leaves empty.
npm's native registry route can now retain a missing package from a repository's own
public:npmjs external connection and serve it, instead of always 404ing, mirroring the
AWS-documented external-connection behavior already shipped for Maven (#6889) and NuGet (#7104).
Unlike Maven's GAV layout and NuGet's {id}/{version}/{filename} content route, npm's own real
wire protocol has no request shape that names one version: npm install <pkg>@<version> always
fetches the bare package's full packument first (confirmed against pacote's own source,
RegistryFetcher#packumentUrl, always the bare package path) and only picks the version out of
its own versions map afterward. So this does two things together, not just one:
- A bare packument read (the one every real npm install actually sends) merges the real
registry's own versions and dist-tags into whatever Verdaccio already knows locally, computed
fresh per request and never written to Verdaccio itself (its own publish protocol has no way
to record a version's metadata without that version's real tarball bytes in the very same
call, confirmed against a live container). Every newly-merged version's dist.tarball is
rewritten to this repository's own proxy URL under a deterministic <bareName>-<version>.tgz
shape; dist.shasum/dist.integrity are kept exactly as the real registry declared them, since
there is no real content yet to hash locally.
- A tarball download for a version not yet genuinely retained triggers the real fetch, the
same claim/fence/origin-tracking machinery Maven and NuGet already use (closing the same race
against a concurrent DeletePackageVersions/direct push), reusing CodeArtifactService's
already-generalized claimRetainedVersionOrigin/retainAssetUnderVersionFence methods directly.
New: NpmExternalConnectionClient (the outbound client for public:npmjs) and
CodeArtifactNpmExternalConnectionImporter (the merge and retention logic), wired into
CodeArtifactNpmDataPlane's existing raw proxy.
Deliberately scoped the same way Maven/NuGet's own base PRs were: no caching/TTL on the merge
fetch (a live check against the real registry on every packument read for a connected
repository, matching the same no-caching fidelity level Maven's own maven-metadata.xml merge
already ships with), and the documented but rarely-used single-version registry endpoint
(GET /<pkg>/<version>) is not specially handled, since real npm install never sends it either.
Update: fixed three issues Greptile's review caught, all specific to npm's own two-step
retention (a plain cache-miss asset fetch, as NuGet/Maven's retention already was, is not
enough here):
- retainAssetUnderVersionFence's own write was always the fixed RepositorySidecarManager#
storePackageVersionAsset call, which builds a minimal version document with no dependencies/
engines/scripts. Generalized it to take the actual write as a plain Runnable instead, so npm's
own call can reuse the real registry's full-form version document verbatim (the same
reuse-the-source-document treatment VerdaccioSidecarClient#copyPackageVersionAsset already
gives a version copied from another repository), fetched once, only when a version is
actually retained, via a new NpmExternalConnectionClient#fetchFullPackument. NuGet's own call
site wraps the exact same plain storePackageVersionAsset call it always made.
- Verdaccio always points a fresh package's dist-tags.latest at whichever version was retained
most recently (confirmed live, nothing a retention write sends can suppress it), so a plain
retention could silently move what an unpinned npm install or ListPackageVersions'
defaultDisplayVersion resolves to. Fixed on both sides of that same bug: the merge now only
lets an external dist-tag replace a local one that itself points at an externally-retained
version, and CodeArtifactService#listPackageVersions ignores preferredDisplayVersion the same
way when it names one.
- A retained version's readme was never captured, so GetPackageVersionReadme 404ed on it even
though the tarball existed; the full packument fetch above also captures the package's own
readme (confirmed live: it only ever lives at the top of the full packument, never per
version) the same way a native publish's own readme capture already works.
Verified two ways beyond the automated suite:
- A Docker-gated integration test retains a real package (is-even 1.0.0) from the real, live
npmjs.com, through a real Verdaccio sidecar: a bare packument read merges the real version in
without yet counting any bytes, a subsequent tarball fetch retains it and counts its bytes,
a refetch does not double-count, mixed-case-irrelevant upstream-block enforcement blocks both
the merge and the retention, a genuinely-missing package stays 404, the retained version's
EXTERNAL origin reporting is confirmed against the real sidecar, and its real dependencies/
engines and readme are confirmed readable back from the real sidecar afterward.
- Direct curl checks against the real registry.npmjs.org confirmed the exact packument/tarball
URL shapes this client builds, including the %2F-escaped scope separator the packument
endpoint specifically needs (unlike the tarball path, which uses a literal slash), and that
the abbreviated packument form carries dependencies/engines but not scripts or any readme.
Update: fixed a fourth issue from the same re-review, found once the three fixes above landed:
mergedPackument always fetched the real registry's abbreviated form, even when the real npm
client's own Accept header asked for the full one (the shape npm view <pkg> readme-style
commands use), so a package the merge had not yet retained anything for showed no readme at
all. The merge now honors that header, fetching the real full packument only when the request
actually asked for it, and copies its package-level descriptive fields (readme among them) in
the same never-override-local way everything else here already merges, with no change to the
hot npm install path's own abbreviated fetch.
Update 3: fixed a fifth issue from the same re-review: mergedPackument's own real registry
fetch is a genuine network round trip, and nothing held any lock across it, so a
DeleteRepository finishing its own cleanup while that fetch was still in flight let the later
ensureReady call start a fresh container under an id the delete had already released, one
nothing would ever release again. Added a re-check that the repository still exists right
after that fetch, before this method ever touches the sidecar. This narrows the window back
down to an ordinary check-then-act gap rather than one stretched out by a real network round
trip, not a full fix: VerdaccioSidecarManager's own beginUse/endUse are no-ops today (unlike
PypiserverSidecarManager's), so nothing here can fully close this yet. Filed #7204 to track
giving it real in-flight-use tracking as its own, cross-cutting fix.
Update 4: fixed a sixth issue from the same re-review: DisposePackageVersions deletes a
version's real Verdaccio content outright, so versions.has(version) alone could not tell a
disposed version apart from one never retained at all, and the merge could add a disposed
version straight back in from the real registry's own still-unaware listing, even pointing
dist-tags.latest at it. An unpinned npm install could then select it, only to have the
download correctly, but confusingly, fail. The merge now excludes any externally-named version
this repository has marked Archived or Disposed, reusing the same
requireContainerBackedVersionDownloadable check the native download route itself already
enforces.
* fix(cloudfront): read policy Name and Comment from the config root only
Cache and origin request policy configs nest <Name> elements (cookie,
header and query-string items). A flat first-match lookup stored the
first item name as the policy name when the SDK serialised those blocks
before the top-level Name.
* fix(cloudfront): keep policy Name and Comment text as sent
The direct-child lookup for cache, origin-request and response-headers
policy Name and Comment read XmlElement.text(), which the element tree
trims. A Comment of " note " came back as "note". XmlElement now also
carries the untrimmed text as rawText(), which directChildText uses;
text() stays trimmed for the S3 and CloudFront callers that match it
against enum values.
* test(cloudfront): cover padded policy Name and newline-padded Comment
* fix(rds): store the Tags and KmsKeyId of CreateDBCluster
CreateDBCluster ignored both. ListTagsForResource on a cluster created with Tags
returned none, DescribeDBClusters had no TagList, and it never returned a KmsKeyId,
so a caller that reads them back sees none of them. The Terraform AWS provider
then has an empty tags and tags_all in the state and, because kms_key_id differs
from the configuration, plans to replace the cluster on every run.
handleCreateDbCluster now reads Tags (the Tag and member forms, as the other RDS
create calls do) and KmsKeyId and stores them on the new cluster. DBCluster gets a
KmsKeyId of its own, separate from the master user secret's, and CreateDBCluster
and DescribeDBClusters return it, and the cluster's tags as its TagList.
* docs(rds): keep the addRolesToNewDbCluster javadoc above its method
applyCreateDbClusterOptions was inserted between the javadoc of
addRolesToNewDbCluster and the method, so that javadoc described the new method.
Each method now has its own.
* refactor(rds): tag a new DB cluster through addTagsToResource
* fix(ec2): keep a flow log's CloudWatch log group and default its destination type
CreateFlowLogs dropped LogGroupName, so DescribeFlowLogs never returned it and the
Terraform provider saw a perpetual diff. Store it (deriving it from a log-group ARN
LogDestination when only that is given), return it in DescribeFlowLogs, and default
LogDestinationType to cloud-watch-logs when a log group is supplied without a type.
* fix(ec2): only a CloudWatch Logs ARN implies a flow log's log group
A LogDestination was treated as CloudWatch whenever it contained
':log-group:', so an S3 prefix such as arn:aws:s3:::bkt/archive:log-group:x/
with LogDestinationType omitted became cloud-watch-logs and was never
delivered. Parse the ARN and require the logs service.
The CloudFormation update check defaulted an omitted LogDestinationType to
s3 while create now derives cloud-watch-logs from a log-group ARN, so an
unchanged stack update was rejected as a replacement. Both now go through
one effectiveLogDestinationType.
* fix(ec2): a logs ARN with no group name is not a CloudWatch flow log destination
logGroupFromArn returned an empty name for arn:aws:logs:...:log-group: (and log-group::*), so the destination type became cloud-watch-logs with a blank group. Treat a blank name as no group, so the type falls back to s3.
* test(ec2): use the shared InMemoryStorageFactory in the flow log CFN test
Replaces the hand-rolled StorageFactory mock with the existing test factory, which hands out the same account-scoped in-memory store.
* fix(docker): rebuild local helpers for daemon platform and recipe
Preserve the complete retained helper platform and recipe feature from fork #301 on current main. Rebuild foreign-platform or stale-recipe helpers, explicitly pull the native base, and retain the isolated Docker regression and existing workload launch-platform API.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* test(docker): isolate helper platform and reuse checks
Give foreign-platform fixtures the current recipe label and count real Docker build requests so cached image IDs cannot mask an unnecessary rebuild.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* test: share cached helper image fixtures
Reuse one cached-image stub and recipe hashing helper across helper-image and ECS proxy fixtures. Gate native helper execution on the shared Docker availability probe instead of an opt-in property. Preserve platform and actual build-count assertions. Addresses upstream review 5729804211.
Signed-off-by: Andre Kurait <akurait@amazon.com>
* test: restore shared base image after helper platform checks
Preserve the original base image tag through successful, skipped and failed helper-platform fixtures. Keep the requested Docker availability gate and the existing native-build and cache-reuse assertions.
Signed-off-by: Andre Kurait <akurait@amazon.com>
---------
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* fix(autoscaling): retain indexed instance mutation members
Use the existing indexed member parser for AttachInstances, DetachInstances and SetInstanceProtection. Keep all members for service validation before mutation, including after gaps. Preserve existing validation and protocol responses.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* fix(autoscaling): count actual detached instances
Keep every collected instance ID available to validation, but decrement desired capacity only for members actually detached. Cover repeated query values and ignored unknown IDs without changing the false decrement flag.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* test: consolidate Auto Scaling indexed instance fixtures
Cover all five instance-list actions with one sparse, large, repeated and ignored-key parameterized map. Preserve validation-before-mutation and repeated-detach capacity regressions. Addresses upstream review 5729806284.
Signed-off-by: Andre Kurait <akurait@amazon.com>
---------
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
In memory mode, or with prune-volumes-on-delete, deleting the last repository
removes the backing registry container and the next CreateRepository starts a
new one. Floci running in Docker reached the registry by container name, so
when the new container got a different IP the JVM's cached lookup kept
answering with the old address. Until it expired, DeleteRepository returned
500 and CreateRepository could wait long enough for the SDK to time out and
retry, which then failed with RepositoryAlreadyExistsException.
Use the address Docker reports for the container just started or adopted,
and only fall back to the name when none is known. EcrTest no longer needs to
keep a repository to avoid this.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* fix(redshift-serverless): ensure generated admin password contains uppercase, lowercase, and digit
- Dam bao mat khau ngau nhien sinh ra luon chua it nhat mot chu hoa, mot chu thuong va mot chu so, dap ung quy tac mat khau cua Redshift
* test(redshift-serverless): verify password complexity retry with deterministic candidates
- Bo sung test xac dinh (deterministic) kiem tra generatePassword bo qua cac candidate thieu chu hoa, chu thuong, chu so va chi tra ve khi du ca 3 dieu kien
- Tach generatePassword(Supplier<String>) de inject candidate trong test va tien bien dich cac Pattern kiem tra regex
In the docker runner mode an s3-dist-cp step, the Release Guide's way of
moving data "from Amazon S3 into HDFS where it can be processed by
subsequent steps", between buckets or back to S3, was FAILED without
running, and on the default TERMINATE_CLUSTER it ended its cluster with
errors. The EMR Serverless image steps run in has neither s3-dist-cp nor
the MapReduce it runs on.
Now a command-runner.jar step whose first argument is s3-dist-cp runs
Floci's own S3DistCp: a Python program, emr/s3-dist-cp.py, which the step's
command writes into the container and runs through spark-submit, copying
through Hadoop's file systems in Spark's JVM. The command wrapper gives it
what a Spark step gets: S3 paths in Floci's S3 and hdfs:// paths, and
those without a scheme, in the cluster's HDFS. It takes the options of
the Release Guide's table, --name=value or --name value, and -D
property=value:
- --src and --dest, a source folder's files keeping their folders;
- --srcPattern and --groupBy matched against the whole path; --groupBy
concatenates the files whose groups give the same name into one file
named by them, and refuses an expression with no group, as the guide
says S3DistCp does; --targetSize breaks a larger group into parts
numbered before the extension ("myfile0.gz, myfile1.gz"); without
--outputCodec a group keeps the compression its files share, named
with that codec's extension, or has none when they differ, each file
decompressed so the group is one stream;
- --outputCodec (gzip, gz, lzo, lzop, snappy, none) through Hadoop's
codecs, each source decompressed by its own extension;
- --deleteOnSuccess, deleting the files but not their folders, as AWS's
"Seven tips for using S3DistCp" says;
- --outputManifest, --previousManifest, --requirePreviousManifest and
--copyFromManifest, the manifest gzipped JSON lines of path, baseName,
srcDir and size, as that post shows them;
- --s3ServerSideEncryption, --storageClass, --disableMultipartUpload and
--multipartUploadChunkSize as S3A's settings; --numberFiles,
--startingIndex, --srcPrefixesFile and --appendToLastFile, the last
through a copy renamed over the file, as neither S3 nor the cluster's
HDFS appends in place. The copy has a name of its own and goes if the
writing fails, and the file steps aside, under a name of its own too,
until the copy has taken its place, coming back if it cannot, so a
failed append leaves it as it was. --s3Endpoint is ignored, S3 being
Floci's.
--requirePreviousManifest takes true or false, after = or as the next
argument, and alone is true, its default. A --srcPrefixesFile line ending
in / names that folder alone, its slash kept though Hadoop's Path drops
it; any other is a prefix as S3 lists one, logs/day taking in
logs/day-old/.
A bucket name with an underscore fails the step, as S3DistCp "does not
support" one, and so does a copy Hadoop fails, leaving what was copied.
A copy that would write two files to the same path, the manifest
included (a.log and a.log.gz with --outputCodec=gzip), a file over one
of its own sources, as with the same --src and --dest, or a file outside
--dest, through a .. in a manifest's baseName or in --outputManifest
(Hadoop's paths resolve it), or a file with no name, from a --groupBy
whose groups matched nothing say, fails before it writes anything. emr.md
says what is Floci's own reading: the grouped file's folder,
--numberFiles' naming, a group's compression without --outputCodec and
that refusal.
Under IAM enforcement, Application Auto Scaling requests were checked on
`*`, so a grant scoped to a scalable target was refused and a deny
scoped to one never applied.
A scalable target's ARN ends in a unique id the service assigns,
`scalable-target/<id>` ("The unique ID ... is a value assigned by
Application Auto Scaling to the scalable target"), which the Service
Reference names ${ResourceId}, while requests name the target by
ServiceNamespace, ResourceId and ScalableDimension. Read as the table
reads other services, ResourceId (`service/<cluster>/<service>`) would
have filled that id, so the namespace was left out until the table could
look the ARN up.
The generator's new FOUND_BY gives a type whose ARN is all an id its
service mints, with the members a request names it by. An operation
whose request has them all names the type by them (`find`), generated
rather than corrected, and the reader asks the service for the ARN they
find through StoredResourceArns, the lookup EventBridge's connections
already use, or else checks the ARN with its id open, as for a create.
StoredResourceArns.find now takes the values a request names the
resource by, in the table's order: one name for EventBridge, the three
members for Application Auto Scaling, whose service now implements it
from the store its handlers read. A member left out or given a JSON
null names none, as the handler reads it.
Application Auto Scaling joins the table (14 operations, 1036 over 25
namespaces): RegisterScalableTarget, DeregisterScalableTarget,
PutScalingPolicy, DeleteScalingPolicy, PutScheduledAction and
DeleteScheduledAction are checked on the target's stored ARN, and a
RegisterScalableTarget registering a new one, its tags included, on
`scalable-target/*`; TagResource, UntagResource and
ListTagsForResource on the ARN their ResourceARN gives; the Describe
operations and GetPredictiveScalingForecast on `*`, as AWS checks them.
`arnType`'s pattern ends in a five-digit escape, the U+10000 to U+10FFFF
range, where Java reads a backslash-u escape as exactly four digits and takes
the rest as literals. Compiled as the model writes it, that range became the
character U+1000, a literal zero, a hyphen, U+10FF and two literal Fs, so the
character class gained a range from `0` to U+10FF: it refused every
supplementary character the model admits and admitted the C1 controls it
excludes, U+0081 among them. Every member the shape resolves to was answered
the wrong way round: `RoleArn` on the three assume-role operations,
`PrincipalArn` on the SAML one, each entry of `PolicyArns` on those three and
on `GetFederationToken`, `TaskPolicyArn` on `AssumeRoot` and the
provided-context ARN on `AssumeRole`.
Each wide escape is read as the code point it spells now, which is what the
model means by it, written in Java's own form by one object that both
constraint checks compile their patterns through. `arnType` is the only shape
in any of the 28 vendored files carrying such an escape, so nothing else
moves, and a run of five or six digits naming no code point is left as the
model wrote it.
`MinimumSessionTokenSize` is published on six operations and was materialized
on one. `AssumeRoot` minted a token of the size asked for while the other five
minted 200 characters whatever the request sent, so the member was validated
and then ignored. All six mint their token through one writer now, which keeps
the floor at the 200 this emulator mints when a request asks for less, since
that is what a minimum asks for. `GetDelegatedAccessToken` models no such
member and keeps the 200 on its own.
`violation(String)` goes with them: wave 4 took out the three hand-written
checks that called it, and nothing has called it since.
`docs/services/sts.md` carries both readings.
* fix(dynamodb): check every number in an item request first and read its exponent as a long
* fix(dynamodb): read only the members an item operation has, each at the stage DynamoDB reads it
* chore(dynamodb): pass each request member to the number check and walk the values with plain loops
Preserve every positive indexed standby member for validation before mutation. Reuse the existing capacity-target parser and sort numeric indexes without integer conversion. Preserve accepted namespace assertions and current main behavior. Sparse AWS index acceptance is not claimed.
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
* fix(elbv2): relay TCP listeners without HTTP parsing
Forward raw TCP traffic and TLS passthrough to registered targets while preserving per-connection routing. Cover the data plane through AWS SDK integration tests and document dedicated-port limitations.
Refs #5870
* test(elbv2): make TCP data plane test cleanup resilient to partial failures
* refactor(elbv2): share target selection helpers between TCP and HTTP paths
Extract targetCandidates and pickRoundRobin to remove the duplicated
healthy-or-registered fallback and round-robin pick from the TCP relay
and HTTP forwarding paths, unifying both on the floorMod counter that
cannot go negative.
* fix(elbv2): honor listener tcp idle timeout and park colliding listeners
Use tcp.idle_timeout.seconds attribute dynamically in the TCP relay tunnel, and register colliding listeners on in-use ports as parked with a warning, promoting them once the active listener is removed.
* fix(elbv2): validate tcp idle timeout range and reuse timeout parser
* fix(elbv2): unify parse failure and range check in listener attribute validation
IAM enforcement matched a REST request's action rules and built its
resource from the request URI as UriInfo gives it, where an encoded dot
segment such as %2E%2E is still encoded and consecutive slashes are
already collapsed. The router matches on the request's normalized path,
which decodes the dots and removes the dot segments, or, after a filter
rewrites the request URI, on the new path. A path written with %2E%2E
therefore reached one operation and resource while IAM checked another:
- GET /2015-03-31/functions/x/%2E%2E/fn reached GetFunction on fn, but
matched no Lambda rule and passed as an unknown action, so a deny on
lambda:GetFunction did not apply.
- GET /restapis/<id>//%2E%2E/stages reached the stages of <id>, but was
checked against ::/restapis/stages.
IamActionRegistry.rawPath and routedPath now read the path the router
matched from the RESTEasy Reactive request context, and the
ResourceArnBuilder branches that read the decoded path take it decoded
from the same place. A synthetic context without that request context
keeps the UriInfo reading. S3 keeps matching the path as sent, where
/bucket//key names the key /key.
Closes#7189
* fix(lambda-web): write the day with two digits in the date header of the platform pages
The platform pages and the 414 write the day of their date header with
two digits on AWS, as in Sun, 01 Nov 2026. RFC_1123_DATE_TIME writes 1.
* refactor(lambda-web): write the Date header of the metadata server with platformDate