mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Athena's GetDataCatalog, ListDatabases, ListTableMetadata and GetTableMetadata handlers read the catalog name with has() and asText(), so a JSON null became a catalog named `null`: GetDataCatalog then answered InvalidRequestException rather than the AwsDataCatalog it answers for a request naming none. They now read it through the handler's text(), as GetWorkGroup and StartQueryExecution read WorkGroup, so a JSON null names no catalog. Under IAM enforcement, a GetDataCatalog naming no catalog was checked on `*` though Floci answers AwsDataCatalog, so a grant on that catalog was refused and a deny on it did not apply, and the three catalog reads given a JSON null CatalogName were checked on `datacatalog/null` as well as on AwsDataCatalog. The request-resources table now reads a request naming none, or a JSON null, as naming AwsDataCatalog for all four, as it reads Athena's primary workgroup. The table's regeneration also takes up drift in AWS's Service Reference since the last sync, which the online check of both IAM tables fails on: AWS now lists cognito-idp:DescribeTermsByClient among the actions it authorizes DescribeTermsByClient as, so the authorized-actions map no longer maps it to DescribeTerms and the request-resources table checks it as its own action, and the map gains MediaConnect's new BatchGetDestinationEndpoint and BatchGetSourceEndpoint. Floci serves none of these operations.