Pig's download from the first URL that gives it with its checksum, and the archive of what it runs from, move into
ApacheDistribution, which an application's layout and checksum algorithm parameterize, so HBase and ZooKeeper can be
downloaded the same way. Pig's distribution, messages, setting and image name stay as they were.
Lightsail was one of the namespaces the request-resources table left unread ("a later batch"), so every request of
it was checked on *: a grant scoped to an instance's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. lightsail joins the table now, so each request is checked on the resources
the Service Reference gives its action, read from the request.
A Lightsail ARN carries an id the service mints (Instance/${Id}), while a request names the resource by its name, so
the table asks the service to find it. LightsailStoredResourceArns answers the caller's instance, disk, static IP or
key pair of the name a request gives (instanceName, diskName, staticIpName, keyPairName) in the request's Region, as
the ARN Lightsail stores for it (LightsailService.findArn), and the tags Lightsail keeps on the resource an ARN names,
read in the account and Region the ARN names without moving it and matched on the whole ARN
(LightsailService.storedTags), which an aws:ResourceTag condition reads.
Both read the store in place, a resource stored before keys carried the account included: findArn through
AccountAwareStorageBackend.readInAccount, and storedTags through readAllInAccount, a new scanning counterpart of
readInAccount that also finds the default account's pre-multi-account entries, each read where it is. DMS's
storedArn, which carried the same scan inline, uses it too.
A tag call is checked on its resourceArn; one naming the resource by its resourceName alone, the reads (GetInstance,
GetDisk and the like) and the creates are checked on *, as the generated table reads them.
IamRequestResourceEnforcementIntegrationTest checks that a grant on one instance's ARN reboots the instance a
request names by its name and refuses another, and that an aws:ResourceTag condition reads the tags of the instance a
stop names. LightsailStoredResourcesTest checks each lookup against another Region, type, name and a type Floci keeps
none of, and the stored tags of an instance and a key pair against another account, Region, type, service, id or no
ARN, and that both find an instance stored before accounts without moving it. AccountAwareStorageBackendTest checks
readAllInAccount.
The disabled-MQTT integration test checks the configured loopback listener with TcpListenerProbe.accepts, keeping its 250 ms connect timeout, and reports the listener's address if it accepts a connection.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
IMDS now answers the network/interfaces/macs paths from a live view of the registered instance's account and region, read under the attachment lock: per-interface identity, primary and secondary IPv4 addresses, security groups, subnet and VPC CIDRs and the existing IPv6 fields. Detached interfaces, unknown MACs and absent fields answer 404, IMDSv2 token and instance isolation still apply, and saved instances without an owner fall back to the default account. The old per-field IPv6 handlers and MAC listing are replaced by the shared view, and resource reads share an account-and-key getForOwner overload.
Closes#8318
Each pair of invited-user rejection tests added in #10186 is now one parameterized test over ConfirmSignUp and AdminConfirmSignUp. Both invocations still check the NotAuthorizedException message, that the user stays in FORCE_CHANGE_PASSWORD and that no PostConfirmation trigger fires.
The source test already advances the clock and drives the ingestion ticks. Drive the final flush before reading S3 so the assertion can run immediately.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
The MQTT lazy-start suites check the listener with TcpListenerProbe.accepts before endpoint discovery and thing creation and after each starts the broker, and the WebSocket suite after its first upgrade, keeping the 250 ms, 2 s and 1 s connect timeouts. Each assertion names the loopback listener if its state is unexpected.
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Floci minted a Lightsail resource's ARN from its name (arn:aws:lightsail:<region>:<account>:Instance/web), while AWS
mints an id for it: the Lightsail API Reference gives an instance's ARN as
arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE, and a key pair's, a static
IP's and a disk's the same way, and the Service Authorization Reference writes every Lightsail type as <Type>/${Id}.
baseResource now mints a UUID for each instance, disk, static IP and key pair it makes, so an instance made again
under a name a deleted one had gets an ARN of its own, as on AWS. A request still names a resource by its name, and a
tag call by its name or by the stored ARN, which TagResource and UntagResource already matched on the whole ARN. A
resource stored before keeps the ARN it was made with.
This is the mint the request-resources table needs before Lightsail joins it: its rows find a resource by the name a
request gives and check it on the ARN Lightsail stores.
LightsailResourceProviderTest checks that each of the four types' ARNs carries a UUID after its type, that an
instance made again under a deleted one's name gets a new ARN, and that a tag call naming that ARN tags it;
LightsailIntegrationTest checks the ARN GetInstance answers.
WAF v2 was one of the namespaces the request-resources table left unread ("a later batch"), so every request of it
was checked on *: a grant scoped to a web ACL's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. wafv2 joins the table now, so each request is checked on the resources the
Service Reference gives its action, read from the request.
A request giving an ARN member (ARN, ResourceARN, ResourceArn, WebACLArn) is checked on the resource it names, as
regional/<type>/<name>/<id> or global/..., the ARNs WAF v2 mints. UpdateWebACL and UpdateRuleGroup name their
resource by a lock token, which the table reads through LockToken: WafV2StoredResourceArns answers the caller's web
ACL, IP set, regex pattern set or rule group whose current token it is, of either scope the request's Region reaches,
the one the handler checks the token against (WafV2Service.lockHolder). WafV2Resource declares the getLockToken each
model already has. It answers the tags WAF v2 keeps on the resource an ARN names, read in the account, Region and
scope the ARN names without moving it and matched on the whole ARN (WafV2Service.storedTags), which an
aws:ResourceTag condition reads.
A request naming a resource by its Name, Scope and Id alone, and CreateIPSet and CreateRegexPatternSet, are checked
on <Scope>/<type>/*/*, the scope as the request spells it (REGIONAL or CLOUDFRONT) while WAF v2 mints regional/ and
global/, and CreateWebACL and CreateRuleGroup on *, as the generated table reads them.
IamRequestResourceEnforcementIntegrationTest checks that a grant on one web ACL's ARN lets an update giving its lock
token through and refuses the update of another, and that an aws:ResourceTag condition reads the tags of the web ACL
a tag call names. WafV2StoredResourcesTest checks the stored tags of a regional web ACL and a global IP set against
another account, Region, kind, service or no ARN, and the lock holder of either scope against another Region's
regional resource, another account's token and a replaced one.
Wait for the loopback listener to refuse connections before starting the next test or restarting the broker. Reuse the TCP probe in the MQTT and WebSocket suites and fail if the listener stays open.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
UpdateAlias with RoutingConfig {"AdditionalVersionWeights": {}}, or with a RoutingConfig that has no weights at all (what the Terraform AWS provider sends when a routing_config block is removed), was treated like an omitted RoutingConfig, so the alias kept its old weights. Both forms now clear the weighted routing; an UpdateAlias that omits RoutingConfig still leaves the weights unchanged, and weights that are not an object are refused with InvalidParameterValueException.
Closes#7890
Use bounded waits for HTTP pipeline results, approval notifications and execution events. Keep the polling intervals, report timeouts by operation and return the response that satisfied each wait.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
The payment cryptography guide now publishes the AS2805 cryptogram's construction: "HDC2" || IV || TDES-CBC body || HMAC-SHA256 tag, the two derived keys and their labels, the first-byte variant, the raw check value of the original key and the algorithm name in the tag. A test reads a cryptogram the way another producer would, recomputing the tag and decrypting the body under the published labels, and checks the carried key and its check value.
Closes#10207
AdminConfirmSignUp confirmed an AdminCreateUser invitee in FORCE_CHANGE_PASSWORD, bypassing the first password change. AdminConfirmSignUp and ConfirmSignUp now share requireUnconfirmed with ResendConfirmationCode, answering NotAuthorizedException "User cannot be confirmed. Current status is X" under the user lock, before any code is consumed, the status changes or PostConfirmation fires.
Closes#10178
Organizations was one of the namespaces the request-resources table left unread ("a later batch"), so every request
of it was checked on *: a grant scoped to an account's or an OU's ARN never matched, a deny scoped to one never held,
and an aws:ResourceTag condition read nothing. organizations joins the table now, so each request is checked on the
resources the Service Reference gives its action, read from the request.
An Organizations ARN carries the organization's id beside the id a request gives
(account/o-<organization>/<account id>), so the table fills one variable of it and asks the service for the rest.
OrganizationsStoredResourceArns finds the account, OU, root or policy a request names by its id alone in the caller's
organization, as the caller's handler finds it, and a handshake where the caller sent it or receives it: the account
it invites, any account for an invitation by email naming none, which may claim it, and each member for one enabling
all features, as AcceptHandshake lets them act on it. It answers the tags Organizations keeps on an account,
root, OU, policy or resource policy, matched on the whole ARN without moving it, which an aws:ResourceTag condition
reads. The lookups of an OU or a policy by its id in an organization move into organizationalUnitIn and policyIn,
beside accountIn, which DescribeOrganizationalUnit's and DescribePolicy's handlers and the new lookups share.
An organization's resources belong to its management account, so a member's request on one is judged across
accounts, the organization's resource policy deciding beside the member's own policies, as the existing
OrganizationsResourcePolicyProvider already supplies it. A handshake's recipient acts on it on its own policies: an
invitee belongs to no organization, and AcceptHandshake and DeclineHandshake are no actions a delegation policy grants
(the Organizations User Guide's supported delegation policy actions). So a handshake the caller receives is reached in
the management account (reachedInItsAccount), as a RAM invitation is, and the provider supplies no delegation policy
for it.
TagResource, UntagResource and ListTagsForResource, and the calls naming a parent or a target by its id (ListChildren,
ListPoliciesForTarget), are checked on *, and AttachPolicy and DetachPolicy on the policy alone, as the generated table
reads them.
IamRequestResourceEnforcementIntegrationTest checks, in an organization of its own, that a grant on one account's ARN
reads it by its id and refuses another, that an aws:ResourceTag condition reads the tags of an OU, that a member's
read of an OU is refused on its own grant alone and allowed where the organization's resource policy grants it too,
and that the account the organization invites reads the handshake on its own policy naming the handshake's ARN, with
that resource policy in place, and is refused on another. OrganizationsServiceTest checks each lookup for a member,
the management account, an outsider, an invitee, a claimant of an invitation by email and the members receiving a
handshake enabling all features, and the stored tags of each kind, the resource policy among them, against another
management account, organization, kind or service.
Poll SearchIndex for the disconnected state after the local MQTT client disconnects. Keep the five-second deadline and identify the thing if the index never reports the change.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
The V2 conditions, GitHub source and retry/rollback suites now read GetPipelineExecution through one PipelineExecutionWaits helper and wait on it with Awaitility, replacing the V2 suite's sleep loop. Retry and rollback still wait for the worker to leave activeRuns before the next operation; each suite keeps its own deadline.
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Network Firewall was one of the namespaces the request-resources table left unread ("a later batch"), so every request
of it was checked on *: a grant scoped to a firewall's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. network-firewall joins the table now, so each request is checked on the
resources the Service Reference gives its action, read from the request: a firewall or a firewall policy by its ARN
or by the name its ARN ends in (firewall/<name>, firewall-policy/<name>, as Floci mints them), a rule group by its ARN,
and a tag call on its ResourceArn. A rule group named by its name and type alone is checked on *, and CreateRuleGroup
on the rule group its SourceMetadata.SourceArn names or else on *, as the generated table reads them.
The generator stopped on network-firewall. with_through reads CreateFirewall's VpcId as naming a firewall, as the
model's VpcEndpointAssociation structure holds a VpcId beside a FirewallArn, and with_made then marked that through
row made, a key the table's own check refuses on a through row. A resource a create names through another member
exists already, as one it names by its ARN does, so with_made no longer marks a through row; no other namespace's rows
change. The VpcId row stands as generated: Network Firewall answers no through lookup, so it adds no resource.
NetworkFirewallStoredResourceArns answers the tags Network Firewall keeps on the firewall, firewall policy or rule
group an ARN names, read in the ARN's account without moving it, which an aws:ResourceTag condition reads. It finds
nothing: the table builds a firewall's or a policy's ARN from its name, the ARN Floci mints.
IamRequestResourceEnforcementIntegrationTest checks that with no grant a firewall's read is refused, that a grant on
one firewall's ARN reads it by its name and by its ARN and refuses another, that a deny on one refuses it beside an
allow on every resource, and that an aws:ResourceTag condition reads the tags of a firewall and of a firewall policy a
tag call names. It also checks that a grant on one rule group's ARN reads it and refuses another, and the same rule
group named by its name and type, and that CreateFirewall is refused on a grant on every firewall alone and runs with
one on the firewall policy it names beside it. NetworkFirewallStoredTagsTest checks the stored tags of each kind, in
another account too.
The nine background runtime-restore hooks (Amazon MQ, DocumentDB, ElastiCache, ElastiCache Memcached, Kinesis Analytics, MemoryDB, MWAA, Neptune, OpenSearch) now extend one BackgroundRestoreStartupHook base and keep only their own name, order, enabled flag, restore call and failure message. The base logs failures under EmulatorLifecycle's category at error level with the stack trace; MemoryDB and the two ElastiCache hooks override the logging so every line stays as it was, ElastiCache using the parameterized warnv form. A unit test of the base covers a disabled service, a successful restore, a restore that does not block startup, a logged failure, a synchronous throw that fails startup, and an overridden log.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
restoresEksClustersOnlyAfterALateImdsStartCompletes runs onHttpStart on its own thread and waits until it parks on the IMDS join instead of holding the start back with Thread.sleep. LogCapture.listenFromThisThread hands each record to a listener, so recordLifecycleLog no longer copies its handler. LifecycleHookDiscoveryIntegrationTest checks the hooks CDI discovers and that creating a startup or post-HTTP hook creates no service ahead of its step.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Now that the core boundary allowlist must stay empty, the allowlist file, its stale-entry test and the allowlist lookup can no longer change any outcome. Drop them and rename the check to coreBoundClassesReferenceNoAwsServiceCode; its failure message now points at giving the class a seam, or taking it off core-bound.txt.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
The ElastiCache metrics reference gives system.network.bandwidth.limit
as a vended Gauge in By/s: "The baseline network bandwidth for the
node's instance type. The limit is the same in each direction and
applies to each direction separately."
regen_elasticache_otel_metrics.py now also reads the user guide's
"Supported node types" page. It copies the baseline bandwidth in Gbps
of each node type its "Current Generation (Valkey)" tables list into
the vendored file. Only that section is read: the Memcached section
gives cache.r5.12xlarge 20 Gbps where the Valkey and Redis OSS
sections give 12.
The table converts each baseline to bytes a second, at 125000000 per
Gbps. A node emits the baseline of its group's node type, with no
attribute but valkey.role. A node type the page does not list for
Valkey emits none.
Closes#7030
The ElastiCache metrics reference gives system.network.io.rate and
system.network.packet.rate as exponential histograms: "The interface is
sampled once a second, and each datapoint is the distribution of those
per-second rates".
Each running node's container is now sampled through its Docker stats
stream, which sends a sample about once a second. Each sample and the
one before it give the bytes and packets per second in each direction,
summed over the container's interfaces. A rate metric's data point
drains the rates sampled since its previous one: on the minute when
vended, on every quarter when selected. A node that misses a tick
leaves its rates to its next data point.
The OTLP model Floci emits its own metrics through gains an exponential
histogram instrument. Values are bucketed at the greatest scale, from
20, that holds them in 160 buckets, with zeros in the zero count, and
emitted with delta temporality. The table now maps ExponentialHistogram
to that instrument.
EcsContainerManager turned two Docker stats samples into receive and
transmit byte rates with three private helpers: a counter summed over
every interface, its movement between the samples, and the seconds
between their read timestamps. ElastiCache's OpenTelemetry network
rates need the same from its nodes' samples, bytes and packets alike.
They move to core.common.docker.DockerStatsNetworks, unchanged, and
EcsContainerManager calls them there.
The ElastiCache metrics reference lists system.* and process.* metrics,
"reported by the operating system: system.* metrics describe the host as
a whole, and process.* metrics describe the Valkey process
specifically". Floci emitted none of them.
When a metric read from them is due, the publisher reads the kernel's
own files in the node's container with cat, run without a shell: the server process's
/proc/<pid>/stat, for the process id INFO gives, /proc/meminfo and
/proc/net/dev. NodeHost reads from them the major page faults, the
memory available without swapping, the swap in use, and the bytes and
packets each way on every interface but the loopback. process.cpu.time
is the main thread's, from INFO's used_cpu_user_main_thread and
used_cpu_sys_main_thread, as the page reports only the main thread.
system.network.allowance_exceeded is 0 for each reason, since Floci
sets no allowance on a node's network. A node whose host cannot be
read, as in an image with no cat, still emits its other metrics.
EngineNode carries the container id, and ElastiCacheContainerManager
reads the files. The network rates and the bandwidth limit come in
later parts.
The Service Reference gives Create, Get, Update and
DeleteResourceMetricsConfiguration the condition key
cloudwatch:ResourceArn, which Floci never put in the request context, so
an Allow scoping them with ArnLike on it allowed nothing and a Deny
conditioned on it denied nothing.
regen_request_condition_keys.py opts cloudwatch in, reading the key from
the ResourceArn member each request carries, as it reads redshift:DbUser
from DbUser, and request-condition-keys.json is regenerated. botocore
models CloudWatch in smithy-rpc-v2-cbor, which the request condition
reader did not read; it now reads such a namespace's request in the
protocol it arrives in, a Query form, or a JSON or CBOR body, as
CloudWatch takes all three.
A resource handler's model validation checks a list's minItems, maxItems
and uniqueItems as it checks a string's length and pattern, so AWS fails
an AWS::CloudWatch::ResourceMetricsConfiguration with two
MetricSelections before anything is configured. Floci vendored only the
string constraints, so such a template reached the service, and the
OTelEnrichment provisioner checked uniqueItems by hand.
regen_cfn_property_types.py now vendors minItems, maxItems and
uniqueItems on every list, with --check anchors for the CloudWatch lists,
and cfn-property-types.json is regenerated (no other drift).
CfnPropertyTypes.HandlerReader checks them with the schema validator's
messages and order: too few, too many, then two the same, ahead of the
list's items. "Model validation failed (#/MetricSelections: expected
maximum item count: 1, found: 2)". Items are compared once intrinsic
functions are resolved and values converted. The ECS handler, which
already takes members the schema does not declare, checks none of them.
The OTelEnrichment provisioner's own uniqueness check is removed.
Items are keyed by their JSON with sorted members, not held in a set of
nodes, which slows to comparing each item with every colliding one when
a template makes their hashes collide. S3CfnProvisioner's uniqueness
check now shares this one.
Under enforcement a REST route no vendored model names runs unchecked, and DLM was among them: any caller could
create, read, update or delete a lifecycle policy and read or change its tags with no permission at all. DLM's model is
vendored now (regen_rest_routes.MODELS: dlm), so each request is checked as its operation's action, and dlm joins the
generated tables of request resources, passed roles and tags on create: the tag routes on the policy their path's ARN
names, the role CreateLifecyclePolicy and UpdateLifecyclePolicy pass in ExecutionRoleArn, and the tags a create
carries, which need dlm:TagResource.
The routes naming a policy by its PolicyId (GetLifecyclePolicy, UpdateLifecyclePolicy, DeleteLifecyclePolicy) are
checked on *, as the generated table reads them: a policy's ARN is policy/${ResourceName}, a name variable, which the
rule's compatible() keeps an id member from filling. CreateLifecyclePolicy's tags are checked on the policy the table
fills from DefaultPolicy, and on * when the request leaves it out.
DlmStoredResourceArns answers the tags DLM holds on the policy an ARN names, read in the ARN's account and Region by
the id it ends in without moving it and matched on the whole ARN, which an aws:ResourceTag condition reads. A namespace
the table reads is served on its tag routes only at the ARN its path encodes, so DlmIntegrationTest sends the ARN
encoded, as the SDKs do, and docs/services/dlm.md says so.
IamRestRouteEnforcementIntegrationTest checks that with no grant a policy's tags are refused, that a grant on one
policy's ARN reads them and refuses another's, that a deny on one policy's ARN refuses it and leaves another, that an
aws:ResourceTag condition reads a policy's tags, that GetLifecyclePolicy is checked on *, and that a create needs
iam:PassRole on its execution role and dlm:TagResource for the tags it carries.
The AWS::CloudWatch::OTelEnrichment resource schema says the service
"rejects more than one selector for the same namespace within a
direction". Floci stored both selectors, so IncludeFilters naming
AWS/SQS twice started enrichment with a filter AWS refuses.
StartOTelEnrichment and UpdateOTelEnrichment, over Query, JSON, CBOR and
CloudFormation, now refuse such a list with ValidationError (400), after
the model's constraints and the combined cap of 100 selectors, and
change nothing. AWS quotes no message for it, so the message is that
schema's own sentence. Namespaces match exactly and case-sensitively,
and one namespace may still sit in both lists, where ExcludeFilters
wins.
A CloudFormation rollback puts back the filters a failed update replaced
through OTelEnrichmentService.restore, which skips these checks, as the
filters were accepted when written: an enrichment an older Floci stored
still rolls back, as PipesService.restorePipe does for a pipe.
The CloudWatch Query handler read most lists by counting up from
member.1 and stopping at the first index the request left out, so
AlarmNames.member.1 and AlarmNames.member.3 deleted only the first
alarm, and a datum's third dimension, a GetMetricData query numbered 3
after 1, or an alarm metric numbered 2 were dropped without a word.
Every list now reads through AwsQueryLists, which takes every index the
request numbers, in order: Statistics, AlarmNames, AlarmTypes, TagKeys,
DashboardNames, Names, the alarm actions, Tags, dimensions, metric data
queries, alarm metrics, stream filters and statistics configurations. A
member without its key field is skipped rather than ending the list.
A list nested in each member is read from that member's own keys, which
AwsQueryLists.keysByMember groups in one pass, so a large request is not
scanned again for every member.
IAM reads the request the same way, so it checks what the handler acts
on: RequestResources reads a CloudWatch form's lists past a gap, as its
handler does, while ELBv2's stops at the first missing index, as its
handler does; and TagOnCreate reads CloudWatch's Tags through
AwsQueryLists, so a tag past a gap is a request tag, and a policy
requiring it no longer refuses an alarm that gets it.
Wait through queued and running states in the test thread. Report the actual terminal result as soon as the query finishes.
Co-authored-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Use the existing bounded socket probe to poll the IPv4 listener. Keep the startup deadline and include the port in a timeout.
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MQ was among them: any caller could
list, create, describe, reboot or delete a broker with no permission at all. MQ's model is vendored now
(regen_rest_routes.MODELS: mq), so each request is checked as its operation's action, and mq joins the generated
tables of request resources, passed roles and tags on create: a broker by the id its path gives, a configuration by
its id, and the tags a create carries, which need mq:CreateTags on the broker of the name it gives. The Service
Reference passes a role to mq.amazonaws.com on CreateBroker and UpdateBroker, which the rule reads from
LdapServerMetadata's roleName and userRoleName by their names. AWS gives LDAP metadata to ActiveMQ brokers alone, which
Floci does not create, and Floci serves no UpdateBroker, so the reading reaches no request Floci serves.
A broker's ARN is broker:${BrokerName}:${BrokerId}, and MQ's requests name a broker by its id alone, so the table
fills only BrokerId, and the reader asks the namespace's service for the resource of the one variable a request fills,
as it does for any type. AmazonMqStoredResourceArns answers it with the caller's broker of the id in the Region, so the
request is checked on the broker's whole ARN rather than broker:*:<id>, which no policy naming a broker matches. It also
answers the tags MQ holds on the broker an ARN names, read in the ARN's account and Region by the id it ends in and
matched on the whole ARN, neither read moving a stored broker.
The table also takes the Service Reference's change to SES since main's sync: TagResource, UntagResource and
ListTagsForResource now act on a multi-region-endpoint too, which the drift check of a change to the table requires.
IamRestRouteEnforcementIntegrationTest checks that with no grant a broker's read is refused, that a grant on one
broker's ARN reads it and refuses another, that a deny on one broker's ARN refuses it and leaves another, that an
aws:ResourceTag condition reads a broker's tags, and that a create carrying tags needs mq:CreateTags on the broker of
its name.
CloudTrail types the caller as Root for the account's credentials,
IAMUser for a user's key, AssumedRole for a role session and
FederatedUser for a federation token. Floci recorded the account root as
an IAMUser named root, and every session as an unknown "anonymous" user.
The account's credentials are now Root, with the account as principalId
and no userName; a role session is AssumedRole, with the role as its
sessionIssuer and the session's creationDate; a session a user's
GetSessionToken issued is that IAMUser.
Every temporary credential now carries its sessionContext attributes,
creationDate and mfaAuthenticated, which is true for a GetSessionToken
session opened with an MFA code. A session opened with a source identity
names it in sessionContext.sourceIdentity. A federation token's
sessionIssuer is the root or the IAM user that called
GetFederationToken. A session opened with AssumeRoleWithWebIdentity
names its identity provider in webIdFederationData. The root of an
account with an alias is named by it in userName.
Credentials GetDelegatedAccessToken exchanged for a request a role
approved now carry the role session's ID, "role-id:session-name", as
their aws:userid and CloudTrail principalId, with the role's ID as the
sessionIssuer's principalId.