mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Access Analyzer's routes are vendored, but the table of request resources did not read the namespace, so a route of an action AWS checks on an analyzer, GetAnalyzer, CreateAnalyzer and DeleteAnalyzer among the ones Floci serves, was left unchecked under enforcement: a caller with no grant on the analyzer was let through and a deny on it never applied. - access-analyzer moves from NOT_COVERED to NAMESPACES: 39 operations, 1544 over 35 namespaces, no other entry changed. An analyzer is read as analyzer/<analyzerName> from the path or the body, the ARN Floci mints, an archive rule as analyzer/<analyzerName>/archive-rule/<ruleName>, and the operations naming an analyzer by its ARN, in the body or the query, on that ARN. - With every operation of the scope in the table, the routes check each by the resources-read half of the join rule. No vendored route is left unchecked: every routed scope is read, built by hand, or of an action of no resource type. - The REST reason of the namespaces not read yet no longer says the path is not read: RequestResources reads it from the vendored routes, which do not have those namespaces' models yet. - access-analyzer is read by the tag-on-create table too, so a CreateAnalyzer carrying tags also needs access-analyzer:TagResource on the analyzer it names, and its own action is checked with them as aws:RequestTag and aws:TagKeys, as the Service Reference lists. The regeneration also takes Config's PutServiceLinkedConfigurationRecorder, which the reference has listed with config:TagResource since the last sync; Floci does not serve it. IamRestRouteEnforcementIntegrationTest creates an analyzer and checks GetAnalyzer, CreateAnalyzer and DeleteAnalyzer on the ARN Access Analyzer gives it, a grant scoped to it, another analyzer refused and a deny holding; the vendored-route test's unchecked example is gone. IamActionRegistryTest checks the analyzer routes and keeps an unread example on a fixture (Backup's GetBackupPlan); RequestResourcesTest reads an analyzer from a path label and a body and an archive rule from both; IamRestRouteCoverageTest pins the five operations Floci serves; IamTagOnCreateEnforcementIntegrationTest checks a tagged CreateAnalyzer needs TagResource on its analyzer and meets a request-tag condition, and an untagged one CreateAnalyzer alone. iam.md and access-analyzer.md say so.