mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* feat(inspector2): support disabling scans * fix(inspector2): enforce disable permission * fix(inspector2): accept optional resource types --------- Co-authored-by: Ovidiu (Ovi) <462561+ovidiubute@users.noreply.github.com>
45 lines
2.3 KiB
Markdown
45 lines
2.3 KiB
Markdown
# Amazon Inspector
|
|
|
|
**Protocol:** REST JSON
|
|
|
|
**Endpoint:** `http://localhost:4566`
|
|
|
|
Floci implements the Amazon Inspector organization operations used by local security-governance workflows.
|
|
|
|
## Supported Actions
|
|
|
|
<!-- floci:actions:start -->
|
|
| Action | Description |
|
|
| --- | --- |
|
|
| `ListDelegatedAdminAccounts` | - |
|
|
| `EnableDelegatedAdminAccount` | - |
|
|
| `DisableDelegatedAdminAccount` | - |
|
|
| `BatchGetAccountStatus` | - |
|
|
| `Enable` | - |
|
|
| `Disable` | - |
|
|
| `UpdateOrganizationConfiguration` | - |
|
|
| `DescribeOrganizationConfiguration` | - |
|
|
<!-- floci:actions:end -->
|
|
|
|
## Supported behavior
|
|
|
|
The supported surface includes delegated administrator management, `BatchGetAccountStatus`, Inspector enablement and disablement, and organization auto-enable configuration. Delegation is reflected into the delegated account so organization configuration can be managed through credentials for that administrator account.
|
|
|
|
`BatchGetAccountStatus` accepts an omitted or empty `accountIds` list and resolves it to the caller account. Explicit enablement and disablement support `EC2`, `ECR`, `LAMBDA`, `LAMBDA_CODE`, and `CODE_REPOSITORY`, with the documented request-size limits. `Disable` also accepts an omitted or empty `resourceTypes` list. State changes use `ENABLING`, `ENABLED`, `DISABLING`, and `DISABLED` so SDK and deployment waiters can converge. Disabling selected scan types leaves the others enabled.
|
|
|
|
Organization auto-enable supports `ec2`, `ecr`, `lambda`, `lambdaCode`, and `codeRepository`. Only the delegated administrator account can update or describe organization configuration.
|
|
|
|
## AWS-compatible failures
|
|
|
|
Invalid account IDs, resource types, pagination input, and request shapes return `ValidationException`. Conflicting delegated-administrator state returns `ConflictException`. Organization configuration from a non-administrator account returns `AccessDeniedException`, and disabling an administrator that is not configured returns `ResourceNotFoundException`.
|
|
|
|
AWS also models internal and throttling failures. Floci does not synthesize provider-side failures without a local triggering condition.
|
|
|
|
See the [Amazon Inspector API Reference](https://docs.aws.amazon.com/inspector/v2/APIReference/Welcome.html).
|
|
|
|
## Configuration
|
|
|
|
| Variable | Default | Description |
|
|
|---|---|---|
|
|
| `FLOCI_SERVICES_INSPECTOR2_ENABLED` | `true` | Enable or disable Amazon Inspector |
|