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.
4.2 KiB
IAM Access Analyzer
Protocol: REST JSON
Endpoint: http://localhost:4566
Floci supports the analyzer lifecycle and basic policy validation used by local governance workflows.
Supported Actions
| Action | Description |
|---|---|
ValidatePolicy |
Checks basic policy syntax and grammar and returns paginated findings with source locations. |
ListAnalyzers |
- |
CreateAnalyzer |
- |
DeleteAnalyzer |
- |
GetAnalyzer |
- |
Analyzer state is account and Region scoped and persisted through StorageFactory.
Policy validation
ValidatePolicy accepts a JSON policy string at POST /policy/validation. It does not require an analyzer, persist the submitted policy, or change permissions. It supports IDENTITY_POLICY, RESOURCE_POLICY, SERVICE_CONTROL_POLICY, and RESOURCE_CONTROL_POLICY requests. With IAM enforcement enabled, callers need access-analyzer:ValidatePolicy on Resource: "*", and ListAnalyzers needs access-analyzer:ListAnalyzers the same way, both actions AWS authorizes on no resource. CreateAnalyzer, GetAnalyzer and DeleteAnalyzer need their action on the analyzer they name, arn:aws:access-analyzer:<region>:<account>:analyzer/<name>, as AWS authorizes them on the analyzer: CreateAnalyzer the one its analyzerName gives, the others the one in their path. A CreateAnalyzer that carries tags also needs access-analyzer:TagResource on that analyzer, and its own action is checked with the tags as aws:RequestTag/<key> and aws:TagKeys, as the Service Reference lists both for it.
The local checks cover malformed JSON, repeated object keys, document and statement shapes, required elements, mutually exclusive elements, policy versions, duplicate statement identifiers, principal key names, condition operator names, and selected empty-value suggestions. Resource policies accept the API's supported validatePolicyResourceType values; the IAM trust-policy type permits statements without a resource element. Generic resource policies containing trust actions use the same trust-policy context. BinaryEquals is recognized as policy syntax, but Floci's IAM evaluator does not execute it.
Findings include an issue code, severity, explanation, documentation link, JSON path, and source span. Spans refer to the original policy string, with zero-based offsets and columns, one-based lines, and an exclusive end. Malformed policy JSON and repeated object keys return JSON_SYNTAX_ERROR findings in a successful response. Repeated-key findings point to the repeated key in the submitted text. Invalid request members return ValidationException; malformed outer request JSON returns SerializationException.
Use maxResults and nextToken query parameters to page through findings. The default page size is 100 and the supported range is 1 to 1000. Tokens are opaque, bound to the policy document, policy type, resource type, and locale, and expire when Floci restarts. The page size may change between requests.
These are basic syntax and grammar checks, not the full AWS policy analyzer. Floci does not validate action existence, service-specific resource or condition semantics, or security best practices. An empty findings list only means that the implemented checks found no issue. Accepted locale values currently return English explanations. These limits also apply when a resource type is supplied.
AWS-compatible failures
Analyzer names, types, tags, pagination, duplicate names, and local analyzer quotas are validated. Floci returns ValidationException, ConflictException, ResourceNotFoundException, and ServiceQuotaExceededException for deterministic conditions represented by local state.
AWS also models AccessDeniedException, InternalServerException, and ThrottlingException. Floci does not inject provider-side failures that cannot be derived from the request or emulator state.
See the IAM Access Analyzer API Reference.
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_SERVICES_ACCESSANALYZER_ENABLED |
true |
Enable or disable IAM Access Analyzer |