mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
Under IAM enforcement, Athena, Data Exports, Pricing Calculator, Cost
Explorer, CloudTrail, Global Accelerator and Timestream for InfluxDB
requests were checked on `*`, so a grant scoped to a workgroup, an
export, a workload estimate, an anomaly monitor, a trail, an
accelerator or a parameter group was refused, and a deny scoped to one
never applied.
The generated table of the resources requests name now reads them, 305
operations, from AWS's Service Reference and botocore as it reads the
first four batches: their namespaces move from the generator's
NOT_COVERED to NAMESPACES and the table is regenerated, nothing in it
edited by hand; 1022 operations over 24 namespaces. Each resource
type's ARN format is the one Floci mints or reads: Athena's
`workgroup/<name>` and `datacatalog/<name>` (its tag handler parses
them), `export/<name>`, Cost Explorer's `anomalymonitor/<id>` and
Global Accelerator's `accelerator/<id>` with no Region, listeners and
endpoint groups under the accelerator's, `trail/<name>`, and Timestream
for InfluxDB's `<type>/<id>`.
Corrections, each with its reason:
- Athena's StartQueryExecution, ListQueryExecutions and ListNamedQueries
naming no workgroup are checked on the primary one, where Athena runs
and lists them ("If a workgroup is not specified, returns a list of
query execution IDs for the primary workgroup"), and so is
GetWorkGroup, which Floci answers with the primary one then. Floci's
StartQueryExecution and GetWorkGroup handlers now read a JSON null
WorkGroup as none, as ListQueryExecutions does, rather than as a
workgroup named "null", so the workgroup checked is the one acted on.
- Athena's ListDatabases, ListTableMetadata and GetTableMetadata are
checked on AwsDataCatalog, the Glue Data Catalog Floci reads
whichever catalog they name, as well as on the one their CatalogName
names.
- Cost Explorer's nine cost and usage reads are checked on `*`, not on
their BillingViewArn: Floci serves no billing views and answers the
account's costs whichever view is named, so a grant scoped to one
must not reach them.
- Data Exports' CreateExport is not checked on its Export.ExportArn,
the ARN "for this export", which the request creates; its pattern
takes a table's, so a caller could choose the table checked.
- CloudTrail's StartLogging, StopLogging and GetTrailStatus name their
trail by a bare Name, a name or an ARN, AddTags, RemoveTags and
ListTags their resources by the ARNs in ResourceId and
ResourceIdList, members whose names do not end in Arn, and the
dashboard operations their dashboard by DashboardId, a name or an
ARN.
- Cost Explorer's GetAnomalyMonitors and GetAnomalySubscriptions name
their monitors and subscriptions by the ARNs in MonitorArnList and
SubscriptionArnList; GetAnomalySubscriptions' MonitorArn, a
monitor's ARN, is not read as a subscription's.
- Timestream for InfluxDB's RebootDbCluster is checked on each member
instance its instanceIds names as well as on the cluster.
- Global Accelerator's ListCustomRoutingPortMappings is checked on its
accelerator alone: its EndpointGroupArn extends the accelerator's ARN
and so matched the accelerator's format.
Not read yet, each with its reason in NOT_COVERED: CodeDeploy, whose
on-premises instance format the Service Reference gives as
`instance:${InstanceName}` while the CodeDeploy permissions reference
gives `instance/instance-ID` and AWS's GetOnPremisesInstance example
answers `instance/<name>_<id>`; Redshift Data, whose serverless
workgroup's ARN ends in an id the service mints while its requests name
the workgroup by WorkgroupName; and Service Catalog, whose
*PortfolioShare requests give in AccountId the account a portfolio is
shared with, whose imported portfolios and products keep their owner's
account while requests name them by id, and whose AppRegistry half is
named in the path.